Amazon
E-commerce and cloud computing giant with AWS, the world's leading cloud platform.
5 Rounds
~28 Days
Very Hard
The Interview Loop
Recruiter Screen (30 min)
Standard fit check, behavioral questions, and resume overview.
Technical Loop (3-4 Rounds)
Deep dive into domain knowledge, coding, and system design.
Interview Question Bank
Data Engineer
•
Coding
•
medium
Given a list of strings representing Amazon search queries, write a Python script to return the top K most frequent queries. Your solution must be optimized for large datasets.
#Python
#Heaps
#Hash Maps
#Big O Notation
Data Engineer
•
Coding
•
medium
Write a Python function to flatten a deeply nested JSON object representing an Amazon product catalog, where keys of nested dictionaries should be concatenated with a dot ('.').
#Python
#Recursion
#Data Structures
#JSON Parsing
Data Scientist
•
Coding
•
medium
Given a list of customer reviews (strings) and a list of banned keywords, write a Python function to return the top K most frequent valid words across all reviews.
#Hash Maps
#Heaps
#String Manipulation
#NLP
Machine Learning Engineer
•
Coding
•
medium
Given an array of Amazon product prices and a target gift card balance, find all unique combinations of products that sum exactly to the target balance. Each product can be used an unlimited number of times.
#Backtracking
#Array
#Combinatorics
Machine Learning Engineer
•
Coding
•
medium
Given a string of customer review text, find the length of the longest substring without repeating characters.
#Sliding Window
#Hash Set
#Strings
Machine Learning Engineer
•
Coding
•
easy
Given the root of a binary tree representing an Amazon product category hierarchy, return the level order traversal of its nodes' values.
#Trees
#BFS
#Queue
Machine Learning Engineer
•
Coding
•
medium
Design a data structure for an Amazon shopping cart analytics tool that supports adding a product ID, removing a product ID, and getting a random product ID in O(1) time.
#Hash Map
#Array
#System Design
ML Engineer
•
Coding
•
hard
Implement a K-means clustering algorithm from scratch in Python.
#K-Means
#Clustering
ML Engineer
•
Coding
•
hard
Implement logistic regression with gradient descent in NumPy.
#Logistic Regression
#NumPy
ML Engineer
•
Coding
•
medium
Implement a sliding window approach to detect anomalies in a time series.
#Anomaly Detection
#Time Series
Software Engineer
•
Coding
•
hard
AWS has several data centers. You are given an array of integers representing the processing power of servers. You want to partition the servers into two clusters such that the absolute difference between the total processing power of the two clusters is minimized. Return the minimum difference.
#Dynamic Programming
#Knapsack
#Optimization
Software Engineer
•
Coding
•
medium
Amazon Logistics needs to optimize delivery routes. Given an array of points representing delivery locations on a 2D plane and an integer k, return the k closest delivery locations to the origin (0, 0).
#Heap
#Priority Queue
#Sorting
#Geometry
Software Engineer
•
Coding
•
medium
Amazon is deploying delivery robots in a grid-like warehouse. You are given a 2D grid representing the warehouse, where '0' is an empty space, '1' is an obstacle, and '2' is a charging station. Find the shortest distance from every empty space to the nearest charging station.
#Breadth-First Search
#Matrix
#Shortest Path
Software Engineer
•
Coding
•
hard
Given a string representing a sequence of customer page views on Amazon.com, find the length of the longest contiguous sequence of page views that contains at most k distinct product categories.
#Sliding Window
#Hash Map
#Strings
Software Engineer
•
Coding
•
medium
You are given a list of Amazon fulfillment centers and the roads connecting them. Find the minimum cost to connect all fulfillment centers such that there is a path between any two centers. If it's not possible, return -1.
#Graphs
#Minimum Spanning Tree
#Union Find
Difficulty Radar
Based on recent AI-sourced data.
Meet Your Interviewers
The "Standard" Interviewer
Senior EngineerFocuses on core competencies, system constraints, and clear communication.
SimulateUnwritten Rules
Think Out Loud
Always explain your thought process before writing code or drawing architecture.