A SysOps administrator needs to configure automatic rotation for database credentials stored in AWS Secrets Manager. What must the administrator configure to execute the rotation code and update the credentials in both Secrets Manager and the database?
- An AWS Lambda function with the appropriate execution role and database connectivityCevap
- BAn IAM service role attached directly to the database instance that queries Secrets Manager
- CAn Amazon EventBridge rule that directly updates the database user credentials using the Amazon RDS API
- DAn AWS Systems Manager patch baseline configured to run updates on the database instance operating system
Cevap
An AWS Lambda function with the appropriate execution role and database connectivity
The correct answer is the option specifying an AWS Lambda function with the appropriate execution role and database connectivity. AWS Secrets Manager relies on Lambda to execute rotation templates (or custom code) that connect to the database to alter the credentials, and then call Secrets Manager to complete the rotation lifecycle.
Adım Adım Çözüm
Anahtar Kavram
AWS Secrets Manager automates secret rotation by executing an AWS Lambda function that updates the credential at the target service and records the change in the secret.