Python questions from American Express data engineering interviews.
These python questions are sourced from American Express data engineering interviews. Each includes an expert-level answer. This set leans toward fundamentals — 3 easy, 2 medium, and 1 hard questions. Recurring themes are python, join, and partition — these patterns appear most often in real interviews and reward the deepest preparation. Average answer is around 1 minute of reading — plan roughly 1 hour to work through the full set thoughtfully.
This collection contains 6 curated questions: 3 easy, 2 medium, and 1 hard. There's a strong foundation of fundamentals-focused questions — ideal for building confidence before tackling advanced topics.
The most frequently tested areas in this set are python (4), join (3), partition (1), and spark (1). Focusing on these topics will give you the highest return on your preparation time.
Start with the easy questions to warm up and solidify fundamentals. Medium-difficulty questions form the bulk of real interviews — spend the most time here and practice explaining your reasoning out loud. Hard questions often appear in senior and staff-level rounds; attempt them after you're comfortable with the basics. For each question, try answering before revealing the solution. Use our AI Mock Interview to simulate real interview conditions and get instant feedback on your responses.
Create a Python program to demonstrate the use of set operations (union, intersection).
Describe Spark's memory management model. How do you handle heap memory overhead issues?
Explain the difference between mutable and immutable objects in Python.
Explain the differences between multiprocessing and multithreading.
Implement a Python function to count unique words from a file and write them to another file.
Write a decorator function to log the execution time of a function.
Get full access to 1,800+ expert answers, AI mock interviews, and personalized progress tracking.