AWS Certified Solutions Architect Professional SAP-C02 Practice Question

In a multi-account AWS environment, your organization keeps all sensitive data in a dedicated security account. Several microservices that run in development, test, and production accounts need to obtain a PostgreSQL user name and password at runtime. Compliance states that the secret must remain in the security account, rotate automatically every 30 days with no downtime, be retrieved across accounts using least-privilege IAM policies, and produce a detailed audit trail for every read. The operations team wants the simplest managed solution with minimal custom code. Which design meets these requirements?

  • Bake the credentials into each microservice's Amazon ECS task definition as container secrets and trigger a monthly CodePipeline rebuild to supply updated values.

  • Create a SecureString parameter in AWS Systems Manager Parameter Store in the security account, configure an EventBridge rule to invoke a custom Lambda function that rotates the parameter every 30 days and copies the new value to each account.

  • Store the credentials as a secret in AWS Secrets Manager in the security account, configure a built-in Lambda rotation function for 30-day rotation, attach a resource-based policy that grants each application role GetSecretValue access, and rely on AWS CloudTrail for auditing.

  • Encrypt the credentials with a customer-managed AWS KMS key, upload the encrypted file to an Amazon S3 bucket in the security account, and run a daily AWS Batch job in every account to download and decrypt the file when the service starts.

AWS Certified Solutions Architect Professional SAP-C02
Design for New 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