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.
-
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.
-
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…
-
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.
-
How do you serialize/deserialize a binary tree?
Preorder with null markers or BFS level order; parse tokens back into nodes.
-
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.
-
How do you topologically sort a graph?
Kahn's BFS with indegrees or DFS post-order.
-
How do you earn trust with a cross-functional partner?
Share commitments kept, transparent risks, shared docs, and feedback loops that improved collaboration.
-
How do you design for multi-region?
Discuss active-active vs active-passive, data replication lag, routing, conflict resolution, and RPO/RTO.
-
How do you observe a production service?
Metrics, logs, traces; SLIs/SLOs; alerting on symptoms; dashboards; and incident runbooks.
-
How do you prioritize a backlog under pressure?
Impact vs effort, risk, dependencies, and customer urgency.
-
How would you A/B test a ranking change?
Define metric, randomize users, guardrails, statistical significance, and rollback plan for regressions.
-
How do you secure secrets in cloud apps?
Use managed secret stores, short-lived credentials, no secrets in git, rotate regularly, least privilege IAM.
-
How would you estimate storage for a messaging app?
Clarify retention, message size, attachments, compression, replication factor; multiply DAU × messages × size × replicas.
-
What metrics define a healthy API?
Latency percentiles (p50/p95/p99), error rate, saturation, and availability SLOs tied to user journeys.
-
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.
-
How would you migrate a monolith to services without downtime?
Strangler fig pattern, dual writes/reads, feature flags, contract tests, and incremental ownership.
-
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.
-
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.
-
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.
-
How do you approach object-oriented design for an elevator system?
Model elevators, controllers, requests, scheduling strategy, and concurrency; discuss peak traffic policies.