A data team's ETL scripts are edited directly on the server, and a bad change broke production last week. Which two practices should it adopt? (Select TWO.)
- 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 software engineering best practices for data engineering (for example, version control, testing, logging, monitoring); describe CI/CD.
Data pipelines are software. Without engineering discipline, every change is a production risk.
Why C and D are the answers
A multiple-response question. Choose two. There is no credit for picking only some of them.
Keep pipeline code in version control with code review
Run automated tests in a CI/CD pipeline before deploying changes
Version control and CI/CD testing bring software engineering discipline to data pipelines.
Remember: Treat pipelines as software: version control, tests and CI/CD.
How it works
Version control records every change to pipeline code, with review and the ability to roll back.
Automated tests in a CI/CD pipeline catch broken changes before they reach production.
Logging and monitoring then show how the deployed code behaves.
Clues in the question
The words that point to the answer, and what each one tells you.
- Edited directly on the server
- No version control.
- A bad change broke production
- No testing gate.
In detail
- Logging and monitoring are part of the same best practices.
- CI/CD covers implementing, testing and deploying pipeline changes.
Side by side with look-alikes
| Practice | Prevents |
|---|---|
| Version control and review | Untracked changes |
| CI/CD tests | Broken deployments |
| Logging | Blind debugging |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Disable logging to reduce noiseWrong
Logs are needed to find problems.
B. Let each engineer keep a private copyWrongMost tempting
Private copies drift and hide changes.
Why it tempts: It avoids people overwriting each other. But copies drift, and nobody knows which one is in production.
C. Keep pipeline code in version control with code reviewRight
Version control and CI/CD testing bring software engineering discipline to data pipelines.
D. Run automated tests in a CI/CD pipeline before deploying changesRight
Version control and CI/CD testing bring software engineering discipline to data pipelines.
E. Edit production scripts fasterWrong
Faster edits do not prevent bad ones.
In practice
- Test transformations on small sample datasets in CI.
Use case
An illustrative scenario, not a real incident.
A team moves its Glue scripts to Git, adds unit tests on sample data and deploys only through a pipeline.
See how it works
flowchart LR C["Commit"] --> R["Code review"] R --> T["Automated tests"] T --> D["Deploy"] T -->|"Fail"| X["Fix before deploy"]
How to read this chart
- "Commit" leads to "Code review".
- "Code review" leads to "Automated tests".
- At "Automated tests": otherwise, go to "Deploy"; if "Fail", go to "Fix before deploy".