AWS Certified Developer – Associate (DVA-C02) — Question 192

A company wants to automate part of its deployment process. A developer needs to automate the process of checking for and deleting unused resources that supported previously deployed stacks but that are no longer used.

The company has a central application that uses the AWS Cloud Development Kit (AWS CDK) to manage all deployment stacks. The stacks are spread out across multiple accounts. The developer’s solution must integrate as seamlessly as possible within the current deployment process.

Which solution will meet these requirements with the LEAST amount of configuration?

Answer options

Correct answer: B

Explanation

Option B is the correct choice because it allows for the creation of a custom resource within the AWS CDK, which seamlessly integrates with the existing deployment process with minimal configuration. Option A requires creating an AWS CloudFormation template, which adds unnecessary complexity. Option C involves using AWS Amplify, which is not ideal for this scenario, and Option D suggests using the AWS Lambda console instead of the AWS CDK, leading to a less cohesive integration.