
Explanation:
!Ref BucketNameParam references a parameter, but there is no Parameters section declaring BucketNameParam. CloudFormation will fail with a template validation error.
Ultimate access to all questions.
Question 7
Review the following CloudFormation snippet. What issue will prevent the stack from deploying successfully?
AWSTemplateFormatVersion: '2010-09-09'
Resources:
MyBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: !Ref BucketNameParam
VersioningConfiguration:
Status: Enabled
AWSTemplateFormatVersion: '2010-09-09'
Resources:
MyBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: !Ref BucketNameParam
VersioningConfiguration:
Status: Enabled
A
S3 bucket versioning cannot be enabled via CloudFormation
B
BucketNameParam is referenced but never declared in a Parameters section
C
The AWSTemplateFormatVersion value is incorrect
D
BucketName is not a valid property for AWS::S3::Bucket
No comments yet.