
Answer-first summary for fast verification
Answer: Include the required tags in the CloudFormation template and ensure they are applied to the appropriate resources.
To ensure that the CloudFormation stack creates resources with the required tags, you should include the tags in the CloudFormation template and ensure they are applied to the appropriate resources. This approach allows you to define the tags at the time of stack creation and ensures that the resources are created with the necessary tags. Options A and B involve manual intervention after the stack is created, which can be error-prone and time-consuming. Option D is incorrect because IAM policies are used to grant permissions, not to define resource tags.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You are working on a project that requires the use of AWS CloudFormation to deploy resources with specific tags. You need to ensure that the CloudFormation stack creates resources with the required tags. Which of the following steps should you take to achieve this?
A
Manually add the required tags to each resource after the CloudFormation stack is created.
B
Use the AWS CLI to update the tags of each resource after the CloudFormation stack is created.
C
Include the required tags in the CloudFormation template and ensure they are applied to the appropriate resources.
D
Create an IAM policy that allows adding tags to resources and attach it to the CloudFormation stack.