Test
AWS
Preguntas del test (1)
1A financial services company is implementing AWS Lambda functions to connect to an Amazon Aurora MySQL database cluster. These Lambda functions will be utilized in both a development environment for testing and a live production environment.
The company's priority is to ensure that database credentials are not hardcoded within the Lambda functions and that there's a system in place for the automated rotation of passwords.
Which solution will fulfill these requirements?- A• Utilize AWS Systems Manager Parameter Store to manage database credentials for both the development and production environments. Encrypt these credentials using an AWS KMS key. Modify the Lambda functions' code to retrieve credentials from the Parameter Store using the AWS SDK for JavaScript. Assign appropriate IAM roles to the Lambda functions for accessing the Parameter Store.
- B• Save the database credentials in AWS KMS for both environments and enable automatic key rotation. Use environment variables in the Lambda functions to reference the stored AWS KMS credentials. Assign appropriate IAM roles to the Lambda functions for accessing AWS KMS.
- C• Establish distinct Amazon S3 buckets for development and production environments. Enable server-side encryption using AWS KMS keys (SSE-KMS) for both buckets. Implement a file naming convention that allows Lambda functions to dynamically fetch the appropriate credentials based on their environment. Ensure the execution roles of the Lambda functions have the necessary permissions to access the respective S3 buckets.
- DConfigure AWS Secrets Manager for managing the database credentials, creating separate secret keys for the development and production environments. Enable automatic secret rotation. Pass the Secrets Manager secret ARNs to the Lambda functions through environment variables. Assign appropriate IAM roles to the Lambda functions for accessing the secrets.
Información
- Descripción
- Test sobre AWS, creado por Sir Zakumi el 09/07/2024.
- Autor
- Sir Zakumi
- Idioma
- English
- Visitas
- 0
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test