PMLE Automating and Orchestrating ML Pipelines Practice Question
A company is deploying a Vertex AI pipeline that trains a model and then runs a custom evaluation component. The evaluation component must only run if the training component succeeds and the model's accuracy exceeds a threshold. The pipeline must also support retries for transient errors in the training component. The engineer needs to configure the pipeline to meet these requirements. Which two actions should the engineer take? (Choose two.)
⚠ Common exam trap
Test-takers frequently confuse caching with conditional execution, or assuming that an ExitHandler can serve as a retry mechanism.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Set the `retry` policy on the training component to retry on specific exit codes or exceptions.
The evaluation component must run only when training succeeds and accuracy exceeds a threshold, so a dsl.Condition is used to gate its execution based on the accuracy metric. To handle transient errors in training, a retry policy on the training component is configured. These two actions together meet the requirements. Other options either do not enforce the condition, do not provide retries, or are not applicable.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Configure the pipeline to run the evaluation component in parallel with training to reduce latency.
Why it's wrong here
Running evaluation in parallel with training is not possible because evaluation depends on the trained model. The evaluation component requires the model artifact as input, which is only available after training completes. Parallel execution would cause the evaluation to fail or use stale data. This action also does not address the conditional requirement or retries. The correct approach is to use sequential execution with a condition.
- ✗
Set `enable_caching=False` on the evaluation component to ensure it always runs after training.
Why it's wrong here
Disabling caching on the evaluation component forces it to re-execute every time, but it does not control whether it runs based on accuracy. The evaluation would still run even if accuracy is below threshold, which violates the requirement. Caching is about reusing outputs, not about conditional execution. This action does not address the conditional logic or retry requirements.
- ✓
Set the `retry` policy on the training component to retry on specific exit codes or exceptions.
Why this is correct
Vertex AI Pipelines supports retry policies on individual components. By configuring a retry policy with a maximum retry count and backoff, the training component can automatically retry on transient failures such as resource exhaustion or network timeouts. This satisfies the requirement to support retries for transient errors. The retry policy can be specified using the `retry` argument when defining the component or task, and it applies only to that task.
- ✓
Use a `dsl.Condition` to wrap the evaluation component and check the accuracy metric against the threshold.
Why this is correct
A dsl.Condition allows conditional execution based on a runtime expression. By comparing the accuracy metric output from the training component to the threshold, the evaluation component will only run when the condition is true. This is the standard way to implement conditional steps in Vertex AI Pipelines, ensuring the evaluation runs only when the model meets the accuracy requirement. It also naturally handles the dependency on the training component's success.
- ✗
Use a `dsl.ExitHandler` to catch failures in the training component and retry it manually.
Why it's wrong here
A dsl.ExitHandler is used for cleanup actions, not for retrying failed components. While you could implement custom retry logic inside an exit handler, it is not the intended use and would be complex. Vertex AI Pipelines provides built-in retry policies that are simpler and more reliable. The exit handler would not automatically retry on transient errors; it would only execute after a failure, and you would have to code the retry loop yourself.
Go deeper
Related to this question
About these practice questions
Courseiva writes every PMLE question from scratch — 775 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Google Cloud exam blueprint
This PMLE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PMLE exam.