Amazon Interview Questions 2026

Published July 22, 2026 · Updated July 22, 2026

304 real interview questions asked at Amazon. Covers DSA / Arrays, System Design, DSA / Graphs, Behavioral, Domain, DSA / Trees, Data Engineering / PySpark, Product / Backlog Prioritization, AWS / IAM and S3, React / Performance, React / Core Web Vitals, React / Memory, React / Profiling, React / Hooks, Node.js / Memory, Node.js / Event Loop, SQL / Query Optimization, SQL / PostgreSQL, SQL / Schema Design, SQL / Schema Migration, SQL / Replication, System Design / Social Media, System Design / URL Shortener, System Design / Messaging, System Design / Migration, System Design / Rate Limiting, System Design / Resilience, Java / JVM, Java / Data Structures, Java / Concurrency, Python / Async, Python / GIL, AWS / Lambda, AWS / Serverless, AWS / DynamoDB, DevOps / Kubernetes, DevOps / Kubernetes Networking, Kafka / Consumer, Kafka / Exactly Once, Microservices / Saga Pattern, Microservices / Resilience, TypeScript / Generics, Security / XSS, Behavioral / Incident Management, Behavioral / Team Dynamics, Behavioral / Career Growth, DSA / Hash Maps, DSA / Sliding Window, DSA / Stack, DSA / Real-world Algorithms, DSA / Data Structures, DSA / Heaps, Performance / Latency Tail, Performance / Cost Optimization, Performance / Caching, Performance / Logging, React / Concurrent Features, React / Internals, React / Race Conditions, Java / Collections, Java / JMM, Java / Async, Python / Advanced Python, SQL / Performance, SQL / Data Migration, DevOps / Database Migrations, Security / Rate Limiting, System Design / Scheduler, System Design / Booking System, TypeScript / Advanced Types, MongoDB / Replication, Behavioral / Code Review, Behavioral / Technical Leadership, DSA / Linked Lists, DSA / Dynamic Programming, DSA / Backtracking, DSA / Greedy, Performance / Database, Performance / Architecture, Performance / Connection Pooling, Behavioral / Conflict, Behavioral / Mentoring, Behavioral / Leadership, React / Lifecycle, React / Forms, Node.js / Observability, Node.js / Deduplication, Node.js / Native Addons, Node.js / Production, SQL / Connection Pooling, SQL / Analytics, SQL / Database Theory, AWS / Messaging, AWS / ElastiCache, Microservices / Data Consistency, Microservices / Observability, Microservices / API Design, Microservices / Sagas, Microservices / Architecture, Microservices / Zero-downtime Deploy, Security / IDOR, DevOps / Incident Investigation, Microservices / Migration, Behavioral / Conflict Resolution, DevOps / Hotfix, Node.js / Deep Clone, React / Re-render Optimization, DevOps / Debugging, Behavioral / Testing, Node.js / Throttle, Architecture / Feature Flags, Redis / Cache Stampede, Redis / High Availability, Redis / Persistence, Redis / Distributed Systems, Redis / Memory, Redis / Performance, Redis / Messaging, Elasticsearch / Query Optimization, GraphQL / Security, GraphQL / Performance, GraphQL / Observability, GraphQL / Execution, DSA / Two Pointers, DSA / Stacks and Queues, DSA / BFS, DSA / Heap, React / Context, React / Advanced React, Java / Design Patterns, Node.js / Threading, Node.js / Performance, Python / Decorators, Python / Memory, System Design / Distributed Systems, System Design / Architecture, System Design / Notifications, DSA / Linked List, DSA / Binary Search, Behavioral / Prioritization, Behavioral / Communication, Behavioral / Product, Behavioral / Incident Response, Behavioral / Collaboration, Behavioral / Estimation, Security / Cryptography, DevOps / Deployment, DevOps / Database, DevOps / CI/CD, DevOps / Service Mesh, DevOps / Monitoring, SQL / ORM Performance, SQL / Indexing, SQL / Scaling, SQL / Views, SQL / Concurrency, Kafka / Consumer Groups, Kafka / Performance, Kafka / Delivery Semantics, Kafka / Ordering, Kafka / Storage, Elasticsearch / Internals, Elasticsearch / Cluster Management, Elasticsearch / Search, Data Engineering / Distributed Systems, System Design / Scaling, Architecture / Event Sourcing, Architecture / Resilience, System Design / Networking, Architecture / Rate Limiting, React / Reconciliation, Java / Spring Boot, Architecture / Microservices, Java / Resilience, Redis / Data Structures, Redis / Resilience, Security / Auth, System Design / CDN, Architecture / Database, Debugging / Production, System Design / Consistency, System Design / Concurrency, Architecture / API Design, Architecture / Migration, DSA / Heap/QuickSelect, DSA / Graph, DSA / Trie, DSA / Sorting, Java / Memory, Behavioral / Product Management, JavaScript / V8 Engine, Architecture / Developer Experience, Security / OAuth, System Design / Search, JavaScript / Language Internals, TypeScript / Migration, DevOps / Load Balancing, DevOps / Observability, DevOps / Feature Flags, Security / Authentication, JavaScript / Event Loop, React / Concurrent, React / Architecture, DevOps / Security, DevOps / GitOps, DevOps / High Availability, Security / SSRF, Java / Java 21, Java / Modern Java, System Design / Video Streaming, System Design / Leaderboard, DevOps / Helm, Architecture / Best Practices, React / UX Patterns, Architecture / Messaging, Python / Data Structures. Reported by engineers who went through the Amazon process.

Questions Interview GuidesInterview Guides
304 questions
8711 engineers asked
14231 upvotes

DSA / Arrays (6)

Amazon Medium Technical round JavaPythonJavaScript

Given an array of integers and a target sum, return all unique triplets that sum to the target. Discuss time and space complexity. Then extend the problem to k-sum and analyze how recursion depth changes performance for large k.

↑ 54 upvotes · 47 engineers asked this · SDE2
Amazon Medium Technical round JavaPython

Given an array of integers, find the length of the longest subarray with a sum equal to zero. Explain the prefix sum + HashMap approach and why the naive O(n2) solution is unacceptable for large inputs.

↑ 51 upvotes · 32 engineers asked this · SDE1
Amazon Medium Technical round 2-4 years

Given an array of intervals, merge all overlapping intervals. Return the minimum number of intervals after merging. Example: [[1,3],[2,6],[8,10],[15,18]] → [[1,6],[8,10],[15,18]]

↑ 83 upvotes · 31 engineers asked this · SDE2
Amazon Medium Technical round 2-4 years

Given a list of intervals sorted by start time, insert a new interval and merge if necessary. Return the updated list.

↑ 33 upvotes · 41 engineers asked this · SDE2
Amazon Medium Technical round 2-4 years

