
Real Interview Questions for the Software Engineer at Allegro
NewPractice MCQs
Answers count toward the Software Engineer and overall leaderboards; your latest answer to each question is the one that counts.
MCQ-1A candidate with three years building checkout and seller tools for Polish SMEs is interviewing for an Allegro Software Engineer role focused on marketplace seller experience. Which motivation shows genuine fit for Allegro's mission?
Answer to see the discussion.
MCQ-2A product team tests Redis caching for product pages. The canary cuts p95 latency from 420 ms to 180 ms and DB CPU from 78% to 41%, but 0.4% of requests show stale prices because entries live 10 minutes. Which decision does the data support?
Answer to see the discussion.
MCQ-3A software engineer fixing a checkout timeout notices the order-status query scans a large table on every request, yet no ticket covers it and the service owner is on leave. A release freeze starts in two days, and the fix is a small indexed query change. What is the best proactive action?
Answer to see the discussion.
MCQ-4A seller team sets a goal to raise activation, defined as a seller listing a first item within seven days of signup. Baseline is 42% over the last month, target is 55% by end of quarter, and returns must not rise. Which measurement definition should they adopt?
Answer to see the discussion.
MCQ-5A worker thread builds a `Config`, sets its plain `int limit`, then sets a plain static `boolean ready` to true. A reader thread polls `ready` without `volatile` or synchronization while G1 periodically traces from roots to decide reachability. What can the reader observe?
Answer to see the discussion.
MCQ-6A Java service submits one million increment tasks to an 8-thread `ExecutorService`, each doing `counter++` on a shared `long`, and the final total is consistently below one million. Pool threads must never block on each other, extra memory must stay constant, and any task may run on any pool thread. Which fix guarantees the exact total?
Answer to see the discussion.
MCQ-7A checkout caller has a 1200 ms end-to-end budget and calls a pricing service over HTTP. That service's p95 rose from 180 ms to 850 ms, and retries currently have no timeout or backoff. Which timeout and retry setting keeps the caller within budget without amplifying load?
Answer to see the discussion.
MCQ-8A `DiscountService.apply(total, percent)` returns `total - total * percent / 100` with no validation, and a review cart with total 100 and percent 150 returned -50, which finance flagged as a negative charge. Which test should block the merge?
Answer to see the discussion.
MCQ-9A marketplace has 80,000 sellers polling `GET /seller/orders/count` every 3 seconds, and each request runs `COUNT(*)` on a 400M-row orders table, pushing DB CPU to 95% at peak. Counts must be fresh within 1 second and a seller must never see another seller's total. Which design meets both constraints?
Answer to see the discussion.
MCQ-10A product-page chat stores each buyer message, then acknowledges the client. A buyer on a flaky mobile connection retries after a timeout on a new connection, and the seller receives the same text twice because the first send had already been stored, although the buyer also sends identical short texts as separate messages. Which mechanism prevents the duplicate in this retry path?
Answer to see the discussion.
MCQ-11A seller publishes an offer on Allegro and expects buyers to find it via search within about a minute, while publication must not wait for search indexing. The catalogue has millions of offers and search traffic is far higher than publication traffic. Which path should the team build?
Answer to see the discussion.
MCQ-12A buyer messages a seller about delivery for order `A-1042`, then reopens the same thread after delivery to dispute a missing item. The seller has many orders under the same offer, and support must retrieve only this shipment's messages. Which conversation scope should the design use?
Answer to see the discussion.
MCQ-13A checkout service receives `POST /payments` with `Idempotency-Key: pay-8841` for order `A-1042`. The gateway accepts no idempotency key, its status lookup lags charges by minutes, Redis is an evicting cache, and the client sends two concurrent retries after the first times out post-charge. What server behavior ensures one charge?
Answer to see the discussion.
MCQ-14A marketplace promises a delivery date at checkout from a carrier estimate. After purchase but before dispatch, the carrier reports a hub delay that moves arrival three days later, and buyers can cancel free until dispatch. What should the delivery-date service do with the promised date?
Answer to see the discussion.
Curated: · Written: · Reviewed: