{"id":1863,"date":"2022-12-15T07:15:00","date_gmt":"2022-12-15T07:15:00","guid":{"rendered":"https:\/\/exampracticetests.com\/aws\/Cloud_Practitioner_CLF-C01\/aws-certified-cloud-practitioner-clf-c01-question105\/"},"modified":"2022-12-15T07:15:00","modified_gmt":"2022-12-15T07:15:00","slug":"aws-certified-cloud-practitioner-clf-c01-question105","status":"publish","type":"post","link":"https:\/\/exampracticetests.com\/aws\/Cloud_Practitioner_CLF-C01\/aws-certified-cloud-practitioner-clf-c01-question105\/","title":{"rendered":"AWS Certified Cloud Practitioner CLF-C01 &#8211; Question105"},"content":{"rendered":"<div class=\"question\">A company hosts an application on an Amazon EC2 instance. The EC2 instance needs to access several AWS resources, including Amazon S3 and Amazon DynamoDB.<br \/>\nWhat is the MOST operationally efficient solution to delegate permissions?<br \/><strong><br \/>A.<\/strong> Create an IAM role with the required permissions. Attach the role to the EC2 instance.<br \/><strong>B.<\/strong> Create an IAM user and use its access key and secret access key in the application.<br \/><strong>C.<\/strong> Create an IAM user and use its access key and secret access key to create a CLI profile in the EC2 instance<br \/><strong>D.<\/strong> Create an IAM role with the required permissions. Attach the role to the administrative IAM user.<\/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\">\nReference: <a href=\"https:\/\/docs.aws.amazon.com\/IAM\/latest\/UserGuide\/id_roles_use_switch-role-ec2.html\" title=\"External link\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/docs.aws.amazon.com\/IAM\/latest\/UserGuide\/id_roles_use_switch-role-ec2.html<\/a><\/div>\n<p><\/strong><\/span> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>A company hosts an application on an Amazon EC2 instance. The EC2 instance needs to access several AWS resources, including Amazon S3 and Amazon DynamoDB. What is the MOST operationally efficient solution to delegate permissions?A. Create an IAM role with the required permissions. Attach the role to the EC2 instance.B. Create an IAM user and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[873],"tags":[874,979],"class_list":["post-1863","post","type-post","status-publish","format-standard","hentry","category-aws-certified-cloud-practitioner-clf-c01","tag-aws-certified-cloud-practitioner-clf-c01","tag-question-105"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/exampracticetests.com\/aws\/Cloud_Practitioner_CLF-C01\/wp-json\/wp\/v2\/posts\/1863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exampracticetests.com\/aws\/Cloud_Practitioner_CLF-C01\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exampracticetests.com\/aws\/Cloud_Practitioner_CLF-C01\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/Cloud_Practitioner_CLF-C01\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/Cloud_Practitioner_CLF-C01\/wp-json\/wp\/v2\/comments?post=1863"}],"version-history":[{"count":0,"href":"https:\/\/exampracticetests.com\/aws\/Cloud_Practitioner_CLF-C01\/wp-json\/wp\/v2\/posts\/1863\/revisions"}],"wp:attachment":[{"href":"https:\/\/exampracticetests.com\/aws\/Cloud_Practitioner_CLF-C01\/wp-json\/wp\/v2\/media?parent=1863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/Cloud_Practitioner_CLF-C01\/wp-json\/wp\/v2\/categories?post=1863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/Cloud_Practitioner_CLF-C01\/wp-json\/wp\/v2\/tags?post=1863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}