Given an array, find the maximum sum of a subarray (Kadane's algorithm). Then extend: return the actual subarray indices, not just the sum.

↑ 44 upvotes · 52 engineers asked this · SDE2
Amazon Hard Technical round 3-6 years

Find the first missing positive integer in an unsorted array. Must be O(n) time and O(1) extra space.

↑ 75 upvotes · 13 engineers asked this · SDE2

System Design (3)

Amazon Hard System Design round Distributed SystemsSystem DesignAWS

Design a distributed rate limiter that can handle 10M requests per second across multiple data centers. Discuss consistency tradeoffs, the choice between token bucket vs leaky bucket, and how you would handle clock skew across regions.

↑ 99 upvotes · 89 engineers asked this · SDE2
Amazon Hard System Design round Distributed SystemsKafkaAWS

Design Amazon's recommendation engine (customers who bought X also bought Y). Cover: collaborative filtering vs content-based, item-item similarity at scale, real-time vs batch computation, and how you handle the cold-start problem for new products.

↑ 58 upvotes · 38 engineers asked this · SDE2
Amazon Hard System Design round 5–8 YearsSystem DesignKafkaDistributed Systems

Design a notification system (push/email/SMS) that sends 10 million notifications per day to users across time zones with delivery guarantees.

↑ 139 upvotes · 111 engineers asked this · Senior SDE

DSA / Graphs (3)

Amazon Hard Technical round System DesignMicroservicesJava

Given a directed graph representing service dependencies, detect all strongly connected components and explain how this maps to identifying circular dependencies in a microservices architecture.

↑ 39 upvotes · 33 engineers asked this · Staff
Amazon Hard Technical round 4-7 years

You have a graph of cities with flight prices between them. Find the cheapest flight from source to destination with at most K stops.

↑ 31 upvotes · 39 engineers asked this · SDE2
Amazon Hard Technical round 3-6 years

Implement Dijkstra's algorithm for shortest path. A city has 1000 nodes and 5000 edges. What data structure gives best performance?

↑ 39 upvotes · 47 engineers asked this · SDE2

Behavioral (2)

Amazon Medium HR round

Tell me about a time you had to deliver a project under a very tight deadline. What trade-offs did you make and how did you communicate them to stakeholders? Which Amazon Leadership Principle guided your decision?

↑ 62 upvotes · 44 engineers asked this · SDE2
Amazon Medium HR round

Describe a time you disagreed with a decision made by your team or manager. How did you raise the concern? What was the outcome? (Amazon LP: Have Backbone; Disagree and Commit)

↑ 55 upvotes · 36 engineers asked this · SDE2

Domain (1)

Amazon Medium Technical round AWSDynamoDBJava

Explain Amazon's DynamoDB single-table design pattern. Why do you put multiple entity types in one table? Walk through a real example with access patterns, partition key / sort key design, and GSI usage.

↑ 47 upvotes · 28 engineers asked this · SDE2

DSA / Trees (8)

Amazon Medium Technical round JavaPython

Serialize and deserialize a binary tree. Implement both functions and explain why BFS serialization makes deserialization simpler than DFS. What is the time and space complexity?

↑ 44 upvotes · 27 engineers asked this · SDE1
Amazon Hard Technical round 3-6 years

Given a binary tree, find the longest path between any two nodes (not necessarily through root). You have 30 minutes.

↑ 79 upvotes · 27 engineers asked this · SDE2
Amazon Medium Technical round 2-5 years

Given a binary search tree, find the k-th smallest element. Can you do it without building a sorted array?

↑ 26 upvotes · 34 engineers asked this · SDE2
Amazon Hard Technical round 3-6 years

Implement a function to serialize and deserialize a binary tree. The serialized format must allow perfect reconstruction.

↑ 34 upvotes · 42 engineers asked this · SDE2
Amazon Medium Technical round 2-4 years

Given a binary tree, check if it's a valid Binary Search Tree. Consider all possible edge cases.

↑ 78 upvotes · 16 engineers asked this · SDE2
Amazon Medium Technical round 2-5 years

Given a binary tree, return the level-order traversal as a list of lists.

↑ 57 upvotes · 25 engineers asked this · SDE2
Amazon Hard Technical round 3-6 years

Write an algorithm to serialize and deserialize a binary tree.

↑ 45 upvotes · 23 engineers asked this · SDE2
Amazon Medium Technical round 2-5 years

Write a function to check if a binary tree is a valid Binary Search Tree (BST).

↑ 48 upvotes · 26 engineers asked this · SDE2

Data Engineering / PySpark (1)

Amazon Hard Scenario round 4–7 YearsPythonKafka

You have a Spark job that ingests 500GB of clickstream data daily. It is failing with OOM errors on the executor. How do you debug and fix it?

↑ 108 upvotes · 86 engineers asked this · Data Engineer

Product / Backlog Prioritization (1)

Amazon Hard Scenario round 4–8 Years

How do you prioritize a backlog when you have 50 features requested by 10 different stakeholders?

↑ 104 upvotes · 82 engineers asked this · Product Owner

AWS / IAM and S3 (1)

Amazon Medium Technical round 3–5 YearsAWS

What is the difference between an S3 bucket policy, IAM policy, and S3 ACL? Which takes precedence?

↑ 87 upvotes · 68 engineers asked this · Cloud Architect

React / Performance (6)

Amazon Hard Scenario round 3-7 years

Your React app renders a list of 50,000 rows. Users report severe lag when scrolling. The current implementation maps over the entire array and renders each row as a component. Walk me through exactly how you'd fix this without changing the data source.

↑ 52 upvotes · 20 engineers asked this · SDE2
Amazon Hard Technical round 3-6 years

A user reports that typing in a search input feels 'laggy' only when there are many results showing below. Nothing in the input code changed. Explain and fix.

↑ 61 upvotes · 19 engineers asked this · SDE2
Amazon Medium Screening round 3-6 years

What is the difference between React.memo, useMemo, and useCallback? Give an example where each is the right tool.

↑ 71 upvotes · 19 engineers asked this · SDE2
Amazon Hard Scenario round 3-6 years

Your React app has a form with 50 fields. On each keystroke, the entire form re-renders taking 200ms. How do you fix this?

↑ 73 upvotes · 21 engineers asked this · SDE2
Amazon Hard Scenario round 3-6 years

Your React SPA loads slowly on first visit (8 seconds). Bundle size is 5MB. How do you optimize?

↑ 79 upvotes · 27 engineers asked this · SDE2
Amazon Medium Screening round 3-6 years

What is the purpose of React.Profiler component and how do you use it to find performance bottlenecks?

↑ 15 upvotes · 23 engineers asked this · SDE2

React / Core Web Vitals (1)

Amazon Hard Scenario round 4-8 years

Your team ships a React app and Lighthouse shows CLS (Cumulative Layout Shift) of 0.45. Users see content jumping on load. No one on the team has touched layout recently. How do you diagnose and fix it?

↑ 54 upvotes · 22 engineers asked this · SDE2

React / Memory (1)

Amazon Hard Technical round 4-8 years

You notice your React app's memory usage grows from 80MB to 400MB over 30 minutes of normal usage. There are no error logs. How do you identify and fix the memory leak?

↑ 59 upvotes · 27 engineers asked this · SDE2

React / Profiling (1)

Amazon Hard Technical round 4-7 years

After adding React DevTools Profiler, you see a component called UserAvatar re-rendering 200 times per second even when no user data changes. What are the most likely causes?

↑ 67 upvotes · 35 engineers asked this · SDE2

React / Hooks (1)

Amazon Hard Screening round 4-7 years

Explain the difference between useLayoutEffect and useEffect. Give a real scenario where using useEffect instead of useLayoutEffect causes a visible bug.

↑ 70 upvotes · 38 engineers asked this · SDE2

Node.js / Memory (3)

Amazon Hard Scenario round 4-8 years

Your Node.js API handles 500 requests/second in staging. In production at 2000 req/sec, memory climbs to 8GB and the process crashes after 20 minutes. How do you diagnose and fix this?

↑ 72 upvotes · 40 engineers asked this · SDE2
Amazon Hard Technical round 3-6 years

A Node.js service crashes every night at 2 AM with 'FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory'. There's a cron job that runs at 1:55 AM. Explain the likely cause and your fix.

↑ 78 upvotes · 46 engineers asked this · SDE2
Amazon Hard Technical round 3-6 years

Your Node.js API has memory usage growing from 100MB to 800MB over 24 hours with stable traffic. How do you find the leak?

↑ 73 upvotes · 51 engineers asked this · SDE2

Node.js / Event Loop (3)

Amazon Hard Screening round 4-7 years

Explain the Node.js event loop phases in order. A setTimeout(fn, 0) and setImmediate(fn) are both queued. Which runs first and why? What if they're inside an I/O callback?

↑ 81 upvotes · 49 engineers asked this · SDE2
Amazon Hard Screening round 3-6 years

Explain how Node.js handles CPU-intensive tasks without worker threads. What happens to the event loop and all pending HTTP requests while a heavy computation runs?

↑ 65 upvotes · 23 engineers asked this · SDE2
Amazon Hard Screening round 4-7 years

Explain the difference between process.nextTick() and Promise.then() in the event loop. Which executes first?

↑ 68 upvotes · 26 engineers asked this · SDE2

SQL / Query Optimization (4)

Amazon Hard Scenario round 3-7 years

You have a query that takes 45 seconds on a table with 50 million rows. EXPLAIN shows a full table scan. The WHERE clause filters on user_id and created_at. There's already an index on user_id. What do you do?

↑ 82 upvotes · 50 engineers asked this · SDE2
Amazon Hard Technical round 3-6 years

Your query has LEFT JOIN to a large table but most rows in the result have NULL for the joined table columns. EXPLAIN shows full scan of the joined table. How do you optimize?

↑ 52 upvotes · 30 engineers asked this · SDE2
Amazon Hard Technical round 3-7 years

You have a table with 500 million rows. A query runs in 0.1s in development (10K rows) but 45 seconds in production. Same index exists on both. Why?

↑ 5 upvotes · 3 engineers asked this · SDE2
Amazon Hard Technical round 3-6 years

You notice a SQL query uses an index, but adding ORDER BY makes it 10x slower. Explain why and how to fix it.

↑ 16 upvotes · 14 engineers asked this · SDE2

SQL / PostgreSQL (1)

Amazon Hard Scenario round 4-8 years

Your PostgreSQL database has a table with 200 million records. A nightly batch job runs UPDATE on 5 million rows. The next morning, queries that were taking 50ms now take 8 seconds. What happened and how do you fix it?

↑ 83 upvotes · 51 engineers asked this · SDE2

SQL / Schema Design (1)

Amazon Hard System Design round 5-9 years

Design a database schema for an e-commerce platform that handles flash sales. During a flash sale, 10,000 users try to buy the last 100 units simultaneously. Your schema must prevent overselling. Show the schema and the critical query.

↑ 84 upvotes · 52 engineers asked this · Staff

SQL / Schema Migration (1)

Amazon Hard Scenario round 4-8 years

A developer adds a NOT NULL constraint to a column in a production table with 100 million rows. The ALTER TABLE runs for 6 hours and locks the table. How should this have been done?

↑ 6 upvotes · 4 engineers asked this · SDE2

SQL / Replication (1)

Amazon Hard System Design round 4-8 years

Your database read replicas are always 30 seconds behind the primary. During this lag, users see stale data after updating their profile. How do you handle read-after-write consistency without routing all reads to primary?

↑ 12 upvotes · 10 engineers asked this · SDE2

System Design / Social Media (1)

Amazon Hard System Design round 5-10 years

Design Instagram's newsfeed. 500 million users, each follows up to 2000 accounts. Feed must load in under 200ms. How do you architect this?

↑ 17 upvotes · 15 engineers asked this · Staff

System Design / URL Shortener (2)

Amazon Hard System Design round 4-8 years

Design a URL shortener like bit.ly. It needs to handle 100 million URLs, 10 billion reads per day, and the short URLs must never collide. Walk through your complete design.

↑ 18 upvotes · 16 engineers asked this · SDE2
Amazon Medium System Design round 3-6 years

Design a URL shortener like bit.ly that handles 100K writes and 10M reads per day. The shortened URLs should never expire.

↑ 50 upvotes · 18 engineers asked this · SDE2

System Design / Messaging (1)

Amazon Hard System Design round 6-10 years

Design WhatsApp's message delivery system. Messages must be delivered exactly once, in order, and the sender must know when the recipient read the message. Handle 50 billion messages per day.

↑ 19 upvotes · 17 engineers asked this · Staff

System Design / Migration (1)

Amazon Hard System Design round 5-9 years

Your company's monolith handles 10,000 requests/second. The checkout service is the bottleneck. How do you extract it into a microservice without downtime and without breaking existing functionality?

↑ 20 upvotes · 18 engineers asked this · Staff

System Design / Rate Limiting (1)

Amazon Hard System Design round 5-9 years

Design a distributed rate limiter that works across 50 geographically distributed servers without a centralized bottleneck. It must allow 1000 requests per user per minute globally.

↑ 21 upvotes · 19 engineers asked this · Staff

System Design / Resilience (1)

Amazon Hard System Design round 5-9 years

Your microservices communicate via synchronous REST calls. Service A calls B, B calls C, C calls D. D is slow and times out, causing a cascade failure that takes down A. How do you redesign this to be resilient?

↑ 26 upvotes · 24 engineers asked this · Staff

Java / JVM (2)

Amazon Hard Screening round 4-8 years

Explain how Java's Garbage Collector works in G1GC mode. Your application has 8GB heap and full GCs every 10 minutes cause 5-second pauses. How do you tune this?

↑ 29 upvotes · 27 engineers asked this · SDE2
Amazon Hard Technical round 4-7 years

In a Java 17 application, you see OutOfMemoryError: Metaspace. The heap is fine. What is Metaspace, what causes it to fill up, and how do you fix it?

↑ 36 upvotes · 34 engineers asked this · SDE2

Java / Data Structures (1)

Amazon Hard Technical round 5-8 years

Design a thread-safe cache in Java that: evicts the least recently used entry when full, has O(1) get and put, and handles concurrent access without a global lock.

↑ 31 upvotes · 29 engineers asked this · SDE2

Java / Concurrency (5)

Amazon Hard Screening round 4-8 years

Explain the difference between synchronized, ReentrantLock, ReadWriteLock, and StampedLock. Give a scenario where each is the right choice.

↑ 33 upvotes · 31 engineers asked this · SDE2
Amazon Hard Scenario round 3-6 years

Your Java service has two threads simultaneously checking product stock (quantity=1). Both see available and create orders, resulting in quantity=-1. Fix this.

↑ 19 upvotes · 37 engineers asked this · SDE2
Amazon Hard Screening round 3-6 years

What is the difference between volatile and synchronized in Java? When is volatile sufficient?

↑ 23 upvotes · 41 engineers asked this · SDE2
Amazon Hard Screening round 3-6 years

Explain what a deadlock is and how to prevent one in a multi-threaded Java application.

↑ 41 upvotes · 19 engineers asked this · SDE2
Amazon Hard Screening round 4-7 years

What is the Fork/Join framework in Java? How does it differ from ExecutorService for CPU-bound tasks?

↑ 57 upvotes · 35 engineers asked this · SDE2

Python / Async (1)

Amazon Hard Scenario round 3-6 years

Your Python FastAPI service handles 1000 requests/second. Adding one blocking I/O call (requests.get()) drops throughput to 50 requests/second. Why and how do you fix it without rewriting the service?

↑ 37 upvotes · 35 engineers asked this · SDE2

Python / GIL (1)

Amazon Hard Screening round 3-6 years

Explain Python's GIL. You have CPU-bound code that you parallelized with threading. It's not faster. Why? How do you actually make it faster?

↑ 39 upvotes · 37 engineers asked this · SDE2

AWS / Lambda (2)

Amazon Hard Scenario round 3-7 years

Your AWS Lambda function processes S3 events. Under high load, you notice some events are processed twice, causing duplicate records in DynamoDB. Lambda is configured with at-least-once delivery. How do you fix this?

↑ 43 upvotes · 41 engineers asked this · SDE2
Amazon Medium Technical round 2-5 yearsAWS

What is Lambda cold start and why does it happen? Name two concrete techniques to reduce its impact on a latency-sensitive API.

↑ 24 upvotes · 16 engineers asked this · SDE2

AWS / Serverless (1)

Amazon Hard Scenario round 4-8 years

Your API Gateway + Lambda architecture handles 10,000 requests/second normally. During a flash sale, it receives 100,000 requests/second. Lambda concurrency limit is 1000. What happens and how do you handle this?

↑ 47 upvotes · 45 engineers asked this · SDE2

AWS / DynamoDB (2)

Amazon Hard System Design round 4-8 years

You're using DynamoDB for a social media app. Users can like posts. You need to count total likes per post in real-time. A naive counter update causes hot partition issues at viral posts. How do you solve this?

↑ 48 upvotes · 46 engineers asked this · SDE2
Amazon Hard System Design round 4-8 years

Your DynamoDB table has a hot partition because 80% of reads go to the same partition key (a popular user). How do you solve this?

↑ 5 upvotes · 43 engineers asked this · SDE2

DevOps / Kubernetes (8)

Amazon Hard Scenario round 4-7 years

Your Kubernetes pod keeps crashing with OOMKilled. You set memory limit to 512Mi. The application normally uses 300Mi but spikes to 600Mi on certain requests. How do you fix this without just raising the limit?

↑ 49 upvotes · 47 engineers asked this · SDE2
Amazon Hard Scenario round 3-7 years

After deploying a new version in Kubernetes, users report intermittent errors. 30% of requests fail, 70% succeed. Rollback is taking 10 minutes and you need a faster solution right now.

↑ 51 upvotes · 49 engineers asked this · SDE2
Amazon Hard Scenario round 4-7 years

Your Kubernetes cluster nodes are at 80% memory utilization. Adding pods fails with 'Insufficient memory'. You have 10 nodes. Some pods have no resource limits set. What's your investigation and remediation plan?

↑ 52 upvotes · 50 engineers asked this · SDE2
Amazon Medium Screening round 2-5 years

Explain the difference between liveness probe and readiness probe in Kubernetes. What happens if you configure liveness probe too aggressively?

↑ 64 upvotes · 42 engineers asked this · SDE2
Amazon Hard Technical round 3-7 years

Your Kubernetes pod keeps crashing with OOMKilled. How do you diagnose and fix it?

↑ 76 upvotes · 44 engineers asked this · SDE2
Amazon Medium Screening round 3-6 years

What is Kubernetes horizontal pod autoscaling (HPA) and what metrics can it scale on?

↑ 77 upvotes · 45 engineers asked this · SDE2
Amazon Hard Screening round 3-7 years

Explain Kubernetes Deployments vs StatefulSets. When would you use a StatefulSet?

↑ 17 upvotes · 25 engineers asked this · SDE2
Amazon Hard Scenario round 3-6 years

Your Kubernetes cluster has nodes running at 95% CPU. New pods are in Pending state. How do you resolve this?

↑ 20 upvotes · 28 engineers asked this · SDE2

DevOps / Kubernetes Networking (1)

Amazon Hard Screening round 4-8 years

Explain how Kubernetes networking works when Pod A calls Pod B by service name. Trace the exact path of the network packet.

↑ 53 upvotes · 51 engineers asked this · SDE2

Kafka / Consumer (1)

Amazon Hard Scenario round 4-8 years

Your Kafka consumer group has 10 consumers and 10 partitions. One consumer is slower than others and keeps getting rebalances, causing other consumers to pause processing. How do you fix this?

↑ 55 upvotes · 3 engineers asked this · SDE2

Kafka / Exactly Once (1)

Amazon Hard Screening round 5-9 years

You need Kafka to guarantee exactly-once message processing from producer to consumer, including writing to a database. Explain what you need to configure at each layer.

↑ 56 upvotes · 4 engineers asked this · Staff

Microservices / Saga Pattern (1)

Amazon Hard System Design round 5-9 years

Design a system where microservice A must call microservices B, C, and D. If any one fails, the entire operation must rollback. B and C have already succeeded when D fails. How do you handle this?

↑ 57 upvotes · 5 engineers asked this · Staff

Microservices / Resilience (1)

Amazon Hard Scenario round 4-8 years

Your microservices use synchronous REST calls and you're experiencing cascading failures. You implement circuit breakers, but during the open state, users get blank pages. How do you improve user experience during failures?

↑ 58 upvotes · 6 engineers asked this · SDE2

TypeScript / Generics (1)

Amazon Hard Technical round 3-6 years

You have a TypeScript generic function that takes an object and a key. It should return the value at that key in a type-safe way so callers get proper autocomplete. Write the function signature.

↑ 62 upvotes · 10 engineers asked this · SDE2

Security / XSS (2)

Amazon Hard Technical round 3-6 years

You discover a reflected XSS vulnerability in your React application despite React's automatic escaping. How is this possible in React?

↑ 69 upvotes · 17 engineers asked this · SDE2
Amazon Hard Screening round 3-6 years

Explain content security policy (CSP). How does it protect against XSS?

↑ 23 upvotes · 31 engineers asked this · SDE2

Behavioral / Incident Management (1)

Amazon Hard HR round 3-8 years

You deployed a change that caused a production outage lasting 2 hours. How do you handle the immediate aftermath and what do you do in the days after?

↑ 74 upvotes · 22 engineers asked this · SDE2

Behavioral / Team Dynamics (1)

Amazon Hard HR round 4-8 years

A senior engineer on your team consistently writes correct but unreadable code and refuses code review feedback. Other team members are increasingly frustrated. You're not their manager. What do you do?

↑ 75 upvotes · 23 engineers asked this · SDE2

Behavioral / Career Growth (1)

Amazon Medium HR round 2-6 years

Your performance review is coming up. You've done excellent technical work but you're 'below expectations' because you don't write status updates and don't speak up in meetings. How do you respond to this feedback?

↑ 76 upvotes · 24 engineers asked this · SDE2

DSA / Hash Maps (1)

Amazon Hard Technical round 2-5 years

You have a function that runs in O(n²) time and your interviewer says 'this is too slow for n=10 million.' The function finds all pairs of numbers in an array that sum to a target. Optimize it to O(n).

↑ 77 upvotes · 25 engineers asked this · SDE2

DSA / Sliding Window (2)

Amazon Hard Technical round 4-7 years

You're implementing a rate limiter using a sliding window algorithm. Given a stream of timestamps (Unix milliseconds), return true if a request is within the limit of 100 requests per minute. The stream can have 1 billion events.

↑ 78 upvotes · 26 engineers asked this · SDE2
Amazon Medium Technical round 2-5 years

Given a string, find the length of the longest substring without repeating characters.

↑ 49 upvotes · 27 engineers asked this · SDE2

DSA / Stack (2)

Amazon Hard Technical round 3-6 years

Design a data structure that supports push, pop, and getMin in O(1) time and O(1) space (beyond the stack itself).

↑ 80 upvotes · 28 engineers asked this · SDE2
Amazon Hard Technical round 4-7 years

Given a matrix of 0s and 1s, find the largest rectangle containing only 1s.

↑ 38 upvotes · 46 engineers asked this · SDE2

DSA / Real-world Algorithms (1)

Amazon Hard Scenario round 4-8 years

You have a log file where each line has a timestamp and user ID. Find the K users who appear most frequently in the last N minutes. The file is 100GB and is being written to in real-time.

↑ 81 upvotes · 29 engineers asked this · SDE2

DSA / Data Structures (4)

Amazon Hard Technical round 3-6 years

Implement an LRU (Least Recently Used) cache with O(1) get and O(1) put. Explain why a naive HashMap alone doesn't solve this.

↑ 82 upvotes · 30 engineers asked this · SDE2
Amazon Hard Technical round 4-7 years

Design a data structure for a phone directory that supports: addNumber, removeNumber, getAny (return any available number). All operations O(1).

↑ 43 upvotes · 51 engineers asked this · SDE2
Amazon Hard Technical round 2-6 years

Implement LRU Cache with O(1) get and put operations.

↑ 53 upvotes · 21 engineers asked this · SDE2
Amazon Medium Technical round 2-5 years

Implement a stack that supports push, pop, top, and getMin in O(1) time.

↑ 55 upvotes · 23 engineers asked this · SDE2

DSA / Heaps (2)

Amazon Hard Technical round 4-7 years

Find the median of a stream of numbers. Numbers arrive one at a time. After each addition, you must be able to return the current median in O(log n) time.

↑ 5 upvotes · 33 engineers asked this · SDE2
Amazon Hard Technical round 4-7 years

You have a stream of integers. At any point, you can be asked for the median. Implement a data structure that supports add(num) in O(log n) and getMedian() in O(1).

↑ 36 upvotes · 44 engineers asked this · SDE2

Performance / Latency Tail (1)

Amazon Hard Scenario round 4-8 years

Your API's p99 latency is 3 seconds but p50 is 50ms. Most users have a great experience but 1% see extreme slowness. How do you investigate the outliers?

↑ 7 upvotes · 35 engineers asked this · SDE2

Performance / Cost Optimization (1)

Amazon Hard Scenario round 3-7 years

You're asked to reduce your service's AWS costs by 40% without degrading performance. Where do you start?

↑ 8 upvotes · 36 engineers asked this · SDE2

Performance / Caching (2)

Amazon Hard System Design round 4-7 years

Your team wants to add caching everywhere to improve performance. What questions would you ask before adding any cache?

↑ 9 upvotes · 37 engineers asked this · SDE2
Amazon Hard Technical round 3-6 years

Your API response time is 200ms. You add Redis caching. Response time drops to 20ms for cache hits but is now 400ms for cache misses (double the original). What happened?

↑ 45 upvotes · 3 engineers asked this · SDE2

Performance / Logging (1)

Amazon Medium Technical round 2-5 years

A microservice that was handling 500 req/sec now crashes at 100 req/sec after adding a new feature. The feature adds one line: logging the full request body. What's happening?

↑ 10 upvotes · 38 engineers asked this · SDE2

React / Concurrent Features (1)

Amazon Hard Screening round 4-7 years

Explain Concurrent React. What problem does it solve and how does startTransition help? Give a real example where it improves UX.

↑ 13 upvotes · 41 engineers asked this · SDE2

React / Internals (1)

Amazon Hard Screening round 5-9 years

What is React's Fiber architecture and why was it introduced? How does it enable concurrent features?

↑ 17 upvotes · 45 engineers asked this · Staff

React / Race Conditions (1)

Amazon Hard Technical round 3-6 years

Your React app has a race condition: user types in search, two API calls are made, the slower one returns last and overwrites the correct result. Fix it.

↑ 20 upvotes · 48 engineers asked this · SDE2

Java / Collections (1)

Amazon Hard Screening round 3-6 years

What is the difference between HashMap and ConcurrentHashMap at the implementation level? When does ConcurrentHashMap still cause problems?

↑ 24 upvotes · 52 engineers asked this · SDE2

Java / JMM (2)

Amazon Hard Screening round 4-8 years

What is the Java Memory Model (JMM)? Give a specific example where code behaves correctly in single-threaded but incorrectly in multi-threaded execution without synchronization.

↑ 27 upvotes · 5 engineers asked this · SDE2
Amazon Hard Screening round 5-9 years

What is the Java memory model and happens-before relationship? Why does it matter for concurrent code?

↑ 59 upvotes · 37 engineers asked this · Staff

Java / Async (2)

Amazon Medium Technical round 3-6 years

Explain CompletableFuture in Java 8+. How do you run 3 API calls in parallel and combine results when all complete?

↑ 33 upvotes · 11 engineers asked this · SDE2
Amazon Hard Screening round 3-6 years

Explain how Java's CompletableFuture works. How do you chain async operations and handle errors?

↑ 58 upvotes · 36 engineers asked this · SDE2

Python / Advanced Python (2)

Amazon Hard Screening round 4-8 years

Explain Python's descriptor protocol. How does @property use it? Write a descriptor that validates a positive integer.

↑ 36 upvotes · 14 engineers asked this · SDE2
Amazon Hard Screening round 5-9 years

Explain Python metaclasses. When would you actually use one in production code?

↑ 41 upvotes · 19 engineers asked this · Staff

SQL / Performance (2)

Amazon Hard Scenario round 3-7 years

Your application runs this query every second: SELECT count(*) FROM orders WHERE status='processing'. The count is displayed on a dashboard. The orders table has 100M rows. How do you make this fast?

↑ 48 upvotes · 26 engineers asked this · SDE2
Amazon Hard Scenario round 3-6 years

How do you optimize a slow COUNT(*) query on a table with 100 million rows?

↑ 19 upvotes · 17 engineers asked this · SDE2

SQL / Data Migration (1)

Amazon Hard Scenario round 3-7 years

You need to move 50 million rows from table A to table B (archive) and delete them from A. How do you do this without locking the production table?

↑ 51 upvotes · 29 engineers asked this · SDE2

DevOps / Database Migrations (1)

Amazon Hard Scenario round 4-8 years

You need zero-downtime database schema changes in production. Your service has 50 instances running. How do you add a NOT NULL column to a high-traffic table?

↑ 69 upvotes · 47 engineers asked this · SDE2

Security / Rate Limiting (1)

Amazon Hard Scenario round 4-8 years

A rate limiting mechanism blocks requests after 100/minute. An attacker sends 99 requests/minute from 1000 different IPs. Your rate limiter doesn't catch this. What type of attack is this and how do you mitigate it?

↑ 79 upvotes · 7 engineers asked this · SDE2

System Design / Scheduler (2)

Amazon Hard System Design round 6-10 years

Design a distributed job scheduler like AWS Batch. Jobs have dependencies (job B starts only after job A completes). The system must handle 100K jobs per day.

↑ 80 upvotes · 8 engineers asked this · Staff
Amazon Hard System Design round 5-9 years

Design a distributed task scheduler for 10 million scheduled tasks (delayed, recurring, one-time).

↑ 48 upvotes · 16 engineers asked this · Staff

System Design / Booking System (1)

Amazon Hard System Design round 5-9 years

Design a hotel booking system. Rooms must not be double-booked. Searches should show real-time availability. Handle 10,000 concurrent booking attempts for popular dates.

↑ 83 upvotes · 11 engineers asked this · Staff

TypeScript / Advanced Types (2)

Amazon Hard Technical round 4-7 years

What are TypeScript conditional types? Write a type that returns the element type of an array, or the type itself if not an array.

↑ 8 upvotes · 16 engineers asked this · SDE2
Amazon Hard Technical round 4-7 years

Explain TypeScript's conditional types. Write one that extracts the return type of a Promise.

↑ 57 upvotes · 5 engineers asked this · SDE2

MongoDB / Replication (2)

Amazon Hard Screening round 4-8 years

Your MongoDB replica set has 3 nodes. The primary goes down. How long before writes can resume and what determines this?

↑ 12 upvotes · 20 engineers asked this · SDE2
Amazon Hard Screening round 3-6 years

Explain MongoDB's write concern and read preference options. What trade-offs do they make?

↑ 53 upvotes · 51 engineers asked this · SDE2

Behavioral / Code Review (2)

Amazon Medium HR round 2-7 years

A team member submits a PR with 3000 lines of code changes. How do you approach the code review?

↑ 13 upvotes · 21 engineers asked this · SDE2
Amazon Medium HR round 2-7 years

You notice a senior engineer's code in a PR has a significant flaw that they missed. How do you handle the review?

↑ 64 upvotes · 32 engineers asked this · SDE2

Behavioral / Technical Leadership (1)

Amazon Hard HR round 3-8 years

You're given a task that you believe is technically wrong. The approach will work but will create significant technical debt. Your manager wants it done 'the quick way.' What do you do?

↑ 14 upvotes · 22 engineers asked this · SDE2

DSA / Linked Lists (1)

Amazon Medium Technical round 2-4 years

Implement a function to detect a cycle in a linked list. What is Floyd's cycle detection algorithm and why is it O(1) space?

↑ 25 upvotes · 33 engineers asked this · SDE2

DSA / Dynamic Programming (7)

Amazon Hard Technical round 4-7 years

You have an array of stock prices. Find the maximum profit from at most 2 transactions (buy-sell cycles). You must sell before buying again.

↑ 27 upvotes · 35 engineers asked this · SDE2
Amazon Medium Technical round 2-4 years

Given an m x n grid of integers, find the path from top-left to bottom-right that maximizes the sum. You can only move right or down.

↑ 29 upvotes · 37 engineers asked this · SDE2
Amazon Hard Technical round 4-7 years

Find the longest increasing subsequence in an array. Must be O(n log n).

↑ 35 upvotes · 43 engineers asked this · SDE2
Amazon Hard Technical round 4-7 years

Given a string, find the minimum number of characters to insert to make it a palindrome.

↑ 42 upvotes · 50 engineers asked this · SDE2
Amazon Hard Technical round 2-6 years

Write a function to find the longest palindromic substring in a string. What is the optimal approach?

↑ 52 upvotes · 20 engineers asked this · SDE2
Amazon Medium Technical round 2-5 years

Given an array, find the maximum sum subarray (Kadane's algorithm). Explain the dynamic programming insight.

↑ 46 upvotes · 24 engineers asked this · SDE2
Amazon Hard Technical round 3-6 years

Implement a function that finds the longest common subsequence (LCS) of two strings.

↑ 54 upvotes · 32 engineers asked this · SDE2

DSA / Backtracking (4)

Amazon Hard Technical round 3-5 years

Implement a function that returns all permutations of a string. If string has duplicates, return unique permutations only.

↑ 30 upvotes · 38 engineers asked this · SDE2
Amazon Medium Technical round 2-5 years

Implement a function that, given an integer n, returns all valid combinations of n pairs of parentheses.

↑ 37 upvotes · 45 engineers asked this · SDE2
Amazon Medium Technical round 2-5 years

Write a function to find all valid parentheses combinations for n pairs.

↑ 51 upvotes · 29 engineers asked this · SDE2
Amazon Medium Technical round 2-5 years

Write a function to compute the power set (all subsets) of a given set.

↑ 55 upvotes · 33 engineers asked this · SDE2

DSA / Greedy (1)

Amazon Hard Technical round 4-7 years

You have N tasks, each with a deadline and profit. You can do at most one task per unit of time. Maximize total profit. (Job Scheduling with deadlines)

↑ 40 upvotes · 48 engineers asked this · SDE2

Performance / Database (1)

Amazon Hard Technical round 4-8 years

You notice your database CPU is fine but disk I/O is at 100%. Queries are fast individually but slow under concurrent load. What's happening?

↑ 46 upvotes · 4 engineers asked this · SDE2

Performance / Architecture (1)

Amazon Hard System Design round 4-8 years

An engineer proposes adding an in-memory cache to every service to reduce database load. What are the problems with this approach at scale?

↑ 47 upvotes · 5 engineers asked this · SDE2

Performance / Connection Pooling (1)

Amazon Hard System Design round 4-8 years

Design a connection pool for database connections. What parameters would you expose and what are the failure modes?

↑ 49 upvotes · 7 engineers asked this · SDE2

Behavioral / Conflict (1)

Amazon Hard HR round 3-8 years

Your code review comment is dismissed repeatedly by a senior engineer who says 'it works, don't overthink it.' The code has a potential race condition you're certain about. What do you do?

↑ 51 upvotes · 9 engineers asked this · SDE2

Behavioral / Mentoring (1)

Amazon Medium HR round 4-8 years

You're mentoring a junior developer who is technically brilliant but writes code that no one else can understand. How do you improve this?

↑ 52 upvotes · 10 engineers asked this · SDE2

Behavioral / Leadership (2)

Amazon Hard HR round 4-8 years

Your team just launched a feature and a competitor launched an almost identical feature 2 days earlier. A manager blames 'slow engineers.' How do you respond professionally?

↑ 54 upvotes · 12 engineers asked this · SDE2
Amazon Hard HR round 4-9 years

Your team has low morale after a failed product launch. How do you help the team recover?

↑ 69 upvotes · 37 engineers asked this · SDE2

React / Lifecycle (1)

Amazon Hard Screening round 4-7 years

Explain the React rendering lifecycle in a functional component with hooks. In what exact order do useState, useEffect, and useLayoutEffect fire during mount and update?

↑ 58 upvotes · 16 engineers asked this · SDE2

React / Forms (1)

Amazon Hard System Design round 3-6 years

Your React form has complex validation: some fields depend on others, some validation is async (API calls). How do you architect this without the form becoming unmanageable?

↑ 63 upvotes · 21 engineers asked this · SDE2

Node.js / Observability (1)

Amazon Hard Scenario round 3-7 years

Your Node.js service uses Express and you want to implement request tracing across microservices. Each log line should show the same trace ID for the same request, even across async operations.

↑ 66 upvotes · 24 engineers asked this · SDE2

Node.js / Deduplication (1)

Amazon Hard System Design round 4-8 years

Design a Node.js service that must process exactly one event per user per day (deduplication). Events arrive out of order and can have duplicates. You have Redis available.

↑ 70 upvotes · 28 engineers asked this · SDE2

Node.js / Native Addons (1)

Amazon Hard Screening round 5-9 years

What is the N-API and why is it important for Node.js native addons? When would you write a native addon?

↑ 72 upvotes · 30 engineers asked this · Staff

Node.js / Production (1)

Amazon Hard Scenario round 3-7 years

Explain graceful shutdown in a Node.js service. What happens to in-flight requests when you kill the process without it?

↑ 74 upvotes · 32 engineers asked this · SDE2

SQL / Connection Pooling (1)

Amazon Hard Screening round 3-7 years

Explain database connection pool sizing. A service has 4 CPU cores and connects to PostgreSQL. What's the optimal pool size?

↑ 81 upvotes · 39 engineers asked this · SDE2

SQL / Analytics (1)

Amazon Medium Technical round 2-5 years

Write a SQL query to detect customers who haven't made a purchase in the last 30 days but were active in the 30 days before that (churned customers).

↑ 82 upvotes · 40 engineers asked this · SDE2

SQL / Database Theory (1)

Amazon Hard Screening round 4-8 years

Explain the CAP theorem with a real database example for each combination. Which pair does a standard RDBMS choose?

↑ 84 upvotes · 42 engineers asked this · SDE2

AWS / Messaging (1)

Amazon Medium Screening round 2-5 years

Explain the difference between SQS, SNS, and EventBridge. A new developer says 'they're all message queues.' Correct this.

↑ 6 upvotes · 44 engineers asked this · SDE2

AWS / ElastiCache (1)

Amazon Hard Scenario round 4-8 years

Your application uses ElastiCache Redis. During a Redis failover (primary → replica promotion), your app throws connection errors for 30 seconds. How do you reduce this to under 5 seconds?

↑ 9 upvotes · 47 engineers asked this · SDE2

Microservices / Data Consistency (1)

Amazon Hard System Design round 5-9 years

Explain the Outbox Pattern. When is it necessary and how does it solve the dual-write problem?

↑ 13 upvotes · 51 engineers asked this · Staff

Microservices / Observability (1)

Amazon Medium System Design round 3-7 years

Your 15 microservices all have their own logging format. Log aggregation is unusable because fields differ. How do you standardize this across teams without rewriting all services?

↑ 14 upvotes · 52 engineers asked this · SDE2

Microservices / API Design (1)

Amazon Hard System Design round 4-8 years

Design the API contract between microservices. When service A calls service B, how do you version the contract so service B can change without breaking service A?

↑ 15 upvotes · 3 engineers asked this · SDE2

Microservices / Sagas (1)

Amazon Hard System Design round 5-9 years

Explain the difference between choreography and orchestration in saga pattern. When would you choose each?

↑ 16 upvotes · 4 engineers asked this · Staff

Microservices / Architecture (1)

Amazon Hard System Design round 5-9 years

Your microservices use HTTP REST. Under peak load, Service A waits synchronously for Service B which waits for Service C. Adding a new feature requires adding Service D to the chain. What's the systemic problem?

↑ 17 upvotes · 5 engineers asked this · Staff

Microservices / Zero-downtime Deploy (1)

Amazon Hard System Design round 4-8 years

How do you handle database migrations when you have 10 instances of a service running and you need to add a NOT NULL column?

↑ 18 upvotes · 6 engineers asked this · SDE2

Security / IDOR (1)

Amazon Hard Scenario round 3-8 years

A customer calls support at 2 AM. They say they can see another customer's order history when they click 'My Orders.' You're on call. Walk me through your incident response.

↑ 20 upvotes · 8 engineers asked this · SDE2

DevOps / Incident Investigation (1)

Amazon Hard Scenario round 3-8 years

You deploy a new feature on Friday. Monday morning, your boss says 'sales dropped 30% over the weekend.' How do you investigate whether your deployment caused it?

↑ 22 upvotes · 10 engineers asked this · SDE2

Microservices / Migration (1)

Amazon Hard HR round 5-9 years

Your company wants to migrate from a monolith to microservices in 6 months. You're asked to lead this. What's the first thing you tell management?

↑ 27 upvotes · 15 engineers asked this · Staff

Behavioral / Conflict Resolution (1)

Amazon Medium HR round 2-6 years

Your manager gives you a feature that conflicts with another team's ongoing work. Both are due in 2 weeks. You discover this conflict today. What do you do?

↑ 28 upvotes · 16 engineers asked this · SDE2

DevOps / Hotfix (1)

Amazon Hard Scenario round 3-8 years

You need to give a production hotfix in 30 minutes. The bug is causing data corruption. You don't have time for a full review cycle. What's your process?

↑ 32 upvotes · 20 engineers asked this · SDE2

Node.js / Deep Clone (1)

Amazon Hard Technical round 4-7 years

Write a function to deep clone a JavaScript object without using JSON.parse/JSON.stringify. Handle: Date, RegExp, undefined, circular references.

↑ 34 upvotes · 22 engineers asked this · SDE2

React / Re-render Optimization (1)

Amazon Hard Technical round 3-6 years

Given a React component that renders 10,000 checkboxes, selecting one checkbox causes all 10,000 to re-render. Fix it without virtualizing.

↑ 35 upvotes · 23 engineers asked this · SDE2

DevOps / Debugging (1)

Amazon Hard Scenario round 3-7 years

Your team merged 3 PRs simultaneously. Production broke. All 3 PRs look fine individually. What's the likely cause and how do you find it?

↑ 39 upvotes · 27 engineers asked this · SDE2

Behavioral / Testing (1)

Amazon Medium HR round 3-6 years

A developer claims 'our tests are passing so production is fine.' Production has a bug. What testing gaps does this reveal?

↑ 41 upvotes · 29 engineers asked this · SDE2

Node.js / Throttle (1)

Amazon Medium Technical round 2-5 years

Implement a JavaScript function that throttles another function: no matter how many times it's called, it executes at most once per N milliseconds.

↑ 42 upvotes · 30 engineers asked this · SDE2

Architecture / Feature Flags (1)

Amazon Medium System Design round 3-6 years

Your team uses feature flags but they're managed as hardcoded constants in code. This means a code deploy is needed to toggle a feature. How do you improve this?

↑ 43 upvotes · 31 engineers asked this · SDE2

Redis / Cache Stampede (1)

Amazon Hard Scenario round 3-7 years

Your Redis cache stores 100,000 keys. At midnight, all keys expire simultaneously (same TTL set when deployed). This causes a thundering herd that crashes your database. How do you prevent this?

↑ 44 upvotes · 32 engineers asked this · SDE2

Redis / High Availability (1)

Amazon Hard Scenario round 4-7 years

You're using Redis as a session store. A Redis failover takes 30 seconds. During this time, all users are logged out. How do you make sessions resilient to Redis failures?

↑ 45 upvotes · 33 engineers asked this · SDE2

Redis / Persistence (2)

Amazon Medium Screening round 3-6 years

Explain Redis persistence options: RDB vs AOF. Your service can tolerate losing at most 1 second of data. Which do you configure?

↑ 46 upvotes · 34 engineers asked this · SDE2
Amazon Medium Screening round 3-6 years

How does Redis handle persistence? What are the trade-offs between RDB and AOF?

↑ 25 upvotes · 3 engineers asked this · SDE2

Redis / Distributed Systems (1)

Amazon Hard Technical round 4-8 years

Implement a distributed lock using Redis. What can go wrong with a naive SETNX approach?

↑ 48 upvotes · 36 engineers asked this · SDE2

Redis / Memory (1)

Amazon Hard Technical round 3-6 years

Redis is using 80% of available memory. Your application isn't caching more data than before. What could cause Redis memory growth?

↑ 50 upvotes · 38 engineers asked this · SDE2

Redis / Performance (1)

Amazon Medium Screening round 3-6 years

What is Redis pipelining and how does it differ from transactions? When should you use each?

↑ 51 upvotes · 39 engineers asked this · SDE2

Redis / Messaging (2)

Amazon Medium Screening round 3-7 years

Explain Redis pub/sub vs Redis Streams. When would you use each?

↑ 53 upvotes · 41 engineers asked this · SDE2
Amazon Medium Screening round 3-6 years

What is Redis Pub/Sub and how does it differ from using Redis as a message queue with Lists?

↑ 26 upvotes · 4 engineers asked this · SDE2

Elasticsearch / Query Optimization (1)

Amazon Hard Scenario round 3-7 years

Your Elasticsearch query returns results in 200ms but users see 2 seconds because the frontend waits for all 20 facets to load. How do you optimize this?

↑ 55 upvotes · 43 engineers asked this · SDE2

GraphQL / Security (1)

Amazon Hard Scenario round 3-7 years

Your GraphQL API has a query that allows clients to nest objects 10 levels deep. A malicious client sends a deeply nested query that takes 30 seconds and uses 4GB of memory. How do you prevent this?

↑ 59 upvotes · 47 engineers asked this · SDE2

GraphQL / Performance (1)

Amazon Hard Scenario round 3-7 years

Explain the N+1 problem in GraphQL. You have a query that returns 100 posts, each with their author. Without optimization, this makes 101 database queries. Fix this.

↑ 60 upvotes · 48 engineers asked this · SDE2

GraphQL / Observability (1)

Amazon Medium Scenario round 3-6 years

A client says your GraphQL API is 'too slow.' What metrics would you collect to diagnose this? What tools exist in the GraphQL ecosystem?

↑ 61 upvotes · 49 engineers asked this · SDE2

GraphQL / Execution (1)

Amazon Hard Screening round 4-7 years

Explain how GraphQL's execution model works. When does it execute resolvers in parallel vs sequentially?

↑ 64 upvotes · 52 engineers asked this · SDE2

DSA / Two Pointers (1)

Amazon Medium Technical round 2-5 years

Given an array of n integers, find all triplets that sum to zero. Remove duplicates from the result.

↑ 73 upvotes · 11 engineers asked this · SDE2

DSA / Stacks and Queues (1)

Amazon Medium Technical round 2-5 years

Implement a stack using only two queues. Then implement a queue using only two stacks.

↑ 74 upvotes · 12 engineers asked this · SDE2

DSA / BFS (2)

Amazon Medium Technical round 2-5 years

Design an algorithm to find the shortest path through a maze represented as a 2D grid. 0 = open, 1 = wall. Start at top-left, end at bottom-right.

↑ 76 upvotes · 14 engineers asked this · SDE2
Amazon Medium Technical round 2-5 years

Given a 2D grid, find the shortest path from start to end avoiding obstacles.

↑ 53 upvotes · 31 engineers asked this · SDE2

DSA / Heap (2)

Amazon Hard Technical round 3-6 years

Implement a min-heap data structure from scratch. Show insert and extractMin operations.

↑ 77 upvotes · 15 engineers asked this · SDE2
Amazon Hard Technical round 3-6 years

Implement a min-heap from scratch. What are the time complexities of insert and extractMin?

↑ 47 upvotes · 25 engineers asked this · SDE2

React / Context (1)

Amazon Hard Screening round 3-6 years

Explain how React context causes performance issues and how to solve them without third-party libraries.

↑ 6 upvotes · 24 engineers asked this · SDE2

React / Advanced React (1)

Amazon Hard Screening round 4-7 years

What is the purpose of React.cloneElement vs React.Children.map? When would you use each?

↑ 13 upvotes · 31 engineers asked this · SDE2

Java / Design Patterns (1)

Amazon Hard Technical round 3-6 years

Design a thread-safe singleton in Java. What are the pitfalls of double-checked locking?

↑ 24 upvotes · 42 engineers asked this · SDE2

Node.js / Threading (1)

Amazon Hard Screening round 4-7 years

What are Worker Threads in Node.js and how do they differ from child_process.fork()?

↑ 31 upvotes · 49 engineers asked this · SDE2

Node.js / Performance (1)

Amazon Hard Screening round 3-6 years

Explain how Node.js DNS resolution can unexpectedly block your service.

↑ 32 upvotes · 50 engineers asked this · SDE2

Python / Decorators (1)

Amazon Medium Technical round 2-5 years

Implement a Python decorator that retries a function up to N times with exponential backoff on specific exception types.

↑ 38 upvotes · 6 engineers asked this · SDE2

Python / Memory (1)

Amazon Hard Screening round 3-6 years

Explain Python's garbage collector alongside reference counting. When does reference counting fail?

↑ 40 upvotes · 8 engineers asked this · SDE2

System Design / Distributed Systems (2)

Amazon Hard System Design round 5-9 years

Design a distributed counter for 1 million increments per second across 100 servers tracking daily active users.

↑ 44 upvotes · 12 engineers asked this · Staff
Amazon Hard System Design round 5-9 years

Design a distributed lock service. How does it ensure mutual exclusion across 10 servers?

↑ 40 upvotes · 48 engineers asked this · Staff

System Design / Architecture (1)

Amazon Hard System Design round 5-9 years

Design an API gateway for 100K req/sec: authenticates, rate limits per user, routes to 20 microservices, adds observability.

↑ 45 upvotes · 13 engineers asked this · Staff

System Design / Notifications (1)

Amazon Hard System Design round 5-9 years

Design a system to send 1 billion push notifications per day.

↑ 46 upvotes · 14 engineers asked this · Staff

DSA / Linked List (1)

Amazon Medium Technical round 2-5 years

Write a function to detect if a linked list has a cycle. Can you do it without extra space?

↑ 56 upvotes · 24 engineers asked this · SDE2

DSA / Binary Search (1)

Amazon Medium Technical round 2-5 years

Implement binary search on a rotated sorted array (e.g., [4,5,6,7,0,1,2]).

↑ 59 upvotes · 27 engineers asked this · SDE2

Behavioral / Prioritization (1)

Amazon Hard HR round 3-8 years

Your team is arguing about whether to refactor a critical service or ship a new feature. Both are urgent. How do you decide?

↑ 62 upvotes · 30 engineers asked this · SDE2

Behavioral / Communication (1)

Amazon Hard HR round 3-8 years

You've been given a deadline that you know is impossible to meet. Your manager insists it's non-negotiable. What do you do?

↑ 63 upvotes · 31 engineers asked this · SDE2

Behavioral / Product (1)

Amazon Medium HR round 2-7 years

Your company wants you to implement a feature you think will harm the user experience. How do you handle it?

↑ 65 upvotes · 33 engineers asked this · SDE2

Behavioral / Incident Response (1)

Amazon Hard HR round 2-8 years

You've made a mistake that caused a production outage. How do you handle the aftermath?

↑ 66 upvotes · 34 engineers asked this · SDE2

Behavioral / Collaboration (1)

Amazon Medium HR round 2-7 years

How do you handle disagreements with a product manager about feature scope?

↑ 67 upvotes · 35 engineers asked this · SDE2

Behavioral / Estimation (1)

Amazon Hard HR round 3-8 years

You're asked to estimate a project that's similar to one that took twice as long as estimated last time. How do you estimate this time?

↑ 68 upvotes · 36 engineers asked this · SDE2

Security / Cryptography (1)

Amazon Hard Screening round 3-7 years

What is a timing attack and how do you prevent it in a password comparison function?

↑ 73 upvotes · 41 engineers asked this · SDE2

DevOps / Deployment (2)

Amazon Medium Screening round 3-7 years

Explain blue-green vs canary deployment. When would you choose each?

↑ 75 upvotes · 43 engineers asked this · SDE2
Amazon Hard System Design round 4-8 years

How would you implement blue-green deployment with database migrations?

↑ 84 upvotes · 12 engineers asked this · SDE2

DevOps / Database (1)

Amazon Hard System Design round 4-8 years

Explain how you would implement zero-downtime database migrations in a deployment pipeline.

↑ 79 upvotes · 47 engineers asked this · SDE2

DevOps / CI/CD (1)

Amazon Medium Scenario round 3-6 years

Your CI/CD pipeline takes 45 minutes. How do you reduce it to under 10 minutes?

↑ 80 upvotes · 48 engineers asked this · SDE2

DevOps / Service Mesh (2)

Amazon Hard Screening round 5-9 years

What is a service mesh and what problem does it solve that a regular load balancer doesn't?

↑ 82 upvotes · 50 engineers asked this · Staff
Amazon Hard Screening round 5-9 years

What is a sidecar proxy and how does it work in service mesh architecture?

↑ 83 upvotes · 11 engineers asked this · Staff

DevOps / Monitoring (1)

Amazon Medium Screening round 3-6 years

Explain how Prometheus and Grafana work together for monitoring. What are the key metrics you'd track for a Node.js API?

↑ 84 upvotes · 52 engineers asked this · SDE2

SQL / ORM Performance (1)

Amazon Medium Technical round 2-5 years

What is the N+1 query problem? How do you detect it in production without reading every query?

↑ 6 upvotes · 4 engineers asked this · SDE2

SQL / Indexing (2)

Amazon Hard Screening round 3-6 years

What is a covering index? Show how adding one column to an index can change a query from a disk read to a memory read.

↑ 10 upvotes · 8 engineers asked this · SDE2
Amazon Medium Screening round 3-6 years

Explain how database indexes can SLOW DOWN queries. When would you remove an index?

↑ 75 upvotes · 3 engineers asked this · SDE2

SQL / Scaling (1)

Amazon Hard Screening round 5-9 years

Explain database partitioning vs sharding. When would you use each?

↑ 11 upvotes · 9 engineers asked this · Staff

SQL / Views (1)

Amazon Medium Screening round 3-6 years

What is a materialized view and when would you use one over a regular view?

↑ 13 upvotes · 11 engineers asked this · SDE2

SQL / Concurrency (1)

Amazon Hard Screening round 3-6 years

What is the difference between optimistic and pessimistic locking in databases?

↑ 15 upvotes · 13 engineers asked this · SDE2

Kafka / Consumer Groups (1)

Amazon Medium Screening round 3-6 years

Explain Kafka consumer groups and how they enable parallelism. What happens if you have more consumers than partitions?

↑ 30 upvotes · 28 engineers asked this · SDE2

Kafka / Performance (1)

Amazon Hard Scenario round 3-6 years

Your Kafka consumer is processing messages slowly. Messages pile up and consumer lag grows. How do you fix this?

↑ 31 upvotes · 29 engineers asked this · SDE2

Kafka / Delivery Semantics (1)

Amazon Hard Screening round 3-7 years

Explain Kafka's message delivery guarantees: at-most-once, at-least-once, exactly-once. How does each affect your consumer design?

↑ 32 upvotes · 30 engineers asked this · SDE2

Kafka / Ordering (1)

Amazon Medium Screening round 3-6 years

How does Kafka handle message ordering? Can you guarantee order across a topic with multiple partitions?

↑ 33 upvotes · 31 engineers asked this · SDE2

Kafka / Storage (1)

Amazon Hard Screening round 4-7 years

What is Kafka log compaction and when should you use it?

↑ 34 upvotes · 32 engineers asked this · SDE2

Elasticsearch / Internals (1)

Amazon Hard Screening round 3-6 years

Explain how Elasticsearch inverted index works. Why is it faster than SQL LIKE queries for full-text search?

↑ 39 upvotes · 37 engineers asked this · SDE2

Elasticsearch / Cluster Management (1)

Amazon Medium Screening round 3-6 years

Your Elasticsearch cluster has 3 nodes. You create an index with 5 primary shards and 1 replica each. How many shards total and how are they distributed?

↑ 40 upvotes · 38 engineers asked this · SDE2

Elasticsearch / Search (1)

Amazon Hard Technical round 3-6 years

Implement a search with Elasticsearch that: filters by category, full-text searches by name, and ranks by relevance + recency.

↑ 41 upvotes · 39 engineers asked this · SDE2

Data Engineering / Distributed Systems (1)

Amazon Hard Screening round 4-8 years

Explain the CAP theorem and how NoSQL databases make trade-offs around it.

↑ 50 upvotes · 48 engineers asked this · SDE2

System Design / Scaling (1)

Amazon Medium Screening round 3-6 years

Explain the difference between horizontal and vertical scaling. Give examples where vertical scaling is NOT the solution.

↑ 60 upvotes · 8 engineers asked this · SDE2

Architecture / Event Sourcing (1)

Amazon Hard Screening round 5-9 years

What is event sourcing and how does it differ from CRUD? What are the trade-offs?

↑ 61 upvotes · 9 engineers asked this · Staff

Architecture / Resilience (1)

Amazon Hard Screening round 4-7 years

What is a circuit breaker pattern? How does it prevent cascade failures in microservices?

↑ 66 upvotes · 14 engineers asked this · SDE2

System Design / Networking (1)

Amazon Medium Screening round 2-6 years

Explain what happens when you type 'google.com' in a browser. Cover DNS, TCP, TLS, HTTP in sequence.

↑ 67 upvotes · 15 engineers asked this · SDE2

Architecture / Rate Limiting (1)

Amazon Hard Screening round 3-7 years

Explain rate limiting algorithms: token bucket, leaky bucket, fixed window, sliding window. Which is best for APIs?

↑ 69 upvotes · 17 engineers asked this · SDE2

React / Reconciliation (1)

Amazon Hard Screening round 4-7 years

How does React's reconciliation algorithm (Fiber) decide whether to update or replace a component?

↑ 70 upvotes · 18 engineers asked this · SDE2

Java / Spring Boot (2)

Amazon Hard System Design round 4-7 years

Design a distributed session system for a multi-instance Spring Boot application. Users shouldn't lose sessions when server restarts.

↑ 82 upvotes · 30 engineers asked this · SDE2
Amazon Hard Scenario round 4-7 years

Your Java microservice has slow startup times (20 seconds) because it initializes many Spring beans. How do you reduce startup time?

↑ 61 upvotes · 39 engineers asked this · SDE2

Architecture / Microservices (2)

Amazon Hard Screening round 5-9 years

What is the Saga pattern in microservices? When would you choose choreography over orchestration?

↑ 83 upvotes · 31 engineers asked this · Staff
Amazon Medium Screening round 4-7 years

Explain the difference between synchronous and asynchronous communication between microservices. When would each fail you?

↑ 31 upvotes · 9 engineers asked this · SDE2

Java / Resilience (1)

Amazon Hard Scenario round 3-6 years

Your Spring Boot microservice calls another service via Feign client. The downstream service is slow (30 second response). How do you prevent your service from hanging?

↑ 6 upvotes · 34 engineers asked this · SDE2

Redis / Data Structures (1)

Amazon Medium Screening round 2-5 years

Explain Redis data structures and give a use case for each: String, Hash, List, Set, Sorted Set.

↑ 23 upvotes · 51 engineers asked this · SDE2

Redis / Resilience (1)

Amazon Hard System Design round 3-6 years

Your Redis cluster goes down. How do you design your application so it degrades gracefully?

↑ 24 upvotes · 52 engineers asked this · SDE2

Security / Auth (1)

Amazon Hard Screening round 3-6 years

Explain the difference between OAuth 2.0 and OpenID Connect (OIDC). Which one should you use for login?

↑ 27 upvotes · 5 engineers asked this · SDE2

System Design / CDN (1)

Amazon Medium Screening round 3-6 years

Explain how a CDN handles cache invalidation. What happens if you update a file and CDN serves the old version?

↑ 29 upvotes · 7 engineers asked this · SDE2

Architecture / Database (3)

Amazon Medium Screening round 2-5 years

What is database connection pooling? Why would you NOT want too large a connection pool?

↑ 30 upvotes · 8 engineers asked this · SDE2
Amazon Hard System Design round 4-7 years

How do you implement database read replicas and what queries should you route where?

↑ 37 upvotes · 15 engineers asked this · SDE2
Amazon Hard Scenario round 4-8 years

Your production database has a table missing an index. Adding the index on 1 billion rows. How do you do this safely?

↑ 40 upvotes · 18 engineers asked this · SDE2

Debugging / Production (1)

Amazon Hard Technical round 3-7 years

Your new feature is working in development but failing in production. No exception is thrown. How do you systematically debug it?

↑ 34 upvotes · 12 engineers asked this · SDE2

System Design / Consistency (2)

Amazon Hard System Design round 4-7 years

Explain eventual consistency. Design a system where a user updates their profile picture and it shows consistently everywhere.

↑ 35 upvotes · 13 engineers asked this · SDE2
Amazon Hard Screening round 4-7 years

What is eventual consistency in distributed systems? How does Amazon S3 handle it?

↑ 6 upvotes · 14 engineers asked this · SDE2

System Design / Concurrency (1)

Amazon Medium Screening round 2-5 years

What is the difference between a process and a thread? How does Node.js achieve concurrency with a single thread?

↑ 36 upvotes · 14 engineers asked this · SDE2

Architecture / API Design (2)

Amazon Medium Screening round 3-6 years

Explain the differences between REST, GraphQL, and gRPC. Which would you choose for a mobile app backend?

↑ 38 upvotes · 16 engineers asked this · SDE2
Amazon Medium Screening round 3-6 years

You're designing an API for external developers. What versioning strategy would you use and why?

↑ 77 upvotes · 5 engineers asked this · SDE2

Architecture / Migration (1)

Amazon Hard Screening round 5-9 years

What is the Strangler Fig pattern for migrating from a monolith to microservices?

↑ 39 upvotes · 17 engineers asked this · Staff

DSA / Heap/QuickSelect (1)

Amazon Hard Technical round 2-6 years

Implement a function to find the kth largest element in an unsorted array. Optimize for O(n) average case.

↑ 42 upvotes · 20 engineers asked this · SDE2

DSA / Graph (3)

Amazon Medium Technical round 2-5 years

Given a matrix of 0s and 1s, find the number of islands (connected components of 1s).

↑ 43 upvotes · 21 engineers asked this · SDE2
Amazon Hard Technical round 3-6 years

Implement topological sort on a directed acyclic graph (DAG). What's the real-world use case?

↑ 50 upvotes · 28 engineers asked this · SDE2
Amazon Hard Technical round 3-6 years

Implement Dijkstra's shortest path algorithm. What graph type is it NOT suitable for?

↑ 27 upvotes · 35 engineers asked this · SDE2

DSA / Trie (1)

Amazon Medium Technical round 3-6 years

Implement a Trie (prefix tree) with insert, search, and startsWith methods.

↑ 44 upvotes · 22 engineers asked this · SDE2

DSA / Sorting (1)

Amazon Medium Technical round 2-5 years

Explain and implement the Dutch National Flag algorithm for sorting an array with only 3 distinct values.

↑ 52 upvotes · 30 engineers asked this · SDE2

Java / Memory (1)

Amazon Hard Screening round 4-7 years

Explain Java's WeakReference, SoftReference, and PhantomReference. Give practical use cases.

↑ 60 upvotes · 38 engineers asked this · SDE2

Behavioral / Product Management (2)

Amazon Hard HR round 4-8 years

How do you prioritize a backlog with 200 items and 5 competing stakeholders with different opinions?

↑ 64 upvotes · 42 engineers asked this · SDE2
Amazon Medium HR round 3-7 years

What metrics do you track to measure if a new feature is successful? You launched 3 weeks ago.

↑ 65 upvotes · 43 engineers asked this · SDE2

JavaScript / V8 Engine (1)

Amazon Hard Screening round 4-7 years

Explain how garbage collection works in V8 (Node.js/Chrome). What causes GC pauses?

↑ 72 upvotes · 50 engineers asked this · SDE2

Architecture / Developer Experience (1)

Amazon Medium Screening round 3-7 years

What is the difference between a monorepo and polyrepo? What are the real trade-offs?

↑ 76 upvotes · 4 engineers asked this · SDE2

Security / OAuth (1)

Amazon Hard Screening round 3-6 years

Explain how OAuth 2.0 authorization code flow works. Why is it more secure than the implicit flow?

↑ 78 upvotes · 6 engineers asked this · SDE2

System Design / Search (2)

Amazon Hard System Design round 4-7 years

How would you implement search-as-you-type autocomplete for 10 million product names with <50ms response time?

↑ 79 upvotes · 7 engineers asked this · SDE2
Amazon Hard System Design round 4-8 years

Design a search engine for a 1 million product catalog with faceted filtering (category, price range, brand) and full-text search.

↑ 38 upvotes · 46 engineers asked this · SDE2

JavaScript / Language Internals (1)

Amazon Hard Screening round 4-7 years

What is tail call optimization and why doesn't JavaScript guarantee it despite ES6 spec?

↑ 80 upvotes · 8 engineers asked this · SDE2

TypeScript / Migration (1)

Amazon Hard System Design round 4-7 years

Your team wants to adopt TypeScript but has a 200K-line JavaScript codebase. What's the migration strategy?

↑ 81 upvotes · 9 engineers asked this · SDE2

DevOps / Load Balancing (1)

Amazon Medium Screening round 3-6 years

Explain how connection draining works in load balancers and why it's important for zero-downtime deployments.

↑ 82 upvotes · 10 engineers asked this · SDE2

DevOps / Observability (1)

Amazon Hard Screening round 4-7 years

Explain OpenTelemetry. How does it unify traces, metrics, and logs?

↑ 5 upvotes · 13 engineers asked this · SDE2

DevOps / Feature Flags (1)

Amazon Medium Screening round 3-6 years

Explain feature flags and how you use them for A/B testing and safe deployments.

↑ 7 upvotes · 15 engineers asked this · SDE2

Security / Authentication (1)

Amazon Medium Screening round 2-5 years

What is the difference between authentication with sessions vs JWT? Security trade-offs?

↑ 8 upvotes · 16 engineers asked this · SDE2

JavaScript / Event Loop (1)

Amazon Hard Screening round 2-5 years

How does the event loop work in JavaScript? What is the difference between microtasks and macrotasks?

↑ 9 upvotes · 17 engineers asked this · SDE2

React / Concurrent (1)

Amazon Hard Screening round 4-7 years

Explain the difference between React 17 and React 18 concurrent features. What is startTransition?

↑ 13 upvotes · 21 engineers asked this · SDE2

React / Architecture (1)

Amazon Hard System Design round 4-7 years

How do you handle global loading states and error handling in a React app with 50+ API calls?

↑ 16 upvotes · 24 engineers asked this · SDE2

DevOps / Security (1)

Amazon Hard Screening round 4-7 years

How does HashiCorp Vault work for secret management? How do you integrate it with Kubernetes?

↑ 18 upvotes · 26 engineers asked this · SDE2

DevOps / GitOps (1)

Amazon Medium Screening round 3-6 years

What is GitOps and how does ArgoCD implement it?

↑ 19 upvotes · 27 engineers asked this · SDE2

DevOps / High Availability (1)

Amazon Hard Screening round 4-7 years

Explain the difference between active-passive and active-active database configurations.

↑ 21 upvotes · 29 engineers asked this · SDE2

Security / SSRF (1)

Amazon Hard Screening round 3-7 years

What is SSRF (Server-Side Request Forgery) and give a real-world example of how it's exploited.

↑ 24 upvotes · 32 engineers asked this · SDE2

Java / Java 21 (1)

Amazon Hard Screening round 4-8 years

What is Project Loom (virtual threads) in Java 21? How does it change the threading model?

↑ 32 upvotes · 40 engineers asked this · SDE2

Java / Modern Java (1)

Amazon Hard Screening round 4-7 years

What is Java's sealed class hierarchy (Java 17+)? How does it improve pattern matching?

↑ 34 upvotes · 42 engineers asked this · SDE2

System Design / Video Streaming (1)

Amazon Hard System Design round 6-10 years

Design a video streaming service like Netflix. Focus on: video storage, encoding, CDN delivery.

↑ 37 upvotes · 45 engineers asked this · Staff

System Design / Leaderboard (1)

Amazon Hard System Design round 4-8 years

Design a leaderboard system for a game with 10 million players updated in real-time.

↑ 39 upvotes · 47 engineers asked this · SDE2

DevOps / Helm (1)

Amazon Medium Screening round 3-6 years

Explain the differences between Helm 2 and Helm 3 for Kubernetes package management. What was removed and why?

↑ 41 upvotes · 49 engineers asked this · SDE2

Architecture / Best Practices (1)

Amazon Medium Screening round 3-7 years

Explain the Twelve-Factor App methodology. Pick 3 factors and explain how violating them causes production problems.

↑ 43 upvotes · 51 engineers asked this · SDE2

React / UX Patterns (1)

Amazon Medium System Design round 3-6 years

How do you implement optimistic UI updates in a React app with server synchronization?

↑ 44 upvotes · 52 engineers asked this · SDE2

Architecture / Messaging (1)

Amazon Medium Screening round 3-6 years

What is the difference between a message broker and an event streaming platform? Kafka vs RabbitMQ?

↑ 45 upvotes · 3 engineers asked this · SDE2

Python / Data Structures (1)

Amazon Medium Technical round 2-5 yearsPython

Explain how Python's dictionary achieves average O(1) lookup. What happens internally when two keys hash to the same bucket?

↑ 22 upvotes · 14 engineers asked this · SDE2

Practice these questions with AI feedback

Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.

Build my study plan →

Amazon interview guides by role

Amazon SDE2 Guide Amazon Staff Guide

Amazon questions by technology

Amazon Java Amazon Python Amazon AWS

More companies

Google Microsoft Flipkart Swiggy Meta Apple Netflix Uber Airbnb Stripe Razorpay PhonePe Paytm Zomato Salesforce Oracle Adobe LinkedIn Atlassian Accenture Deloitte Wipro Infosys TCS Capgemini PayU General Anthropic OpenAI TikTok JPMorgan Walmart Spotify DoorDash Goldman Sachs Revolut Canva Capital One Lyft SAP Siemens Shopify Grab Cognizant LTIMindtree Myntra Hotstar Twitter Snowflake

Frequently asked questions

Given an array of integers and a target sum, return all unique triplets that sum to the target. Discuss time and space complexity. Then extend the problem to k-sum and analyze how recursion depth changes performance for large k.
Given an array of integers and a target sum, return all unique triplets that sum to the target. Discuss time and space complexity. Then extend the problem to k-sum and analyze how recursion depth changes performance for large k.
Design a distributed rate limiter that can handle 10M requests per second across multiple data centers. Discuss consistency tradeoffs, the choice between token bucket vs leaky bucket, and how you would handle clock skew across regions.
Design a distributed rate limiter that can handle 10M requests per second across multiple data centers. Discuss consistency tradeoffs, the choice between token bucket vs leaky bucket, and how you would handle clock skew across regions.
Given a directed graph representing service dependencies, detect all strongly connected components and explain how this maps to identifying circular dependencies in a microservices architecture.
Given a directed graph representing service dependencies, detect all strongly connected components and explain how this maps to identifying circular dependencies in a microservices architecture.
Tell me about a time you had to deliver a project under a very tight deadline. What trade-offs did you make and how did you communicate them to stakeholders? Which Amazon Leadership Principle guided your decision?
Tell me about a time you had to deliver a project under a very tight deadline. What trade-offs did you make and how did you communicate them to stakeholders? Which Amazon Leadership Principle guided your decision?
Given an array of integers, find the length of the longest subarray with a sum equal to zero.
Given an array of integers, find the length of the longest subarray with a sum equal to zero. Explain the prefix sum + HashMap approach and why the naive O(n2) solution is unacceptable for large inputs.