At a glance
The Amazon online assessment (OA) is the first step in Amazon's hiring process for software development engineer (SDE) roles, both full-time and internship. It's a timed test you take at home on HackerRank. It checks your coding and problem solving, plus how your work style fits Amazon's Leadership Principles. If you pass, a recruiter contacts you to set up interviews. Amazon says no Amazon-specific knowledge is needed.
| Parts | A coding assessment and a Work Style Assessment for everyone. Full-time new grads may also get a Work Simulation, and SDE II candidates get a short system design section. |
|---|---|
| Length | Amazon says to set aside up to two hours for the new-grad OA and to reserve two hours for SDE II. The intern OA is about 90 minutes. |
| Coding questions | SDE II: 2 questions in 90 minutes. For other roles Amazon doesn't give a count; candidates usually report two tasks. |
| AI-assisted task | New in 2026: many candidates report one algorithm problem plus a debugging task in a small codebase with a built-in AI assistant. Details below. |
| Platform | HackerRank. Amazon links a free practice test. |
| Languages | Your choice from the platform's list. Amazon wants real, runnable code, not pseudocode. |
| What's allowed | Public documentation, yes. Sites that need a login, private repos, copying and pasting, and screenshots, no. Amazon logs your browser use. |
| AI | Only an assistant that's built into the assessment, if yours has one. Otherwise, no AI. |
| Deadline | SDE II: 7 days from when the link is sent. Other roles: see your invitation email. |
| Results | By email. SDE II candidates hear back within two days. |
The parts of the OA, by role
Amazon publishes separate prep pages for students and new grads and for experienced SDE II candidates. Here's what they list (times are Amazon's averages unless marked as a limit):
| New grad (full-time) | SDE intern | SDE II | |
|---|---|---|---|
| Coding | About 70 min | About 70 min | 90 min limit, 2 questions |
| Work style | Workstyles Assessment, about 15 min | Workstyles Assessment, about 15 min | Work styles, about 10 min |
| Other sections | Work Simulation, about 60 min | None | System design, about 15 min |
| Feedback survey | About 5 min, required | About 5 min, required | About 1 min, optional |
| Total | Up to two hours, in one or two parts depending on country | About 90 min | Reserve two hours; only coding is timed |
Two things to know. First, these pages haven't caught up with every change: neither mentions the AI-assisted task that candidates describe, and the new-grad section averages add up to about two and a half hours, more than the "up to two hours" the same page suggests, so leave extra time. Second, the format can vary by country and team. Your invitation email is the final word on which sections you'll get and your deadline.
New in 2026: the AI-assisted coding task
In January 2026, Amazon announced that it had "reimagined" its technical assessments so candidates can "work with an interactive AI assistant on a real coding platform," because its own engineers now use AI tools for writing, debugging, and testing code. Amazon hasn't published the format, but candidate reports from mid to late 2026 (on Reddit, LeetCode, and interview-report sites) describe it fairly consistently:
- Two tasks: one classic algorithm problem, then a "repository" task: a small app with failing tests where you find and fix bugs.
- You pick a stack for the repository task. Candidates mention Java with Spring Boot, Python with Django, and Node.js.
- A limited, built-in AI assistant. Candidates say it can explain code and suggest changes, but several report it couldn't edit files or wouldn't point straight to the bug.
- Scored by tests, according to candidates, who report results like "4 of 6 tests passing." How much it counts relative to the algorithm problem isn't known.
Not everyone gets it. Most reports come from SDE II candidates, some from new grads, and some 2026 candidates (including interns) still describe the classic two-algorithm-problem OA. Prepare for both, and use only the assistant inside the assessment. Our guide to AI-assisted coding interviews covers how to work with an assistant without letting it do your thinking.
What the coding questions look like
Amazon's SDE II page lists the coding topics as programming languages, data structures and algorithms, and "logical and maintainable code," and says to expect "syntactically correct code—no pseudo code." Your code is run against test cases, and candidates report hidden tests with large inputs, so a correct O(n²) solution can still fail some of them.
Candidates describe Amazon's problems as long, story-style prompts (warehouses, deliveries, servers, shopping) that hide a standard pattern, usually at a medium level. The patterns they report most, and where to practice each:
| Pattern | How it tends to show up | Practice on Interview Cake |
|---|---|---|
| Arrays and strings | One pass over a list with running totals, prefix sums, or two pointers | Apple Stocks, Product of All Other Numbers, Merge Sorted Arrays |
| Hash maps and counting | Count, group, or match items; find pairs or duplicates | Inflight Entertainment, Word Cloud, Top Scores; hash maps |
| Sorting and greedy | Sort, then make the locally best choice to minimize cost or steps | Merging Ranges, Highest Product of 3; greedy algorithms |
| Graphs and grids | Regions in a grid, shortest paths, dependencies between tasks | Mesh Message (BFS), Recipe Step Order (topological sort) |
| Heaps | Top k items, or always processing the next most urgent item | Running Median; heaps |
| Simulation | Apply a series of operations or time steps exactly as described; the right data structure keeps it fast | Cafe Order Checker; queues |
| Binary search and windows | Search a sorted range, binary search on the answer, or find the best contiguous stretch | Find Rotation Point, Longest Substring Without Repeats; sliding window |
An original practice example
This is an original practice problem written by Interview Cake in the style candidates describe. It is not a real Amazon question.
A delivery station has n orders, and order i is ready at minute ready[i]. A van carries at most k orders and leaves as soon as its last order is ready. No order may wait more than m minutes for its van to leave. What's the fewest vans you need? For example, with ready times [5, 1, 3, 9, 10, 2], k = 3 and m = 2, the answer is 3: one van for the orders ready at minutes 1, 2 and 3, one for 5, and one for 9 and 10.
Trying every grouping is exponential. Instead, sort the ready times, then go greedy: start a van with the earliest unassigned order, and keep adding the next orders while the van has room and each one is ready within m minutes of the van's first order. That's O(n log n) for the sort plus one pass. Test the edges: no orders, k = 1, m = 0, and several orders ready at the same minute.
The Work Style Assessment, Work Simulation, and Leadership Principles
Work Style Assessment
On its assessments page, Amazon describes work style assessments as built around its culture and Leadership Principles: you choose how well each statement describes the way you work, and Amazon's advice is not to overthink any one question. Candidates report pairs of statements where you pick which one fits you better and by how much. Amazon lists about 10 to 15 minutes for it, and on the SDE II OA it isn't timed.
There are 16 Leadership Principles, including Customer Obsession, Ownership, Bias for Action, Dive Deep, Earn Trust, and Deliver Results. Read them once before the OA so the statements make sense. Then answer honestly and consistently: you'll be asked about the same principles again in behavioral interviews, and trying to game the survey tends to produce contradictory answers.
Work Simulation
Amazon lists a Work Simulation of about 60 minutes in the new-grad OA but doesn't describe it. Candidates describe a simulated stretch of work as an Amazon engineer: messages from teammates and managers, and multiple-choice decisions about priorities, customer impact, and technical trade-offs. Answers that reflect the Leadership Principles (customer first, ownership, decisions backed by data) are the safe bet. Some 2026 candidates don't mention a simulation at all, so it may not be in your OA.
System design (SDE II)
The SDE II OA has an untimed system design section of about 15 minutes. Amazon doesn't describe its format. Candidates describe multiple-choice design scenarios. If you're rusty, our system design crash course covers the basics.
What's allowed, and what Amazon says about honesty
From Amazon's new-grad OA page:
- Allowed: publicly accessible online resources, like the Java documentation or a reference for C++'s Standard Template Library.
- Not allowed: sites that require a login, and private repositories.
- Logged: "Your browser usage is logged."
- No copying and pasting: "We expect this to be your own code."
- No screenshots: pressing print screen ends your session and locks you out.
- Equipment: use a laptop or desktop, not a phone or tablet. Amazon lists a webcam among its technical requirements and answers questions about webcams and, in North America, ID in its FAQ, so check your invitation.
AI: Amazon's OA pages don't mention outside AI tools. Amazon's interview guidelines, as reported in 2025, tell candidates not to use generative AI tools "unless explicitly permitted," and say breaking that rule may get you disqualified. Combined with the "your own code" and no-copy-paste rules, the safe reading is simple: use the AI assistant if your assessment includes one, and no other AI.
What happens after the OA
- New grads and interns: finish the feedback survey (skipping it delays your results). If your OA has two parts, you'll get an email after each part saying whether you're moving on. If nothing arrives within 24 hours of finishing, check spam, then contact Amazon using the details in your OA email.
- SDE II: Amazon says you'll hear within two days. If Amazon doesn't move forward, it suggests practicing and reapplying in six months.
- Next: passing candidates move to interviews: coding, behavioral questions built on the Leadership Principles, and system design for experienced roles. Our Amazon interview questions guide covers that stage.
Amazon doesn't publish how the OA is scored or what score passes. Candidates report advancing without passing every test case, so finish what you can and don't read too much into any one report.
A two-week prep plan
Day 1: Take Amazon's practice test. Amazon's new-grad prep page links a free HackerRank practice test with two unscored questions. Use it to check the editor, your language, and how test cases run. Skim the Leadership Principles.
Days 2–9: Two timed problems a day. Work through the patterns in the table above, about 35 to 45 minutes per problem. For each one, write out the time and space complexity and check whether it would handle 100,000 inputs.
Days 5–10 (alongside): Debug a real codebase. For the AI-assisted task, pick the stack you use most and practice in a small project you didn't write: read the README, run the tests, trace one failure, make the smallest fix, and rerun everything. If you use an AI assistant while practicing, have it explain code rather than write fixes, and check each claim it makes.
Days 11–12: Two full mock OAs. Two problems (or one problem plus a debugging task) in 90 minutes, without pausing. Afterward, review what slowed you down.
Day 13: Work style prep. Read the Leadership Principles again and write down one real example for a few of them. It'll help with the survey now and with behavioral interviews later.
Day 14: Setup and rest. Check your browser, webcam, and connection; plan two quiet hours; then stop studying.
Test-day tips and common mistakes
- Read the constraints first. Input sizes tell you how fast your solution has to be.
- Strip away the story. Restate the problem in one sentence ("find the fewest groups of size at most k...") before choosing a data structure.
- Get a correct solution, then optimize. Passing some test cases beats a perfect solution you didn't finish.
- Move on when stuck. Amazon's own advice is to skip to the next problem and come back.
- Test your own edge cases: empty input, one element, duplicates, very large values.
- In the repository task, run the tests before touching anything, and keep each fix small.
Common mistakes
- Pasting code from elsewhere. Amazon asks you not to copy and paste at all.
- Rushing the work style or simulation sections after a hard coding section. They count too.
- Skipping the feedback survey, which delays your results.
- Missing the deadline. Check spam for the invitation and for results emails.
- Using outside AI tools. Amazon's reported interview guidelines say that can get you disqualified.
If you have online assessments from other companies too, see our guides to the HackerRank test, the CodeSignal General Coding Assessment, and the Karat interview.
Interview Cake