ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 84 - DOP-C01 discussion

Report
Export

You need to create a Route53 record automatically in CloudFormation when not running in production during all launches of a Template. How should you implement this?

A.
Use a Parameter for environment, and add a Condition on the Route53 Resource in the template to create the record only when environment is not production.
Answers
A.
Use a Parameter for environment, and add a Condition on the Route53 Resource in the template to create the record only when environment is not production.
B.
Create two templates, one with the Route53 record value and one with a null value for the record. Use the one without it when deploying to production.
Answers
B.
Create two templates, one with the Route53 record value and one with a null value for the record. Use the one without it when deploying to production.
C.
Use a Parameter for environment, and add a Condition on the Route53 Resource in the template to create the record with a null string when environment is production.
Answers
C.
Use a Parameter for environment, and add a Condition on the Route53 Resource in the template to create the record with a null string when environment is production.
D.
Create two templates, one with the Route53 record and one without it. Use the one without it when deploying to production.
Answers
D.
Create two templates, one with the Route53 record and one without it. Use the one without it when deploying to production.
Suggested answer: A

Explanation:

The best way to do this is with one template, and a Condition on the resource. Route53 does not allow null strings for records.

Reference: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/conditions-sectionstructure.html

asked 16/09/2024
Adam Beke
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first