Hard1 markMultiple Choice
Domain 2.1: Deployment StrategyDeploymentAWS CDKCross-Account

AWS SAP-C02 · Question 21 · Domain 2.1: Deployment Strategy

A development team uses AWS CDK to define their infrastructure. They need to deploy the infrastructure across three different AWS accounts (Dev, Test, Prod) from a central CI/CD account. How should they configure the permissions for this cross-account deployment?

Answer options:

A.

Create IAM users in each target account and store their access keys in the central account's Secrets Manager.

B.

Bootstrap the target accounts trusting the central account, and use CDK pipelines to assume the deployment roles in the target accounts.

C.

Use AWS Resource Access Manager (RAM) to share the CDK stacks with the target accounts.

D.

Deploy the CDK stacks manually in each account using the AWS Management Console.

How to approach this question

Understand the AWS CDK bootstrapping process for cross-account deployments.

Full Answer

B.Bootstrap the target accounts trusting the central account, and use CDK pipelines to assume the deployment roles in the target accounts.✓ Correct
Bootstrap the target accounts trusting the central account, and use CDK pipelines to assume the deployment roles in the target accounts.
CDK bootstrapping provisions resources in a target environment (account/region) that the CDK needs to perform deployments, including IAM roles that a central CI/CD account can assume.

Common mistakes

Choosing access keys, which is highly insecure compared to assuming roles.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 1

75 questions · hints · full answers · grading

More questions from this exam