Bird
0
0

Given this AWS CLI command:

medium📝 Predict Output Q4 of 15
AWS - CloudFormation
Given this AWS CLI command:
aws cloudformation create-stack --stack-name TestStack --template-body file://template.yaml
What will happen if the template.yaml file has a syntax error?
AStack creation fails with a validation error
BStack is created but resources fail later
CStack is created successfully ignoring errors
DAWS CLI automatically fixes the syntax error
Step-by-Step Solution
Solution:
  1. Step 1: Understand template validation during stack creation

    AWS CloudFormation validates the template syntax before creating the stack.
  2. Step 2: Identify outcome of syntax errors

    If syntax errors exist, stack creation fails immediately with an error.
  3. Final Answer:

    Stack creation fails with a validation error -> Option A
  4. Quick Check:

    Syntax error causes failure = C [OK]
Quick Trick: Templates must be valid or stack creation fails [OK]
Common Mistakes:
  • Assuming stack creates despite errors
  • Thinking AWS fixes template errors automatically

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes