Interview questions with answer breakdowns — Page 4 of 7
Browse page 4 of OfferCC interview question and answer breakdowns with reasoning, implementation details, follow-ups, and public sources.
Interview questions and answers 154
Coding interview: How do you maximize reward with non-overlapping jobs?
Use weighted interval scheduling to connect sorting, binary search, and dynamic programming, with precise boundaries, proof, complexity, and reconstruction.
System design interview: design a multi-tenant quota reservation service
Manage shared capacity accurately under concurrency without overselling or starving tenants.
Behavioral Interview: Why Did an Important Deadline Slip, and What Changed?
Reconstruct the full commitment, warning, escalation, and miss timeline, attribute your responsibility precisely, and prove the new estimation or risk mechanism in a later project.
Frontend Interview: Explain Event Propagation and Implement Event Delegation
Derive event delegation from the capture, target, and bubble phases; implement a dynamic list with target, closest, and ownership checks; then handle propagation stops, non-bubbling events, Shadow DOM, and listener cleanup.
Backend Interview: How Do You Solve the Database-and-Message-Broker Dual-Write Problem?
Design a transactional outbox that makes event intent durable, then reason through relay crashes, duplicate delivery, per-aggregate ordering, idempotent consumers, and failure-injection tests.
How would you choose KLL or t-digest for distributed latency percentiles?
Tests understanding of mergeable quantile sketches, error definitions, tail accuracy, and streaming aggregation.
PM Interview: Enterprise Escalation Intake Design
Design a prioritized, traceable escalation intake that protects customer trust while feeding product feedback loops.
Linux Interview: How Do Containers Isolate Processes and Resources?
Explain a Linux container as a constrained process tree: namespaces shape what it can see, cgroup v2 controls what it can consume, and layered controls reduce shared-kernel risk.
How do you implement a Count-Min Sketch for streaming frequency estimates?
Use a two-dimensional counter array and independent hashes to estimate key frequencies in fixed memory, including error bounds, merges, and reset limits.
System design interview: Design a distributed build cache for remote compilation
Design a content-addressed build cache that keeps hits correct, isolates tenants, and remains useful when remote execution or storage fails.
Behavioral Interview: Tell Me About a Time You Worked With Someone With a Different Work Style
Use STAR to turn a work-style difference into observable behaviors, build a shared interface for communication, decisions, and handoffs, and verify the adjustment with delivery and collaboration evidence.
Frontend Interview: How Do You Choose Between Cookies, localStorage, sessionStorage, and IndexedDB?
Choose browser storage by reader, lifetime, data model, trust boundary, and source of truth, then handle authentication, offline sync, multiple tabs, quotas, and cleanup.
Backend interview: How would you design a batch API with partial failures?
Model atomic batches, partial success, idempotent retries, and asynchronous progress separately so clients can identify every result without repeating side effects.
Data Interview: How do you diagnose a PostgreSQL generic plan for a parameterized query?
Explain custom versus generic plans and use EXPLAIN (GENERIC_PLAN) to diagnose regressions caused by skewed parameters.
Product manager interview: how would you use HEART and GSM to choose success metrics?
Use HEART to choose relevant user-experience dimensions and Goals-Signals-Metrics to turn a product goal into auditable measures, guardrails, and rollout rules.
JVM Interview: How Do You Diagnose and Fix Long Garbage-Collection Pauses?
Use timelines, GC logs, and JFR to separate allocation pressure, live-set growth, humongous objects, and non-GC stalls, then fix G1 latency spikes with reversible experiments.
Coding Interview: Implement a Time-Versioned Key-Value Store
Implement set/get with per-key version histories and upper-bound binary search, covering out-of-order timestamps, ties, boundaries, and memory trade-offs.
System design interview: How would you design an SLO burn-rate and error-budget policy service?
Design explainable SLO calculations, fast and slow burn-rate windows, change gates, data correction, and policy exceptions.
Unpopular but Necessary Decision: STAR Guide
STAR guide: name real constraints, compare options, hear dissent, own short-term resistance, and prove the call with results and follow-up.
Frontend Interview: How Do You Choose Between Web Worker, SharedWorker, and Service Worker?
Use large-file parsing, one cross-tab connection, and offline retry requirements to choose among Dedicated Worker, SharedWorker, and Service Worker, including lifecycle, messaging, persistence, fallbacks, and tests.
Backend interview: design Kubernetes graceful shutdown and connection draining
Design a verifiable release and node-maintenance flow across termination signals, readiness, preStop, draining, and deadlines.
How do BigQuery NOT ENFORCED keys affect join optimization?
Explain why BigQuery primary and foreign keys do not validate writes, when an optimizer may eliminate a join, and how to guard against silent wrong results.
Product interview: Should a multi-tenant SaaS launch fair queues?
Decide whether fair queues deserve productization using customer pain, service metrics, cost, migration, and a controlled rollout.
How Does TLS Certificate Validation Work, and How Do You Debug Failures?
Separate certificate path building, path validation, service-identity matching, and private-key proof, then diagnose why browsers and service clients disagree.