For Amazon DE with 3 YOE you will be hired at L4. Bar is not LeetCode Hard - it's Production SQL + Python + Data Modeling. Interview is 6 rounds as per recent experiences. 3888938059511728833
Here is the exact pattern they ask:
1. SQL - 60% of the loop (Make or break)
You will write queries on paper/whiteboard. Expect Easy to Hard progression. 3888938059511728833
Most asked types:
Window functions: Rolling 7-day avg, running total, lag/lead, rank vs dense_rank. Example: Calculate rolling average on weekly sales data 6043
Joins + Aggregation: Top selling items, second highest salary, customers who bought A but not B
CASE WHEN + Subquery: As reported in phone screens - Easy Medium SQL questions involving CASE WHEN, JOINS, subquery 7842
Data modeling SQL: "A seller wants to see total products and total revenue per day. Design data model and write SQL" 07a5
Incorrect query identification: 15 MCQs to find incorrect queries in Round 1 3888938059511728833
Practice these specifically:
-- 1. 2nd highest salary, Nth highest salary
-- 2. Find duplicate transactions / orders
-- 3. Retention / churn: users active this month but not last month
-- 4. SCD Type 2 query: get current active record from history table
-- 5. Self-join for manager-employee hierarchy
-- 6. Rolling sum / moving average with PARTITION BY
-- 7. Top 3 products per category (ROW_NUMBER)
2. Python - Basic to Medium, but clean code expected
From recent phone interviews:
Write a class that initializes string and returns it 33bc
Find highest occurring number in list, if tie return both 34b5
Sum of array, sum of 2 numbers, find difference of two strings 4ed2
For 3 YOE, they will add:
Parse a log file: Extract error codes from 10GB log file - memory efficient
Data cleaning: Remove duplicates, handle nulls, JSON flattening
Collections / Counter / defaultdict use
LeetCode Easy: Two Sum, Find the Difference, Longest Substring Without Repeating 07a5
3. PySpark / Data Engineering Coding
This is where L4 differs from SDE:
Write PySpark to calculate rolling average on weekly sales (SQL + PySpark both asked) 6043
Batch pipeline design: Design a lending data model, Batch pipeline design 3888938059511728833
Handle skewed joins, optimization, partitioning
Kafka basics, Spark architecture questions 3888938059511728833
Example task:
Given orders (order_id, customer_id, order_ts, amount) and customers table,
Write PySpark to get daily revenue, handle late-arriving data, and SCD Type 2 for customer address change.
4. Data Modeling / System Design (Round 3 & 4)
Not coding but you will write DDL:
Star vs Snowflake schema 3888938059511728833
SCD types 1,2,3 3888938059511728833
OLTP vs OLAP, Row vs Columnar storage 3888938059511728833
Sharding & Consistent Hashing 3888938059511728833
Design: Employee transfers model: Design a data model that would help in reporting on count of employees accepted/denied for transfers 7842
5. What to prepare for 3 years profile?
Online Assessment (Round 1):
1 medium Python + 1 advanced SQL + 15 SQL MCQs 3888938059511728833
2 Phone Screens:
1 SQL (medium), 1 Python (basic) + Why Amazon + LP question
Onsite Loop (4 rounds):
Fundamentals, System Design, Tech+Behavioral deep dive on your projects, Final LP
Amazon's focus for DE in 2025: Can you build production-grade data systems that handle billions of rows, cost-optimize cloud infrastructure, and make intelligent trade-offs 7131580485558437495
3-week plan for you:
Week 1: LeetCode SQL 50 - do all window function problems
Week 2: Python - HackerRank DE + PySpark DataFrames (Joins, Window, UDF)
Week 3: Data Modeling - Design 5 models (E-commerce orders, Employee transfer, Seller revenue, IoT events, Lending) + 2 LP stories per principle
Do you want me to make a mock Amazon DE coding sheet with 25 questions + solutions for your practice?
No comments:
Post a Comment