DOP-C02 · Question #367
A company has deployed a landing zone that has a well-defined AWS Organizations structure and an SCP. The company's development team can create their AWS resources only by using AWS CloudFormation…
The correct answer is C. Use AWS CDK tagging to enforce the cost allocation tag in CloudFormation StackSets. Instruct. AWS CDK Tagging: By using AWS CDK's tagging capabilities, the DevOps engineer can enforce specific tags (like cost allocation tags) on the SQS queues at the code level. This ensures consistency across all deployments, as the tagging logic is incorporated into the infrastructure…
Question
A company has deployed a landing zone that has a well-defined AWS Organizations structure and an SCP. The company's development team can create their AWS resources only by using AWS CloudFormation and the AWS Cloud Development Kit (AWS CDK). A DevOps engineer notices that Amazon Simple Queue Service (Amazon SQS) queues that are deployed in different CloudFormation stacks have different configurations. The DevOps engineer also notices that the application cost allocation tag is not always set. The DevOps engineer needs a solution that will enforce tagging and promote the reuse of code. The DevOps engineer needs to avoid different configurations for the deployed SQS queues. What should the DevOps engineer do to meet these requirements?
Options
- ACreate an Organizations tag policy to enforce the cost allocation tag in CloudFormation stacks.
- BUpdate the SCP to enforce the cost allocation tag in CloudFormation stacks. Instruct the
- CUse AWS CDK tagging to enforce the cost allocation tag in CloudFormation StackSets. Instruct
- DUse AWS CDK tagging to enforce the cost allocation tag in CloudFormation stacks. Instruct the
How the community answered
(38 responses)- A24% (9)
- B5% (2)
- C61% (23)
- D11% (4)
Explanation
AWS CDK Tagging: By using AWS CDK's tagging capabilities, the DevOps engineer can enforce specific tags (like cost allocation tags) on the SQS queues at the code level. This ensures consistency across all deployments, as the tagging logic is incorporated into the infrastructure as Defining SQS Queues with AWS CDK: Instructing the development team to use the AWS CDK to define their SQS queues promotes code reuse and consistency in configuration. The CDK allows for defining resources in a more programmatic way, which can help standardize the SQS configuration across different stacks. CloudFormation StackSets: By deploying the SQS queues using CDK stacks, the development team can easily manage and deploy consistent configurations across multiple accounts or regions through StackSets, ensuring that all resources adhere to the same standards.
Topics
Community Discussion
No community discussion yet for this question.