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 How do you find the longest substring without repeating characters?

    Sliding window with a map of last indices; expand right, shrink left on duplicates; track max length.

  2. Most asked How would you approach a coding interview if stuck for 5 minutes?

    When stuck in a coding interview, the worst thing you can do is go silent. Interviewers evaluate your problem-solving process as much as the solution — communicating your thinking, trying concrete…

  3. How do you detect a cycle in a linked list?

    Floyd's tortoise/hare: slow/fast pointers meet iff a cycle exists; reset one pointer to find cycle start.

  4. How do you serialize/deserialize a binary tree?

    Preorder with null markers or BFS level order; parse tokens back into nodes.

  5. How do you find median from a data stream?

    Two heaps: max-heap for lower half, min-heap for upper; rebalance to keep sizes close; median from tops.

  6. How do you topologically sort a graph?

    Kahn's BFS with indegrees or DFS post-order.

  7. How do you earn trust with a cross-functional partner?

    Share commitments kept, transparent risks, shared docs, and feedback loops that improved collaboration.

  8. How do you design for multi-region?

    Discuss active-active vs active-passive, data replication lag, routing, conflict resolution, and RPO/RTO.

  9. How do you observe a production service?

    Metrics, logs, traces; SLIs/SLOs; alerting on symptoms; dashboards; and incident runbooks.

  10. How do you prioritize a backlog under pressure?

    Impact vs effort, risk, dependencies, and customer urgency.

  11. How would you A/B test a ranking change?

    Define metric, randomize users, guardrails, statistical significance, and rollback plan for regressions.

  12. How do you secure secrets in cloud apps?

    Use managed secret stores, short-lived credentials, no secrets in git, rotate regularly, least privilege IAM.

  13. How would you estimate storage for a messaging app?

    Clarify retention, message size, attachments, compression, replication factor; multiply DAU × messages × size × replicas.

  14. What metrics define a healthy API?

    Latency percentiles (p50/p95/p99), error rate, saturation, and availability SLOs tied to user journeys.

  15. How do you design on-device ML inference with cloud fallback?

    Ship quantized models on device for latency/privacy; gate cloud calls on confidence, battery, or feature flags; version models; A/B evaluate quality vs cost; keep PII on device when possible.

  16. How would you migrate a monolith to services without downtime?

    Strangler fig pattern, dual writes/reads, feature flags, contract tests, and incremental ownership.

  17. How do you secure secrets in a large engineering org?

    Central secret manager, short-lived credentials, least privilege IAM, rotation, audit, and no secrets in images/repos.

  18. How would you interview-design a battery-efficient background sync?

    Batch work, respect OS power APIs, exponential backoff, delta sync, and defer on low battery/network.

  19. How do you prepare for a bar-raiser interview?

    Treat it like any high-bar loop: strong STAR stories, clear technical depth, and honest trade-offs—no special shortcuts.

  20. How do you approach object-oriented design for an elevator system?

    Model elevators, controllers, requests, scheduling strategy, and concurrency; discuss peak traffic policies.

Was this page helpful?

Report a mistake