Question

Difficulty: EasyAWS CodePipeline

A developer is configuring a release pipeline in AWS CodePipeline. The pipeline must retrieve a database password that requires automatic weekly rotation, and it must assume an IAM role in a target AWS account to deploy resources. Which of the following configuration steps are correct? (Select TWO.)

  1. Store the database password in AWS Secrets Manager, which natively supports automatic rotation of database credentials.Answer
  2. B
    Store the database password in Systems Manager Parameter Store, as Parameter Store natively supports automatic rotation.
  3. Configure the trust policy of the target IAM role to allow the CodePipeline service role to assume it.Answer
  4. D
    Configure the permission policy of the target IAM role to authorize which external accounts can assume the role.
  5. E
    Create an IAM group and attach the CodePipeline service role to the group to manage cross-account permissions.

Answer

Store the database password in AWS Secrets Manager, which natively supports automatic rotation of database credentials, and configure the trust policy of the target IAM role to allow the CodePipeline service role to assume it.
Storing database credentials in AWS Secrets Manager is correct because it natively handles secrets and supports automatic weekly rotation. Additionally, configuring the trust policy of the target IAM role allows CodePipeline to assume the role and execute deployment actions in the target account.

Step-by-Step Solution

1
Determine the appropriate service for storing database credentials requiring rotation.
AWS Secrets Manager is chosen because it natively supports rotating secrets automatically.
This meets the requirement of storing a database password with automatic rotation.
2
Determine the proper method for establishing cross-account access.
Configure the trust policy of the target IAM role to allow the source account's CodePipeline service role to assume it.
Trust policies define who can assume an IAM role, which is required for cross-account execution.

Key Concept

AWS CodePipeline integrates with Secrets Manager for secret retrieval and uses cross-account IAM role assumptions defined via trust policies to perform deployments.
Rate this question