Courseiva
Question 501 of 724
DeploymentmediumMultiple SelectObjective-mapped

DVA-C02 Deployment Practice Question

A SAM application should gradually shift Lambda traffic and roll back on errors. Which two pieces are needed?

⚠ Common exam trap

Test-takers frequently confuse deployment-related features (like S3 lifecycle rules or public buckets) with the actual AWS services (Lambda alias and CodeDeploy) that handle traffic shifting and rollback, leading them to select irrelevant options.

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

A Lambda alias/deployment preference

AWS SAM uses Lambda aliases with deployment preferences (e.g., Canary10Percent5Minutes or Linear10PercentEvery10Minutes) to gradually shift traffic from the old version to the new version. Option C is correct because CloudWatch alarms can be tied to the deployment preferences to automatically roll back the traffic shift if the alarm enters the ALARM state, indicating errors or degraded health.

Answer analysis

Option-by-option breakdown

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

  • An S3 lifecycle rule

    Why it's wrong here

    An S3 lifecycle rule is designed to automate the management of objects within an S3 bucket, such as transitioning them to different storage classes or expiring them after a set period. These rules operate exclusively on S3 object data and have no mechanism or capability to control, shift, or influence traffic routing to AWS Lambda functions or manage their deployment strategies.

  • A Lambda alias/deployment preference

    Why this is correct

    A Lambda alias, when combined with deployment preferences (often managed by AWS CodeDeploy), is the primary mechanism for implementing gradual traffic shifts for Lambda functions. This approach allows a new version of a Lambda function to incrementally receive a percentage of invocations, enabling canary or linear deployments and controlled rollouts to minimize risk.

  • CloudWatch alarms tied to deployment health

    Why this is correct

    CloudWatch alarms are essential for monitoring the health and performance of a Lambda function during a gradual deployment. By tying these alarms to key metrics like error rates, latency, or invocation counts, they can automatically detect issues with the new function version. If an alarm threshold is breached, it can trigger an automatic rollback of the deployment, ensuring service stability.

  • A public S3 bucket

    Why it's wrong here

    A public S3 bucket is primarily used for storing and serving static content or providing publicly accessible data storage. While Lambda functions can interact with S3 buckets (e.g., triggered by object uploads), a public S3 bucket itself offers no functionality for managing, routing, or gradually shifting invocation traffic between different versions of a Lambda function. Its role is data storage, not compute deployment control.

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