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

A developer manages three AWS accounts. Each account contains an Amazon RDS DB instance in a private subnet. The developer needs to define users in each database in a consistent way. The developer must ensure that the same users are created and updated later in all three accounts.

Which solution will meet these requirements with the MOST operational efficiency?

Answer options

Correct answer: B

Explanation

AWS CloudFormation does not natively support managing database-level users inside an Amazon RDS instance, which makes a custom resource necessary to handle the user creation and updates. Utilizing a CloudFormation template with a custom resource allows for consistent, automated, and declarative state management across all three accounts. Other options, such as running scripts on Amazon EC2 instances or managing cross-account AWS Lambda functions manually, introduce significant operational overhead and lack the native lifecycle management provided by CloudFormation.