1777 questions · from 456 interviews · 162 asked more than once
Amazon interview questions
Every question candidates reported from their Amazon interviews, most frequently asked first. Each links to the write-up it came from, so you can see the round and how it went.
Amazon coding and DSA questions
- 01
Course Schedule II
Given the total number of courses and a list of prerequisite pairs, return an ordering of courses you should take to finish all courses. If it is impossible, return an empty list.
Medium · Asked 9 times · From AMAZON SDE II Interview
- 02
Search in Rotated Sorted Array
Given a rotated sorted array of distinct integers and a target value, return the index of the target if it exists, otherwise return -1. The solution uses a modified binary search that accounts for the rotation.
Medium · Asked 9 times · From Amazon SDE 2 | India | Oct 2026 | DSA + LLD rounds | Result awaited
- 03
Word Ladder
Given a begin word, an end word, and a dictionary, find the shortest transformation sequence from begin word to end word such that only one letter can be changed at a time and each intermediate word must exist in the dictionary.
Medium · Asked 9 times · From Amazon
- 04
Number of Islands
Given a 2‑D grid of '1's (land) and '0's (water), count the number of distinct islands. I used a standard DFS/BFS flood‑fill algorithm to explore each island and increment the count.
Medium · Asked 9 times · From Amazon SDE II Interview Experience + Need Honest Feedback
- 05
LRU Cache
Struggled initally to dinf the correct data structure, the interviewer helped in thinking in correct direction. Used Double linked list and Hash Map and solved it completely.
Medium · Asked 9 times · From Amazon SDE 1 Interview Experience 2026
- 06
Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring that does not contain any repeating characters.
Medium · Asked 7 times · From Amazon Hackon (SDE-Intern 10490515)
- 07
Find Median from Data Stream
Design a data structure that supports inserting numbers from a data stream and retrieving the median of all inserted numbers at any point in O(log n) time per operation.
Medium · Asked 7 times · From Amazon SDE-2 Experience
- 08
Group Anagrams
Given a list of strings, group the ones that are anagrams of each other. Example input: ["eat","tea","tan","ate","nat","bat"] Expected output (order of groups and order within groups does not matter): [["eat","tea","ate"],["tan","nat"],["bat"]] Follow‑up: How…
Medium · Asked 6 times · From Amazon | SDE2 | BLR | Alexa team | Rejected
- 09
Trapping Rain Water
Given an array of non‑negative integers representing elevation map heights, compute how much rain water can be trapped after raining.
Medium · Asked 6 times · From Amazon
- 10
Reorganize String
Given a string S , rearrange the characters so that no two adjacent characters are the same. Return any possible rearranged string, or an empty string if no such arrangement exists.
Medium · Asked 6 times · From AMAZON SDE 2 (L5) | SPAIN | 9 YOE
- 11
Merge Intervals
Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input.
Medium · Asked 6 times · From Amazon SDE1 FTC Interview Experience
- 12
Rotten Oranges
Similar to LeetCode 994 Rotten Oranges problem. The candidate was able to code and explain the solution end to end.
Medium · Asked 5 times · From Amazon | SDE2 | Interview Experience
- 13
Sliding Window Maximum
The problem involved finding the maximum element within each contiguous subarray (or window) of a given size k as the window slides across an array. I recognized it as the well-known Sliding Window Maximum problem, often solved efficiently using a deque.
Hard · Asked 5 times · From Amazon SDE1 FTC Interview Experience
- 14
House Robber
Given values in houses arranged in a line, find the maximum value that can be stolen without robbing two adjacent houses. Input: [6, 7, 1, 3, 8, 2, 4] Output: 19
Easy · Asked 5 times · From Amazon SDE-2 (India) Interview Experience — Result: Rejected
- 15
Rotting Oranges
Rotten oranges (graph BFS)
Medium · Asked 5 times · From Amazon || SDE - 2 || 3 YOE || Accepted offer
- 16
Asteroid Collision
Asteriod collisions (Stack)
Medium · Asked 5 times · From Amazon || SDE - 2 || 3 YOE || Accepted offer
- 17
Two Sum
Given an array of integers nums and an integer target , return indices of the two numbers such that they add up to target .
Easy · Asked 5 times · From 🔥 Amazon SDE Interview Questions (Real Experiences + LeetCode Links)
- 18
Next Greater Element
Given an integer array, for each element find the next greater element that appears to its right. If no such element exists, output -1. A monotonic decreasing stack can be used to achieve O(n) time.
Easy · Asked 4 times · From Amazon SDE 2 | India | Oct 2026 | DSA + LLD rounds | Result awaited
- 19
Capacity To Ship Packages Within D Days
LeetCode problem: Capacity To Ship Packages Within D Days. Solved using binary search on answer.
Medium · Asked 4 times · From Amazon SDE2 Interview Experience | AUG 26 | BLR | 3.3 YOE
- 20
Cheapest Flights Within K Stops
LeetCode problem: Cheapest Flights Within K Stops. Solved using a graph/BFS based minimum‑weight algorithm.
Medium · Asked 4 times · From Amazon SDE2 Interview Experience | AUG 26 | BLR | 3.3 YOE
- 21
Remove K Digits
Given a non‑negative integer num represented as a string, remove exactly k digits from the number so that the new number is the smallest possible. The resulting number should not contain leading zeros.
Medium · Asked 4 times · From Amazon SDE Intern Interview Experience — SDE Intern
- 22
House Robber II
Given a circular array of non‑negative integers representing the amount of money of each house, you cannot rob two adjacent houses. Determine the maximum amount of money you can rob without triggering the alarm.
Medium · Asked 4 times · From Amazon SDE-2 OA Experience || Rejected
- 23
First Missing Positive
Find the first missing positive integer in an unsorted array using array indexing / cyclic sort.
Hard · Asked 4 times · From Amazon Interview Experience SDE 1 (DSA-focused)
- 24
Longest Palindromic Substring
I was asked to solve the Longest Palindromic Substring problem.
Medium · Asked 4 times · From Amazon SDE-1 Interview Experience | Rejected 2026
- 25
Pacific Atlantic Water Flow
Given a matrix representing heights, find cells from which water can flow to both Pacific ocean (top and left edges) and Atlantic ocean (bottom and right edges). Water flows to cells with equal or lower height.
Medium · Asked 4 times · From Amazon SDE Intern(6m) Interview Experience
956 more in the Amazon write-ups.
Amazon system design questions
- 01
Design a Rate Limiter
Design a low‑level rate limiter that restricts the number of requests allowed per a given time window. The design should be object‑oriented, suitable for implementation in C++, and handle concurrency considerations if needed.
Hard · Asked 8 times · From Amazon : SWE New Grad 2026 USA: Interview Experience
- 02
Design Amazon Locker System
Design a high‑level system for an Amazon Locker service. Requirements: - Delivery driver deposits a package. - Customer receives a code. - Customer unlocks locker using the code. - Locker allocation, OTP/code validation, expiry handling. - Support multiple…
Asked 5 times · From Amazon SDE2 Interview Experience
- 03
Design a Parking Lot
Design a parking lot. I gathered the requirements and listed the classes with their behaviour and attributes. I also listed the design patterns to be used. Then he asked me to implement couple of methods in the design, which I did.
Medium · Asked 5 times · From Amazon SDE - II Interview Experience
- 04
Parking Lot System Design
Design a system that assigns the most optimal parking location for vehicles of different sizes, tracks availability of spots, and handles allocation and deallocation efficiently.
Asked 3 times · From Amazon | SDE-1 Interview Experience
- 05
Design a URL Shortener
Design a URL shortener. This included discussing Functional Requirements (FR), Non-Functional Requirements (NFR), API design, database schema, and high-level design.
Hard · Asked 3 times · From Amazon SDE 2 Interview Experience
- 06
Design BookMyShow
Design the BookMyShow system. This was a very vague problem statement, requiring me to lead the complete discussion, designing classes, methods, and interfaces. Towards the end, I was also asked about database choices for storing different entities,…
Hard · Asked 3 times · From Amazon SDE 2 Backend Interview Exp || Offer || August
- 07
Design Issue Management System
I was asked to design an Issue Management System that supports different priorities, escalations, and a wait queue for issues.
Asked 2 times · From Amazon SDE 2 Interview Experience
- 08
Design Parking Lot System
I was asked to design a Parking Lot system. Since this was an HLD round and the question felt more like an LLD problem, I got a bit confused and ended up discussing the LLD aspects. The interviewer was supportive and still asked meaningful questions relevant…
Asked 2 times · From Amazon SDE 2 Interview Experience
- 09
Design Twitter
Design Twitter, described as a LeetCode-style system design problem.
Hard · Asked 2 times · From Amazon SDE2 Onsite Experience – Lessons Learned
- 10
- 11
Low-Level Design: Amazon Locker System
The third question was a low-level design problem for an Amazon Locker system. I asked clarifying questions, came up with the classes, mentioned my assumptions, and came up with the code for a minimum viable product (MVP).
Hard · Asked 2 times · From Amazon Phone Screen | SDE 2 | USA
- 12
Amazon Locker Service Design
Design a locker service for packages with the following functions: 1. A function to return the appropriate locker to be opened when a package is received. 2. A function to retrieve a package for a given customer. Assume packages can be of 3 sizes: small,…
Asked 2 times · From Amazon | SDE 2 (L5) | Bangalore | April 2024 [Offer]
- 13
Design Auto Complete/Search Recommendations
Design an auto-complete or search recommendation system for Amazon Search. Assume a ranking algorithm is provided that returns the search priority. The target is to show the top 5 search recommendations.
Asked 2 times · From Amazon | SDE 2 (L5) | Bangalore | April 2024 [Offer]
- 14
Design Linux Find API
Design an API that mimics the functionality of the Linux find command.
From Amazon SDE2 interview onsite experience - good experience, no offer
- 15
Design Amazon Review System
Design a system for handling product reviews on an e-commerce platform similar to Amazon.
From Amazon SDE2 interview onsite experience - good experience, no offer
- 16
Design an Agentic Chatbot
Design a chatbot that accepts user queries and generates responses. The candidate completed the basic flow but ran out of time to implement additional functionality.
- 17
Design a Smart Meter Electricity Monitoring System
Design a system that collects electricity consumption data from smart meters installed in individual households and displays the usage on a dashboard.
- 18
Design an Examination System
Design an examination system that can handle test creation, candidate registration, exam delivery, scoring, and result reporting.
- 19
Predict Customer Issue and Route to Support Agent
Design a system that predicts a customer's issue based on their previous Amazon orders and routes the request to the most appropriate support agent. Include data ingestion, feature engineering, prediction model, and routing logic.
- 20
Scale Chat Service for Traffic Spikes
Explain how you would scale a real‑time chat service to handle sudden spikes in traffic, covering load balancing, message persistence, latency reduction, and fault tolerance.
- 21
Auto‑scaling, Consistency, and ACID Transactions
Describe how you would handle auto‑scaling of services, ensure database consistency, and maintain ACID transaction guarantees in a distributed system.
- 22
Package Delivery System Design
Design a package delivery system for an e‑commerce platform. The system must accept orders, create packages, assign delivery agents, track delivery status, and handle failed deliveries. It should prioritize Prime orders and assign the highest‑rated agent to…
From Amazon SDE 2 | India | Oct 2026 | DSA + LLD rounds | Result awaited
- 23
Delivery Slot Booking System (Amazon Fresh)
Design a delivery slot booking system for Amazon Fresh, covering requirements such as slot allocation, user preferences, and scalability.
- 24
CoWIN Vaccine Appointment Booking Platform
Design the CoWIN platform for vaccine appointment booking, including handling high traffic, user authentication, appointment scheduling, and notifications.
- 25
Cart‑Management System Design
Design a low‑level cart‑management system that supports adding, removing, and deleting items, applying multiple discount types, and calculating the final price of the cart. The solution should include class architecture, design patterns, and full method…
318 more in the Amazon write-ups.
Amazon behavioural and HR questions
- 01
Behavioral Questions (Amazon LPs)
Two behavioral questions were asked, based on Amazon's Leadership Principles.
Asked 4 times · From Amazon L5 (SDE II) | Bangalore | June 2025 | Selected
- 02
Amazon Leadership Principles Discussion
Discussion centered around Amazon's Leadership Principles, covering behavioral aspects and past experiences relevant to these principles.
Asked 2 times · From Amazon SDE2 Interview Experience (Full Loop)
- 03
Tell me about a time you learned something new
Describe a situation where you had to learn something new. What was it, how did you approach learning it, and what was the outcome?
Asked 2 times · From Amazon SDE-1 Interview Experience | Verdict - SELECTED ✅
- 04
Stepping Out of Comfort Zone
Tell me about a time you stepped out of your comfort zone
Asked 2 times · From [USA] | Amazon SDE II Process | Rejected
- 05
Behavioral: Ownership
Behavioral questions focused on the leadership principle 'Ownership', asking about past projects and experiences related to taking responsibility and driving results.
Asked 2 times · From Amazon | SDE-2 | Hyderabad (In-person + Virtual)
- 06
Amazon Leadership Principles
I was asked multiple questions related to Amazon's Leadership Principles. The interviewer stressed the importance of structuring my responses using the STAR method and elaborating on past experiences in detail. This section of the interview lasted over 40…
Asked 2 times · From Amazon Dublin Frontend Engineer FEE (New Grad) – Rejected After Phone Screen
- 07
Taking Ownership
Tell me about a time when you took ownership.
Asked 2 times · From SDE-2 Offer at Amazon
- 08
Behavioral: Conflict Resolution
Describe a situation involving conflict and how you handled it.
Asked 2 times · From Amazon US SDE 1 | Offer
- 09
Behavioral: Tell me about a time you failed.
Tell me about a time you failed.
Asked 2 times · From Amazon | SDE II | USA | Onsite Interview | Offer
- 10
Overcoming Negative Feedback
How did you overcome a situation where you have been given a negative feedback?
Asked 2 times · From Amazon | SDE-1 (L4 - New Grad) | Bangalore | Jan 2025 Offer | Select ✅
- 11
Leadership Principle: Issue Resolution at Scale
Tell about a time when I solved an issue on scale by deep diving in the internals. How did I lead it, what was the impact.
- 12
Leadership Principles and Past Projects
The Bar Raiser round included 30 minutes of Leadership Principles (LP) questions, which involved deep grilling about my past projects and experiences.
- 13
Describe a time you compromised quality to deliver quickly.
Describe a situation where you had to compromise on quality to meet a tight deadline and deliver quickly.
- 14
Share an instance where you improved an existing process.
Tell me about a time you identified an inefficiency and improved an existing process within your team.
- 15
Describe owning a module end to end.
Tell me about a time you owned a module or project from conception to completion, end to end.
- 16
Describe a conflict with your manager.
Share an experience where you had a conflict or disagreement with your manager and how you resolved it.
- 17
Describe simplifying something for a customer.
Tell me about a time you simplified a complex process or product feature to make it easier for a customer.
- 18
Describe going above and beyond for a customer.
Share an example where you went above and beyond your standard duties to deliver exceptional results for a customer.
- 19
Describe delivering impact with vague requirements.
Tell me about a time you had to deliver something impactful despite having vague or ambiguous requirements.
- 20
Behavioral: Describe a Complex Problem
Describe a complex problem I solved in my past experience.
- 21
Leadership Principle: Production System Breakage & Resolution
Tell a time where you broke a production system or you were on call while it broke, what steps you took and how you resolved it.
From Amazon | SDE 2 | 4th time rejected | Jan 2026 | Bangalore
- 22
Leadership Principle: Leading/Developing a Technical Project
Tell a time where you led or developed a technical project. How did you proceed about the same? What was the success metric for the project?
From Amazon | SDE 2 | 4th time rejected | Jan 2026 | Bangalore
- 23
Leadership Principle: Taking Lead on Issues and Resolution
Tell me a time where you took the lead and saw some issues, then resolved them.
From Amazon | SDE 2 | 4th time rejected | Jan 2026 | Bangalore
- 24
Leadership Principle: Facing Tight Deadlines
Tell me a time where you faced tight deadlines and how you ensured that those were met.
From Amazon | SDE 2 | 4th time rejected | Jan 2026 | Bangalore
- 25
Leadership Principle: Solving Complex Problems Simply
When did you solve a complex problem with a simple solution?
From Amazon | SDE 2 | 4th time rejected | Jan 2026 | Bangalore
336 more in the Amazon write-ups.
Amazon other questions
- 01
Merge K Sorted Lists
Merge k sorted linked lists into one sorted list.
Hard · Asked 7 times · From Amazon last 6 months DSA question compilation
- 02
Max Consecutive Ones III
Find the maximum number of consecutive 1s in a binary array you can get by flipping at most k 0s to 1s.
Medium · Asked 3 times · From Amazon last 6 months DSA question compilation
- 03
Best Time To Buy And Sell Stock II
Find the maximum profit that can be achieved by buying and selling stocks on different days, with the constraint that you can only hold one stock at a time.
Easy · Asked 3 times · From Amazon last 6 months DSA question compilation
- 04
Magnetic Force Between Two Balls
Calculate the maximum possible minimum distance between two balls placed in a line of positions, given certain constraints on their placement.
Hard · Asked 2 times · From Amazon last 6 months DSA question compilation
- 05
Longest Valid Parentheses
Find the length of the longest valid parentheses substring in a given string.
Hard · Asked 2 times · From Amazon last 6 months DSA question compilation
- 06
Integer To English Words
Convert an integer to its English words representation.
Hard · Asked 2 times · From Amazon last 6 months DSA question compilation
- 07
Design Tic-Tac-Toe Game
I was asked to design and implement a Tic-Tac-Toe game, considering aspects like game state management, player turns, winning conditions, and possibly handling different board sizes or AI players (though the specifics varied).
Asked 2 times · From Amazon || SDE-2 || Interview Experience
- 08
Explain SOLID Principles
Provide an explanation of the SOLID principles of object‑oriented design and give examples of how each principle can be applied.
- 09
Generative AI in Engineering Workflow
Describe how you would incorporate generative AI tools (e.g., code‑completion, test generation) into your day‑to‑day engineering workflow.
- 10
Choose EC2 for Hosting Service
Discuss reasons for selecting Amazon EC2 over other compute options when hosting a scalable backend service.
- 11
Choose SQL over NoSQL
Explain scenarios where a relational database (SQL) is preferred over a NoSQL solution for a given application.
- 12
Job Scheduling Strategy Design
Design a job‑scheduling system that can schedule and execute jobs based on priority levels (LOW, MEDIUM, HIGH) and request type (adhoc or periodic). The scheduler must handle both background (periodic) requests and foreground (adhoc) requests, ensuring…
From Amazon Interview Experience | 5 YOE | Automation Tester to SDE II | Selected
- 13
Split Payment and Settlement System Design
Design a system for group purchases that tracks each user’s contribution, identifies deadbeat participants (who have not paid), manages settlement deadlines, and handles refund distribution when needed.
From Amazon Interview Experience | 5 YOE | Automation Tester to SDE II | Selected
- 14
Physical Joins vs Hash Join vs Broadcast Nested Loop Join
Explain the differences between Physical Joins, Hash Join, and Broadcast Nested Loop Join, including when each join type is used and their performance characteristics.
- 15
GROUP BY vs Window Functions
Describe the difference between using GROUP BY and Window Functions in SQL, and give examples of scenarios where a window function is preferred.
- 16
Slowly Changing Dimensions (SCD Types)
Explain the concept of Slowly Changing Dimensions and detail the different SCD types (Type 0, Type 1, Type 2, Type 3, etc.) and their use cases.
- 17
Star Schema vs Snowflake Schema
Compare Star Schema and Snowflake Schema in data warehousing, highlighting the structural differences and trade‑offs in query performance and normalization.
- 18
SQL Query Optimization Strategies
Discuss various techniques to optimize SQL queries, such as indexing, query rewriting, using appropriate joins, and analyzing execution plans.
- 19
Data Warehouse vs Data Lake vs Lakehouse
Explain the differences between a Data Warehouse, a Data Lake, and a Lakehouse architecture, covering storage, schema enforcement, and typical use cases.
- 20
Batch Architecture vs Event‑Driven Incremental Ingestion
Contrast traditional batch processing architectures with event‑driven incremental ingestion pipelines, focusing on latency, complexity, and scalability.
- 21
Idempotency in Data Processing
Define idempotency in the context of data pipelines and discuss how to achieve idempotent operations in ETL workflows.
- 22
Change Data Capture (CDC)
Explain what Change Data Capture is, how it works, and common techniques/tools used to implement CDC in data pipelines.
- 23
Consecutive User Logins SQL Query
Write a SQL query to find users who have logged in on consecutive days (e.g., day N and day N+1). The query should return the user id and the dates of the consecutive logins.
- 24
Package Tracking & Status Aggregator Engine
Build a high-performance engine that consumes a master JSON list of shipments (with delivery rules and deadlines) and a live JSONL stream of carrier scanner events. The engine must aggregate scanner data to determine the current location of each shipment,…
From Amazon OA 2026
- 25
Backend Banking App Access Control
Full Stack Coding question involving AI agent. Design backend Banking App which has security flaws that allow unauthorized access to other accounts. Users are able to view transactions that do not belong to their accounts. Your task is to fix the access…
67 more in the Amazon write-ups.
Amazon interview questions FAQ
What questions are asked in Amazon interviews?
Candidates reported 1777 distinct questions across 456 Amazon interviews. 981 coding and DSA questions, 343 system design questions, 361 behavioural and HR questions, 92 other questions.
Which Amazon interview questions are asked most often?
The most repeated are "Course Schedule II" (9 times), "Search in Rotated Sorted Array" (9 times), "Word Ladder" (9 times), "Number of Islands" (9 times), "LRU Cache" (9 times).
How difficult are Amazon interview questions?
Of the questions candidates rated, 9% were easy, 59% medium and 32% hard.