Amazon Interview Questions

Amazon Coding & Algorithms Interview Questions

Practice 689 real Amazon interview questions for 2026. Covers all top categories — Coding & Algorithms, Behavioral & Leadership, Machine Learning, Data Manipulation (SQL/Python), and System Design — across Software Engineer, Data Scientist, Machine Learning Engineer, Product Manager, and Business Intelligence Engineer roles. Real Amazon interview questions from actual interviews with detailed solutions; use this collection for interview preparation that emphasizes shipping at scale, measurable impact, and the company’s Leadership Principles. Expect coding-heavy assessments for Software Engineer candidates: frequent tree and dynamic-programming problems, two-array optimization patterns, nested object/path lookups, and system-design prompts that mirror product flows (online Minesweeper, pizza-ordering, credit-card and shipping/cost systems), plus leadership and collaboration behavioral prompts. Data Scientist rounds concentrate on experimentation and metrics (A/B design, hand p-values, D7 retention SQL), RAG/recommender evaluation, and product-impact analyses. ML Engineer questions focus on production model design, LLM/agent concepts, reliability (cold start, training stability, online vs offline gaps), and large-scale detection pipelines. PM interviews stress customer-obsessed stories, ambiguity, Alexa product launches, and domain-specific data pipelines. Prepare with timed coding practice, end-to-end experiment writeups, STAR stories framed to Leadership Principles, and mock system-design sessions.

689 Questions 1 Company08.11.2026
Showing 20 results
Role
Amazon logo
Amazon
Medium
Software Engineer

Solve Union-Find, Graph, and Stream Problems

Solve the following independent coding problems. 1. Merge Product Categories You are given a list of tuples (productA, productB). Each tuple means the...

Coding & Algorithms
0
0
6 people solved
Apr 9, 2026
Amazon logo
Amazon
Medium
Software EngineerIntern

Implement Cache and Count Components

You are asked to solve two independent coding problems in this session, each followed by a short discussion. This mirrors a 60-minute Amazon SDE codin...

Coding & Algorithms
35
0
408 people solved
Mar 7, 2026
Amazon logo
Amazon
Medium
Software EngineerIntern

Compute Latencies and Search Grid Path

You are given two coding tasks from an internship interview. Task 1: Compute Message Latency from CSV Logs Two systems, ComputeA and ComputeB, exchang...

Coding & Algorithms
0
0
15 people solved
Mar 4, 2026
Amazon logo
Amazon
Hard
Software Engineer Locked

Maximize protected population and bitwise AND

This paired problem evaluates array manipulation and resource-allocation reasoning for maximizing covered population in a constrained-movement scenari...

Coding & Algorithms
17
0
182 people solved
Feb 12, 2026
Amazon logo
Amazon
Medium
Software Engineer Locked

Find max equal-frequency block count for each prefix

This question evaluates proficiency in string processing, frequency-vector reasoning, and prefix-based partitioning to determine equal-frequency conti...

Coding & Algorithms
24
0
201 people solved
Feb 12, 2026
Amazon logo
Amazon
Medium
Software Engineer

Maximize protected population with one-step guard shifts

