A manufacturing company uses an RDS instance for inventory and has several Lambda functions that connect to the database using hardcoded credentials. Credentials must never be stored in plaintext and must be rotated every 30 days. Which solution provides this with the least operational overhead?
Choose an answer
Tap an option to check your answer.
Correct answer: Store the database credentials in AWS Secrets Manager by creating a secret tied to the DB so Secrets Manager uses a rotation Lambda to update the DB password automatically on a 30-day schedule. Modify each Lambda to retrieve credentials from Secrets Manager..
Why this is the answer
Storing credentials in AWS Secrets Manager is the most secure and operationally efficient solution. Secrets Manager can automatically rotate database credentials for supported services like RDS, eliminating the need for a custom rotation Lambda and EventBridge schedule. It also ensures credentials are never stored in plaintext and are retrieved securely at runtime by the Lambda functions. The other options involve manual or custom rotation logic, increasing operational overhead. Storing credentials as environment variables (even encrypted) or in Parameter Store requires a custom Lambda to handle both password rotation in the database and updating the stored secret, which is less integrated and more complex than Secrets Manager's native rotation capabilities.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed