Interview questions with answer breakdowns — Page 5 of 7

Browse page 5 of OfferCC interview question and answer breakdowns with reasoning, implementation details, follow-ups, and public sources.

Interview questions and answers 154

CodingHard

Coding Interview: Implement a Hashed Timing Wheel Timer

Manage many approximate timers with a timing wheel while handling cancellation, rotations, long delays, concurrency, and clock precision.

Open the question and answer
System designHard

System design interview: How would you design a Kubernetes audit policy and reliable log pipeline?

Use Kubernetes audit policy ordering, levels, stages, and webhook backends to design low-noise, forensically useful audit logs.

Open the question and answer
BehavioralMedium

Behavioral Interview: Tell me about a time you handled an ethical dilemma

Tests how a candidate identifies ethical red lines, protects affected people, escalates decisions, and preserves facts and accountability under pressure.

Open the question and answer
FrontendHard

Frontend Interview: How Does the Back/Forward Cache Work and How Do You Debug Misses?

Distinguish bfcache from HTTP and router caches, make page lifecycle code restore-safe, and diagnose misses with browser tests and field evidence.

Open the question and answer
BackendHard

How do you design a transactional outbox for database and message consistency?

Use a transactional outbox to remove the dual-write gap, then design a reliable relay, idempotent consumers, ordering, and backlog handling.

Open the question and answer
DataHard

Data engineering interview: how do you design robust external hash aggregation when intermediates exceed memory?

Derive an external hash-aggregation design from blocking operators, memory budgets, and spill paths, then compare it with sort aggregation and runtime algorithm switches.

Open the question and answer
ProductMedium

Product Manager Interview: How Would You Design Step-Up Authentication for Sensitive Actions?

Make an explainable product decision across security benefit, user friction, recovery paths, and observable outcomes.

Open the question and answer
GeneralHard

Linux Interview: Why Does RSS Stay High After Memory Is Freed?

Separate live allocations from allocator-retained pages and other mappings, then use procfs, allocator statistics, reuse, and trim experiments to distinguish a leak from fragmentation without trading memory for tail latency.

Open the question and answer
CodingHard

How would you implement an LRU-K cache?

Implement a concurrent, bounded LRU-K cache with explainable eviction order, then compare it with LRU approximations and database buffer policies.

Open the question and answer
System designHard

System Design Interview: How Would You Design Multi-Region Profile Writes and Conflict Merging?

Design a usable, explainable profile service with regional routing, field-level versions, conflict policy, audit, and recovery.

Open the question and answer
BehavioralMedium

Behavioral interview: How did you recover after a deadline was missed?

Focus on containment after the miss: replan the critical path, present scope and date options, keep stakeholders updated, and reach an accepted recovery state.

Open the question and answer
FrontendHard

Frontend Interview: How Do You Secure Cross-Origin iframe Communication with postMessage?

Design a cross-origin iframe messaging protocol for a payment widget, covering targetOrigin, sender verification, message contracts, handshakes, replay, navigation races, and security testing.

Open the question and answer
BackendMedium

Backend interview: Design HTTP Range downloads with safe resume

Derive concurrency, integrity, and cache behavior for large-file downloads from Range, 206, Content-Range, and If-Range.

Open the question and answer
GeneralHard

CLOCK_MONOTONIC vs CLOCK_REALTIME (Linux)

Pick CLOCK_MONOTONIC for timeouts, CLOCK_BOOTTIME across suspend, CLOCK_REALTIME for calendar jobs—and avoid mixing them.

Open the question and answer
CodingHard

How would you implement a treap with split and merge?

Derive a treap from BST and heap invariants, covering rotations by composition, duplicate keys, subtree metadata, and expected complexity.

Open the question and answer
FrontendHard

Frontend Interview: How Do You Build an Accessible Drag-and-Drop Sortable List?

Design a sortable list that keeps pointer dragging, click or tap controls, keyboard operation, screen-reader announcements, focus, cancellation, and persisted order consistent through one state model.

Open the question and answer
BackendHard

How would you use Kubernetes ValidatingAdmissionPolicy safely?

A backend interview guide to Kubernetes CEL admission policies, bindings, failure modes, exemptions, and progressive rollout.

Open the question and answer
GeneralMedium

Linux Interview: Hard Links vs Symbolic Links

Explain hard links and symbolic links by tracing directory entries, inodes, link counts, renames, unlinks, and open file descriptors, then choose the safe mechanism for snapshots and release pointers.

Open the question and answer
CodingMedium

Coding interview: implement a burst-tolerant token-bucket rate limiter

Implement a token-bucket limiter with lazy refill, monotonic time, atomic concurrency, and property-based capacity tests.

Open the question and answer
FrontendHard

Frontend Interview: How Do You Implement Optimistic UI Safely?

Design optimistic UI that survives overlapping mutations, out-of-order responses, failures, conflicts, and refetches by separating authoritative state from pending operations and choosing an explicit ordering policy.

Open the question and answer
BackendHard

Backend Interview: How Do You Propagate gRPC Deadlines and Cancellation?

Use end-to-end deadlines, cancellation propagation, and bounded retries to stop nested RPCs from exhausting resources while handling streams and unknown side effects.

Open the question and answer
GeneralHard

fsync + rename: Crash-Safe File Updates in Linux

Sibling temp → fsync → rename → parent-dir fsync: the Linux crash-safe replace protocol, and how atomic visibility differs from crash durability.

Open the question and answer
CodingHard

C++ interview: Implement cooperative cancellation with std::jthread and stop_token

Implement an interruptible C++20 worker with stop requests, cancellable waits, cleanup, exceptions, and automatic joining.

Open the question and answer
FrontendMedium

Frontend Interview: How Do You Implement Debounce and Throttle?

Implement debounce and throttle from an explicit timing contract, including leading and trailing calls, maxWait, cancellation, flushing, context preservation, and deterministic timeline tests.

Open the question and answer