Autocoder

Amazon Interview Questions and Answers for SDE Roles

Last updated 2026-11-19

Amazon interviews have two halves: engineering questions and Leadership Principles questions that appear in every interview. This page works through both, with model answers you can adapt to your own experience.

The questions are practice in the style of the topics Amazon says it covers, not a record of past interviews.

AssessmentOnline assessment, then an interview loop
Interview length55 minutes each, per Amazon
BehaviouralLeadership Principles in every interview
TechnicalDSA, OOD, system design, code quality

How the rounds are described for SDE hiring

Amazon publishes more detail than most employers. Its SDE process is a job application, an online assessment for intern, new-grad and SDE II roles, then an interview loop of 55-minute interviews with engineers. Leadership Principles questions come up in every interview. For SDE II the assessment is about 118 timed minutes: two coding questions (90 minutes), system design scenarios (20 minutes) and an 8-minute Work Style Survey. The university SDE assessment is described as coding of about 70 minutes, a workstyles section of about 15 minutes and a work simulation of about 60 minutes for full-time roles.

The SDE II loop is four 55-minute interviews and the SDE III loop is five, with at least one system design question, coding in real code rather than pseudocode, and behavioural questions. Amazon says a result usually comes within five business days. Exact formats for your hiring year can differ, so confirm with your recruiter.

Where to practise next

For coding practice in the style of the assessment, use Amazon coding round questions. For the process and timeline see how to crack the Amazon interview and the behavioural interview guide.

Hiring status

Quoting Amazon's public statements, with sources listed below: Amazon lists a six-month, in-person SDE I Intern role considered for its India hiring locations (Bengaluru, Chennai, Hyderabad, Delhi, Mumbai and Pune), with start dates between January and June 2027, for students with a 2027 graduation year. Amazon India's Machine Learning Summer School 2026 selected the top 3,000 after a written evaluation and proctored coding assessment. On 25 June 2026 Amazon announced an additional US$13 billion for AI and cloud infrastructure in India through 2030, and reports say it gave no count of direct new roles. Amazon's January 2026 global restructuring reportedly affected 500 to 700 roles in India, and Amazon did not comment on those India numbers directly.

For the current picture see Amazon hiring, and apply only through amazon.jobs.

