ExercisesDistributed Systems Consensus › CAP Theorem and PACELC Discussion

CAP Theorem and PACELC Discussion

5 questions · Distributed Systems Consensus

1. An interviewer asks: 'If your system experiences a network partition, do you prioritise consistency or availability?' You answer that your database returns an error if it cannot confirm consistency rather than serving potentially stale data. What trade-off does this describe?
2. The PACELC theorem extends CAP by adding which consideration that CAP ignores?
3. A DynamoDB table is configured for eventual consistency. After a write to one region, reads from a different region may return the old value for up to 1 second. This is an example of:
4. During a design review, a senior engineer argues that 'you can never have both CA in a distributed system with network partitions.' Why is this correct?
5. A team is debating between Cassandra (AP) and CockroachDB (CP) for their global e-commerce product catalogue. Which scenario would best justify choosing the AP database?

Exercise complete!

out of 5 questions