Bird
0
0

You wrote this Resources section snippet:

medium📝 Debug Q14 of 15
AWS - CloudFormation
You wrote this Resources section snippet:
{
  "MyBucket": {
    "Type": "AWS::S3::Bucket",
    "Properties": {
      "BucketName": 12345
    }
  }
}

What is the error in this configuration?
AType AWS::S3::Bucket is invalid
BBucketName must be a string, not a number
CProperties section is missing
DResource name cannot be MyBucket
Step-by-Step Solution
Solution:
  1. Step 1: Check BucketName property type

    BucketName must be text (string), but 12345 is a number here.
  2. Step 2: Validate other parts

    Type and Properties exist and resource name is valid, so no error there.
  3. Final Answer:

    BucketName must be a string, not a number -> Option B
  4. Quick Check:

    BucketName requires string value = BucketName must be a string, not a number [OK]
Quick Trick: BucketName must be quoted text, not a number [OK]
Common Mistakes:
  • Using numbers instead of strings for names
  • Misnaming resource types
  • Omitting Properties section

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes