Question 6 of 506

Quick Answer

The answer is that the condition block must reference the evaluate component’s output directly rather than an input variable. This is because Vertex AI Pipelines evaluates condition expressions at compile time, not runtime—when a condition uses a pipeline input parameter, its value is fixed during compilation, often defaulting to False, so the deploy step is skipped regardless of the actual runtime metric of 0.9. To correctly gate execution on a dynamic result, the condition must point to the component’s output, such as `evaluate.outputs['metric']`, which is only resolved when the pipeline runs. On the Google Professional Machine Learning Engineer exam, this tests your understanding of the compile-time vs runtime evaluation distinction in pipeline orchestration, a common trap where candidates assume all expressions are evaluated during execution. Remember the mnemonic: “Compile-time checks the blueprint, runtime checks the build”—always wire conditions to component outputs, not static inputs.

PMLE Practice Question: Collaborating within and across teams to manage data and models

This PMLE practice question tests your understanding of collaborating within and across teams to manage data and models. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Exhibit

components:
  - name: evaluate
    container: gcr.io/my-project/evaluate:latest
    outputs:
      metric: {type: double}
  - name: gate
    type: condition
    inputs:
      metric: ${{ evaluate.outputs.metric }}
    condition: ${{ inputs.metric }} > 0.8
    actions:
      - deploy
  - name: deploy
    container: gcr.io/my-project/deploy:latest
    dependsOn: gate

Refer to the exhibit. A team runs this Vertex AI Pipeline definition but the deploy component never executes, even though the evaluate step outputs a metric of 0.9. What is the most likely cause?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "most likely"

    Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

  • Clue: "never"

    Why it matters: Absolute qualifier. True only if the statement has zero exceptions — be cautious of options that seem obvious but break down in edge cases.

Question 1mediummultiple choice
Full question →

Exhibit

components:
  - name: evaluate
    container: gcr.io/my-project/evaluate:latest
    outputs:
      metric: {type: double}
  - name: gate
    type: condition
    inputs:
      metric: ${{ evaluate.outputs.metric }}
    condition: ${{ inputs.metric }} > 0.8
    actions:
      - deploy
  - name: deploy
    container: gcr.io/my-project/deploy:latest
    dependsOn: gate

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

The condition should reference the evaluate component's output directly instead of using an input variable.

Option D is correct because in Vertex AI Pipelines, the `condition` block evaluates a boolean expression at pipeline compile time, not runtime. If the condition references an input variable rather than the actual output of the `evaluate` component, the pipeline will use the default or placeholder value (often `False`), causing the deploy step to be skipped even when the runtime metric is 0.9. The condition must directly reference the `evaluate` component's output (e.g., `evaluate.outputs['metric']`) to be evaluated correctly at runtime.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The deploy component depends on the gate component, but the gate is not producing an output.

    Why it's wrong here

    Gate components do not need to produce outputs; they control conditional execution.

  • The deploy container image does not exist.

    Why it's wrong here

    The error would be different if the image were missing.

  • The evaluate component must be run before train, but the pipeline order is incorrect.

    Why it's wrong here

    There is no train component in this pipeline snippet.

  • The condition should reference the evaluate component's output directly instead of using an input variable.

    Why this is correct

    The `condition` expression must directly use the output reference, not a local input.

    Clue confirmation

    The clue words "most likely", "never" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • The pipeline should use a custom component for the condition instead of the built-in type.

    Why it's wrong here

    The built-in condition type is appropriate; the issue is syntax.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the distinction between compile-time and runtime evaluation in pipeline orchestration, trapping candidates who assume that pipeline input parameters are dynamically resolved at the same point as component outputs.

Trap categories for this question

  • Command / output trap

    Gate components do not need to produce outputs; they control conditional execution.

Detailed technical explanation

How to think about this question

Vertex AI Pipelines uses Kubeflow Pipelines SDK, where `dsl.Condition` creates a task group that is compiled into an Argo Workflow. The condition expression is serialized at compile time; if you pass a pipeline input parameter (e.g., `threshold`) instead of a component output (e.g., `evaluate.outputs['accuracy']`), the condition becomes a static value. This is a common pitfall when migrating from local ML code to pipelines, as developers mistakenly treat pipeline parameters as runtime variables. In real-world scenarios, this can cause silent model deployment failures in production, where a model with high accuracy is never deployed because the condition always evaluates to `False`.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related PMLE practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free PMLE practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this PMLE question test?

Collaborating within and across teams to manage data and models — This question tests Collaborating within and across teams to manage data and models — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: The condition should reference the evaluate component's output directly instead of using an input variable. — Option D is correct because in Vertex AI Pipelines, the `condition` block evaluates a boolean expression at pipeline compile time, not runtime. If the condition references an input variable rather than the actual output of the `evaluate` component, the pipeline will use the default or placeholder value (often `False`), causing the deploy step to be skipped even when the runtime metric is 0.9. The condition must directly reference the `evaluate` component's output (e.g., `evaluate.outputs['metric']`) to be evaluated correctly at runtime.

What should I do if I get this PMLE question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "most likely", "never". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.