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.
Your ML team prototyped a PyTorch text classification model inside a Vertex AI Workbench notebook and needs to promote it to an automated production workflow. You must satisfy the following engineering requirements:
Which architecture should you implement?
aiplatform.log_metrics(), and export the trained PyTorch model to ONNX for registration in BigQuery ML.This architecture uses Cloud Composer (managed Apache Airflow) to schedule a single monolithic Docker container and attempts to store both training telemetry in flat experiment metrics and PyTorch models inside BigQuery ML via ONNX export.
aiplatform.log_metrics() records single-value summary metrics (such as final test accuracy) per run. Longitudinal per-epoch training curves are time-series metrics, which must be streamed to Vertex AI TensorBoard rather than flattened into scalar summary keys.The organization already standardized on Apache Airflow for enterprise multi-cloud data orchestration, only needed SQL-driven batch scoring on simple tabular features, and did not require time-series loss visualization or Vertex AI Model Registry governance.
.pth checkpoint in a versioned Cloud Storage bucket with Git commit object metadata as the production model registry.This design attempts to achieve modularity by containerizing every notebook cell separately, chaining API calls via Cloud Workflows, recording training metrics in Cloud Logging, and treating a Cloud Storage bucket with object metadata as a model registry.
.pth checkpoints in a Cloud Storage bucket with Git metadata provides basic file versioning but lacks Vertex AI Model Registry capabilities—such as centralized model versioning, staging/production aliases, linked evaluation metrics, integrated Vertex AI Model Monitoring, and streamlined deployment to Vertex AI Endpoints..pth checkpoints in Cloud Storage require manual serving wrappers before handling online predictions.The workload were a lightweight microservice integration pipeline making stateless REST API calls where operational audit logging—rather than ML experimentation, lineage, and managed model serving—was the primary requirement.
/tmp/logs directory on the instance, log final parameters to a local CSV file, and upload the raw .pt state dictionary directly to Vertex AI Model Registry using a prebuilt PyTorch serving container.Scheduled executions on Vertex AI Workbench automate recurring runs of an entire Jupyter notebook on managed compute instances. While convenient for automated reporting or lightweight retraining of self-contained notebooks, this approach treats the notebook as a monolithic script rather than a modular ML pipeline.
/tmp/logs directory on an ephemeral execution VM prevents Vertex AI TensorBoard from streaming metrics in near real time. Managed training and pipeline environments expose the Cloud Storage-backed AIP_TENSORBOARD_LOG_DIR environment variable specifically for persistent, real-time log ingestion..mar) containing the model weights, architecture definition, and a request handler, rather than a raw .pt state dictionary.The team only needed a temporary, low-effort automated refresh of an exploratory analysis notebook without enterprise lineage tracking, cross-run experiment dashboards, or managed online serving contracts.
os.environ['AIP_TENSORBOARD_LOG_DIR'], and orchestrate it as a cached Kubeflow Pipelines component in Vertex AI Pipelines. Log hyperparameters and summary metrics to Vertex AI Experiments alongside ML Metadata lineage, then package the weights into a TorchServe model archive (.mar) registered in Vertex AI Model Registry with a prebuilt PyTorch serving container.Transitioning a PyTorch prototype from Vertex AI Workbench to production requires decoupling interactive cells into reproducible software artifacts. Packaging the training logic as a standard Python package allows it to execute on Vertex AI Custom Training (CustomJob) using Google-managed prebuilt PyTorch training containers, eliminating custom Dockerfile maintenance while guaranteeing dependency consistency.
os.environ['AIP_TENSORBOARD_LOG_DIR'] streams per-epoch loss curves directly to Vertex AI TensorBoard. Logging hyperparameters and final evaluation summary metrics to Vertex AI Experiments links the TensorBoard resource for unified run comparison, while Vertex AI Pipelines automatically records input and output artifact lineage in Vertex AI ML Metadata..mar) satisfies the contract of the prebuilt PyTorch serving container, enabling seamless registration in Vertex AI Model Registry with version control, aliases, and evaluation linkage.This design preserves the team's native PyTorch codebase while adopting managed MLOps primitives—Custom Training, Pipelines, Experiments, TensorBoard, and Model Registry—with minimal infrastructure overhead.
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