Interview Q&A · questions with model answers

FAANG / Big Tech Interview Questions

Part of the study plan for: Backend Engineer

Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.

  1. Most asked Walk through time/space complexity of two-sum approaches.

    Brute force O(n^2); hash map of complements O(n) time and O(n) space.

  2. Most asked Explain LRU cache design.

    Hash map + doubly linked list (or OrderedDict): O(1) get/put with eviction of least recently used key.

  3. Most asked What happens when you type a URL in a browser?

    DNS lookup, TCP/TLS handshake, HTTP request, server processing, response, rendering (HTML/CSS/JS), and caching layers.

  4. Give an example of customer obsession (Amazon LP).

    Customer obsession means making decisions that prioritize the customer's experience even when it conflicts with internal convenience, short-term cost savings, or team preferences. In an Amazon…

  5. How do indexes work and when do they hurt?

    Indexes speed lookups via B-trees/hashes but slow writes and use space.

  6. Explain consistent hashing and why it matters for caches.

    Maps keys to a ring so node add/remove remaps few keys.

  7. Explain eventual consistency with an example.

    Replicas may temporarily diverge after writes; clients may read stale data until sync.

  8. Describe merge intervals.

    Sort by start, iterate merging overlaps into a result list.

  9. Describe diving deep into a metric that looked wrong.

    Explain anomaly, investigation steps, tools, root cause, and resulting dashboard/process change.

  10. Describe a cross-team project you led.

    Scope, stakeholders, decision log, risks, delivery, and how you aligned incentives.

  11. Explain App Store review and content distribution challenges.

    Binary/asset delivery at global scale, signed packages, staged rollouts, regional compliance, review queues, and abuse.

  12. Explain how you would A/B test a ranking change safely.

    Randomized assignment, metrics guardrails, SRM checks, holdouts, gradual ramp, and kill switches.

  13. How do you detect and resolve split-brain?

    Use quorum, fencing tokens, leases, or consensus (Raft/Paxos).

  14. Explain quickselect for kth largest.

    Partition around pivot like quicksort; recurse into side containing k.

  15. Explain container orchestration basics (Kubernetes).

    Pods, deployments, services, autoscaling, and health probes.

  16. How do you handle hot keys in a cache?

    Replicate hot keys, add local caches, jitter TTLs, request coalescing, and revisit data model.

  17. Explain OAuth2 authorization code flow briefly.

    Client redirects to IdP, user consents, auth code returned, exchanged for tokens server-side—avoids exposing secrets in browser.

  18. Explain MapReduce at a high level.

    Map transforms records in parallel; shuffle groups by key; reduce aggregates.

  19. How does Netflix think about chaos engineering?

    Inject failures in production-like environments to validate resilience; improve detection and recovery continuously.

  20. Explain Apple's emphasis on craftsmanship in interviews.

    Expect deep product polish, attention to detail, and user empathy stories—not only algorithmic speed.

  21. Explain garbage collection at a high level.

    Automatic reclaim of unreachable objects; generational GC; trade pause times vs throughput.

  22. Explain bloom filters and a production use case.

    Probabilistic set membership with false positives, no false negatives (classic).

Was this page helpful?

Report a mistake