Courseiva
Question 1,051 of 247
Deployment, Provisioning, and AutomationmediumMultiple ChoiceObjective-mapped

SOA-C02 Deployment, Provisioning, and Automation Practice Question

A company uses AWS CodeDeploy to deploy a web application to a fleet of Amazon EC2 instances. The SysOps administrator needs to implement a deployment strategy that ensures zero downtime by creating a new set of instances alongside the current ones, then gradually shifting traffic to the new instances after they pass health checks. If a problem is detected, traffic can be instantly redirected back to the original instances. Which deployment configuration should the administrator use?

⚠ Common exam trap

Test-takers frequently confuse canary deployments with blue/green deployments, but canary deployments do not create a full parallel environment and lack the instant, full-traffic rollback capability that blue/green provides.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Blue/green deployment

Blue/green deployment is the correct choice because it creates a completely new set of instances (green environment) alongside the existing ones (blue environment), shifts traffic gradually to the new instances after health checks pass, and allows instant rollback by redirecting traffic back to the original instances. AWS CodeDeploy supports this strategy natively with a blue/green deployment configuration, ensuring zero downtime during the transition.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Rolling update

    Why it's wrong here

    A rolling update replaces instances in batches (e.g., 20% at a time) but does not create a fully independent parallel environment. During the transition, the fleet contains a mix of old and new versions, and capacity is temporarily reduced because some instances are being updated. If a problem is detected, rollback is not instantaneous: you must re-run the previous deployment, which takes time and briefly repeats the same batch-wise cycle, so it does not provide zero downtime or immediate traffic switching.

  • Blue/green deployment

    Why this is correct

    Blue/green deployment provisions a complete second environment (green) alongside the current production environment (blue), allowing you to run tests against the new version while old traffic continues to flow. Once the new environment is validated, you shift traffic at the load balancer or DNS level—either all at once or gradually—making the cutover near-instantaneous. If the new environment fails, you simply switch traffic back to the still-available blue environment, enabling instant rollback with zero downtime, which is why this is the correct choice for high-availability web applications.

  • All at once deployment

    Why it's wrong here

    The 'AllAtOnce' deployment configuration stops every existing instance before starting any new ones, meaning the application is completely unavailable during the entire stop, re-provision, and startup sequence. Unlike blue/green, there is no old environment held in reserve; the original instances are terminated, so if a rollback is needed, you must redeploy the previous version from scratch, causing additional downtime. This approach maximizes speed of deployment but sacrifices both availability and rapid recovery, making it unsuitable for production workloads that require continuous service.

  • Canary deployment

    Why it's wrong here

    A canary deployment routes a small percentage of traffic to the new version initially, then gradually increases it. While it reduces risk, it does not provide an instant full rollback like blue/green, and the rollout process is slower.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This SOA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SOA-C02 exam.