AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 300

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?

Answer options

Correct answer: B

Explanation

Updating the SCP is an effective way to enforce compliance by preventing the creation of CloudFormation stacks that lack the required cost allocation tag. Using CloudFormation modules allows the organization to define standard, reusable SQS queue configurations, ensuring consistency across all development teams. Other methods, such as CDK feature flags or StackSets, do not address the combined need for configuration standardization and SCP-level policy enforcement.