← Amazon Interview Insights

Amazon·Software Engineer·Online Assessment (OA)·Intermediate

Intermediate
Apr 2026Remote

Summary

Amazon SWE online assessment, full-stack debugging task on a movie app. You get a broken recommendations feature and have to find and fix it without any hand-holding from the tooling.

Questions Asked (1)

Q1

You're given a full-stack movie app where the personalized recommendations section on the home page stays empty even after a user marks a movie as watched and submits a rating. Find and fix the bug.

Root Cause AnalysisAPI & IntegrationsSystem Design
Author's notes

The annoying part is the built-in AI assistant only works on a single file at a time, so you can't just scan the whole repo and hope something jumps out.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by reproducing the bug and tracing the data flow from the frontend action (marking watched and rating) through the API to the recommendation service. Systematically check each component—UI state, API request/response, backend logic, and data storage—to isolate where the breakdown occurs. Then propose a fix and verify it end-to-end.

Pro tip: Demonstrate a hypothesis-driven approach: before diving into code, articulate your assumptions about where the bug might be and how you'll validate them. This shows structured problem-solving, which Amazon values highly.

1. Reproduce and Confirm

Reproduce the issue by marking a movie as watched and submitting a rating, then observe that recommendations remain empty. Confirm the expected behavior and gather any error logs or network traces.

2. Trace the Data Flow

Follow the data from the frontend event through the API call to the backend service that generates recommendations. Identify each component involved and check for failures or misconfigurations.

3. Isolate the Faulty Component

Use debugging tools, logs, and unit tests to narrow down the failure. Check if the watched/rating data is persisted, if the recommendation service is triggered, and if the response is correctly rendered.

4. Implement and Test the Fix

Once the root cause is identified, implement a targeted fix. Write or update tests to cover the scenario and verify that recommendations now appear correctly.

5. Validate and Prevent Regression

Test the fix end-to-end, including edge cases. Consider adding monitoring or alerts to detect similar issues in the future.

Key Points to Mention

  • Check if the watched/rating data is successfully saved to the database or user profile.
  • Verify that the API endpoint for submitting ratings triggers the recommendation update (e.g., via event or synchronous call).
  • Inspect the recommendation service logic for filters or thresholds that might exclude the user.
  • Ensure the frontend correctly handles and displays the recommendation response, including loading and error states.
  • Consider caching issues: stale recommendations might be served if cache invalidation is missing.
  • Look for asynchronous processing delays or message queue failures in the recommendation pipeline.

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.