Operational Excellence and Automation

A team wants to define infrastructure with TypeScript loops and reusable classes while retaining CloudFormation change sets and rollback. Which approach meets these requirements?

Show the answer

Correct answerD. Use AWS CDK to synthesize CloudFormation templates.

AWhy not this: Direct SDK calls perform API operations but do not automatically place those operations under CloudFormation lifecycle management.

BWhy not this: StackSets deploy CloudFormation templates across accounts and Regions; they do not execute TypeScript source files.

CWhy not this: Aspects inspect or modify constructs during synthesis; they are not an API-based provisioning engine.

DWhy this is right: CDK supports TypeScript abstractions and synthesizes templates that CloudFormation deploys and manages.

AWS CDK supports general-purpose programming languages and synthesizes declarative CloudFormation templates, retaining CloudFormation deployment features. Direct AWS SDK calls do not automatically provide CloudFormation change sets or rollback.