FAANG / Big Tech interview question · Most asked
Explain CAP theorem and when you choose AP vs CP.
Summary
CAP: under partition you trade consistency vs availability.
Longer Answer
CAP: under partition you trade consistency vs availability. Choose CP for money/inventory critical paths; AP for feeds/social with reconciliation.
Key Points
- CAP: under partition you trade consistency vs availability
- Choose CP for money/inventory critical paths; AP for feeds/social with reconciliation
- Foundational distributed systems
- Use the answer to connect the concept back to a realistic production or interview scenario for 'Explain CAP theorem and when you choose AP vs CP.'
Comparison / Tradeoffs
| Aspect | Notes |
|---|---|
| Core idea | CAP: under partition you trade consistency vs availability. |
| Practical tradeoff | CAP: under partition you trade consistency vs availability. |
Explanation
Summary
Foundational distributed systems.
Longer Answer
Foundational distributed systems. Focus on the practical implications across Distributed Systems.
Key Points
- Foundational distributed systems
- Focus on the practical implications across Distributed Systems
- Relevant areas: Distributed Systems
- Use the answer to connect the concept back to a realistic production or interview scenario for 'Explain CAP theorem and when you choose AP vs CP.'
Comparison / Tradeoffs
| Aspect | Notes |
|---|---|
| Core idea | Foundational distributed systems. |
| Practical tradeoff | In an interview, relate 'Explain CAP theorem and when you choose AP vs CP.' to implementation decisions, tradeoffs, and operational impact. |
More most-asked FAANG / Big Tech questions
- Walk through time/space complexity of two-sum approaches.
- Explain BFS vs DFS and when to use each.
- Explain LRU cache design.
- What is dynamic programming? Give an interview example.
- Tell me about a time you disagreed with a technical decision.
- Tell me about a time you took ownership of a production issue.
- What happens when you type a URL in a browser?
- Explain SQL vs NoSQL trade-offs.