AWS Certified Solutions Architect Professional SAP-C02 Practice Question

A company operates a multi-account AWS environment that is governed by AWS Organizations. All application secrets are stored in the security account (Account A) by using AWS Secrets Manager in the us-east-1 Region. An Amazon ECS service that runs in the production account (Account B) must retrieve the secret named Prod/DatabaseCredentials when tasks start. Requirements are:

  1. The secret must remain encrypted at rest with AWS KMS.
  2. The implementation must apply the principle of least privilege while allowing Account A to retain full administrative control of the secret.
  3. Ongoing operational effort should be kept to a minimum.

Which approach satisfies these requirements?

  • Encrypt the secret with a customer managed KMS key in Account A, update the key policy to allow the ECS task role in Account B to decrypt, attach a resource-based policy on the secret granting secretsmanager:GetSecretValue to that role, and add an identity-based policy that allows secretsmanager:GetSecretValue and kms:Decrypt.

  • Export the secret to an encrypted advanced parameter in AWS Systems Manager Parameter Store and reference the parameter as an environment variable in the ECS task definition.

  • Encrypt the secret with the AWS managed key aws/secretsmanager, attach a resource-based policy that grants secretsmanager:GetSecretValue to the ECS task role in Account B, and add an identity-based policy in Account B that allows secretsmanager:GetSecretValue.

  • Configure Secrets Manager to replicate the secret to a new copy in Account B and grant the ECS task role secretsmanager:GetSecretValue permission on the replica.

AWS Certified Solutions Architect Professional SAP-C02
Continuous Improvement for Existing Solutions
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot