AWS Certified Solutions Architect Professional SAP-C02 Practice Question
A global e-commerce company is modernizing its monolithic application to a microservices architecture running on Amazon EC2 instances behind an Application Load Balancer. The development team uses an AWS CodePipeline pipeline for their CI/CD process. Currently, they use an all-at-once deployment strategy, which has led to significant downtime and customer-facing errors during recent releases. The operations team has also struggled to perform quick rollbacks, extending the impact of faulty deployments. The company wants to implement a deployment strategy that minimizes downtime, reduces the risk of new releases, and enables rapid, automated recovery from deployment failures to improve operational excellence. Which solution should a solutions architect recommend?
Continue with an in-place deployment strategy but schedule it during off-peak hours. Require the operations team to actively monitor CloudWatch dashboards for 60 minutes post-deployment and execute a pre-written rollback script if errors exceed a documented threshold.
Configure the pipeline to use AWS CodeDeploy for a rolling deployment, updating 25% of the EC2 fleet at a time and monitoring CloudWatch metrics for any anomalies before proceeding to the next batch.
Implement a blue/green deployment strategy using AWS CodeDeploy. Configure the deployment group to shift traffic to the new green environment and set up CloudWatch alarms that trigger an automatic rollback to the blue environment if key performance metrics degrade.
Integrate AWS Systems Manager into the CI/CD pipeline to ensure all EC2 instances are patched and conform to a hardened configuration baseline before any new application code is deployed via the existing all-at-once method.
The correct answer is to implement a blue/green deployment strategy using AWS CodeDeploy. This approach involves provisioning a new, independent 'green' environment with the new application version that runs alongside the existing 'blue' production environment. After the green environment is validated through automated tests, traffic is shifted from the blue environment to the green one with near-zero downtime. A key component of this strategy for operational excellence is configuring CodeDeploy to monitor CloudWatch alarms. If key performance metrics (like error rates or latency) breach predefined thresholds after the traffic shift, CodeDeploy can automatically trigger a rollback, redirecting traffic back to the stable blue environment, thus providing a rapid and automated recovery mechanism.
A rolling deployment updates a subset of instances at a time, which means for a period, both old and new versions of the application are running simultaneously. While this reduces downtime compared to an all-at-once strategy, rollbacks are more complex than with blue/green, as it's not an instant switch back to a fully separate, stable environment.
Performing an in-place deployment, even with enhanced manual monitoring, is still an all-at-once strategy. It carries the highest risk because it directly overwrites the production environment, and relying on manual rollback procedures is slow and prone to human error, which does not align with the goal of improving operational excellence through automation.
Using AWS Systems Manager to patch and harden instances is a crucial best practice for security and operations but does not directly address the risks associated with the application deployment and traffic cutover process. It is a complementary activity, not a replacement for a safe deployment strategy.
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 monitor deployments using CloudWatch?
Open an interactive chat with Bash
What are the key differences between a rolling deployment and a blue/green deployment?
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