Courseiva
Accelerate Workload Migration and ModernizationhardMultiple ChoiceObjective-mapped

SAP-C02 Practice Question: Accelerate Workload Migration and Modernization

Network Topology
aws cloudformation describe-stack-eventsstack-name my-stackregion us-east-1"StackEvents": ["EventId": "...","StackName": "my-stack","LogicalResourceId": "my-stack","PhysicalResourceId": "arn:aws:cloudformation:us-east-1:123456789012:stack/my-stack/abc","ResourceType": "AWS::CloudFormation::Stack","Timestamp": "2024-03-01T12:00:00.000Z","ResourceStatus": "ROLLBACK_IN_PROGRESS","ResourceStatusReason": "Resource creation cancelled"},"LogicalResourceId": "MyLambdaFunction","ResourceType": "AWS::Lambda::Function","Timestamp": "2024-03-01T11:59:00.000Z","ResourceStatus": "CREATE_FAILED",

Refer to the exhibit. A company is using AWS CloudFormation to migrate a serverless application. The stack creation failed. Based on the stack events, what is the root cause of the failure?

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

The AWS Lambda runtime specified in the template is not supported in the us-east-1 region.

The stack event error message indicates that the Lambda runtime 'nodejs18.x' is not supported in the us-east-1 region. This is a specific runtime issue, not a syntax error (A), permission issue (C), or code size limit (D).

Answer analysis

Option-by-option breakdown

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

  • The CloudFormation template has a syntax error.

    Why it's wrong here

    The error is from Lambda creation, not template parsing.

  • The AWS Lambda runtime specified in the template is not supported in the us-east-1 region.

    Why this is correct

    The runtime is not supported.

  • The IAM role for the Lambda function does not have sufficient permissions.

    Why it's wrong here

    Error message indicates runtime issue.

  • The Lambda function code exceeds the maximum size limit.

    Why it's wrong here

    Error says runtime not supported.

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 SAP-C02 question from scratch — 1,660 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 SAP-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 SAP-C02 exam.