
Explanation:
AllowedValues restricts acceptable inputs for a parameter. If a user supplies a value that is not in the specified list (like 'db.r5.16xlarge' in this case), CloudFormation rejects the request and the stack creation or update fails during the validation phase before any resources are provisioned.
Ultimate access to all questions.
CloudFormation Question 13
A template includes the following parameter definition. What will happen if a user passes the value 'db.r5.16xlarge'?
Parameters:
DBInstanceType:
Type: StringDefault: db.t3.mediumAllowedValues:
db.t3.mediumdb.r5.largedb.r5.xlargeDescription: RDS instance classA
CloudFormation uses the default value db.t3.medium instead
B
CloudFormation ignores AllowedValues for String parameters
C
Stack creation fails with a parameter validation error
D
The instance is launched with db.r5.16xlarge anyway
E
None of the above
F
Not applicable
No comments yet.