AWS Certified Solutions Architect Professional SAP-C02 Practice Question

A media streaming company runs a latency-sensitive microservice on Amazon ECS (EC2 launch type) behind a public Application Load Balancer (prod-ALB). Deployments currently use the ECS rolling-update strategy, but new container images sometimes start slowly and create HTTP 502 errors during deployment.

The operations team wants to adopt a blue/green deployment strategy to increase operational excellence. Requirements are:

  • Deployments must be triggered automatically from AWS CodePipeline.
  • Engineers must be able to run integration tests against the new revision before any production traffic is shifted.
  • If ALB health checks or the integration tests fail, traffic must revert to the previous version without manual intervention.
  • DNS changes must not introduce additional propagation latency or caching issues.

Which solution meets these requirements with the LEAST operational overhead?

  • Provision a second ALB for the green environment and configure a CloudFront distribution origin to the green ALB. After testing, update the origin group to send all traffic to the green ALB and invalidate the CloudFront cache.

  • Use AWS CodeDeploy with the Amazon ECS blue/green deployment type. Create a second target group for prod-ALB, let CodeDeploy manage two task sets of the same ECS service, and add a CodeDeploy action in CodePipeline to shift the ALB listener between the blue and green target groups with automatic rollback on failures.

  • Retain the rolling-update strategy but set minimumHealthyPercent to 100 and maximumPercent to 200 in the ECS service. Trigger deployments from CodePipeline and rely on ALB slow-start to reduce 502 errors.

  • Create a duplicate ECS service for the green environment and register its tasks in a new target group. Use Amazon Route 53 weighted records to shift traffic in 10 percent increments from blue to green, then set the blue weight to 0 if tests pass.

AWS Certified Solutions Architect Professional SAP-C02
Continuous Improvement for Existing 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