Blue-green and canary rollouts: CAPA practice questions
Argo Rollouts offers two update strategies, and each has its own vocabulary and fields.
By Ibrahim Yesilay · Published · Updated
Independent community practice, not affiliated with or endorsed by CNCF or The Linux Foundation.
What Blue-green and canary rollouts covers in CAPA
Argo Rollouts offers two update strategies, and each has its own vocabulary and fields.
A blue-green Rollout runs the new version next to the old one and switches traffic in one move. It needs an activeService, the Service that receives production traffic, and usually a previewService that points at the new version for testing before promotion. When the Pod template changes, the controller creates a new ReplicaSet and points the preview Service at it, while the active Service stays on the old one. Once the new Pods are available, prePromotionAnalysis can run. autoPromotionEnabled defaults to true; set it to false and the Rollout pauses until someone promotes it, or set autoPromotionSeconds to promote after a delay. Promotion switches the active Service selector to the new ReplicaSet, postPromotionAnalysis can then run, and the old ReplicaSet is scaled down after scaleDownDelaySeconds, 30 seconds by default, which gives nodes time to update their routing. previewReplicaCount can run a smaller preview stack before promotion.
A canary Rollout shifts traffic in steps. The steps list combines setWeight, which sets the share of traffic for the canary, pause, which waits for a duration or, without one, indefinitely until promoted, analysis steps, and setCanaryScale, which sets the canary's replica count separately from its traffic weight. Without a traffic router, the controller approximates the weight with replica counts, so 25 percent with four replicas means one canary Pod. With a traffic router, such as Istio, NGINX, AWS ALB, SMI, Traefik or the Gateway API plugin, weights are set exactly and a canaryService and stableService let the router address each version. maxSurge and maxUnavailable control how fast Pods are replaced, and dynamicStableScale can scale the stable version down as the canary takes traffic.
Aborting either strategy sends traffic back to the stable version and scales the new ReplicaSet down, after abortScaleDownDelaySeconds where it applies. Both strategies can attach analysis: a canary in the background or as inline steps, a blue-green before and after promotion. The choice comes down to the risk being managed: blue-green gives an instant switch and an easy return, while a canary limits how many users meet a bad version.
Key points
- Blue-green uses an activeService and a previewService; autoPromotionEnabled defaults to true.
- The old blue-green ReplicaSet is scaled down after scaleDownDelaySeconds, 30 by default.
- A canary pause without a duration waits until the Rollout is promoted.
- Without a traffic router, canary weights are approximated by replica counts.
Three sample questions
14 CAPA questions on Blue-green and canary rollouts, 14 with explanations. How practice works
Question 1
spec:
strategy:
blueGreen:
activeService: active-svc
previewService: preview-svc- A.The configuration is correct
- B.
activeServiceshould becurrentService - C.Strategy should be under
metadata - D.
blueGreenshould beblue-green
Correct answer: A
activeService should be currentService": the field is activeService; there is no currentService in the blue-green spec. "Strategy should be under metadata": strategy is a field of the Rollout spec, not of metadata. "blueGreen should be blue-green": the key is blueGreen in camel case; the hyphenated blue-green is not a spec field.Sources: Argo Rollouts docs: BlueGreen, Argo Rollouts docs: Rollout Specification
Question 2
- A.To automatically scale the deployment up or down based on CPU load, as a HorizontalPodAutoscaler would
- B.To automatically promote the preview service to active
- C.To enable automatic rollbacks when the new ReplicaSet fails its readiness checks
- D.To enable progressive delivery
Correct answer: B
Sources: Argo Rollouts docs: BlueGreen, Argo Rollouts docs: Analysis & Progressive Delivery
Question 3
- A.They all keep the previous version running for the same time after an update
- B.Canary
- C.Blue-Green
- D.Rolling Update
Correct answer: C
Sources: Argo Rollouts docs: FAQ, Argo Rollouts docs: BlueGreen Deployment Strategy, Argo Rollouts docs: Concepts
Practice this topic
Focus mode keeps every question on Blue-green and canary rollouts until you leave it. 10 free guest answers, then a free account; no credit card.
Or open CAPA practice across all topics.
Sources
The explanation above was checked against these official documents.
- Argo Rollouts docs: Blue-green deployment strategy (checked 2026-10-28)
- Argo Rollouts docs: Canary deployment strategy (checked 2026-10-28)
- Argo Rollouts docs: Concepts (checked 2026-10-28)
- Argo Rollouts docs: Rollout specification (checked 2026-10-28)