Question 1,271 of 1,616
DeploymenteasyMultiple ChoiceObjective-mapped

Lambda Canary Deployment with CloudWatch Alarm Rollback

This DVA-C02 practice question tests your understanding of deployment. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. A key principle to apply: canary deployment. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company is deploying a new microservice using AWS Lambda. The deployment pipeline uses AWS CodeBuild and AWS CodePipeline. The team wants to automatically roll back to the previous function version if the new version fails CloudWatch alarms. Which deployment strategy should they implement?

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 with a CloudWatch alarm-based rollback

The correct answer is A: Canary deployment with a CloudWatch alarm-based rollback. AWS Lambda supports canary deployments via traffic shifting, where a small percentage of traffic is gradually shifted to the new function version. If the new version triggers CloudWatch alarms (e.g., increased error rate or latency), AWS CodeDeploy can automatically roll back to the previous version. Option B is incorrect because rolling updates are not natively supported for Lambda; Lambda uses traffic shifting instead. Option C is incorrect because immutable deployments do not provide gradual traffic shifting or alarm-based rollback. Option D is incorrect because Blue/Green deployment is a broader concept, but the specific strategy requested is canary with alarm-based rollback, which is a feature of AWS CodeDeploy's Lambda deployment.

Key principle: Canary deployment

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 with a CloudWatch alarm-based rollback

    Why this is correct

    Lambda canary deployments shift traffic gradually and can roll back based on alarms.

    Related concept

    Canary deployment

  • Rolling update with a pre-traffic hook

    Why it's wrong here

    Lambda does not support rolling updates; it uses versioning and aliases.

  • Immutable deployment with an automated rollback

    Why it's wrong here

    Immutable deployments replace instances; Lambda uses version aliases for traffic shifting.

  • Blue/Green deployment with an AWS CodeDeploy configuration

    Why it's wrong here

    Blue/Green is a deployment strategy but Lambda's native traffic shifting is called canary.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Candidates may confuse 'Blue/Green' with 'Canary' because both involve two environments. However, AWS Lambda traffic shifting is officially called a 'canary deployment' when using gradual traffic shifts with alarm-based rollback.

Detailed technical explanation

How to think about this question

Treat this as a scenario question. Identify the problem, the constraint, and the best action. Then compare each option against those facts.

KKey Concepts to Remember

  • Canary deployment
  • CloudWatch alarm-based rollback
  • AWS Lambda traffic shifting

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Canary deployment

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Canary deployment Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

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

What to study next

Got this wrong? Here's your next step.

Review canary deployment, then practise related DVA-C02 questions on the same topic to reinforce the concept.

Related practice questions

Related DVA-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free DVA-C02 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this DVA-C02 question test?

Deployment — This question tests Deployment — Canary deployment.

What is the correct answer to this question?

The correct answer is: Canary deployment with a CloudWatch alarm-based rollback — The correct answer is A: Canary deployment with a CloudWatch alarm-based rollback. AWS Lambda supports canary deployments via traffic shifting, where a small percentage of traffic is gradually shifted to the new function version. If the new version triggers CloudWatch alarms (e.g., increased error rate or latency), AWS CodeDeploy can automatically roll back to the previous version. Option B is incorrect because rolling updates are not natively supported for Lambda; Lambda uses traffic shifting instead. Option C is incorrect because immutable deployments do not provide gradual traffic shifting or alarm-based rollback. Option D is incorrect because Blue/Green deployment is a broader concept, but the specific strategy requested is canary with alarm-based rollback, which is a feature of AWS CodeDeploy's Lambda deployment.

What should I do if I get this DVA-C02 question wrong?

Review canary deployment, then practise related DVA-C02 questions on the same topic to reinforce the concept.

What is the key concept behind this question?

Canary deployment

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

Keep practising

More DVA-C02 practice questions

Last reviewed: Jun 20, 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.