Amazon Interview Questions and Answers for SDE Roles: questions with worked answers

  1. 1

    Tell me about a time you went out of your way for a customer (Customer Obsession).

    medium

    Amazon's loop includes Leadership Principles questions in every interview, so prepare stories in advance. Structure with STAR: a real customer or user (an end user, a teammate who consumed your API, a college club), the problem they had, what you did beyond the brief, and a measurable result such as errors dropped or turnaround time halved. Say 'I' for your own actions. The common mistake is describing what the team did and leaving your contribution vague.

  2. 2

    Describe a time you took ownership of something that was not your job.

    medium

    Pick a situation where nobody was handling a problem, such as a flaky build, an undocumented service or a missed handover, and you picked it up. Explain why it mattered, what you did over time (not a one-day fix), and how you made it stay fixed, for example with documentation or an automated check. Ownership at Amazon means long-term thinking, so end with what happened after you stopped working on it.

  3. 3

    Tell me about a time you dug into the details to find a root cause (Dive Deep).

    hard

    Choose a bug or metric anomaly where the first explanation was wrong. Walk through how you narrowed it: reproduced it, read logs, compared a working and failing case, formed a hypothesis and tested it. State the actual root cause and the permanent fix. Interviewers probe with follow-ups like 'how did you know that', so know your numbers and the steps you took.

  4. 4

    Tell me about a time you disagreed with your manager or a senior and what happened (Have Backbone; Disagree and Commit).

    hard

    Show you raised the concern with data, listened, and then either changed the decision or committed fully once it was made. A good answer includes what you proposed, why, how the decision went, and what you did to make the chosen path succeed even though you disagreed. Avoid stories where you quietly worked around the decision.

  5. 5

    Describe a situation where you had to deliver under a tight deadline with incomplete information (Bias for Action, Deliver Results).

    medium

    Explain how you separated reversible decisions from irreversible ones, made a call with the information available, and documented your assumptions. Include what you cut from scope, what you delivered and when, and how you checked results afterwards. Amazon values speed on reversible choices, so show you did not wait for perfect certainty.

  6. 6

    Design an LRU cache with O(1) get and put.

    medium

    Combine a hash map for O(1) lookup with a doubly linked list ordered by recency, moving a node to the front on access and evicting from the tail when over capacity. In Python an OrderedDict gives this directly; in Java a LinkedHashMap in access-order mode with removeEldestEntry does the same. Both operations are O(1), space O(capacity). Interviewers may ask you to build the linked list by hand, so know that version too. Mistake: forgetting that put on an existing key also refreshes recency.

    python
    from collections import OrderedDict
    class LRUCache:
        def __init__(self, cap):
            self.cap, self.d = cap, OrderedDict()
        def get(self, k):
            if k not in self.d: return -1
            self.d.move_to_end(k)
            return self.d[k]
        def put(self, k, v):
            self.d[k] = v
            self.d.move_to_end(k)
            if len(self.d) > self.cap:
                self.d.popitem(last=False)
    java
    import java.util.*;
    class LRUCache extends LinkedHashMap<Integer, Integer> {
        private final int cap;
        LRUCache(int cap) { super(16, 0.75f, true); this.cap = cap; }
        int getOrDefault(int k) { return super.getOrDefault(k, -1); }
        @Override protected boolean removeEldestEntry(Map.Entry<Integer, Integer> e) { return size() > cap; }
    }
  7. 7

    Object-oriented design: sketch a parking lot system.

    medium

    Clarify scope first: vehicle types, levels, pricing, entry and exit. Core classes: ParkingLot (levels, entry and exit gates), Level (list of spots), Spot (id, size, occupied flag) with subclasses or a size enum, Vehicle (type, plate), Ticket (entry time, spot, vehicle) and a pricing strategy interface so rates can change without editing the lot. Mention a spot-allocation method that returns the nearest free spot of a compatible size, and concurrency at the gates. Amazon says its loops include object-oriented design. See low-level design interview.

  8. 8

    Sketch a design for a URL shortener.

    hard

    Requirements: create a short code for a long URL, redirect fast, high read-to-write ratio. Generate codes with a counter encoded in base62, or a distributed ID generator, avoiding collisions by construction. Store code to URL in a key-value store, front it with a cache because reads dominate, and use a 301 or 302 redirect depending on whether you want click analytics. Discuss scaling with sharding by code, expiry, and abuse protection. See system design interview.

  9. 9

    What is consistent hashing and why do distributed caches use it?

    hard

    With simple hash(key) mod N, adding or removing a server remaps almost every key. Consistent hashing places servers and keys on a ring and assigns each key to the next server clockwise, so changing one server only moves the keys in its arc, about 1/N of the data. Virtual nodes (many ring positions per server) even out the load. This keeps cache hit rates stable during scaling or failure.

  10. 10

    How do database indexes speed up queries and what is the cost?

    medium

    An index, usually a B-tree, keeps keys sorted so a lookup or range scan takes O(log n) instead of scanning the table. The costs are extra storage and slower writes, since every insert, update or delete must update each index. Composite indexes follow the leftmost-prefix rule, so an index on (a, b) helps filters on a or on a and b, not on b alone. Index columns used in WHERE, JOIN and ORDER BY on read-heavy tables.

  11. 11

    How do you make sure your solution handles edge cases in an online assessment?

    easy

    Amazon's assessment pages say browser activity is logged and that language documentation is allowed in the coding section, so reading docs is fine but copying solutions is not the point. Before submitting, test empty input, one element, duplicates, maximum size for performance, negative numbers and integer overflow. Write the brute force on small inputs to compare against your fast version if time allows. Passing hidden tests usually fails on edges, not on the main logic.

Frequently asked questions

Are Leadership Principles asked in every Amazon interview?

Amazon's own SDE prep pages say Leadership Principles questions are part of each interview in the loop. Prepare several stories.

Does Amazon allow pseudocode?

Amazon's SDE II prep says to code in a real language, not pseudocode. Choose a language you can write cleanly.

What is the Work Style Survey?

It is a short section in Amazon's assessment, about 8 minutes for SDE II, that asks how you approach work situations. Answer consistently and honestly.

How do I check Amazon's current openings?

See Amazon hiring and the company's own site, amazon.jobs.

Sources

Related guides

More in Company Interview Questions

See all in this section