AWS Certified Solutions Architect Professional SAP-C02 Practice Question

A retail company runs multiple stateless microservices on Amazon ECS using the Fargate launch type. Each service is fronted by an Application Load Balancer (ALB).

Change-management policy:

  • New container images must receive exactly 10 percent of production traffic for 5 minutes; if no issues occur, the remaining traffic is shifted automatically.
  • If the ALB's HTTP 5xx error rate exceeds a predefined CloudWatch alarm threshold during the traffic shift, the deployment must immediately roll back to the previous task set without human intervention.
  • The solution must integrate with the company's existing AWS CodePipeline build stages and must not rely on custom scripts or third-party tools.

Which approach satisfies these requirements?

  • Use a CloudFormation update action in CodePipeline to update the ECS service with deployment circuit breaker enabled. Set maximumPercent to 110 and minimumHealthyPercent to 90, and configure the same CloudWatch alarm to stop the deployment.

  • Add a Deploy action to AWS CodePipeline that invokes AWS CodeDeploy blue/green deployments for the ECS service. Configure the deployment group with the predefined deployment configuration CodeDeployDefault.ECSCanary10Percent5Minutes, attach the ALB 5xx CloudWatch alarm, and enable automatic rollback on alarm.

  • Migrate the service to AWS Elastic Beanstalk and enable immutable environment deployments. Configure a CloudWatch 5xx alarm and turn on automatic rollback in the Beanstalk environment.

  • Insert an AWS Step Functions stage in CodePipeline that updates Route 53 weighted DNS records to send 10 percent of traffic to a green ECS service for 5 minutes, then shifts or reverts traffic based on the CloudWatch alarm state.

AWS Certified Solutions Architect Professional SAP-C02
Design for New Solutions
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot