Top 100 Product Engineer Practice MCQs
Every question on one page: open one, choose an answer, and see why at once. Signed in, your latest answer to each question counts, and you can answer again after 24 hours.
Curated: · Written: · Reviewed: —
This collection is currently unranked practice while editorial review is pending.
MCQ-1A store tests a redesigned checkout against the current one. The stated goal is to increase revenue per visitor, with traffic split evenly and orders tracked for two weeks. Which metric should be the primary metric for the experiment decision?
Answer to see the discussion.
MCQ-2An experiment reports p=0.04 for its primary metric, but its guardrail metric has declined. According to the guardrail rule, what happens to the variant?
Answer to see the discussion.
MCQ-3A checkout test has a 1% baseline conversion and must detect a 10% relative lift with 80% power at 5% significance. Traffic is steady and the team can run until the required sample is reached. How many users are needed in each arm?
Answer to see the discussion.
MCQ-4A checkout test is planned for fourteen days at a 5% significance level, but the team checks results daily and stops on day three when the variant looks ahead. What does this early stopping do to the chance of declaring a win when there is no real effect?
Answer to see the discussion.
MCQ-5A feature test runs two weeks. Treatment lift is 18% on a user's first exposure day and 4% by their third, but calendar week two lift rises because a campaign brings many first-time users. Control is flat throughout. Which analysis best detects the novelty effect here?
Answer to see the discussion.
MCQ-6An A/B test assigns users 50/50 overall, but a post-randomization check finds mobile users split 70/30 across arms while desktop users split 30/70. What does this segment imbalance most directly indicate?
Answer to see the discussion.
MCQ-7A subscription app gets 1.2M monthly signups, 18% convert to paid, and 62% of paid subscribers cancel within 90 days, while revenue rises after a recent price increase. The team must pick one north star metric to guide roadmap decisions for the next two quarters. Which metric should the team adopt as the north star?
Answer to see the discussion.
MCQ-8A store records 100,000 cart pageviews but only 18,000 payment pageviews last week, while its gateway logs 46,000 payment attempts. Payment opens as a modal on the cart page with no page load. Where should the team instrument to localize the cart-to-payment drop-off?
Answer to see the discussion.
MCQ-9A React dashboard sends `report_viewed` in a `useEffect` depending on a `filters` object from a shared parent you cannot change. The parent recreates that object on every render while its `id` stays constant during a visit, so the effect refires and duplicates events. Which dependency change sends once per report visit?
Answer to see the discussion.
MCQ-10A product team with only two engineers available this quarter ranks backlog features with RICE scoring to decide what to build first. Which RICE element accounts for that limited engineering capacity in the score?
Answer to see the discussion.
MCQ-11A saved-card one-tap story serves returning mobile shoppers, where slow outliers cause abandonment. Analytics fires `checkout_tap` on tap, while gateway confirmation arrives later, test accounts generate taps, and traffic varies across the week. Which acceptance criterion proves real target shoppers complete payment reliably?
Answer to see the discussion.
MCQ-12A clinic chain will not export patient data or manually enter appointments, and will not pay until reminders reduce no-shows on its real calendar bookings. The team has six weeks to test whether clinics will pay for that reduction. Which MVP scope should it build?
Answer to see the discussion.
MCQ-13A merchant abandoned checkout on their first attempt and has never tried any fix. The engineer has ten minutes to learn what made that attempt difficult before proposing a redesign. What should the engineer ask?
Answer to see the discussion.
MCQ-14Two stakeholders disagree on launch scope for a checkout feature. Support tickets and session recordings show most users abandon at address entry, while the requested extra step has no usage evidence. Which scope decision should the team make?
Answer to see the discussion.
MCQ-15A two-engineer team has 5 weeks until a fixed partner launch. Building saved-card checkout on the legacy order service takes 4 weeks, while a 1-week refactor first cuts that build to 3 weeks and removes 4 days of manual migration work from each of the next three releases. What should the team do first?
Answer to see the discussion.
MCQ-16A store must launch product recommendations in six weeks. A vendor integrates in one week for $800 per month plus $0.015 per recommendation served, with a projected four million served monthly, and cannot ingest the store's proprietary margin data. Building in-house takes five weeks and $36,000 plus $1,000 per month to maintain. Which build-versus-buy decision fits this situation?
Answer to see the discussion.
MCQ-17A team ships an onboarding checklist to new signups. Twelve support calls praise it, yet 30-day activation for the exposed cohort matches control, and checklist completers were mostly users who already activated before seeing it. What should the team conclude about feature success?
Answer to see the discussion.
MCQ-18A stakeholder wants a full custom reporting suite, but session data shows most users only need a weekly summary and almost none use custom filters. The team can ship one scope this quarter. Which scope should the engineer propose?
Answer to see the discussion.
MCQ-19A payments launch is fixed in five weeks with two engineers, and the partner contract penalises a missed date. The backlog holds an EU consent audit log the regulator requires before processing payments, the core card capture flow, and a custom revenue dashboard sales requested, with a CSV export already available. Which MoSCoW classification fits this release?
Answer to see the discussion.
MCQ-20A retail ops team checks a stock dashboard every few minutes during a three-day flash sale to pause ads when stock falls below 100, and tolerates counts up to one minute old. Live queries add 900 ms at p95, while a 30-second cache cuts that to 120 ms, and the team distrusted a prior dashboard when unexplained counts mismatched the warehouse. What should the product engineer recommend?
Answer to see the discussion.
MCQ-21A dashboard provides a clock context updated every second. `Chart` consumes that context only for a small header timestamp, while its data comes from a separate stable context, yet the whole chart rerenders each tick. Which change stops the chart rerendering?
Answer to see the discussion.
MCQ-22A React component creates its own WebSocket inside `useEffect` with an empty dependency array and subscribes to `orders`. The socket is used nowhere else, and after unmount it stays open while handlers accumulate across remounts. What should the effect return to fix the leak?
Answer to see the discussion.
MCQ-23A React dashboard mounts two instances at once, each holding its own local `userId` state, and polls every 5 seconds from a mount-time `setInterval` whose ticks must stay anchored to mount. After an account switch the callback keeps requesting the first user's orders. What change makes each tick use that instance's current `userId` without resetting its cadence?
Answer to see the discussion.
MCQ-24A React todo app creates tasks offline with a local `id` at creation and assigns a server `id` only after sync. Titles may duplicate, batch imports can share a creation timestamp, and rows are reordered often with local checkbox state. Which key keeps checkbox state with its task after reordering?
Answer to see the discussion.
MCQ-25A Zustand store holds `cartItems` and `sidebarOpen`. `ProductGrid` and `CartBadge` read only `cartItems`, while `Sidebar` and the header toggle read `sidebarOpen`, and toggling the sidebar rerenders the grid. Which subscription change limits rerenders to components needing the changed slice?
Answer to see the discussion.
MCQ-26A React component receives `items` and `filter` as props and stores `visibleItems` in state, updating it in a `useEffect` that filters `items`. What change removes that derived state from the effect?
Answer to see the discussion.
MCQ-27A React controlled input live-formats phone digits with dashes after digits three and six, and users backspace over an inserted dash or replace a selection spanning a dash. The caret jumps because formatting changes character indices before it. What caret restoration keeps it on the same digit in all these edits?
Answer to see the discussion.
MCQ-28A dashboard fetches `GET /account` typed as `{ user: { profile: { email: string } | null } | null }` with `strictNullChecks` enabled. A null profile means onboarding is unfinished, so those accounts must see the onboarding prompt instead of the dashboard, and email is required before billing. Which access pattern should the component use?
Answer to see the discussion.
MCQ-29A TypeScript dashboard models fetching as `idle | loading | success | error` and renders it with a switch that has no default branch. Adding an `empty` variant compiles cleanly but renders a blank screen, found only in QA, and the team wants adding a variant to fail the build until it is handled. Which change meets that requirement?
Answer to see the discussion.
MCQ-30A reusable `List` component must accept `string[]` in one place and `number[]` in another, with its `items` and `render` props inferred at each call site. Which declaration gives that inference?
Answer to see the discussion.
MCQ-31A click handler runs `setTimeout(() => log('A'), 0); Promise.resolve().then(() => { log('B'); setTimeout(() => log('C'), 0); Promise.resolve().then(() => log('D')); }); Promise.resolve().then(() => log('E'));` and returns. What order do the logs appear in?
Answer to see the discussion.
MCQ-32A product search input fires an expensive catalog API on each keystroke, and users type full product names before pausing. Partial-query results flicker and waste calls, while the final query needs results soon after typing stops. Which rate-limiting approach fits this input?
Answer to see the discussion.
MCQ-33A setup registers three handlers with `for (var i = 0; i < 3; i++) { handlers.push(() => i); }`, then logs `i` after the loop, and every handler later returns `3` instead of its own index. The target is an older ES5 runtime without `let`, and that after-loop log must still print `3`. Which change makes each handler return its own index while keeping the after-loop log working?
Answer to see the discussion.
MCQ-34A dashboard needs cards arranged in rows and columns, with a header spanning multiple columns and cards aligned on both axes. Which layout approach should the team choose for this dashboard?
Answer to see the discussion.
MCQ-35A dashboard uses `grid-template-columns: 260px 1fr`, and the main column holds a chart canvas with an intrinsic width of 720px. At a 390px viewport the page scrolls horizontally even though the main column is `1fr`, while desktop widths look fine. Which change removes the overflow while letting the main column shrink?
Answer to see the discussion.
MCQ-36A mobile product page slides a filter panel in from the right edge by updating its `width` each frame, and the profiler shows repeated layout thrashing. The panel must end fully visible at its natural width without distortion. Which animation change removes reflow while preserving the movement?
Answer to see the discussion.
MCQ-37A retail page gets most traffic on phones, where its LCP element is a hero image selected by `<picture>` under 768px. The team adds an unconditional preload for the desktop hero file, which is far larger than the mobile file. Which preload change improves mobile LCP?
Answer to see the discussion.
MCQ-38A news article page loads a third-party embed midway down, and when it arrives the paragraphs below jump down, hurting CLS. What change reserves space so surrounding content does not shift?
Answer to see the discussion.
MCQ-39A mobile storefront's landing page at `/` loads an 850 KB initial bundle on slow 3G, including a 380 KB chart library used only by `/checkout` and code for `/admin`, used by under 1% of visitors. Most landing visitors who convert reach checkout within a minute. Which route-level splitting plan best cuts initial load without slowing checkout?
Answer to see the discussion.
MCQ-40A settings modal contains three focusable controls and opens with focus on the first. A keyboard user tabs from the last control and focus escapes to the page behind the modal, breaking the trap. What should the Tab key handler do for that last control?
Answer to see the discussion.
MCQ-41A storefront client always knows the signed-in `userId` and opens that user's orders screen to list orders, fetch one order, and cancel it. Orders belong to a user and never exist without one, and an `orderId` is unique only within its user. Which naming should the client use?
Answer to see the discussion.
MCQ-42A product feed shows a stable list of 50,000 items while new items are inserted and others deleted during scrolling. Item ids are unique and never change, but many items share the same creation timestamp. Which pagination approach avoids duplicates and skipped items?
Answer to see the discussion.
MCQ-43A client sends `PUT /orders/42` with a valid body containing version 3, while the stored order is at version 5. No `If-Match` header was sent, the order is not locked, and all field validation passes. Which status should the API return for this update attempt?
Answer to see the discussion.
MCQ-44Mobile clients parse `total_cents` as an integer, reject unknown fields, and update slowly through app stores, while a CDN caches responses by URL. The backend now needs fractional cents, so the integer loses precision and a new web client needs `total` as a decimal string. Which versioning approach ships the new shape without breaking existing clients?
Answer to see the discussion.
MCQ-45A checkout client POSTs a non-idempotent payment with an idempotency key and receives `429` with `Retry-After: 30`. The API permits exactly one retry using that same key after the wait, and no other requests are queued. What should the client do?
Answer to see the discussion.
MCQ-46A payments webhook uses `express.json()` before its handler, and the provider signs `timestamp.rawBody` with HMAC-SHA256, sending both values in headers with a five-minute tolerance. The handler recomputes the HMAC from the parsed object and never checks the timestamp, so valid events fail and captured old events replay. What should the handler verify the signature over?
Answer to see the discussion.
MCQ-47A store's mobile card needs only name and price, while its admin screens need nested supplier, inventory and pricing fields that vary by screen and change weekly. The mobile and admin teams deploy independently and cannot coordinate releases, and the single REST endpoint returns the full product object. Which API approach fits these clients best?
Answer to see the discussion.
MCQ-48A signup form blocks emails without `@` and ages under 18 in the browser, but `POST /signup` only checks that fields are present. A script posts `age: 12` and `email: not-an-email` directly and creates accounts. What should the API do with that request?
Answer to see the discussion.
MCQ-49A MySQL 8 report needs one row per `order_item`, each carrying its order's latest shipment status by `shipped_at` with ties broken by higher shipment `id`, `NULL` when no shipment exists, and an accurate per-order item total. Joining `order_items` and `shipments` directly multiplies items. Which query change meets all three?
Answer to see the discussion.
MCQ-50An `orders` table has completed amounts A:6000,6000 B:7000 C:4000,4000 D:12000 E:5000,5000, with pending amounts A:9000 B:8000 C:1000 D:500 E:0. A dashboard groups by category, counts only completed rows, and must show categories whose completed total exceeds 10000. Which categories should it show?
Answer to see the discussion.
MCQ-51A store's append-only `orders` table carries `customer_id` plus copied `customer_email` for invoices, and rows cannot be updated after insertion. Email changes originate in the profile service, which updates `customers`, and invoices must show the current email immediately. Which schema change fixes the disagreement?
Answer to see the discussion.
MCQ-52An `orders` table joins to `customers` on `orders.customer_id`, and that join is slow on large tables. Which index should the team add to speed it up?
Answer to see the discussion.
MCQ-53A Postgres `orders` table holds 50 million rows and its hot query filters `customer_id = ?` and `status = 'shipped'`, applies `total_cents > ?`, then sorts by `placed_at DESC` with `LIMIT 20`. Which composite B-tree index best serves that query without a separate sort?
Answer to see the discussion.
MCQ-54A Postgres inventory service runs checkout updates at READ COMMITTED. Two concurrent checkouts read `stock = 10`, each writes `stock = 9`, and one sale is lost because the application reads, computes, then writes without locking. Checkouts must not abort under concurrent contention, though brief blocking is acceptable. Which change prevents this lost update?
Answer to see the discussion.
MCQ-55An orders endpoint returns 50 orders, each with its line items for the page. The serializer currently queries items once per order, and orders are also joined to a large audit log in the same query. Which loading strategy removes per-order queries without multiplying order rows?
Answer to see the discussion.
MCQ-56A service must rename `users.name` to `display_name` with no downtime while old and new code run together. What is the expand step for this migration?
Answer to see the discussion.
MCQ-57A storefront inventory API serves 5000 reads per second and 200 writes per second for stock counts. After a purchase decrements stock to zero, product pages must never show it as available, even briefly, because overselling triggers refunds, and asynchronous cache invalidation has lagged for seconds. Which write strategy should the team adopt for stock updates?
Answer to see the discussion.
MCQ-58A product API caches a hot item for 60 seconds, and 800 concurrent requests arrive just after expiry, each triggering a database fetch. Many other keys were also written together and expire together, and prices must never be served older than 66 seconds. Which cache change prevents the stampede?
Answer to see the discussion.
MCQ-59A profile update writes to the primary, then the app redirects to a profile page reading from a replica lagging about 800 ms, so users see their old name. The app cannot query replica lag, and the fix must cover only the writer's next page load without sending all reads to the primary. Which routing change guarantees the writer sees the new name?
Answer to see the discussion.
MCQ-60A sharded orders table must spread writes evenly across shards to avoid a hotspot. Which shard key has high cardinality and distributes uniformly?
Answer to see the discussion.
MCQ-61A stateless checkout API behind a load balancer scales from four to eight instances at peak, but rolling deploys terminate instances instantly and drop in-flight requests even though health checks pass. Checkout requests are not idempotent, so a retry could charge a customer twice. What change preserves in-flight requests during termination?
Answer to see the discussion.
MCQ-62A load balancer checks three instances every 10 seconds, removing an instance after 3 consecutive failures and restoring it after 2 consecutive successes. One instance fails checks at 0, 10, and 20 seconds, then passes at 30 and 40 seconds. When does it leave and rejoin rotation?
Answer to see the discussion.
MCQ-63A retailer serves carts from two regions that lose connectivity to each other for hours each week. Shoppers must keep adding items during those outages, duplicate adds can be merged safely, and the exact total is verified later at payment. Which consistency model should the cart use across regions?
Answer to see the discussion.
MCQ-64A checkout API uses a 20-connection pool. At peak, all 20 connections are active, none are idle, and 180 threads wait for a connection while database CPU stays at 18% and a direct query takes 6 ms. What change best addresses the timeouts?
Answer to see the discussion.
MCQ-65A Postgres orders service is write-heavy and its primary sits at 92% CPU during peak, while reads already run on two replicas. The provider caps instances at 32 vCPU, and the team cannot shard or rewrite writes this quarter. Which scaling choice fits this situation?
Answer to see the discussion.
MCQ-66A store must update an order to paid within seconds of a payment provider confirming a charge, and the provider offers signed event callbacks. The store cannot poll the provider every second under its rate limit. Which mechanism should the store use for these updates?
Answer to see the discussion.
MCQ-67A checkout rewrite is gated by `new_checkout`, evaluated in the browser from a config fetched at page load and cached for 30 minutes. Payment errors spike after rollout, and the team flips the flag off, but sessions already loaded keep using the new flow. What placement makes the kill switch effective for those sessions?
Answer to see the discussion.
MCQ-68A payments service canaries a new checkout path to 5% of traffic. Baseline error rate is 0.4%, and after 300 canary requests the canary shows 3 errors (1.0%). The team wants an automatic rollback trigger that will not fire on small-sample noise. What threshold rule should they set?
Answer to see the discussion.
MCQ-69A store launches a new checkout whose database migration makes the old checkout unable to read new orders, so both versions cannot serve traffic concurrently. The launch must switch every shopper at a fixed time and switch back instantly if errors spike. Which deployment choice fits this launch?
Answer to see the discussion.
MCQ-70A guest checkout crosses the frontend, API, and payment service, and each service logs a trace ID for the request, its own span ID, and a session ID covering multiple checkouts. The payment provider replaces the request ID and keeps its correlation ID internal. Which search collects every log line for that one checkout?
Answer to see the discussion.
MCQ-71A checkout service targets `99.9%` monthly availability, allowing about 43 minutes of downtime per 30 days. By day 10 it has consumed 38 minutes, mostly from one deploy, and a non-urgent recommendations feature is ready to ship. What should the team do with that release?
Answer to see the discussion.
MCQ-72A profile bio is stored as plain text, rendered on the web inside a double-quoted `title` attribute, and served through a JSON API to a mobile app that displays it as plain text. Users expect typed characters such as `<` and quotes to appear literally on both clients. Which handling prevents stored XSS on the web without corrupting the stored bio?
Answer to see the discussion.
MCQ-73A product list API offers sorting through a dropdown sending display labels `price_asc`, `newest`, and `name_az` for columns `price`, `created_at`, and `name`. The developer passes the label directly into `ORDER BY ?` as a bound parameter. What change makes sorting work safely?
Answer to see the discussion.
MCQ-74A Chrome app at `https://app.example.com` calls a credentialed `PUT` to `https://192.168.1.20:8443/orders/42` with `Authorization` and `X-Idempotency-Key`. The preflight returns the specific origin, credentials, `PUT`, and both headers, yet Chrome blocks the actual request and cites private network access. Which preflight change lets the actual request proceed?
Answer to see the discussion.
MCQ-75An embedded banking widget at `app.example.com` uses a session cookie with `SameSite=None` for partner iframes, and an untrusted tenant subdomain can set cookies for the parent domain. Its JavaScript can read a per-session token from an authenticated API response, and `POST /transfer` must reject forged requests. Which CSRF defence should it use?
Answer to see the discussion.
MCQ-76A React cart has a pure `calculateDiscount` function with no DOM or network calls, and its rules change weekly. The team needs fast feedback in CI, while the existing E2E suite takes 20 minutes and runs nightly. Where should the discount-rule tests live?
Answer to see the discussion.
MCQ-77A React component test needs API responses mocked without changing component code. Which approach intercepts requests at the network level?
Answer to see the discussion.
MCQ-78A storefront frontend consumes `GET /orders` expecting `total_cents` as an integer, while the backend team deploys independently and ships daily from merge, renaming it to `total` in a pull request. Frontend CI runs only on frontend pull requests and mocks that endpoint, while the stored consumer pact is never checked in backend CI. Which change detects this drift before the backend release?
Answer to see the discussion.
MCQ-79A release drops `orders.total_cents` and replaces it with `orders.amount_cents`, with new code writing only `amount_cents`. Ten minutes after deploy, errors spike and the team must revert the application within minutes without losing orders placed since the deploy. Which rollback sequence preserves those orders?
Answer to see the discussion.
MCQ-80A load test for a checkout API reports p50 latency of 80 ms and p99 latency of 900 ms. The team asks what the p99 figure means for user experience under that load. What should the engineer conclude?
Answer to see the discussion.
MCQ-81A checkout release at 14:00 raises payment failures to 12% from a 0.4% baseline, rollback is tested, takes three minutes, and is backward compatible with no data writes to undo. Fix-forward has no identified cause and an estimated forty-five minutes, while each minute costs about $20,000 in lost sales. What should the team do?
Answer to see the discussion.
MCQ-82A launch bug let expired promo codes apply at checkout for six hours, with no discount errors logged because the codes were accepted as valid. The postmortem found no automated test for expiry, and the engineer who shipped it had followed the team's usual manual checklist. Which action item best fits a blameless postmortem?
Answer to see the discussion.
MCQ-83Orders are unchanged but reported revenue falls sharply after the Android v4.2 release. `checkout_completed` events show `revenue_cents` as null in 38% of cases, concentrated on Android v4.2 while iOS remains complete. What should the product engineer do for revenue reporting?
Answer to see the discussion.
MCQ-84A dashboard's p95 latency normally sits near 180 ms. Deploy spikes push it above 600 ms for about two minutes before it recovers, while real degradation stays above 600 ms for tens of minutes and must page within six minutes. Which sustained-breach duration should the alert use?
Answer to see the discussion.
MCQ-85A leaderboard has Ana and Ben tied at 100 points, Cara at 90 and Dan at 80. Prizes go to competition rank 3 or better, with tied players sharing a rank and the next rank skipped, while podium medals follow distinct score tiers for gold, silver and bronze. Which function pairing should the query use?
Answer to see the discussion.
MCQ-86A cohort of 1,000 users is first seen on Jan 1. Of them, 400 are active on Jan 2, 300 are active on Jan 8, and 500 are active at least once between Jan 2 and Jan 8. What is the cohort's day-7 retention?
Answer to see the discussion.
MCQ-87An experiment tests 20 metrics with equal priority and must keep the chance of any false positive across all 20 at 5%. The smallest observed p-value is 0.01, and the team will claim a win only if it passes the corrected threshold. What threshold should each metric use?
Answer to see the discussion.
MCQ-88A Bayesian experiment reports a 97% posterior probability that treatment beats control. What does that 97% figure directly mean?
Answer to see the discussion.
MCQ-89A fraud screen targets abuse present in 0.5% of accounts. Accounts positive on the screen get a second, independent test with the same 98% sensitivity and 98% specificity, and only double positives are acted on. What share of double-positive accounts are actually abusive?
Answer to see the discussion.
MCQ-90A list renders 200 rows and a loop reads each row's `offsetWidth` then immediately sets its `style.width` based on that value. The profiler shows a forced reflow on every iteration and scrolling janks. All rows need exact pixel widths before first paint, including offscreen rows, without distorting text. Which change removes the thrashing?
Answer to see the discussion.
MCQ-91A browser revalidates a cached product image by sending `If-None-Match` with the `ETag` it stored earlier, and the image has not changed since. What should the server return for that request?
Answer to see the discussion.
MCQ-92A note editor autosaves a large draft on every keystroke, and `localStorage.setItem` blocks the main thread for 120 ms. The tab can be killed at any moment, so a delayed save can lose recent edits, while starting a new large write per keystroke queues stale transactions. The draft must survive reloads on the device with no server. Which storage design fits?
Answer to see the discussion.
MCQ-93A team spent six weeks building a dashboard feature used by 0.3% of weekly users, with activation unchanged after a controlled rollout and ongoing maintenance blocking the next roadmap item. The team must decide whether to continue investing in it. What should the team do?
Answer to see the discussion.