Skip to content
Tech Interview Prep

Real Interview Questions for the Data Engineer at Allegro

New

Practice MCQs

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

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

MCQ-1A buyer sends three messages in quick succession from a phone on an Allegro product page while the seller is offline for an hour, and messages pass through two gateways. On reconnect the seller sees them reversed and one duplicated. Which stored field gives the chat log its send order for offline replay?
Difficulty: Hard
MCQ-2A seller publishes an offer at 10:00:00, the offer service commits it immediately, and the search index receives it through CDC with a typical 45-second lag. A buyer searches at 10:00:10 and does not see the offer, while a direct offer lookup succeeds. What explains the missing search result?
Difficulty: Easy
MCQ-3A checkout client sends `POST /payments` with an idempotency key, times out after the gateway charges the card but before the response arrives, and retries with the same key and payload. Which design ensures exactly one charge for that retry?
Difficulty: Medium
MCQ-4A checkout service promises delivery by Friday using warehouse dispatch and carrier scans. A duplicate pickup scan arrives, then a depot departure stamped an hour earlier arrives after the arrival scan. Which event handling keeps the promised date accurate?
Difficulty: Medium
MCQ-5A marketplace peaks at 40,000 order events per minute across 200,000 sellers, and each seller dashboard refreshes every five seconds. Sellers must see counts within ten seconds, and a single seller's traffic spike must not slow others. Which design meets these constraints?
Difficulty: Medium
MCQ-6A Java `ExecutorService` with four threads runs four tasks that each execute `counter++` 25000 times on a shared `long`, while other tasks read the current total during the run and parallelism must be kept. The final total is below 100000. Which change to the pool setup fixes the count?
Difficulty: Medium
MCQ-7A Java 21 service using G1 has a producer thread fill a `Batch`, publish it through plain static fields `current` and `ready`, and replace it with a new `Batch` whose predecessor forms a reference cycle. The consumer sometimes reads `ready` as true but sees the old `Batch`, and that old `Batch` remains in the heap. What explains both the stale read and the retention?
Difficulty: Hard
MCQ-8A checkout caller has a 900ms end-to-end budget and calls inventory over HTTP; healthy p50 is 200ms but p99 has risen to 2s, with three immediate retries configured. Which timeout, retry, and circuit-breaker setting keeps checkout within budget while limiting load on the slow downstream?
Difficulty: Hard
MCQ-9A pull request adds `applyDiscount(cart, percent)` to a shopping cart service, where `percent` comes from a campaign config that once shipped at 150. The method mutates the cart total in place and has no tests for invalid percents, rounding, or empty carts. Which test should the reviewer require first?
Difficulty: Medium
MCQ-10A nightly Allegro orders pipeline takes 47 minutes, with 38 minutes spent shuffling 2.1 TB by `seller_id` while the downstream join needs `order_date`. A trial repartitioning by `order_date` finishes in 19 minutes with the same row counts. Which change should the team ship?
Difficulty: Easy
MCQ-11A nightly returns pipeline at Allegro finishes in six hours but silently drops late-arriving rows, and nobody has filed a ticket about the missing returns. You notice the pattern while fixing an unrelated bug and have two days of slack before the next sprint, while the on-call rotation monitors pagers but ignores emailed reports. What unrequested improvement should you deliver first?
Difficulty: Medium
MCQ-12A data engineering team wants to cut its nightly order pipeline so analysts get fresh data before their 7 a.m. planning run. The pipeline itself takes 90 minutes, but downstream publishing and validation add variable delays, and the analytics team was not involved when the target was drafted. Which goal definition best delivers the shared outcome?
Difficulty: Medium

Curated: · Written: · Reviewed: