AWS Certified Database – Specialty — Question 55

A company wants to automate the creation of secure test databases with random credentials to be stored safely for later use. The credentials should have sufficient information about each test database to initiate a connection and perform automated credential rotations. The credentials should not be logged or stored anywhere in an unencrypted form.
Which steps should a Database Specialist take to meet these requirements using an AWS CloudFormation template?

Answer options

Correct answer: C

Explanation

The correct answer, C, effectively utilizes AWS::SecretsManager::Secret to generate secure credentials and references them in the database creation, ensuring security and automated credential rotation. Option A does not use randomly generated credentials, and option B incorrectly sets the database properties to a chosen user name instead of a generated one. Option D also fails to correctly reference the generated credentials in the database properties.