AWS Certified Security – Specialty — Question 416

A team is using AWS Secrets Manager to store an application database password. Only a limited number of IAM principals within the account can have access to the secret. The principals who require access to the secret change frequently. A security engineer must create a solution that maximizes flexibility and scalability.

Which solution will meet these requirements?

Answer options

Correct answer: C

Explanation

Using a tag-based approach (ABAC) with aws:PrincipalTag and aws:ResourceTag provides maximum flexibility and scalability because access is dynamically evaluated based on attributes, eliminating the need to constantly update IAM or resource policies. Role-based (Option A) and VPC endpoint-based (Option B) approaches require frequent manual policy updates, which do not scale well and increase administrative overhead. The deny-by-default group approach (Option D) is highly inefficient and creates significant risk of operational errors when managing group memberships.