A financial services company is deploying an application on-premises that needs to periodically read and write files to an Amazon S3 bucket. The application must also retrieve credentials to connect to an Amazon RDS database and decrypt sensitive configuration files using an AWS KMS customer managed key. The company's security policy strictly prohibits the use of long-term AWS credentials and requires that all access be based on temporary security credentials. The company already has an established internal public key infrastructure (PKI). Which combination of actions should a solutions architect recommend?
- AGenerate access keys for the AWS account root user and configure the application to use them to ensure uninterrupted access. Store the database credentials in AWS Secrets Manager, and configure AWS KMS to automatically rotate the customer managed key daily, which immediately re-encrypts all historical data.
- Configure AWS IAM Roles Anywhere to allow the on-premises application to assume an IAM role with the minimum required S3 and KMS permissions. Store the database credentials in AWS Secrets Manager with automatic rotation enabled, and enable automatic annual rotation for the KMS customer managed key.Cevap
- CCreate a dedicated IAM user with administrative permissions for the application, generate long-term access keys, and store them in the application configuration. Store the database credentials in AWS Secrets Manager, and manually rotate the KMS customer managed key by creating a new key and immediately deleting the old key.
- DCreate a dedicated IAM user for the application, generate long-term access keys, and configure the application to use them. Store the database credentials in AWS Systems Manager Parameter Store as a plaintext String parameter, and enable automatic annual rotation for the KMS customer managed key.
Cevap
Configure AWS IAM Roles Anywhere to allow the on-premises application to assume an IAM role with the minimum required S3 and KMS permissions. Store the database credentials in AWS Secrets Manager with automatic rotation enabled, and enable automatic annual rotation for the KMS customer managed key.
The correct solution uses AWS IAM Roles Anywhere to establish trust between the on-premises PKI and AWS IAM. This allows the on-premises application to assume an IAM role and obtain temporary credentials, avoiding long-term access keys. AWS Secrets Manager is the best practice for storing database credentials because it supports automatic rotation. Enabling automatic annual key rotation for the KMS key is the recommended key management practice.
Adım Adım Çözüm
Anahtar Kavram
AWS IAM Roles Anywhere and Secure Credentials Management