Amazon
8 questions · Coding · System design · Behavioral
Find two numbers in an array that sum to a target and return their indices.
CodingApproachOne pass with a hash map of value → index; for each x, check whether target − x was already seen.
EvaluatesWhether you move from the brute-force O(n²) to a clean O(n) hash-map solution and reason about edge cases.
Count the number of islands in a 2D grid of land and water.
CodingApproachFlood-fill each unvisited land cell with BFS/DFS and mark visited; count how many fills you start.
EvaluatesGraph traversal on a grid, visited-state management, and complexity analysis.
Design and implement an LRU cache with O(1) get and put.
CodingApproachCombine a hash map with a doubly linked list; move touched nodes to the front, evict from the tail.
EvaluatesComposing data structures to hit tight time bounds and getting the eviction bookkeeping right.
Design a URL shortener (like TinyURL).
System designApproachTalk through the API, a hash/base-62 key scheme, storage and read/write ratio, caching hot links, and redirects.
EvaluatesScoping, key generation, read-heavy scaling, and caching decisions.
Design a rate limiter for a public API.
System designApproachCompare token bucket vs. sliding window, where state lives (per-node vs. Redis), and behavior under bursts.
EvaluatesAlgorithm choice, distributed state, and failure/consistency trade-offs.
Tell me about a time you had to dive deep to find the root cause of a problem.
BehavioralApproachMap it to the Leadership Principles (Dive Deep, Ownership): show data, the investigation, and the fix.
EvaluatesWhether you operate the way Amazon writes its Leadership Principles — data-driven and owner-minded.
Describe a time you delivered results despite significant constraints.
BehavioralApproachSTAR with a bias-for-action angle; quantify the outcome.
EvaluatesBias for Action and Deliver Results under ambiguity.
Tell me about a time you disagreed with a teammate or manager.
BehavioralApproachUse STAR: the situation, your reasoning, how you disagreed respectfully and reached a decision, and the result.
EvaluatesCommunication, judgment, and whether you can disagree-and-commit without drama.
Practice these with a free AI mock
Get graded on your real answers, with feedback after every round.
Practice free