Courseiva
Deployment →easyMultiple Choice

DVA-C02 Deployment Practice Question

Network Topology
$ aws cloudformation describe-stack-eventsstack-name my-stackRefer to the exhibit.```"StackEvents": ["StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/my-stack/...","EventId": "...","StackName": "my-stack","LogicalResourceId": "my-stack","PhysicalResourceId": "arn:aws:cloudformation:us-east-1:123456789012:stack/my-stack/...","ResourceType": "AWS::CloudFormation::Stack","Timestamp": "2023-01-01T00:00:00.000Z","ResourceStatus": "UPDATE_ROLLBACK_IN_PROGRESS",},"StackId": "...","LogicalResourceId": "MyLambdaFunction","PhysicalResourceId": "my-function","ResourceType": "AWS::Lambda::Function","ResourceStatus": "UPDATE_FAILED",

Refer to the exhibit. A CloudFormation stack update resulted in a rollback. What is the most likely reason for the rollback?

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 user manually cancelled the update of the Lambda function.

The event message 'Resource update cancelled by user' indicates that the Lambda function update was cancelled by a user, triggering the rollback. Options B, C, and D are incorrect because there is no indication of a timeout, insufficient permissions, or invalid code; the error explicitly states user cancellation.

Answer analysis

Option-by-option breakdown

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

  • ✓

    A user manually cancelled the update of the Lambda function.

    Why this is correct

    When the exhibit shows the resource status reason as 'Resource update cancelled by user' or 'User Initiated Cancel', CloudFormation interprets this as an explicit cancel-update-stack API call or console action during the in-progress update, which halts the change set and triggers an automatic rollback of already-modified resources to their prior state.

  • ✗

    The Lambda function update timed out.

    Why it's wrong here

    A timeout failure would surface as a distinct status reason referencing the resource exceeding its creation or update timeout period (or a stack policy timeout), which is a different failure signature entirely from a user-initiated cancellation and is not what the exhibit's event log shows.

  • ✗

    The Lambda function's IAM role did not have sufficient permissions.

    Why it's wrong here

    Insufficient IAM permissions on a Lambda execution role during an update would produce an explicit AccessDenied or 'is not authorized to perform' error message in the stack event's status reason, which is a clearly distinguishable failure mode from the 'cancelled by user' text shown in the exhibit.

  • ✗

    The Lambda function code was invalid.

    Why it's wrong here

    Invalid Lambda code, such as a syntax error or missing handler, would typically fail at the deployment package validation or first invocation stage with a message referencing the code or handler, not a generic user-cancellation reason, so this does not match the rollback cause described in the exhibit.

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 writes every DVA-C02 question from scratch — 1,135 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.