nerdexam
Amazon

DOP-C02 · Question #469

A SaaS company uses ECS (Fargate) behind an ALB and CodePipeline + CodeDeploy for blue/green deployments. They need automatic, incremental traffic shifting over time with no downtime. Which solution…

The correct answer is A. Use TimeBasedLinear in appspec.yaml with defined percentage and interval. CodeDeploy supports TimeBasedLinear traffic shifting for ECS blue/green deployments. Traffic increments by linearPercentage every linearInterval until 100%. This provides zero-downtime gradual rollout -- as per CodeDeploy ECS Blue/Green Traffic Shifting documentation.

Submitted by rachelw· Mar 6, 2026SDLC Automation

Question

A SaaS company uses ECS (Fargate) behind an ALB and CodePipeline + CodeDeploy for blue/green deployments. They need automatic, incremental traffic shifting over time with no downtime. Which solution will meet these requirements?

Options

  • AUse TimeBasedLinear in appspec.yaml with defined percentage and interval.
  • BUse AllAtOnce deployment configuration.
  • CUse TimeBasedCanary.
  • DConfigure weighted routing on ALB manually.

How the community answered

(52 responses)
  • A
    85% (44)
  • B
    2% (1)
  • C
    4% (2)
  • D
    10% (5)

Explanation

CodeDeploy supports TimeBasedLinear traffic shifting for ECS blue/green deployments. Traffic increments by linearPercentage every linearInterval until 100%. This provides zero-downtime gradual rollout -- as per CodeDeploy ECS Blue/Green Traffic Shifting documentation.

Topics

#ECS Fargate#CodeDeploy#Blue/Green Deployment#Traffic Shifting

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice