Amazon OA for SDE: Online Assessment Questions & Prep [2026]
Applying for a Software Development Engineer (SDE) role at Amazon? The Amazon OA, short for online assessment, is the stage you need to pass before any interview. Depending on your level, it combines coding challenges, a Work Simulation, System Design questions, and a Work Style Assessment. This guide covers every section for SDE Intern, SDE I, and SDE II candidates, with sample questions and explanations.
This PrepPack covers the Amazon Online Assessment for Software Development Engineers (SDE Intern, SDE I, and SDE II). Applying for a different role? Go straight to the assessment for your position: AWS OA, management, MBA, warehouse, or finance . Not sure which test you'll get? See every Amazon assessment, with free sample questions and answers, in our Amazon Assessment Test guide.
- All-in-One Prep: Coding, Work Simulation & Work Style
- Covers Intern, SDE I & SDE II Roles
- OA-Specific & General Work Style Training
- 2 Work Simulation Practice Tests, Including System Design Decisions
- 6 Full-Length Coding Simulations in Java or Python, with AI-Powered Feedback
- Score Reports & Detailed Explanation based on Amazon's Leadership Principles
Our Interview PrepPack helps you prepare for the stage after the Amazon OA. You will practice a real job interview on camera, answer realistic questions out loud, and receive targeted feedback and study guides to improve your answers.
With our Premium Pack, you will receive this preparation material for free.
24hr support
Money-back
SSL secured
What’s Inside the Amazon SDE OA PrepPack
Our Amazon SDE OA PrepPack is designed to help you prepare for every part of the assessment, from Coding Questions and System Design to Work Simulation and Work Style Assessments.
The package combines realistic practice tests, detailed explanations, and role-specific preparation for Intern, SDE I, and SDE II candidates.
Always up to date: Amazon regularly updates its hiring process and assessment formats. We continuously review official Amazon resources, candidate reports, and customer feedback to ensure our preparation materials remain relevant and aligned with the latest version of the Amazon OA.
Why Trust JobTestPrep?
For more than 25 years, JobTestPrep has helped candidates prepare for hiring assessments used by employers around the world. Our preparation materials are developed by assessment experts, reviewed regularly, and updated to reflect changes in real hiring processes.
Our goal is simple: provide realistic practice that helps candidates understand what to expect and prepare with confidence.
About the Author
David Meshulam is the founder of JobTestPrep and has worked in the field of assessment preparation since 1992. Under his leadership, JobTestPrep has helped millions of candidates prepare for aptitude tests, personality assessments, interviews, and job-specific hiring processes.
For questions, feel free to reach out to David via:
Amazon OA Structure: What to Expect in 2026
The exact structure of the Amazon OA varies by role, but most SDE candidates can expect a combination of coding, work simulation, system design, and work style assessments.
Here's a quick breakdown by role:
| Role | Coding | Work Simulation | System Design | Work Style |
| Intern | ✓ | – | – | ✓ |
| SDE I | ✓ | ✓ | – | ✓ |
| SDE II | ✓ | – | ✓ | ✓ |
Each section measures a different skill set and requires a different preparation strategy. Use the links below to jump directly to the section you want to learn more about, including sample questions, scoring criteria, and practice resources.
Amazon OA Coding Assessment
The Coding Assessment is the most technical part of the Amazon SDE Online Assessment.
The exact format depends on the role you're applying for:
| Role | Coding Questions | Time Limit |
| Intern | 2 | 70 |
| SDE I | 2 | 70 |
| SDE II | 2 | 90 |
Not all Amazon OA Coding Assessments are the same. Use the tabs below to see what to expect for your role.
Amazon Coding Assessment for Intern and SDE I roles
For Intern and SDE I candidates, the Amazon Coding Assessment focuses on core programming skills, data structures, algorithms, and problem-solving ability.
Amazon uses this assessment to evaluate how effectively you can solve technical challenges while writing correct, readable, and efficient code. In addition to arriving at the right answer, your solution should be easy to understand, maintain, and explain. On top of that, candidates are expected to write, test, and debug their solutions within the time limit (70 minutes).
The Coding Assessment typically covers data structures and algorithms commonly used in technical interviews. While the exact questions vary, candidates frequently encounter problems involving:
- Arrays and Strings
- Hash Maps and Sets
- Linked Lists
- Trees and Binary Trees
- Graphs
- Queues and Stacks
- Breadth-First Search (BFS)
- Depth-First Search (DFS)
- Sorting and Searching
- Sliding Window and Two-Pointer techniques
- Recursion and Divide-and-Conquer
- Basic Dynamic Programming
Note: you can complete the assessment in several programming languages, including C, C++, C#, Go, Java, JavaScript, Kotlin, Objective-C, Python, Ruby, Scala, and Swift.
Because the assessment focuses on problem-solving rather than language-specific expertise, it is generally best to use the language you know most well.
Sample OA Coding Assessment Question - Intern / SDE I roles
A conveyor belt scanner produces a sequence of SKU IDs. A priority restock request requires certain minimum quantities of some SKUs.
Given the scanned sequence and the required quantities, find the length of the smallest contiguous window that contains at least the required quantity of every requested SKU. If no such window exists, return -1.
Input format
- The first line contains an integer n, the number of scanned SKUs.
- The second line contains n integers scan[0], scan[1], ..., scan[n-1].
- The third line contains an integer m, the number of distinct required SKUs.
- Each of the next m lines contains two integers: sku_id and required_count.
Output format
Print one integer: the minimum valid window length, or -1 if no valid window exists.
Constraints
- 1 <= n <= 200000
- 1 <= m <= 200000
- 0 <= scan[i] <= 10^9
- 1 <= required_count <= n
- All sku_id values in the requirement list are distinct.
Sample input
8
5 1 2 1 3 2 1 4
3
1 2
2 1
3 1
Sample output
4
Explanation
The smallest valid window is [1, 3, 2, 1], which contains:
- SKU 1 twice
- SKU 2 once
- SKU 3 once
No shorter contiguous window satisfies all requirements.
Sample input
5
7 7 2 7 8
2
7 2
9 1
Sample output
-1
Hints
- You do not need to track counts for every SKU in the stream, only for SKUs that appear in the requirement map.
- Use a sliding window with two pointers.
- Keep track of how many required SKU types are currently “satisfied”.
Step-by-step solution
This is a classic variable-size sliding-window problem over an array.
Create a hash map need that stores the required count for each SKU. Then move a right pointer across the array and maintain a second hash map have for the current window.
Every time you add a SKU to the window:
- If that SKU is required, increment have[sku].
- If have[sku] becomes exactly equal to need[sku], then that SKU type is now satisfied.
Let formed be the number of required SKU types that are currently satisfied. Let target be the total number of distinct required SKU types.
Whenever formed == target, the current window is valid. At that point, try to shrink it from the left as much as possible while keeping it valid:
- Update the answer with the current window length.
- Remove scan[left] from the window.
- If removing it causes a required SKU type to fall below its needed count, decrement formed.
- Move left forward.
Because each element enters and leaves the window at most once, the whole algorithm is linear.
What Amazon is evaluating
| Criterion | What strong performance looks like |
| Correctness | Correctly returns the minimum window, not just any valid window. |
| Efficiency | Uses a linear sliding-window solution rather than checking all subarrays. |
| Data-structure choice | Uses hash maps cleanly for need and have. |
| Readability | Clear variable names such as need, have, formed, left, right. |
| Edge cases | Handles impossible requests, repeated SKUs, and windows at the beginning or end. |
Amazon Coding Assessment for SDE II Roles
The Amazon SDE II Coding Assessment is designed for experienced software engineers and places greater emphasis on optimization, technical decision-making, and code quality than the assessments used for Intern and SDE I candidates.
While the coding questions are generally more challenging, the biggest difference is not necessarily the difficulty of the algorithm itself. Amazon also evaluates how well you justify your decisions, optimize your solution, and balance efficiency with maintainability.
According to Amazon's engineering team, successful candidates are evaluated across five key areas:
| Amazon Evaluates | What It Means |
| Problem Understanding | Can you identify the requirements, constraints, and edge cases? |
| Coding Ability | Can you produce correct, readable, working code? |
| Data Structure Selection | Did you choose the most appropriate tool for the problem? |
| Runtime Complexity | Can you analyze and optimize your solution when necessary? |
| Simplicity | Is your solution easy to understand, maintain, and explain? |
Note: One of the biggest misconceptions about the SDE II Coding Assessment is that the most complex solution is always the best one. In practice, Amazon often prefers solutions that are clear, efficient, and easy to justify over implementations that are unnecessarily complicated.
A practical way to approach coding questions is to work through them systematically:
- Read the entire problem before writing any code.
- Identify the requirements, constraints, and potential edge cases.
- Determine the expected inputs and outputs.
- Select an appropriate data structure.
- Build a working solution.
- Review the solution for correctness and efficiency.
Following a structured process can help you avoid common mistakes and make better use of the limited time available during the assessment.
Candidates can choose from a wide range of programming languages, including C, C++, C# , Go, Java, JavaScript, Kotlin, Objective-C, Python, Ruby, Scala, and Swift. As with other Amazon coding assessments, using the language you are most comfortable with is usually the best strategy.
Sample OA Coding Assessment Question - SDE II roles
You must deliver packages to n fulfilment centres in fixed route order. Centre i requires orders[i] packages and has a flag fragile[i]:
- fragile[i] = 0 means the centre is normal.
- fragile[i] = 1 means the centre is fragile.
You may use at most m trucks.
Each truck must serve one contiguous block of centres. If a truck serves only normal centres, it can carry up to C packages. If a truck serves at least one fragile centre, then p units of capacity are consumed by special packaging, so it can carry only C - p packages of actual orders on that block.
Find the minimum integer capacity C that allows all centres to be served using at most m trucks.
Input format
- The first line contains three integers: n, m, and p.
- The second line contains n integers: orders[0..n-1].
- The third line contains n integers: fragile[0..n-1], each either 0 or 1.
Output format
Print one integer: the minimum feasible capacity C.
Constraints
- 1 <= n <= 200000
- 1 <= m <= n
- 0 <= p <= 10^12
- 1 <= orders[i] <= 10^9
- fragile[i] is 0 or 1
- Use 64-bit integers for sums and bounds.
Sample input
5 2 3
4 2 6 3 5
0 1 0 0 1
Sample output
15
Explanation
If C = 15, then any truck that touches a fragile centre can carry up to 12 actual orders.
A valid split is:
- Truck 1 serves centres [4, 2, 6], total 12, contains a fragile centre
- Truck 2 serves centres [3, 5], total 8, contains a fragile centre
So 15 works.
If C = 14, then any truck touching a fragile centre can carry only 11, and no 2-truck partition works.
Sample input
4 3 5
7 2 4 9
0 0 0 0
Sample output
9
Hints
- If a capacity C is feasible, then every larger capacity is also feasible.
- That monotonicity suggests binary search on the answer.
- For a fixed C, greedily take the longest valid contiguous block for each truck.
Step-by-step solution
This is an optimisation problem with a monotonic answer.
If a truck capacity C is enough, then any larger capacity is also enough. That means we can binary-search the minimum feasible C.
The main task is the feasibility check. For a fixed C, scan centres from left to right and build the current truck’s block greedily:
- Maintain current_sum, the total orders on the current truck.
- Maintain has_fragile, whether the current truck already includes any fragile centre.
- When considering the next centre i, compute:
- next_has_fragile = has_fragile or fragile[i] == 1
- limit = C - p if next_has_fragile else C
If current_sum + orders[i] <= limit, then add centre i to the current truck. Otherwise, close the current truck and start a new one at centre i.
Before binary search even proceeds, note the obvious impossible cases for a fixed C:
- If fragile[i] == 0 and orders[i] > C, no truck can carry centre i.
- If fragile[i] == 1 and orders[i] > C - p, no truck can carry centre i.
The greedy check is correct because the route order is fixed, all weights are positive, and using the longest valid prefix for each truck minimises the number of trucks needed for that C.
What Amazon is evaluating
| Criterion | What strong performance looks like |
| Correctness | Defines the feasibility rule correctly even when the first fragile centre changes a truck’s effective limit. |
| Efficiency | Uses binary search plus a linear feasibility pass, not quadratic partition DP. |
| Trade-off reasoning | Explains why monotonicity holds and why greedy packing is optimal for a fixed C. |
| Readability | Separates feasible() from the outer binary search and uses meaningful names. |
| Edge cases | Handles p = 0, all-fragile arrays, single-centre impossibility, and 64-bit sums safely. |
Master the Entire Amazon OA
Strong coding skills are important, but they won't prepare you for the Work Simulation, System Design, and Work Style sections that many candidates overlook.
Our Amazon SDE OA PrepPack provides comprehensive preparation for every stage of the assessment, including coding challenges (in Python or Java) with step-by-step explanations, realistic workplace scenarios, and Leadership Principles training.
Looking for even more coding practice? Amazon's official Coding Challenge training environment can be an excellent supplementary resource alongside your Amazon OA preparation pack.
Amazon OA AI-Assisted Coding Round for SDE
In 2026, many Amazon SDE candidates report a new coding format: one standard DSA question followed by an AI-assisted coding round. Some candidates still receive two standard DSA questions, so check the sections listed in your invitation email.
What the AI-Assisted Round Looks Like
- Part 1: a standard DSA question, about 40 minutes.
- Part 2: an AI-assisted coding round, about 60 minutes. You get a project codebase with a built-in AI assistant.
Candidates report choosing a stack such as Node.js with MERN, Java with Spring Boot, or Python with Django.
Your goal is to read the codebase, find the bugs and missing implementations, such as broken routes or controllers, and fix them.
How to Prepare for the AI-Assisted Round
- Practice reading an unfamiliar web project quickly and tracing a bug back to its cause, such as a route, a controller, or a model.
- Use the AI assistant to speed up your work, but check each suggestion yourself before you rely on it.
- Keep your changes small, readable, and consistent with the existing codebase.
- Don’t neglect the other sections. The Work Simulation (or System Design for SDE II) and the Work Style Assessment are part of the same OA.
Prepare for the Full Amazon SDE OA
The AI-assisted round is only one part of the OA. Our Amazon SDE OA PrepPack covers the Work Simulation, Work Style, and coding sections, so you walk into every part prepared.
Amazon OA Work Simulation for SDE
The Work Simulation typically takes about 45 minutes. You work through software development decisions and scenarios faced by SDEs at Amazon, rating how effective each response is to requests from colleagues, managers, and stakeholders. There is no coding. For the full guide, see our Amazon Work Simulation page.
Sample Question - Amazon OA Work Simulation
Throughout the assessment, you'll receive information gradually and may need to consult multiple resources before deciding how to respond. Some scenarios involve competing priorities, while others require balancing customer needs, technical considerations, and project deadlines.
In this example, you've just received an e-mail:
"Hi,
Thank you for joining us for this project. Our team’s responsibility is to develop the first version of the product for the messaging system. We have the following requirements from the product manager:
- Create a versioning system for the message format.
- Implement a serialization system or binary data for individual components within the messages.
- Develop a support system for messages with different motives.
- Timestamp messages and checksums
I would appreciate hearing about the actions you think would be appropriate in order to comply with the requirements..
Seo-jun"
Based on all of the information received, rate each approach for its effectiveness.
1 = Extremely Effective
2 = Very Effective
3 = Moderately Effective
4 = Slightly Effective
5 = Not at all Effective
For a walkthrough of this question and an answer explanation, please take a look at the following video:
Customer Reviews
"I'd spent most of my prep time on LeetCode. The PrepPack gave me a much better understanding of the overall assessment and helped me feel more confident going into test day."
Jason H., SDE I Candidate
"The Work Simulation practice was surprisingly helpful. It gave me a much clearer idea of the kinds of decisions Amazon expects engineers to make."
Sal G., Amazon Intern Applicant
"The real value wasn't memorizing questions. It was learning how each section works and what Amazon is actually evaluating."
Ferha I., SDE II Candidate
"The practice materials helped me understand the Work Simulation and Work Style sections, which I probably would have ignored otherwise."
Arjun P., SDE OA Candidate
Practice the SDE Work Simulation Before Test Day
Amazon evaluates the Work Simulation together with your coding results, so a strong coding score is not enough on its own. Our Amazon SDE OA PrepPack includes realistic Work Simulation scenarios with detailed answer explanations, built to mirror the real format.
Amazon OA Work Style Assessment for SDE
The Amazon Work Style Assessment is an untimed personality assessment that measures how closely your workplace preferences align with Amazon’s Leadership Principles. There are no technical questions.
The Amazon Work Style Assessment for SDE candidates consists of two separate surveys:
Sample Question - SDE Work Style Assessment
When you're brought into a project midway through, which of the following methods are you most inclined to take?
- Create my own project plan so that I’m able to comprehend the next steps.
- Consult with end-users on a regular basis to ensure that product requirements are fully understood.
- To catch up, complete as much work as you can on your own.
- Look for areas where my personal abilities may contribute value to the process
The strongest response is usually "Consult with end-users on a regular basis to ensure that product requirements are fully understood."
Here's how Amazon is likely to view each option:
Consult with end-users on a regular basis to ensure that product requirements are fully understood.
This response demonstrates a strong focus on the customer and the overall purpose of the project. Rather than immediately jumping into tasks, you first make sure you understand the needs of the people who will ultimately use the product. This aligns closely with Amazon's Customer Obsession principle and shows a commitment to making informed decisions that deliver meaningful results.
Create my own project plan so that I'm able to comprehend the next steps.
This answer reflects initiative and ownership. By creating a plan, you take responsibility for understanding the project's status and determining how to contribute effectively. While this is a strong response, it is slightly less aligned with Amazon's priorities than the customer-focused option because it focuses on internal organization rather than customer impact.
Look for areas where my personal abilities may contribute value to the process.
This response shows confidence and a willingness to contribute. However, it places the emphasis on your own strengths before fully understanding the project's goals, requirements, or customer needs. Amazon generally prefers employees to first understand the broader context before deciding how their individual skills can best be applied.
To catch up, complete as much work as you can on your own.
This option demonstrates urgency and a desire to make progress, which can be positive. However, it also carries the risk of moving forward without fully understanding the project's objectives, stakeholder expectations, or customer requirements. Amazon values speed, but it also emphasizes making informed decisions and working toward the right outcomes, not simply completing tasks as quickly as possible.
What Amazon Is Evaluating: Customer Obsession, Ownership, Earn Trust, and Deliver Results.
Sample Question - General Amazon Work Style Assessment
Which statement is more like you, and to what extent?
Questions like this are not designed to test technical ability. Instead, Amazon uses them to identify consistent workplace preferences and behavioral tendencies.
In this example, neither statement is inherently "correct." The assessment is evaluating how strongly you identify with each statement and whether your responses remain consistent throughout the survey.
Candidates who try to guess the "right" answer often create contradictory response patterns. A better approach is to understand Amazon's Leadership Principles and answer honestly while remaining mindful of the traits Amazon values, such as ownership, curiosity, customer focus, and accountability.
What Amazon Is Evaluating: Behavioral consistency, self-awareness, and alignment with Amazon's Leadership Principles.
Don't Guess What Amazon Wants to Hear!
Amazon evaluates patterns and consistency across your answers, not individual questions. Our Amazon SDE OA PrepPack includes realistic Work Style practice tests with detailed explanations and Leadership Principles guidance, so you understand the logic before test day.
Amazon OA System Design Assessment for SDE II
The System Design Assessment is unique to the Amazon OA for SDE II candidates. Unlike the Coding Challenge, which focuses on algorithms and data structures, this section evaluates how you approach larger engineering problems and make technical trade-off decisions.
During this part of the assessment, you'll be presented with realistic engineering scenarios and asked to evaluate potential solutions. Rather than writing code, you'll need to demonstrate sound architectural thinking and an understanding of scalability, reliability, and maintainability.
All System Design questions are multiple-choice and this part of the OA takes about 15 to 20 minutes.
Common topics include, but are not limited to:
- Horizontal vs. vertical scaling
- SQL vs. NoSQL databases
- Caching strategies
- Content Delivery Networks (CDNs)
- Load balancing approaches
- Message queues and event processing
- Fault tolerance and resiliency
- Rate limiting and traffic management
Tip: You don't need to design an entire distributed system from scratch. Focus on understanding the strengths, weaknesses, and trade-offs of common architectural patterns. Most questions are designed to assess decision-making rather than memorization.
Prepare for System Design Questions
The decision-making skills assessed in Amazon's SDE II System Design section are integrated throughout our Work Simulation practice tests, helping you build confidence before test day.
FAQs
The Amazon Online Assessment (OA) is a pre-employment assessment used to evaluate Software Development Engineer candidates before the interview stage.
The exact format depends on the role. Intern and SDE I candidates typically complete a Coding Assessment, Work Simulation, and Work Style Assessment. SDE II candidates complete a Coding Assessment, System Design Assessment, and Work Style Assessment.
The purpose of the OA is to evaluate not only your coding ability, but also your decision-making, problem-solving approach, and alignment with Amazon's Leadership Principles.
No. While all candidates complete a coding assessment, the overall structure varies by role. For example, SDE II candidates complete a System Design Assessment, while Intern and SDE I candidates complete a Work Simulation. The time limits and assessment components may also differ.
The coding section typically includes medium-difficulty data structures and algorithms questions, such as arrays and strings, hash maps, trees, graphs, sliding window, and basic dynamic programming. Intern and SDE I candidates also complete a Work Simulation, SDE II candidates complete a System Design section, and every candidate completes the Work Style Assessment. In some versions, the second coding question is an AI-assisted coding round.
Many 2026 candidates report one standard DSA question followed by a coding round in which you work in a project codebase with a built-in AI assistant. You need to understand the code, find the bugs, and fix them. Not every candidate receives this version, so check the sections listed in your invitation email.
Prepare for every section, not only coding. Practice DSA problems (arrays, hash maps, trees, graphs, sliding window), practice reading an unfamiliar codebase and fixing bugs, work through realistic Work Simulation scenarios (or System Design questions for SDE II), and learn Amazon’s Leadership Principles before the Work Style Assessment.
The Amazon SDE Online Assessment is monitored, although the exact level of proctoring can vary by assessment and role.
During coding assessments, Amazon may permit the use of publicly available programming references while prohibiting private repositories, collaboration tools, and other unauthorized resources.
The safest approach is to complete the assessment independently and rely only on resources that Amazon explicitly allows.
No. Amazon evaluates multiple parts of the Online Assessment, including coding performance, Work Simulation results, System Design performance (for SDE II candidates), and Work Style Assessment results. Passing all coding test cases improves your chances, but it does not automatically guarantee progression to the next stage.
Other Amazon Assessments
Money Back Guarantee