IaC, AWS SAM and CI/CD for pipelines: DEA-C01 study notes and practice questions
What to know about IaC, AWS SAM and CI/CD for pipelines for the DEA-C01 exam, from the Data Ingestion and Transformation domain (34% of the exam guide), then 1 free question to test it. Part of the DEA-C01 study guide.
A regional bank manages its data pipelines with AWS CloudFormation stacks, and every deployment runs through a CI/CD pipeline. During an incident, engineers changed several Glue job settings and an S3 lifecycle rule directly in the console, and nobody recorded every change.
The team wants a list of every resource that no longer matches its template. The next deployment must then set those resources back to the template values without deleting or recreating them.
Which approach meets these requirements?
Choose one answer.
AA. Run drift detection on each stack, then deploy through the pipeline with a drift-aware change set that reverts drifted properties to the template values.
BB. Redeploy each stack's current template through the pipeline with a standard change set, which resets every resource to the template values.
CC. Delete each stack and create it again from its template, so that every resource returns to the declared settings.
DD. Search AWS CloudTrail for console changes during the incident, and reverse each one by hand in the console before the next deployment.
Show the answer and explanation
Answer: A
A. Right: Correct. Drift detection compares each resource's live settings with its template and lists the differences. A drift-aware change set, created with the REVERT_DRIFT deployment mode, compares the actual state as well as the template and updates the drifted properties in place. Learn more: Using drift-aware change sets (opens in a new tab)
B. Wrong: A standard change set compares the new template with the previous template, not with the live resources. Because the template has not changed, the drifted properties are not touched, and the deployment does not list what drifted. Learn more: Update CloudFormation stacks using change sets (opens in a new tab)
C. Wrong: Deleting a stack deletes the resources it manages, which can lose data and interrupt the pipelines. The bank asked to restore the settings without recreating the resources.
D. Wrong: CloudTrail shows who called which API, but it does not compare live resources with the templates, so changes can be missed. Manual fixes in the console also bypass the pipeline the team relies on.
Explanation
Drift detection shows which resources no longer match their templates, so the team sees every out-of-band change rather than only the ones it remembers. A standard change set compares templates only and leaves drift in place, while a drift-aware change set compares the actual state and puts the drifted properties back to the template values. Recreating stacks or fixing changes by hand from CloudTrail misses a requirement.
Want more on IaC, AWS SAM and CI/CD for pipelines? The 5 full-length practice sets have 5 more IaC, AWS SAM and CI/CD for pipelines questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →