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 team must deploy a 70B-parameter LLM requiring 160 GB of accelerator memory for weights and KV cache using a custom vLLM container. The serving architecture must meet these requirements:
Which architecture should you implement?
Cloud Run with GPUs is a fully managed, serverless container platform designed for request-driven AI inference workloads—such as single-GPU quantized models, lightweight APIs, or AI agent backends—that benefit from automatic scaling and scaling to zero during idle periods.
max-concurrent-requests.min-instances to keep warm containers, startup probes to gate readiness, and Direct VPC egress for loading large models from Cloud Storage.You were serving a smaller fine-tuned model (fitting comfortably on a single GPU, ideally under 10 GB if baked into the image) with intermittent traffic where serverless simplicity and scale-to-zero outweigh multi-GPU parallelism and priority-based multiplexing.
tensor_parallel_size matching node GPU count, pipeline_parallel_size=1), backed by Compute Engine reservations for baseline capacity, Image streaming, and Run:ai Model Streamer from Cloud Storage. Front the Pods with GKE Inference Gateway (InferencePool, InferenceObjective priorities, and HTTPRoute traffic weights) and configure HPA to scale on vllm:gpu_cache_usage_perc with a minimum replica count.Running vLLM on a regional Google Kubernetes Engine (GKE) cluster paired with GKE Inference Gateway provides an AI-aware, multi-zone serving architecture tailored for latency-critical large language models. By aligning single-host tensor parallelism with inference-aware load balancing and Kubernetes autoscaling, this design handles large memory footprints without sacrificing tail latency.
tensor_parallel_size (and pipeline_parallel_size=1) avoids inter-node network hops that penalize time to first token (TTFT). Capacity reservations guarantee non-preemptible baseline accelerators in your target zones, while configuring the Horizontal Pod Autoscaler (HPA) on KV cache utilization (vllm:gpu_cache_usage_perc) with a minimum replica count scales out replicas preemptively before cache exhaustion causes queuing delays.InferencePool and uses InferenceObjective resources with numerical Priority levels to favor interactive requests and shed negative-priority batch traffic first during saturation. Deploying a parallel InferencePool with HTTPRoute weights enables gradual canary rollouts and immediate rollbacks.safetensors weights in parallel directly from Cloud Storage into GPU memory.gpu_memory_utilization and max_model_len alongside PagedAttention to maximize concurrent sequences.Unlike serverless containers or basic Ingress controllers, this architecture combines guaranteed baseline GPU capacity, single-node high-bandwidth parallelism, proactive KV-cache autoscaling, and priority-based load shedding in one cohesive stack.
ModelContainerSpec settings to the Agent Platform Model Registry, deploy two DeployedModel resources using multi-host pipeline parallelism (pipeline_parallel_size=4) to a standard shared Endpoint with --traffic-split, and rely on the endpoint's built-in concurrent-request autoscaling.Vertex AI / Agent Platform Endpoints manage underlying VM provisioning, health checks, traffic splitting (--traffic-split), and concurrent-request autoscaling for models registered in the Model Registry using a ModelContainerSpec.
sharedMemorySizeMb at the 64 MB default. High-performance model servers like vLLM rely on larger shared memory allocations for inter-process communication (IPC) and tensor parallelism, risking runtime failures or degraded performance.dedicatedEndpointEnabled: true) rather than a standard shared endpoint. Furthermore, forcing pipeline_parallel_size=4 across hosts introduces unnecessary inter-node latency penalties when a single multi-GPU node can fit 160 GB via tensor parallelism.vllm:gpu_cache_usage_perc) or prefix-cache state. It also lacks native InferenceObjective priority-based load shedding to selectively drop background summarization requests before interactive traffic under load.--traffic-split distributes percentages across DeployedModel resources on the same endpoint without changing client URLs.sharedMemorySizeMb, startup timeouts, and dedicated endpoints for chat completion and multi-host workloads.You preferred a fully managed endpoint without Kubernetes operations, configured a dedicated endpoint with increased sharedMemorySizeMb and single-host tensor parallelism, and did not require KV-cache autoscaling or priority-based load shedding.
pipeline_parallel_size=4) provisioned via Dynamic Workload Scheduler (DWS) Flex-Start for baseline capacity, expose the Pods using standard GKE Ingress with container-native load balancing (NEGs) and weighted backend services, and configure HPA to scale on vllm:num_requests_waiting.This configuration runs distributed vLLM across multiple single-GPU Spot VM nodes using pipeline parallelism, exposes endpoints via GKE Ingress with network endpoint groups (NEGs), and triggers HPA scale-out based on queued requests.
vllm:num_requests_waiting (queue size) is suited for throughput-sensitive workloads, not strict low-latency SLOs. Because it counts only requests already stuck waiting in the backlog rather than active KV cache saturation, latency spikes occur before new replicas provision.pipeline_parallel_size=4 across separate single-GPU nodes introduces network hops and pipeline bubbles between layers, degrading TTFT compared to keeping the 160 GB model on a single multi-GPU host with tensor parallelism.InferenceObjective priorities to shed batch traffic during overload.You were running a fault-tolerant, throughput-oriented batch inference pipeline on an oversized model requiring multi-node distribution, where occasional preemptions and higher startup or per-request latency are acceptable in exchange for lower infrastructure cost.
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