There are n cities in a line (1-indexed). You are given: - population[1..n]: population of each city - unit: a binary string of length n, where unit[i...

Coding & Algorithms
22
0
153 people solved
Jan 27, 2026
Amazon logo
Amazon
Medium
Software Engineer

Maximize weighted subsequence pairs with wildcards

You are given a string s of length n consisting only of characters '0', '1', and '!'. Each '!' can be replaced by either '0' or '1'. For the final bin...

Coding & Algorithms
113
0
1013 people solved
Jan 27, 2026
Amazon logo
Amazon
Hard
Software Engineer

Find Affected Services After Shutdown

You are given a set of services and their dependency relationships. The input is a hash map where each key is a service name, and the value is a list ...

Coding & Algorithms
36
0
357 people solved
Jan 26, 2026
Amazon logo
Amazon
Medium
Software Engineer Locked

Find when failures started in log stream

This question evaluates understanding of monotonic sequences and search algorithms (such as binary search), along with algorithmic reasoning about cor...

Coding & Algorithms
4
0
88 people solved
Jan 22, 2026
Amazon logo
Amazon
Hard
Software EngineerSenior+ Locked

Implement array and tree traversal tasks

This question evaluates algorithmic problem-solving and data-structure competency, specifically array-based optimization for single-trade profit and t...

Coding & Algorithms
6
0
80 people solved
Jan 22, 2026
Amazon logo
Amazon
Hard
Software EngineerIntern

Count unique Morse-code word transformations

Given an array of lowercase strings words. Each letter 'a' to 'z' has a corresponding Morse code string (standard 26-letter mapping). A word’s transfo...

Coding & Algorithms
6
0
71 people solved
Jan 15, 2026
Amazon logo
Amazon
Medium
Software EngineerSenior+ Locked

Review an existing architecture for risks

This question evaluates an engineer's ability to perform an architecture review, identifying imminent scalability, reliability, operability, and secur...

System Design
8
0
70 people solved
Jan 6, 2026
Amazon logo
Amazon
Medium
Software EngineerIntern Locked

Find minimum total range-increment to sort

This question evaluates algorithmic problem-solving skills in array manipulation and optimization, focusing on reasoning about range-increment operati...

Coding & Algorithms
6
0
51 people solved
Jan 6, 2026
Amazon logo
Amazon
Medium
Software Engineer Locked

Implement memcpy with misaligned addresses

This question evaluates a candidate's understanding of low-level memory manipulation, pointer alignment, and the implementation of efficient byte-copy...

Coding & Algorithms
3
0
43 people solved
Jan 2, 2026
Amazon logo
Amazon
Medium
Software EngineerSenior+

Describe a recent innovation you delivered

Behavioral question: “Tell me about a recent innovation you delivered.” Include: - What problem/opportunity you identified - What was novel about your...

Behavioral & Leadership
2
0
32 people solved
Dec 17, 2025
Amazon logo
Amazon
Medium
Machine Learning Engineer

Implement integer division without using division

You are given two 32-bit signed integers dividend and divisor. Implement a function that divides dividend by divisor and returns the integer quotient,...

Coding & Algorithms
7
0
53 people solved
Dec 8, 2025
Amazon logo
Amazon
Medium
Software Engineer

Compute peak parking lot occupancy intervals

You are given logs from a parking lot system. Each log entry has the form: [carId, time, eventType] - carId is an integer identifying a car. - time is...

Coding & Algorithms
6
0
99 people solved
Dec 2, 2025
Amazon logo
Amazon
Medium
Machine Learning Engineer

Design LFU cache with distributed extension

Problem You are asked to design and implement a data structure that behaves like an in-memory cache with a Least Frequently Used (LFU) eviction policy...

Coding & Algorithms
4
0
35 people solved
Nov 18, 2025
Amazon logo
Amazon
Medium
Software EngineerIntern Locked

Implement nested object path lookup

This question evaluates parsing and traversal of nested maps and arrays, robust error handling for missing keys and out-of-bounds indices, and reasoni...

Coding & Algorithms
3
0
37 people solved
Oct 31, 2025
Amazon logo
Amazon
Medium
Machine Learning Engineer

Check if adding edge creates cycle in digraph

You work with a system that stores items and directed relationships between them (for example, item A points to item B). The relationships form a dire...

Coding & Algorithms
7
0
61 people solved
Oct 26, 2025

Frequently Asked Questions

How difficult are Amazon interview questions for software, data, and product roles?
Amazon interviews are competitive and deliberately broad: expect medium-to-hard algorithmic coding for software roles, deep design thinking for system and architecture questions, rigorous experiment and metrics work for data roles, and leadership-driven behavioral prompts for product and PM positions. Difficulty scales with level; early-career loops focus on correctness and problem patterns, senior loops demand scalable design, tradeoff justification, and measurable impact. The Bar Raiser raises the bar on long-term ownership and cultural fit. Overall, the process weeds for both technical depth and the ability to explain tradeoffs, so prepare to demonstrate repeatable problem solving under time pressure.
What is the Amazon interview process and where do the top categories and positions appear in the loop?
Amazon typically uses a staged process: resume screen, role-specific assessments or phone screens in some tracks, then the onsite loop of 4–6 interviews including a Bar Raiser. Coding and algorithms rounds dominate for Software Engineer interviews, while system design appears in one or more senior technical rounds. Data Scientist interviews blend SQL/Python casework, A/B test design, and inferential questions. Machine Learning Engineer loops probe model deployment, offline to online debugging, and NLP/agent design. Product and BI roles focus on metrics, product tradeoffs, and Leadership Principles throughout the loop, with role-specific deep dives tied to the job description.
How long should I prepare for Amazon interviews and what should a timeline look like?
Aim for a focused 6–12 week plan for experienced roles and 4–8 weeks for early-career candidates. Weeks 1–3: shore up fundamentals — arrays, trees, graphs, DP, and core SQL windowing. Weeks 4–6: simulate timed coding rounds, practice system design high-level tradeoffs, and build STAR stories mapped to Leadership Principles. Weeks 7–10: run mock loops with behavioral pressure, refine experiment and ML case studies, and rehearse tradeoff conversations. Leave final 1–2 weeks for targeted practice on role-specific themes such as shipping costs, RAG evaluation, or Alexa product scenarios.
Which key subtopics should I master to perform well across Amazon's top roles?
Master algorithmic patterns including trees, dynamic programming, two-pointer and graph traversals, and complexity justification for coding rounds. For system design, focus on APIs, data models, scaling, caching, reliability, and monitoring. Data roles require SQL window functions, cohort and retention analysis, A/B test design and power, and RAG/evaluation methods for ML-backed features. Machine learning engineers must know model stability, cold-start strategies, online-offline mismatch debugging, and agent alignment basics. Product candidates should be fluent in metric design, customer-observed data pipelines, and prioritization with quantifiable impact.
What standout tips and common pitfalls should I know before interviewing at Amazon?
Start every behavioral or technical story with context and measurable outcomes; interviewers care about specific impact and tradeoffs. Use STAR for leadership prompts but emphasize metrics and follow-on changes. In coding, verbalize assumptions, test edge cases, and discuss complexity and alternative approaches. In design rounds, ask clarifying questions, scope deliberately, and justify scaling choices. Common pitfalls include weak quantification of impact, ignoring the Leadership Principles, failing to probe requirements, and delivering designs without operational considerations. Practice mock loops and incorporate Bar Raiser-style feedback to close gaps before the real loop.

Explore more Amazon interview questions

Jump straight to Amazon questions for a specific role or category.

By role
By category
In-depth guides
Across all companies

Featured Amazon interview prep guides

Concept walkthroughs, worked examples, and the real questions from candidate reports.

Editorial prep
Data Scientist
Amazon interview
Read the guide
Editorial prep
Software Engineer
Amazon interview
Read the guide