AWS Certified Solutions Architect Professional SAP-C02 Practice Question
A financial services company runs a critical monolithic application on a fleet of Amazon EC2 instances behind an Application Load Balancer. The current deployment process involves manually stopping the application, deploying the new version on all instances simultaneously, and then restarting the application. This 'all-at-once' method results in significant downtime during each release and makes rollbacks a complex, time-consuming manual effort. The company wants to improve its operational excellence by adopting a deployment strategy that eliminates downtime and minimizes risk. As a solutions architect, which strategy should you recommend to meet these requirements?
Implement a blue/green deployment strategy using AWS CodeDeploy, configuring it to shift traffic between two environments via the Application Load Balancer.
Re-platform the application onto AWS Elastic Beanstalk and configure its environment to use a managed rolling update deployment policy.
Implement an in-place rolling update by configuring the Auto Scaling group to replace instances one by one with a new launch template version.
Automate the existing all-at-once deployment process using AWS Systems Manager Run Command to execute the deployment scripts simultaneously across all instances.
The correct answer is to implement a blue/green deployment strategy using AWS CodeDeploy. This strategy involves creating a new, separate 'green' environment with the new application version that runs alongside the existing 'blue' production environment. Once the green environment is fully tested and ready, traffic is shifted from the blue environment to the green environment via the Application Load Balancer. This cutover is nearly instantaneous, eliminating downtime. If any issues are detected, a rollback is just as fast, as traffic can be immediately rerouted back to the old blue environment, which remains on standby until the green environment is deemed stable.
An in-place rolling update is incorrect because, while it avoids complete downtime, it introduces risk by having a mix of old and new application versions running simultaneously. This can be problematic for monolithic applications and makes rollbacks more complex than a simple traffic switch.
Using AWS Elastic Beanstalk with a managed rolling update policy is a plausible but less optimal choice. While Elastic Beanstalk simplifies deployments, it abstracts a significant amount of control. For a critical financial application, a more granular and customizable solution using a dedicated CI/CD pipeline with AWS CodeDeploy is generally preferred to maintain fine-grained control over the deployment process.
Automating the current all-at-once deployment with AWS Systems Manager Run Command is incorrect because it only automates a fundamentally flawed process. It would make the deployment faster but would not solve the core problems of application downtime and the high risk associated with an all-at-once cutover.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a blue/green deployment strategy?
Open an interactive chat with Bash
How does AWS CodeDeploy enable blue/green deployments?
Open an interactive chat with Bash
What are the key advantages of blue/green deployments over rolling updates?
Open an interactive chat with Bash
AWS Certified Solutions Architect Professional SAP-C02
Continuous Improvement for Existing Solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access