QuestionQ61

VerifiedTroubleshooting and Optimization

A developer maintains applications that store several secrets in AWS Secrets Manager. The applications use secrets that have changed over time. The developer needs to identify required secrets that are still in use. The developer does not want to cause any application downtime.

What should the developer do to meet these requirements?

Explanation

AWS Config includes a managed rule, secretsmanager-secret-unused, that automatically evaluates whether a secret has been accessed recently and flags it as unused if it hasn't; pairing this with an EventBridge rule to trigger notifications lets the developer passively discover which secrets are still needed without touching or disabling any secret, avoiding any risk of downtime. Deactivating secrets and watching for errors (option C) risks breaking production applications, and CloudTrail/X-Ray-based approaches (A, D) require the developer to manually build and monitor custom detection logic instead of using a purpose-built rule.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!