Courseiva
Continuous Improvement for Existing SolutionshardMultiple ChoiceObjective-mapped

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

Network Topology
aws cloudformation describe-stacksstack-name myappquery "Stacks[0].Outputs"Refer to the exhibit."OutputKey": "BucketName","OutputValue": "myapp-bucket-123456","Description": "S3 bucket name"},"OutputKey": "LambdaFunctionArn","OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:myapp-function","Description": "Lambda function ARN"

Refer to the exhibit. A CloudFormation stack was successfully created. The stack's template includes an S3 bucket and a Lambda function. A developer runs the CLI command shown but receives an error that the stack does not exist. What is the MOST likely cause?

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 CLI is configured to use a different region than where the stack was deployed.

The CLI command is querying the wrong region. The stack was created in us-east-1 but the CLI default region might be different. Option B is wrong because the stack was created successfully. Option C is wrong because outputs are returned correctly. Option D is wrong because the stack name is exactly as used.

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 AWS CLI is configured to use a different region than where the stack was deployed.

    Why this is correct

    Stack names are unique per region; querying the wrong region returns 'stack does not exist'.

  • The stack was deleted after creation.

    Why it's wrong here

    The exhibit shows outputs, indicating successful creation.

  • The stack name is case-sensitive and should be 'MyApp'.

    Why it's wrong here

    Stack names are case-sensitive but the command uses the exact name.

  • The '--query' parameter is incorrectly formatted.

    Why it's wrong here

    The query syntax is correct.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

This SAP-C02 question is part of Courseiva's 1,660-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.