The CISO requires CI/CD changes so patch deployments happen as quickly as possible with minimal downtime and the ability to roll back quickly. The web app runs on a fleet of EC2 instances behind an Application Load Balancer. Source is on GitHub; builds use an existing CodeBuild project; CodePipeline will trigger builds from GitHub. Which CI/CD deployment configuration satisfies the requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: Use CodePipeline with a deploy stage that uses AWS CodeDeploy configured for blue/green deployments. Monitor the new deployment and, if there are problems, perform a rollback using CodeDeploy..
Why this is the answer
Blue/green deployments with AWS CodeDeploy are ideal for minimizing downtime and enabling quick rollbacks. CodeDeploy provisions a new set of instances (green environment) with the updated application, tests them, and then reroutes traffic from the old instances (blue environment) to the new ones. If issues arise, traffic can be instantly routed back to the stable blue environment, providing a fast rollback. In-place deployments (first option) update existing instances, leading to downtime and a more complex rollback process. CloudFormation (third option) manages infrastructure, not application deployments, and recovering by pushing another code change is not a quick rollback mechanism. OpsWorks (fourth option) is an older configuration management service; while it can do in-place deployments, CodeDeploy offers more robust blue/green capabilities specifically designed for minimal downtime and fast rollbacks.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed