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 team serves three models on Google Cloud:
model.bst) tabular fraud scorer.model.mar) vision-NLP model using CPU-heavy image decoding inside a custom TorchServe container on nvidia-l4 nodes across Agent Platform and GKE.SavedModel handling variable batch sizes.Model A is costly on GPUs, Model B scales prematurely at 60% CPU utilization and hides container GPU metrics under time-sharing, and the team lacks unified latency, hardware, and drift telemetry.
Which architecture and configuration strategy should the team implement?
autoscalingMetricSpecs targeting accelerator/duty_cycle and 1 worker per core, and on GKE using HPA on ts_queue_latency_microseconds with gRPC binary payloads; deploy Model C on the optimized TensorFlow runtime container (tf_opt) with config/batching_parameters_config, XLA warmup, and private endpoints; and collect NVIDIA DCGM metrics via Managed Service for Prometheus alongside Model Monitoring v2 across both Agent Platform and GKE.This strategy aligns compute hardware, container packaging, autoscaling triggers, communication protocols, and observability tooling with the distinct performance profiles of XGBoost, PyTorch, and TensorFlow workloads across managed and Kubernetes-based serving tiers.
model.bst) rely on branching logic rather than dense parallel matrix multiplication, so running them on CPU-optimized nodes with the prebuilt XGBoost container reduces cost and avoids GPU transfer overhead. Conversely, deep learning models like PyTorch and TensorFlow retain GPU acceleration.autoscalingMetricSpecs on aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle (or DCGM GPU utilization) prevents CPU-bound image decoding from triggering unnecessary scale-outs, while setting one worker per core ensures multi-core concurrency scales predictably. On GKE, scaling Horizontal Pod Autoscaler (HPA) on TorchServe's ts_queue_latency_microseconds directly tracks inference backlog rather than noisy CPU metrics, and using gRPC binary payloads avoids JSON serialization overhead for image/tensor inputs.tf_opt) on compatible GPUs enables XLA precompilation (initialized via a SavedModel warmup file), server-side request batching (config/batching_parameters_config) for variable batch sizes, and private endpoints to minimize network latency.container/accelerator/* system metrics are unavailable under GPU sharing, while Model Monitoring v2 tracks input feature drift, output drift, and feature attributions at the model level across both Agent Platform and GKE.Unlike approaches that force all frameworks onto identical GPU shapes or rely on default CPU/memory autoscalers, this design matches each framework to its optimal processor, protocol, and inference-aware scaling signal while providing unified hardware and statistical drift observability.
maxReplicaCount; keep Model B on Agent Platform with default GPU autoscaling enabled while lowering its custom FastAPI server to a single worker process to limit CPU usage; deploy Model C using the optimized TensorFlow runtime container on Tesla P4 GPUs without XLA precompilation; and rely solely on Cloud Logging for latency and hardware diagnostics.This option relies on Agent Platform batch prediction scaling, throttles a custom FastAPI server to a single worker under default autoscaling, pairs the optimized TensorFlow runtime with Tesla P4 GPUs, and substitutes Cloud Logging for dedicated monitoring tools.
startingReplicaCount and ignores maxReplicaCount. Moreover, Model A requires low-latency online scoring and should run on CPU nodes rather than GPUs.max(CPU, GPU) rather than isolating GPU demand via autoscalingMetricSpecs.startingReplicaCount) during batch jobs.tf_opt) requires newer GPU architectures (such as T4, L4, A100, or H100) rather than P4 or P100.Using a single worker is only appropriate when deploying on a single-vCPU machine type or when troubleshooting excessive memory contention, and startingReplicaCount applies strictly to offline batch prediction jobs rather than online endpoints.
container/accelerator/duty_cycle system metric; expose all three models strictly through REST JSON endpoints; and enable endpoint-level Agent Platform Model Monitoring v1 for drift tracking across the environment.This configuration attempts to use Cloud Run with GPUs for serverless scaling of XGBoost and TensorFlow models, relies on GKE default container accelerator metrics under GPU time-sharing, standardizes on REST JSON, and uses endpoint-level Model Monitoring.
max-concurrent-requests). If GPU saturation occurs while CPU remains low, Cloud Run will fail to scale out unless concurrency limits are carefully tuned.container/accelerator/duty_cycle, memory_used, and memory_total) are not collected for containers scheduled on GPUs using GPU time-sharing or NVIDIA MPS. An HPA configured on container/accelerator/duty_cycle will receive no signal, breaking autoscaling and hiding GPU utilization.model.bst) on GPU-attached Cloud Run instances incurs unnecessary accelerator costs for a CPU-bound tree workload.container/accelerator Cloud Monitoring metrics, requiring NVIDIA DCGM for GPU observability.Cloud Run with GPUs is well suited for bursty or intermittent generative AI and deep learning workloads that require scale-to-zero economics and can be tuned via maximum concurrent requests per instance, rather than steady high-throughput tabular XGBoost or GKE time-shared deployments lacking DCGM telemetry.
This option consolidates all three models into a monolithic custom container on Multi-Instance GPUs (MIG), pairs CPU/memory HPA with VPA for GPU scaling, uses open-source TensorFlow Serving over public endpoints, and attempts to detect drift with Cloud Trace.
gpu-memory-partition ratios leaving buffer for transient working memory) risks Out-of-Memory (OOM) crashes where one model's traffic spike starves the others, while forcing CPU-oriented XGBoost onto MIG hardware wastes scarce GPU slices.ts_queue_latency_microseconds or vllm:num_requests_waiting) rather than CPU/memory.Co-hosting multiple models on a single GPU node is effective when serving multiple LLM or deep learning models that share GPU silicon with deterministic memory partitions and sub-process isolation, and Cloud Trace is valuable for diagnosing microservice request spans rather than data drift.
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