An ML team's CI/CD pipeline deploys models and prompts. Which two automated tests should run before promotion? (Select TWO.)
- Exam domain
- Deployment and Orchestration of ML and AI Workflows24% of the exam
- Difficulty
- Medium
- In this mock
- 22 questions on this domainPractise this domain
Why the exam asks this
Task 3.3: Implement automated orchestration and CI/CD pipelines for MLOps and AI workloads.
Objective in the exam guide: Skill 3.3.4: Configure automated testing strategies within CI/CD pipelines for traditional ML and AI workloads.
Model and prompt changes break quality silently. Automated tests in the pipeline are the safety net that lets teams ship often.
Why A and B are the answers
A multiple-response question. Choose two. There is no credit for picking only some of them.
Model evaluation against a held-out test set and a minimum score
Prompt tests that check outputs on fixed inputs for format and quality
Automated model evaluation and prompt tests catch quality regressions before production.
Remember: Test models and prompts automatically before promoting them.
How it works
ML pipelines test models by evaluating them on held-out data against a threshold.
GenAI pipelines also test prompts: run fixed inputs, then check outputs for format, quality and safety.
Prompts are versioned, for example in Bedrock Prompt Management, so each test is tied to a version.
Clues in the question
The words that point to the answer, and what each one tells you.
- Deploys models and prompts
- Both need tests.
- Automated tests
- No manual steps.
In detail
- Prompts should be versioned, for example in Bedrock Prompt Management, and tested like code.
- Failing tests block the release.
Side by side with look-alikes
| Test | Catches |
|---|---|
| Model evaluation with threshold | Quality regressions |
| Prompt tests on fixed inputs | Format and quality breaks |
| Manual approval only | Little |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Model evaluation against a held-out test set and a minimum scoreRight
Automated model evaluation and prompt tests catch quality regressions before production.
B. Prompt tests that check outputs on fixed inputs for format and qualityRight
Automated model evaluation and prompt tests catch quality regressions before production.
C. A check that the developer's laptop is turned onWrong
Irrelevant to quality.
D. A manual email approval with no testsWrongMost tempting
Approval without tests misses regressions.
Why it tempts: Approval adds a human check, which feels safe. But without tests, the approver has no evidence.
E. Counting lines of codeWrong
Code size says nothing about model quality.
In practice
- Store test inputs and expected checks in source control next to the prompts.
Use case
An illustrative scenario, not a real incident.
A pipeline blocks a prompt version whose outputs fail the JSON schema on 12 of 200 fixed inputs.
See how it works
flowchart LR
C["Change"] --> M["Model evaluation"]
M --> P["Prompt tests"]
P --> G{"All pass?"}
G -->|"Yes"| D["Promote"]
G -->|"No"| X["Block"]How to read this chart
- "Change" leads to "Model evaluation".
- "Model evaluation" leads to "Prompt tests".
- "Prompt tests" leads to "All pass?".
- At "All pass?": if "Yes", go to "Promote"; if "No", go to "Block".