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 Explain CAP theorem and when you choose AP vs CP.
CAP: under partition you trade consistency vs availability.
-
Most asked Explain BFS vs DFS and when to use each.
BFS for shortest path in unweighted graphs/levels; DFS for connectivity, topology, and path existence with lower memory sometimes.
-
Most asked Explain SQL vs NoSQL trade-offs.
SQL: strong schema, joins, ACID.
-
Most asked Explain ACID vs BASE.
ACID: transactional guarantees.
-
Most asked Explain microservices vs monolith trade-offs.
Monolith: simpler ops early.
-
Most asked What is a load balancer L4 vs L7?
L4 routes on IP/port; L7 understands HTTP and can route by path/host and terminate TLS.
-
How do you handle bias for action vs needing more data?
Describe reversible vs irreversible decisions, two-way door thinking, and time-boxed experiments.
-
Explain HTTP vs HTTPS and TLS briefly.
HTTPS wraps HTTP in TLS for encryption/integrity/authentication via certificates; prevents passive eavesdropping and many MITM cases.
-
Compare optimistic vs pessimistic locking in concurrent edits.
Optimistic uses versions/ETags and retries on conflict; pessimistic locks rows/resources.
-
Explain optimistic vs pessimistic locking.
Optimistic: version check on write.
-
Compare REST and gRPC for internal services.
REST: human-readable, broad tooling.
-
Explain blue/green vs canary deployments.
Blue/green swaps environments; canaries ship to a small % first.
-
Explain pagination strategies (offset vs cursor).
Offset is simple but drifts under inserts; cursors/keyset are stable for infinite scroll at scale.