Amazon Data Manipulation (SQL/Python) Interview Questions
Amazon Data Manipulation (SQL/Python) interview questions at Amazon focus on practical problem solving with real-world data: efficient joins and window functions in SQL, group and aggregate logic, NULL-handling and performance tradeoffs, and equivalent Pandas/NumPy patterns for in-memory work. What’s distinctive is the mix of product-sense and scale-awareness — interviewers evaluate both correctness and how your solution would behave on large tables or within a production pipeline. Expect timed live-coding or take-home tasks where clarity of assumptions, test cases, and incremental refinement matter as much as final syntax. For interview preparation, prioritize translating tasks between SQL and Pandas, practicing common subproblems (deduplication, rolling/window calculations, CTE refactors, and merge strategies), and explaining complexity and scalability tradeoffs. Be ready to justify index or partition choices, to optimize a slow query, and to narrate decisions with Amazon’s customer-and-ownership lens. Practicing with real datasets and mock interviews that simulate pressure will improve fluency and the concise communication Amazon looks for.

"I got asked a hardcore MCM DP question and I saw it on PracHub as well. Solved that question in 5 minutes. Without PracHub I doubt I could solve it in 5 hours. Though somehow didn't get hired, perhaps I guess I solved it too fast? /s"

"Believe me i'm a student here jn US. Recently interviewed for MSFT. They asked me exact question from PracHub. I saw it the night before and ignored it cause why waste time on random sites. I legit wanna go back and redo this whole thing if I had chance. Not saying will work for everyone but there is certainly some merit to that website. And i'm gonna use it in future prep from now on like lc tagged"

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."
Calculate Weekly, Monthly Watch Hours for Paid Users
video_view_logs +---------+----------+----------------+------------+------------+ | user_id | video_id | watched_seconds| watch_date | device_type| +-...
Analyze Top Book Sales and Unique Customer Purchases
BOOK_TRANSACTION +---------------+------------+-------------+------+----------+ | MARKETPLACE_ID| TXN_DAY | CUSTOMER_ID | ASIN | QUANTITY | +------...
Design Incremental Load Process for Large Relational Table
orders_daily_load +------------+-----------+-------------+--------+ | load_date | order_id | customer_id | amount | +------------+-----------+------...
Calculate Regional Revenue and Identify Top Customers
Customers | customer_id | name | region | |-------------|-------|--------| | 1 | Alice | East | | 2 | Bob | West | | 3 ...
Identify Unique Unordered City Pairs in Flight Log
FLIGHTS +----------------+---------------+ | departure_city | arrival_city | +----------------+---------------+ | NYC | LAX | | ...
Analyze Seller Compliance and Customer Purchase Patterns
SELLER_STATUS +-----------+------------+-----------+ | seller_id | date | status | +-----------+------------+-----------+ | 1 |2019-0...
Illustrate SQL Join Results with Duplicate Keys
TABLE1 +------+ | col1 | +------+ | 1 | | 1 | | 1 | +------+ TABLE2 +------+ | col1 | +------+ | 1 | | 1 | | 1 | | 1 | | 1 |...
Identify Customers Purchasing Every Product in Catalog
X_PURCHASES +-------------+---------+ | customer_id | pro_key | +-------------+---------+ | 1 | A | | 1 | B | | 2 ...
Count Customers Buying Both 'Kindle' and 'Alexa'
ITEMS +---------+-----------+ | ITEM_ID | ITEM_NAME | +---------+-----------+ | 101 | Kindle | | 202 | Alexa | | 303 | Fire TV | ...
Identify Most Popular First-Watched Movie in Viewing History
MOVIE_VIEWS +------------+--------------------+------------+ | customer_id| title | date | +------------+--------------------+-----...
Identify First Daily Order for Each Merchant
Orders +----------+-------------+---------+------------+ | order_id | merchant_id | amount | order_date | +----------+-------------+---------+-------...
Compute First Order Proportions by Day and Category
ORDERS +----------+------------+----------+-------------+ | order_id | date | category | customer_id | +----------+------------+----------+-----...
Retrieve First Active and Last Inactive Dates per User
Given a table activity that tracks user activities, write a SQL query to retrieve the first active date and last inactive date for each user. Table Sc...
Explore Subscription Patterns and Status Transitions with SQL/Pandas
subscriptions +-----------------+---------+-------------+ | subscription_id | status | status_date | +-----------------+---------+-------------+ | 10...
Calculate Rolling 7-Day Sum of Answers by Device
ANSWERS +------------+--------+---------+ | date | device | answers | +------------+--------+---------+ | 2019-01-01 | echo | 10 | | 2019...
Transform retail data with pandas groupby/merge/concat
Using pandas only (groupby/agg/merge/concat; no for-loops), write code to answer the sub-questions below on the following small dataframes. Assume tim...
Manipulate time-series with Pandas groupby
Given a DataFrame events(user_id, event_type, ts_utc, revenue): 1) Parse ts_utc as timezone-aware, convert to America/Los_Angeles, and handle DST tran...
Calculate Monthly Revenue from Orders in 2023
orders | id | order_date | customer | |----|------------|----------| | 1 | 2023-01-03 | 101 | | 2 | 2023-02-14 | 102 | | 3 | 2023-02-20 | 101 | o...
Derive Key Business Metrics Using SQL or Python
Orders +----------+-------------+------------+---------+------------------+ | order_id | customer_id | order_date | amount | product_category | +----...
Create SQL Queries for Sales and Customer Analysis
SALES +----------+----------+------------+------------+----------+---------+ | sale_id | store_id | product_id | sale_date | quantity | revenue | +-...