{"id":357,"date":"2022-02-05T18:28:52","date_gmt":"2022-02-05T18:28:52","guid":{"rendered":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/aws-devops-engineer-professional-dop-c01-question345\/"},"modified":"2022-02-05T18:28:52","modified_gmt":"2022-02-05T18:28:52","slug":"aws-devops-engineer-professional-dop-c01-question345","status":"publish","type":"post","link":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/aws-devops-engineer-professional-dop-c01-question345\/","title":{"rendered":"AWS DevOps Engineer Professional DOP-C01 &#8211; Question345"},"content":{"rendered":"<div class=\"question\">You need to create a Route53 record automatically in CloudFormation when not running in production during all launches of a Template.<br \/>\nHow should you implement this?<br \/><strong><br \/>A.<\/strong> Use a &lt;code&gt;Parameter&lt;\/code&gt; for &lt;code&gt;environment&lt;\/code&gt;, and add a &lt;code&gt;Condition&lt;\/code&gt; on the Route53 &lt;code&gt;Resource&lt;\/code&gt; in the template to create the record only when &lt;code&gt;environment&lt;\/code&gt; is not &lt;code&gt;production&lt;\/code&gt;.<br \/><strong>B.<\/strong> 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.<br \/><strong>C.<\/strong> Use a &lt;code&gt;Parameter&lt;\/code&gt; for &lt;code&gt;environment&lt;\/code&gt;, and add a &lt;code&gt;Condition&lt;\/code&gt; on the Route53 &lt;code&gt;Resource&lt;\/code&gt; in the template to create the record with a null string when &lt;code&gt;environment&lt;\/code&gt; is &lt;code&gt;production&lt;\/code&gt;.<br \/><strong>D.<\/strong> Create two templates, one with the Route53 record and one without it. Use the one without it when deploying to production.<\/div>\n<p><\/p>\n<style> .hidden-div{ display:none } <\/style>\n<p>\t\t\t\t\t\t\t<button onclick=\"getElementById('hidden-div').style.display = 'block'\"> Show Answer <\/button> <button onclick=\"getElementById('hidden-div').style.display = 'none'\">Hide Answer<\/button><\/p>\n<div class=\"hidden-div\" id=\"hidden-div\"><span style=\"\"><\/p>\n<div class=\"answer\">Correct Answer: <strong>A<\/strong><\/div>\n<p><strong>Explanation:<\/strong> <\/p>\n<div class=\"explanation\">\nExplanation:<br \/>\nThe best way to do this is with one template, and a Condition on the resource. Route53 does not allow null strings for records.<br \/>\nReference: <a href=\"http:\/\/docs.aws.amazon.com\/AWSCloudFormation\/latest\/UserGuide\/conditions-sectionstructure.html\" title=\"External link\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/docs.aws.amazon.com\/AWSCloudFormation\/latest\/UserGuide\/condi&#8230;<\/a><\/div>\n<p><\/strong><\/span> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>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 &lt;code&gt;Parameter&lt;\/code&gt; for &lt;code&gt;environment&lt;\/code&gt;, and add a &lt;code&gt;Condition&lt;\/code&gt; on the Route53 &lt;code&gt;Resource&lt;\/code&gt; in the template to create the record only when &lt;code&gt;environment&lt;\/code&gt; is not &lt;code&gt;production&lt;\/code&gt;.B. Create two templates, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[3,348],"class_list":["post-357","post","type-post","status-publish","format-standard","hentry","category-aws-devops-engineer-professional-dop-c01","tag-aws-devops-engineer-professional-dop-c01","tag-question-345"],"_links":{"self":[{"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/posts\/357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/comments?post=357"}],"version-history":[{"count":0,"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/posts\/357\/revisions"}],"wp:attachment":[{"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/media?parent=357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/categories?post=357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/tags?post=357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}