Skip to content
Tech Interview Prep

Real Interview Questions for the Data Engineer at Stone

New

Practice MCQs

Answers count toward the Data Engineer and overall leaderboards; your latest answer to each question is the one that counts.

24 questions · Flow follows Relevance until this set has a learning order.

MCQ-1A payments service commits a transfer and returns success to the client, then the database host loses power. After restart, the committed balance change is missing from the ledger. Which ACID property did this failure violate?
Difficulty: Easy
MCQ-2Two nightly jobs update mostly disjoint rows in a 500-million-row `orders` table, occasionally touching the same row, and both must complete in the window without skipping, failing or retrying updates. Which locking approach fits this workload?
Difficulty: Medium
MCQ-3A pandas DataFrame holds amount rows `('EU', None, 10)`, `('EU', None, 20)`, `('EU', 'US', 5)` and `(None, None, 7)` for region and channel. A team runs `df.groupby(['region','channel'])['amount'].sum()` expecting SQL `GROUP BY` behaviour. How many groups result, and what happens to the null-key rows?
Difficulty: Easy
MCQ-4A fraud model v42 passes code tests but its validation data shows a sharp accuracy drop versus v41, and the registry keeps both artifacts with v41 serving production. The team must decide the release action before the deploy window closes. What should the pipeline do?
Difficulty: Easy
MCQ-5A report joins `orders` with 120 rows to `customers` with 40 rows using `CROSS JOIN`, expecting only matching customers, and joins `orders` to `shipments` using `NATURAL JOIN` where both tables have `id` and `status`, while `shipments` also has `region`. What row counts and matching result?
Difficulty: Medium
MCQ-6A Python cleanup runs `for x in items: if x == 'dup': items.remove(x)` and returns `items`. It is called with `['dup', 'dup', 'ok']` on a night where every duplicate must be removed. What does it return?
Difficulty: Medium
MCQ-7A 3x3 matrix holds rows `A B C`, `D E F`, `G H I`. A traversal starts at `C`, moves one row down and one column left per step, and prints each visited cell until the next step would leave the matrix. Which sequence does it print?
Difficulty: Easy
MCQ-8A nightly pipeline sorts 500 million event records by event time in memory. Records with equal timestamps must retain ingestion order, the job must meet a worst-case runtime guarantee, and it can allocate an auxiliary array as large as the input. Which sorting choice fits these constraints?
Difficulty: Easy
MCQ-9An `orders` table holds two purchases for customer `A` and one purchase with a missing `customer_id`, while `customers` holds customer `A` and one row with a missing id. A report joins them on `o.customer_id = c.customer_id` and counts the joined rows. How many rows does the join return?
Difficulty: Easy
MCQ-10An `orders` table holds one row per purchase with `customer_id`, `order_date` and `amount`, and a report must show every purchase with that customer's running total up to that purchase in date order. Which query produces one output row per purchase with the correct per-customer running total?
Difficulty: Medium
MCQ-11A Data Engineer candidate at Stone is asked to walk through their most significant technical project. The project involved a six-person team, the candidate personally built the ingestion layer, and the pipeline's runtime fell from six hours to forty-five minutes after the change. Which opening best demonstrates scope, contribution, and outcome without vague claims?
Difficulty: Easy
MCQ-12A three-person Python team must process 2 TB of JSON events daily from Kafka with sub-second latency and exactly-once updates to a warehouse, reusing their existing Spark batch jobs and Airflow schedules. Which framework choice fits best?
Difficulty: Hard
MCQ-13A daily revenue pipeline now reports EU totals 8% below source, while US totals match. Monday's change only added a column, EU volume is normal, stakeholders disagree on cause, and Friday's board report depends on the numbers. What is the first step that resolves the ambiguity?
Difficulty: Medium
MCQ-14You own the `payments_events` pipeline and the analytics lead wants `customer_id` dropped before Friday's release, while lineage shows three dashboards still reading it. The schema contract names the platform owner as decision maker, and the dashboards team cannot migrate before Friday. What should you do?
Difficulty: Medium
MCQ-15A pipeline holds a `BaseExtractor` reference and calls `extract()` on either a `CsvExtractor` or a `JsonExtractor`, each subclass overriding that method with its own parsing. The connection string is stored in a private field with no public accessor. Which pillar lets the pipeline call `extract()` uniformly despite the different parsing?
Difficulty: Easy
MCQ-16A team of eight Python analysts with no Scala experience must ship a Spark pipeline in six weeks processing two billion rows nightly with strict schema validation. The cluster and existing jobs already run on Spark via Python. Which language choice best fits these constraints?
Difficulty: Easy
MCQ-17A candidate at Stone describes replacing hourly streaming with five-minute micro-batches for 500 million daily events. The pipeline had a ten-minute latency SLA and a cloud budget that streaming exceeded by 40%. Which explanation of that decision best shows the trade-off considered and the result obtained?
Difficulty: Easy
MCQ-18A `payments` table has 60 million rows and an index on `payment_date`. A loan report runs `SELECT loan_id, SUM(amount) FROM payments WHERE EXTRACT(YEAR FROM payment_date) = 2024 AND status = 'completed' GROUP BY loan_id` and takes 40 seconds with a sequential scan. Which rewrite preserves the totals while scanning fewer rows?
Difficulty: Easy
MCQ-19A `daily_revenue` table has one row per day with `day` and `revenue`: Jan 1 = 100, Jan 2 = 200, Jan 4 = 400, and no Jan 3 row. A report needs a calendar three-day moving average, allowing partial windows at the start. What average does the report show for Jan 4?
Difficulty: Medium
MCQ-20A support table holds tickets with `priority` values 1, 1, 2, 2, 3. An analyst needs the top two priority levels, keeping every ticket in those levels, plus a unique sequential rank for display. Which pair of window functions satisfies both needs?
Difficulty: Medium
MCQ-21A 400-million-row `orders` table is queried for `customer_id = 98765`, matching only 120 rows, yet the plan shows a sequential scan taking 38 seconds. An index on `customer_id` exists, but the table was bulk-loaded yesterday and has never been analysed since. What should the engineer do first?
Difficulty: Easy
MCQ-22A `users` table holds ids 1, 2 and 3 with email `a@x.com`, ids 4 and 5 with email `b@x.com`, and id 6 with a unique email. A cleanup query self-joins `users` on email with `a.id < b.id`. How many rows does it return?
Difficulty: Medium
MCQ-23A market data gateway receives 180,000 ticks per second for 40 symbols, each listed on three venues. Downstream must apply ticks in per-symbol sequence across venues with ingestion lag under 50 ms during bursts. Which partitioning design meets these constraints?
Difficulty: Medium
MCQ-24A checker on a memory-constrained gateway receives a sorted ascending array of n sensor readings and must decide whether any two distinct readings sum to a target, using O(1) extra space and linear time. Which approach fits these constraints?
Difficulty: Easy

Curated: · Written: · Reviewed: