Courseiva
DeploymenthardMultiple ChoiceObjective-mapped

DVA-C02 Deployment Practice Question

A CodeDeploy deployment to Lambda should shift 10 percent of traffic for 10 minutes before full rollout and automatically roll back on alarms. Which configuration should be used?

⚠ Common exam trap

Test-takers frequently confuse 'canary' with 'linear' deployments, or assume that any gradual shift (like 'linear10PercentEvery10Minutes') is equivalent, but the requirement specifies a single 10% shift for 10 minutes before full rollout, which matches the canary preference, not a linear incremental shift.

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

Canary deployment preference with CloudWatch alarms

A is correct because CodeDeploy's canary deployment preference shifts 10% of traffic to the new Lambda version for 10 minutes, then automatically shifts the remaining 90% after the specified interval. CloudWatch alarms are configured to trigger an automatic rollback if the alarm state is breached during the canary period, meeting the requirement for a gradual shift with automated rollback on failure.

Answer analysis

Option-by-option breakdown

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

  • Canary deployment preference with CloudWatch alarms

    Why this is correct

    A Canary deployment preference with CloudWatch alarms is the correct approach for shifting 10 percent of traffic to a new Lambda version. This strategy allows CodeDeploy to gradually shift a specified percentage of traffic (e.g., 10%) to the new function version, while the remaining traffic continues to serve the old version. Integrating CloudWatch alarms provides automated monitoring during this shift, triggering an automatic rollback to the stable version if predefined error thresholds or latency metrics are breached, ensuring a safe and controlled rollout.

  • All-at-once deployment without alarms

    Why it's wrong here

    An All-at-once deployment without alarms is unsuitable because it immediately shifts 100% of traffic to the new Lambda version, directly contradicting the requirement to shift only 10 percent. This strategy offers no gradual rollout, making it impossible to test the new version with a small subset of users before full exposure. Furthermore, the absence of CloudWatch alarms means there is no automated mechanism to detect issues and roll back, significantly increasing the risk of service disruption.

  • Manual alias update after deployment

    Why it's wrong here

    A manual alias update after deployment does not meet the requirement for an automated, controlled 10 percent traffic shift using CodeDeploy. While Lambda aliases are fundamental for traffic routing, performing the update manually bypasses CodeDeploy's built-in capabilities for staged deployments and automated monitoring. This approach lacks the precision, automation, and integrated rollback features that CodeDeploy's deployment preferences provide for safely managing traffic shifts.

  • S3 static website deployment

    Why it's wrong here

    S3 static website deployment is entirely irrelevant to the requirement of shifting traffic for a Lambda function. Amazon S3 is a storage service primarily used for hosting static web content, not for deploying or managing serverless compute resources like AWS Lambda. This option addresses a completely different use case and technology stack within AWS, making it an incorrect choice for Lambda traffic management.

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

About these practice questions

This DVA-C02 question is part of Courseiva's 724-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DVA-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 DVA-C02 exam.