Deployment, Provisioning, and Automation

A team defines infrastructure with the AWS CDK. Its review process requires generating a CloudFormation template for inspection without deploying resources. Which action should the team take?

Show the answer

Correct answerB. Run the CDK synth operation

AWhy not this: Drift detection compares deployed resources with their stack configuration; it does not synthesize a CDK application.

BWhy this is right: Synthesis generates the CloudFormation template from the CDK application without deploying its resources.

CWhy not this: Bootstrapping provisions supporting resources in an AWS environment; it does not simply generate the application's template.

DWhy not this: Deployment creates or updates the application's resources rather than stopping at template generation.

CDK synthesis generates CloudFormation templates from the application's constructs without deploying the defined resources. CDK deploy submits the infrastructure for deployment rather than only generating a template for review.