Real Interview Questions for the Data Engineer at Walmart Global Tech
NewPractice MCQs
Answers count toward the Data Engineer and overall leaderboards; your latest answer to each question is the one that counts.
MCQ-1A Data Engineer is checking a report built on the table `employees(emp_id, dept, salary)`, which holds 8 rows: department A has salaries 50000, 60000 and 70000; department B has 40000 and 100000; department C has 80000 three times. The report must list employees whose salary is greater than the average salary in their own department. Which result does a correctly scoped correlated subquery or window-function query return?
Answer to see the discussion.
MCQ-2A Postgres 16 table has a `code` text column, and a recursive CTE should emit one row per character with its 1-based `pos`. The draft seeds the recursion at `pos = 1` and extends it with `WHERE pos <= length(code)`, so for `code = 'ABC12345678'` it returns a trailing row with an empty character. Which change emits exactly one row per character?
Answer to see the discussion.
MCQ-3A Walmart Global Tech Data Engineer must group 200,000 lowercase strings of about 4,000 characters each into anagram sets in one pass on a single node. Which grouping key does the least work per string?
Answer to see the discussion.
MCQ-4A team has a signed-off conceptual ER diagram for store, item and sale entities, with no tables yet. Sales will reach about 3 billion rows a year, and most queries filter by store and by date. Which step should the team take next?
Answer to see the discussion.
MCQ-5During a 60-minute round with two array and string problems, a candidate is at minute 35. The interval-merge function passes the three sample tests but raises on an empty list and returns [] for a single interval. The CSV-field parser is unstarted. Ten of the 40 hidden tests cover empty and single-interval inputs, and the interviewer grades edge-case handling. Which move should the candidate make next?
Answer to see the discussion.
MCQ-6A Walmart Global Tech Data Engineer runs a Spark 3.5 job that joins a 900 GB `sales` DataFrame to a 40 MB `stores` DataFrame on `store_id`, then groups by `store_id` and `week`. The join stage shows a 900 GB shuffle, two tasks running for 40 minutes, and 198 executors sitting idle. Which change addresses the cause of the slow stage?
Answer to see the discussion.
MCQ-7A retailer's order table in Postgres holds 900 million rows and takes about 40,000 updates and 2,000 hard deletes per hour during trading hours. Pricing dashboards need data within 15 minutes, finance needs daily totals that include deletions, and the read replica cannot take heavy scans between 9 a.m. and 9 p.m. Which ingestion design fits these requirements?
Answer to see the discussion.
MCQ-8A ticketing service sells 200 seats for one event, and 5,000 requests per second target the 20 seats in the most popular section. A user reads a seat, spends about 3 seconds on payment, then the seat is written as booked. Double booking is not acceptable and the write path must stay under 50 ms at p99 on PostgreSQL. Which design should the team use?
Answer to see the discussion.
MCQ-9An audit team must list the 100 most frequent users in each day's query log, about 2 billion rows with 40 million distinct `user_id` values, and the counts must be exact for compliance. The nightly job runs on a 50-node Spark cluster and must finish within 90 minutes. Which design meets these constraints?
Answer to see the discussion.
Curated: · Written: · Reviewed: