Bird
0
0

Given this AWS CloudFormation snippet, what will happen when you deploy it?

medium📝 service behavior Q4 of 15
AWS - CloudFormation
Given this AWS CloudFormation snippet, what will happen when you deploy it?
{"Resources": {"MyBucket": {"Type": "AWS::S3::Bucket"}}}
AThe stack will delete all existing buckets
BAn S3 bucket will be created
CAn EC2 instance will be created instead
DDeployment will fail due to missing bucket name
Step-by-Step Solution
Solution:
  1. Step 1: Analyze resource type

    The resource type "AWS::S3::Bucket" creates an S3 bucket.
  2. Step 2: Check properties

    Bucket name is optional; CloudFormation generates a unique name if not provided.
  3. Final Answer:

    An S3 bucket will be created -> Option B
  4. Quick Check:

    S3 bucket creation = An S3 bucket will be created [OK]
Quick Trick: S3 bucket name optional; auto-generated if missing [OK]
Common Mistakes:
  • Assuming bucket name is mandatory
  • Confusing resource types
  • Thinking deployment deletes resources

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes