Q: 10
A company is using AWS CodePipeline to automate its release pipeline. AWS CodeDeploy is being
used in the pipeline to deploy an application to Amazon Elastic Container Service (Amazon ECS) using
the blue/green deployment model. The company wants to implement scripts to test the green
version of the application before shifting traffic. These scripts will complete in 5 minutes or less. If
errors are discovered during these tests, the application must be rolled back.
Which strategy will meet these requirements?
Options
Discussion
Option C The AfterAllowTestTraffic hook in CodeDeploy runs tests after test traffic but before full production traffic, so errors found here can trigger rollback. Pretty sure that fits what the question's looking for.
C . AfterAllowTestTraffic lets you run tests on the green environment after test traffic but before shifting prod users, which matches what they're asking. D is a trap since AfterAllowTraffic happens after full cutover, so too late to catch errors before users hit it. Pretty sure this matches exam reports but open to corrections.
C. Saw nearly identical question during a practice test, AfterAllowTestTraffic is the right place for these checks.
C, AfterAllowTestTraffic is where you can test the green environment before any real user traffic. Pretty sure that's what the question wants.
Its C, AfterAllowTestTraffic lets you run tests before prod traffic hits. Not totally sure though.
C imo. AfterAllowTestTraffic is the CodeDeploy hook that runs *before* live production traffic is shifted, so it fits the requirement to test green first. D is a common trap but runs too late in the lifecycle. Anybody disagree?
I don’t think it’s D. C fits because AfterAllowTestTraffic is when you can test green before prod users. D happens too late.
C or D. Had something like this in a mock recently and picked D because AfterAllowTraffic seemed to fit the flow, since that's when CodeDeploy shifts live traffic and you can still react fast if issues pop up. But now I'm second guessing since maybe tests should happen before live cutover (so C is better). Could go either way honestly, curious what others think.
Maybe C here. D looks tempting but AfterAllowTraffic happens after production cutover, so can't catch errors in time for rollback.
Why not B here? The timing of the hook vs a pipeline stage is tricky.
Be respectful. No spam.