Courseiva

PMLE Automating and Orchestrating ML Pipelines Practice Question

An ML engineer is designing a pipeline that should run only when new training data arrives in a Cloud Storage bucket. Which event-driven approach should they use to trigger the Vertex AI Pipeline?

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

✓

Use Cloud Storage Pub/Sub notifications to send events to a Cloud Function that triggers the pipeline.

The best approach is to use Cloud Storage notifications via Pub/Sub, then a Cloud Function that receives the event and calls the Vertex AI API to create a pipeline job. This is a common event-driven pattern. Cloud Scheduler is for scheduled triggers, not event-driven. Cloud Tasks and Cloud Run are not typically used for this purpose.

Answer analysis

Option-by-option breakdown

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

  • ✓

    Use Cloud Storage Pub/Sub notifications to send events to a Cloud Function that triggers the pipeline.

    Why this is correct

    Cloud Storage Pub/Sub notifications emit an event whenever an object lands in the bucket, and a Cloud Function subscribed to that topic invokes the Vertex AI Pipeline. This satisfies the stem's requirement to run only when new training data actually arrives, avoiding polling.

  • ✗

    Use Cloud Tasks to queue a pipeline run whenever a new file is uploaded.

    Why it's wrong here

    Cloud Tasks dispatches HTTP requests to a target service; it has no native Cloud Storage trigger and cannot itself detect uploads, so nothing enqueues a run. It suits rate-limited or delayed delivery of explicit tasks. A Cloud Storage object-finalise event notification is what detects the new file.

  • ✗

    Configure the pipeline to run on a schedule and check for new data inside the pipeline.

    Why it's wrong here

    A schedule fires the pipeline regardless of whether data exists, so runs occur with no new training data and the check inside the pipeline only wastes execution time. Scheduled pipelines suit periodic retraining on stable datasets. Object-finalise events from the bucket are what signal genuine data arrival.

  • ✗

    Set up a Cloud Scheduler job that runs every minute to check for new files.

    Why it's wrong here

    Polling every minute adds up to sixty seconds of latency and invokes checks when nothing has arrived, so the pipeline is not truly event-driven. Cloud Scheduler suits fixed-time batch jobs, such as nightly retraining. A Cloud Storage object-finalise event routed to the pipeline is the correct trigger.

About these practice questions

This PMLE question is part of Courseiva's 775-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.