DVA-C02 · Question #130
DVA-C02 Question #130: Real Exam Question with Answer & Explanation
The correct answer is A: Use the AWS::Region pseudo parameter.. CloudFormation pseudo parameters like AWS::Region are built-in, automatically resolved values that eliminate the need for manual input or complex parsing.
Question
A developer needs to build an AWS CloudFormation template that self-populates the AWS Region variable that deploys the CloudFormation template. What is the MOST operationally efficient way to determine the Region in which the template is being deployed?
Options
- AUse the AWS::Region pseudo parameter.
- BRequire the Region as a CloudFormation parameter.
- CFind the Region from the AWS::StackId pseudo parameter by using the Fn::Split intrinsic function.
- DDynamically import the Region by referencing the relevant parameter in AWS Systems Manager
Explanation
CloudFormation pseudo parameters like AWS::Region are built-in, automatically resolved values that eliminate the need for manual input or complex parsing.
Common mistakes.
- B. Requiring the Region as a CloudFormation parameter forces deployers to manually input the value, introducing human error and unnecessary operational overhead when a built-in pseudo parameter already provides this automatically.
- C. Parsing the Region from AWS::StackId using Fn::Split is technically possible but unnecessarily complex and fragile compared to using the dedicated AWS::Region pseudo parameter.
- D. Importing the Region from AWS Systems Manager Parameter Store adds an external dependency and additional configuration steps when the information is already natively available as a pseudo parameter.
Concept tested. CloudFormation AWS::Region pseudo parameter usage
Reference. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/pseudo-parameter-reference.html
Community Discussion
No community discussion yet for this question.