🔥 3-day streak
Professional Machine Learning Engineer74 / 166
Question 74 of 166

Your team runs a Vertex AI Pipeline (built with the Kubeflow Pipelines SDK v2) that trains a model, uploads artifacts to Cloud Storage, and spins up a temporary Dataproc cluster for a feature-engineering step. Occasionally a downstream component fails partway through the run. When this happens, the temporary Dataproc cluster is left running (accruing cost) and no one is notified of the failure. You need to guarantee that a cleanup-and-notify task always executes at the end of the pipeline, whether the run succeeds or fails. What is the best way to implement this?

Reviewed for accuracy · Report an issueNext question