Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Professional Machine Learning Engineer practice bank has an additional 974 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
An ML engineering team is building an automated training pipeline in us-central1 for a custom multi-label text classification container while also benchmarking AutoML models on the exact same data. They must meet these requirements:
training, validation, and test split assignments in the ingestion manifest.Which implementation should the team use?
dataItemResourceLabels so Vertex AI applies automated splitting, create a managed dataset from the table, and configure the custom container to open AIP_TRAINING_DATA_URI, AIP_VALIDATION_DATA_URI, and AIP_TEST_DATA_URI as single literal Cloud Storage CSV file paths.Vertex AI managed datasets support automatic train-validation-test splitting when explicit split labels are omitted, and can export tabular datasets in either csv format or as BigQuery URIs (bq://project.dataset.table).
jsonl) format, not csv. CSV and BigQuery URI exports (AIP_DATA_FORMAT set to csv or bigquery) apply to tabular datasets, not unstructured text classification datasets.AIP_DATA_FORMAT is jsonl or csv, Vertex AI splits exported data across multiple shards to keep individual file sizes small. Consequently, AIP_TRAINING_DATA_URI, AIP_VALIDATION_DATA_URI, and AIP_TEST_DATA_URI use wildcard paths (such as gs://bucket_name/path/training-*), so treating them as single literal file paths causes file-not-found failures.dataItemResourceLabels ("aiplatform.googleapis.com/ml_use") delegates split assignment to Vertex AI's automatic partitioning rather than enforcing deterministic, manifest-defined splits.classificationAnnotations with textContent or textGcsUri).jsonl or csv exports must expand glob patterns or use framework readers (such as tf.io.gfile.glob) to ingest all shards.ml_use labels, reproducibility across independent dataset re-imports is not guaranteed by the manifest.This approach would be closer to correct if the workload involved a tabular dataset where automatic random splitting was acceptable and the training script queried BigQuery directly (AIP_DATA_FORMAT=bigquery) or globbed sharded CSV URIs.
Even when a container expects csv, assuming a single file URI rather than expanding the training-* wildcard pattern is a frequent production failure mode when transitioning from local prototypes to Vertex AI managed dataset pipelines.
us-central1 by loading the text records and labels into BigQuery, invoke assemble and assess to validate the schema and estimate pipeline costs, and reference that dataset_id in the custom TrainingPipeline's InputDataConfig to train the multi-label classifier.Vertex AI Multimodal datasets are specialized managed datasets backed by BigQuery that consolidate text, image, audio, and video records in a single resource. They expose dedicated lifecycle methods such as assemble and assess to preview data, validate schemas, and estimate downstream resource costs.
TrainingPipeline jobs—require standard single-modality managed datasets.InputDataConfig exporting split artifacts into AIP_DATA_FORMAT, AIP_TRAINING_DATA_URI, AIP_VALIDATION_DATA_URI, and AIP_TEST_DATA_URI inside the training container, which is not how generative multimodal datasets operate.aiplatform.googleapis.com/ml_use label inside OpenAPI-compliant JSONL manifests.assess and assemble to validate request structure and estimate token/compute costs prior to launching a tuning job.This approach would be appropriate if the team were preparing a mixed text-and-image corpus for supervised fine-tuning of a generative multimodal model (such as Gemini) or running generative batch prediction, rather than training predictive AutoML and custom classification models.
A common misconception is that "multimodal" simply means any dataset managed in Vertex AI across modalities; in practice, Vertex AI strictly separates generative multimodal datasets from single-modality predictive managed datasets.
us-east1 for regional isolation while running the TrainingPipeline in us-central1, pass the raw Cloud Storage JSONL manifest URI directly in containerSpec.args, and omit dataset_id and annotation_schema_uri from InputDataConfig so the container parses splits independently.Custom training containers in Vertex AI can accept arbitrary Cloud Storage paths via containerSpec.args inside workerPoolSpecs. Separately, Vertex AI managed datasets are regional resources created in specific Cloud Storage/Vertex AI locations.
TrainingPipeline that consumes it reside in the same region. Creating the dataset in us-east1 while launching the training pipeline in us-central1 causes pipeline validation to fail.dataset_id and annotation_schema_uri from InputDataConfig disconnects the TrainingPipeline from the Vertex AI managed dataset resource. As a result, Vertex AI cannot automatically record dataset-to-model lineage or manage annotations across AutoML and custom runs.InputDataConfig referencing the managed dataset, Vertex AI does not export the dataset or populate AIP_DATA_FORMAT, AIP_TRAINING_DATA_URI, AIP_VALIDATION_DATA_URI, and AIP_TEST_DATA_URI, forcing brittle manual path handling.Dataset resources are bound to a single Vertex AI region and cannot be referenced across regions by a TrainingPipeline.containerSpec.args forces the custom script to parse Vertex AI annotation schemas and dataItemResourceLabels manually instead of reading pre-split training-*, validation-*, and test-* shards.Passing a Cloud Storage path via containerSpec.args would only be appropriate for unmanaged custom training jobs where the team manages splits, metadata lineage, and preprocessing entirely outside Vertex AI managed datasets—and even then, regional co-location with compute is best practice.
In automated MLOps pipelines, InputDataConfig acts as the binding contract between data governance (the managed Dataset) and compute execution (the TrainingPipeline).
dataItemResourceLabels ("aiplatform.googleapis.com/ml_use") specifying each item's split, create the managed dataset in us-central1, configure InputDataConfig with dataset_id and annotation_schema_uri in the TrainingPipeline, and update the custom container to read AIP_DATA_FORMAT (jsonl) and the wildcard Cloud Storage URIs from AIP_TRAINING_DATA_URI, AIP_VALIDATION_DATA_URI, and AIP_TEST_DATA_URI.InputDataConfig AreA Vertex AI managed dataset is a centralized, schema-validated data resource that decouples raw storage files from model training workflows. When paired with InputDataConfig inside a TrainingPipeline, Vertex AI handles data exporting, split resolution, and metadata registration before launching either AutoML or custom container training jobs.
text_classification_multi_label_io_format_1.0.0.yaml). Including "dataItemResourceLabels": {"aiplatform.googleapis.com/ml_use": "training|validation|test"} on each JSONL record forces deterministic split placement rather than relying on random partitioning.dataset_id and annotation_schema_uri in InputDataConfig within the us-central1 TrainingPipeline automatically records dataset-to-model lineage and enables direct comparison between custom and AutoML models trained on the exact same dataset.AIP_DATA_FORMAT (jsonl) alongside wildcard URIs (AIP_TRAINING_DATA_URI, AIP_VALIDATION_DATA_URI, and AIP_TEST_DATA_URI), such as gs://bucket_name/path/training-*.TrainingPipeline in us-central1 satisfies Vertex AI's same-region execution requirement and minimizes cross-region data transfer.Unlike passing raw Cloud Storage paths in container arguments or misusing generative multimodal datasets, this pattern leverages native Vertex AI orchestration primitives to guarantee reproducible splits, automated runtime environment injection, and end-to-end lineage.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated