Courseiva
Question 1,153 of 724
DeploymentmediumMultiple ChoiceObjective-mapped

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

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

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 24, 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 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.