API Testing · Senior · Question 62 of 75
What is the role of API tests in a zero-downtime deployment?
- 1Stopping traffic until the new version passes all tests
- 2Testing only the old version until the rollout finishes
- 3Checking old and new versions work side by side during rollout
Show the answer
Correct answer: Checking old and new versions work side by side during rollout
Explanation
During a rolling or blue-green deploy, both versions serve traffic and share the database. Tests cover mixed-version calls and migrations.