QA Fundamentals · Senior · Question 29 of 76

How do you test eventual consistency in a distributed system?

Show the answer

Correct answer: Poll for the expected state within a timeout, not assert at once

Explanation

Data may take time to propagate. Assertions that retry until a condition holds (with a sensible limit) are stable and fail clearly when consistency never arrives.

Further reading

Problem with a question

QA Fundamentals · Senior · question 29

Test yourself

Take the QA Fundamentals · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz