A team must deploy the same data pipeline, with Glue jobs, buckets and IAM roles, to development, test and production accounts identically. What should it use?
- Exam domain
- Data Ingestion and Transformation34% of the exam
- Difficulty
- Easy
- In this mock
- 33 questions on this domainPractise this domain
Why the exam asks this
Task Statement 1.4: Apply programming concepts.
Objective in the exam guide: Use Infrastructure as Code (IaC) to deploy data engineering solutions; use IaC for repeatable resource deployment (for example, AWS CloudFormation and AWS CDK).
Data platforms span many resources. Rebuilding them by hand per environment causes drift and outages.
Why D is the answer
Infrastructure as code, such as AWS CloudFormation or the AWS CDK
Infrastructure as code deploys identical, reviewable resources repeatedly.
Remember: Identical environments: infrastructure as code.
How it works
Infrastructure as code describes resources in templates or code, so they can be deployed the same way every time.
AWS CloudFormation deploys templates; the AWS CDK defines infrastructure in languages such as Python or TypeScript and generates CloudFormation.
The definitions are versioned and reviewed like application code.
Clues in the question
The words that point to the answer, and what each one tells you.
- Identically to development, test and production
- Repeatable deployment.
In detail
- The AWS CDK lets you define infrastructure in programming languages and synthesizes CloudFormation.
- Templates live in version control with the pipeline code.
Side by side with look-alikes
| Method | Identical environments? |
|---|---|
| CloudFormation or CDK | Yes |
| Console clicks | No |
| Wiki steps | Rarely |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Clicking through the console in each accountWrong
Console steps drift between accounts.
B. A wiki page of manual stepsWrongMost tempting
Manual steps are error prone.
Why it tempts: Documented steps feel controlled. But people still make mistakes, and environments drift.
C. Copying settings from screenshotsWrong
Screenshots are not repeatable.
D. Infrastructure as code, such as AWS CloudFormation or the AWS CDKRight
Identical environments: infrastructure as code.
In practice
- Parameterize account-specific values, such as bucket names.
Use case
An illustrative scenario, not a real incident.
A team deploys one CDK app to three accounts, and the environments match exactly.
See how it works
flowchart LR C["CDK app in Git"] --> D["Dev account"] C --> T["Test account"] C --> P["Prod account"]
How to read this chart
- "CDK app in Git" leads to "Dev account" and "Test account" and "Prod account".