exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 115 discussion

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?

  • A. Use the AWS::Region pseudo parameter.
  • B. Require the Region as a CloudFormation parameter.
  • C. Find the Region from the AWS::StackId pseudo parameter by using the Fn::Split intrinsic function.
  • D. Dynamically import the Region by referencing the relevant parameter in AWS Systems Manager Parameter Store.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
MrTee
Highly Voted 2 years ago
Selected Answer: A
A. Use the AWS::Region pseudo parameter.
upvoted 10 times
...
sumanshu
Most Recent 4 months ago
Selected Answer: A
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/mappings-section-structure.html AWS::Region is a pseudo parameter that automatically provides the Region where the stack is being deployed (e.g., us-east-1 if deploying in the US East Region). B) Eliminated - Adding a parameter for the Region means users would need to manually specify the Region every time they deploy the template C) Eliminated - While the stack ID contains the Region as part of its value (e.g., arn:aws:cloudformation:us-east-1:123456789012:stack/MyStack/...), extracting it with Fn::Split is a complicated workaround. D) Eliminated
upvoted 2 times
...
albert_kuo
7 months ago
Selected Answer: A
Resources: MyS3Bucket: Type: "AWS::S3::Bucket" Properties: BucketName: !Sub "my-bucket-${AWS::Region}"
upvoted 1 times
...
65703c1
11 months, 1 week ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
Baba_Eni
1 year, 10 months ago
Selected Answer: A
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/pseudo-parameter-reference.html
upvoted 2 times
...
Baba_Eni
1 year, 10 months ago
Selected Answer: A
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/pseudo-parameter-reference.htmlhttps://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/pseudo-parameter-reference.html
upvoted 1 times
...
loctong
1 year, 11 months ago
Selected Answer: A
The AWS::Region pseudo parameter is a built-in CloudFormation parameter that automatically resolves to the AWS Region where the CloudFormation stack is being created. By using this pseudo parameter, you can dynamically access the current Region without requiring any additional configuration or input.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago