AWS Certified Developer - Associate (DVA-C03) free question 8 / 10 · Domain 3: Testing and Deployment
A team deploys an Amazon ECS service with a blue/green deployment. Automated tests must run against the new service revision with test traffic before production traffic moves to it, and an engineer must give a manual approval before the deployment goes on. What should the team use?
- Bake time to keep the new revision out of production during the tests and the approval
- A rolling update with a high minimumHealthyPercent to keep the old tasks in service during the tests
- A deployment circuit breaker that pauses the deployment until the engineer approves it in the console
- Lifecycle hooks: a Lambda hook for the automated tests and a pause hook that waits for ContinueServiceDeployment
Show the answer and explanation
Answer: D
Why this is correct
An Amazon ECS blue/green deployment runs the blue revision, which is in production, next to the green revision, which is new, and lets the team validate the green revision with test traffic before production traffic is directed to it. Lifecycle hooks attach behavior to lifecycle stages. Lambda hooks run Lambda functions that you define, which suits automated tests, and pause hooks stop the deployment until you call ContinueServiceDeployment, which suits a manual approval. Bake time begins only after the production traffic has shifted, and the blue revision is kept running until it expires, which makes a rollback easy.
Why the other options are wrong
"Bake time to keep the new revision out of production during the tests and the approval" … Bake time is the period in which the blue and green revisions run together after the production traffic has shifted. It does not hold traffic back before the shift.
"A rolling update with a high minimumHealthyPercent to keep the old tasks in service during the tests" … A rolling update replaces tasks in place and has no test-traffic stage or approval step. A blue/green deployment is the type that validates the new revision first.
"A deployment circuit breaker that pauses the deployment until the engineer approves it in the console" … The circuit breaker detects deployment failures. Pausing for an approval is the job of a pause hook, which waits for ContinueServiceDeployment.
Key points
ECS blue/green: Lambda hooks run custom code, pause hooks wait for ContinueServiceDeployment; bake time starts after the traffic shift.