Question 1,153 of 724
DVA-C02 Deployment Practice Question
A developer is deploying a new version of a Lambda function using AWS CodeDeploy with a linear canary deployment. The function is part of a serverless application. After the deployment starts, the developer notices that the new version is receiving only 10% of traffic initially, but after 10 minutes, the traffic increases to 100%. What should the developer do to ensure a more gradual traffic shift?
⚠ Common exam trap
Many exam-takers confuse the built-in CodeDeploy deployment configurations (canary vs. linear) with manual alias weight adjustments, thinking that modifying the alias directly is the correct approach instead of changing the deployment configuration.
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
✓
Modify the CodeDeploy deployment configuration to use a linear 10% every 5 minutes instead of canary.
The developer is using a canary deployment configuration that shifts 10% of traffic immediately and then waits 10 minutes before shifting to 100%. To achieve a more gradual traffic shift, the developer should modify the CodeDeploy deployment configuration to use a linear 10% every 5 minutes, which will increment traffic by 10% every 5 minutes, taking 50 minutes to reach 100%.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use Lambda function aliases with weighted traffic shifting.
Why it's wrong here
While AWS Lambda aliases support weighted traffic shifting between two function versions, this mechanism typically performs an immediate split (e.g., 10% to new, 90% to old, then 100% to new). It does not inherently provide the automated, time-based incremental shifting, such as "10% every 5 minutes," that CodeDeploy offers. This approach alone lacks the controlled, gradual rollout and automated rollback features required for a robust deployment strategy.
- ✗
Use multiple Lambda function versions and update the alias gradually.
Why it's wrong here
Manually updating a Lambda alias's weights between multiple versions, even if done gradually, is a manual operational task. The question implies a need for an automated, controlled deployment strategy, which CodeDeploy is designed to provide. This manual approach lacks the automation, monitoring integration, and automatic rollback capabilities that are crucial for safe and efficient production deployments.
- ✗
Configure AWS CloudFormation to update the Lambda alias.
Why it's wrong here
AWS CloudFormation is an infrastructure as code service primarily used for provisioning and managing AWS resources, including Lambda functions and aliases. While it can define and update the target versions for a Lambda alias, CloudFormation itself does not provide the dynamic, incremental traffic shifting logic or automated rollback capabilities. It manages the declarative state of resources, not the procedural orchestration of gradual traffic shifts over time.
- ✓
Modify the CodeDeploy deployment configuration to use a linear 10% every 5 minutes instead of canary.
Why this is correct
AWS CodeDeploy, when integrated with Lambda, provides robust capabilities for automating gradual deployments. A linear deployment configuration, such as "Linear10PercentEvery5Minutes," precisely matches the requirement for shifting traffic in fixed increments over a defined time period. This strategy allows for careful monitoring during the rollout and automatic rollback if issues are detected, ensuring a controlled and safe deployment process.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
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 →
Last reviewed: Jun 24, 2026
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.
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.
Sign in to join the discussion.