An enterprise is designing a secure architecture for a microservices application. The application's compute resources run in an Amazon ECS cluster hosted in AWS Account A, while the backend Amazon Aurora PostgreSQL database is hosted in AWS Account B. The security architecture must satisfy the following constraints:
1. The database credentials must be encrypted at rest and automatically rotated every 30 days without manual intervention.
2. The application requires access to a third-party payment API token that must be encrypted at rest and rotated every 90 days.
3. Non-sensitive configurations (such as the database endpoint and port) must be stored in a cost-optimized manner and accessible without decryption overhead.
4. The ECS tasks in Account A must access these resources securely with minimal operational complexity.
Which two options should the solutions architect choose to meet these requirements?
- Store the database credentials in AWS Secrets Manager in Account B, encrypted with a customer managed KMS key. Enable automatic rotation using the built-in Aurora PostgreSQL rotation template, and attach a resource-based policy to the secret to grant read access to the ECS task execution role in Account A.Cevap
- Store the non-sensitive database configurations as standard String parameters in AWS Systems Manager Parameter Store in Account A, and store the third-party API token in AWS Secrets Manager in Account A with a custom AWS Lambda function configured for its 90-day rotation.Cevap
- CStore the database credentials and the third-party API token in AWS Systems Manager Parameter Store in Account B as String parameters, and use AWS KMS automatic key rotation to automatically update the credentials in the database and re-encrypt the parameter values.
- DStore the database credentials and non-sensitive configurations in AWS Systems Manager Parameter Store in Account B as SecureString parameters, and configure the ECS tasks in Account A to retrieve them directly using a resource-based policy attached to the parameters.
- EStore the third-party API token in AWS Systems Manager Parameter Store in Account A as a String parameter, and configure an Amazon EventBridge rule that triggers a custom AWS Lambda function to rotate the token and update the parameter value every 90 days.