Let’s Get Certified
Module 06 / 20 · Configuration and infrastructure as code

Review infrastructure as a versioned product

Choose a reusable provisioning interface and inspect the consequences of changing it.

Review infrastructure as a versioned product

A CDK construct synthesizes a CloudFormation template. A change set previews proposed changes to an existing stack, including replacements. Read the logical resource affected, its data lifecycle and the dependencies that still reference it. Retention and snapshot policy influence what survives a replacement. They do not reconnect an application to the new resource.

Publish a versioned module or construct for teams that maintain code and use Service Catalog to offer curated products to authorized consumers. Track routine operating-system configuration separately through State Manager associations. Drift detection compares supported deployed properties with the stack’s expected state and provides a starting point for reconciling an authorized manual change.

Worked case 1

The change set replaces a stateful resource. Does approval of the template establish data continuity?

Check your reasoning

Review snapshots, retention, data transfer, client cutover and recovery testing before approving replacement.

Worked case 2

Twenty teams need a centrally approved database pattern with a small set of inputs. How should they consume it?

Check your reasoning

Publish a versioned Service Catalog product with constraints and permissions. Test upgrading a provisioned product before promoting a new version.

Review CloudFormation change sets

Official DOP-C02 skills for this topic

Related lesson in Terraform Associate (004). Read the plan and promote the reviewed change.

Practice with the recording

A template applies DeletionPolicy to a database. Is that enough to retain the old instance when a property update forces replacement?

Check your reasoning

Review UpdateReplacePolicy for the old physical resource during replacement. DeletionPolicy addresses removal from a stack or stack deletion. Inspect the resource’s supported retention or snapshot options, then rehearse recovery from the retained data.

sthithapragna · DOP-C02 full course · 2:06:08

CloudFormation UpdateReplacePolicy

Knowledge check

Review infrastructure as a versioned product quiz

Answer 3 questions. Check each answer for an explanation.