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 341 discussion

A developer is deploying an application in the AWS Cloud by using AWS CloudFormation. The application will connect to an existing Amazon RDS database. The hostname of the RDS database is stored in AWS Systems Manager Parameter Store as a plaintext value. The developer needs to incorporate the database hostname into the CloudFormation template to initialize the application when the stack is created.

How should the developer reference the parameter that contains the database hostname?

  • A. Use the ssm dynamic reference.
  • B. Use the Ref intrinsic function.
  • C. Use the Fn::ImportValue intrinsic function.
  • D. Use the ssm-secure dynamic reference.
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
DeaconStJohn
Highly Voted 1 year ago
Selected Answer: A
As it is the DB hostname and not sensitive credentials I think ssm dynamic is the correct answer. Option D - is for secure string whereas this parameter is currently stored in plain text. For option C, I opted against this because for an import value, I believe there needs to be an export value from another template. The question didn't state that anything else was created via CF template. Option B - I understand to be used to reference another resource block that is in the same YAML template.
upvoted 6 times
...
teban0130
Most Recent 1 month ago
Selected Answer: A
Parameters: Environment: Type: AWS::SSM::Parameter::Value<String> Default: env
upvoted 1 times
...
preachr
6 months, 3 weeks ago
Selected Answer: A
To reference a plaintext value stored in Parameter Store in your template, you use the ssm dynamic reference pattern. This pattern allows you to reference values from parameters of type String or StringList in Parameter Store.
upvoted 1 times
...
Anandesh
9 months, 1 week ago
Selected Answer: A
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html
upvoted 1 times
...
65703c1
11 months ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
be1dca8
1 year ago
A since the question stated that the value is just plain text, not a secureString type
upvoted 3 times
...
KarBiswa
1 year, 1 month ago
Selected Answer: D
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html#dynamic-references-ssm-secure-strings
upvoted 1 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