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 serves a custom FastAPI PyTorch container on a public Vertex AI endpoint, where DeployedModel 12345 runs on g2-standard-8 with one NVIDIA_L4 GPU (min_replica_count=2) handling 100% of traffic. You must deploy model_v2—which requires 4 GB of shared memory—meeting these requirements:
model_v2 and 90% to 12345 with zero downtime and no client URL changes.model_v2 on GPU utilization while preserving multi-zone high availability and avoiding worker bottlenecks.max_replica_count later without redeploying model_v2.Which deployment strategy should you implement?
--network), migrate 12345 to it, and deploy model_v2 with serving_container_shared_memory_size_mb=4096, traffic_split={"0": 10, "12345": 90}, min_replica_count=0, scale_to_zero_spec, and a single FastAPI worker to minimize GPU contention.A Private Services Access endpoint uses VPC Network Peering to route inference traffic over an internal private network rather than public internet endpoints. Separately, scale-to-zero (scale_to_zero_spec with min_replica_count=0) enables Vertex AI endpoints to scale down all replicas during idle intervals (idle_scaledown_period) to save compute costs.
traffic_split. Attempting to deploy model_v2 alongside 12345 with a 10%/90% split on a private endpoint is unsupported. Furthermore, migrating to a private endpoint alters the endpoint URL and forces client networking changes.min_replica_count=0 with scale_to_zero_spec allows the deployment to drop to zero active VMs. Scaling back up incurs significant lag from Compute Engine VM provisioning, container image pulling, and model loading, violating zero-downtime and multi-zone high availability expectations.g2-standard-8 VM prevents the server from saturating compute resources under load, causing low utilization metrics that can block the autoscaler from adding replicas.PredictionServiceClient inference calls.Your organization mandated strictly private VPC-peered traffic without traffic splitting, could tolerate multi-minute cold starts during idle-to-active transitions, and used separate private endpoints with external load balancing for canary routing.
model_v2 to a new dedicated public endpoint with serving_container_shared_memory_size_mb=4096, min_replica_count=1, and autoscaling_target_cpu_utilization=60. Split traffic 10%/90% at the client application layer, and redeploy model_v2 whenever max_replica_count must be increased.Deploying a model to a separate dedicated public endpoint creates an independent inference URL (https://{ENDPOINT_ID}.{REGION}-{PROJECT_NUMBER}.prediction.vertexai.goog/...), while autoscaling_target_cpu_utilization instructs the Vertex AI autoscaler to trigger replica changes based on host CPU load rather than accelerator usage.
model_v2 to a brand-new endpoint requires updating client applications or maintaining an external proxy/router to split traffic 10%/90%, directly violating the requirement to avoid client URL changes.autoscaling_target_cpu_utilization=60 ignores GPU saturation. Deep learning inference on NVIDIA_L4 GPUs frequently saturates the accelerator while host CPU utilization remains low, causing the endpoint to under-scale and suffer severe latency spikes.min_replica_count=1 leaves baseline traffic on a single VM, offering no multi-zone resilience if that node or zone experiences an interruption.model_v2 simply to raise max_replica_count is avoidable operational overhead, as mutateDeployedModel updates scaling parameters on live DedicatedResources deployments in place.autoscaling_target_accelerator_duty_cycle, while autoscaling_target_cpu_utilization is intended for CPU-only deployments.min_replica_count, max_replica_count) and metric thresholds can be updated dynamically via mutateDeployedModel.You were deploying a CPU-only container for an isolated consumer application with its own endpoint URL and distinct SLOs, rather than running a GPU-accelerated canary release on an existing production endpoint.
model_v2 with serving_container_shared_memory_size_mb=4096 and configure FastAPI with one worker per vCPU. Deploy model_v2 to the existing endpoint with min_replica_count=2, autoscaling_target_accelerator_duty_cycle=60, and traffic_split={"0": 10, "12345": 90}. Later, update max_replica_count using mutateDeployedModel.Public Vertex AI Endpoints support deploying multiple DeployedModel resources behind a single stable prediction URI. Each deployed model retains its own dedicated machine specification, hardware accelerators, container settings, and autoscaling configuration, allowing teams to perform safe canary releases and blue-green transitions without modifying client applications.
traffic_split={"0": 10, "12345": 90} assigns 10% of incoming requests to the newly deployed model—referenced by the temporary key "0"—while keeping 90% on the existing DeployedModel (12345). Because traffic percentages sum to 100 on the same public endpoint, client URLs remain unchanged. Once model_v2 passes validation, traffic can be shifted to 100% before undeploying 12345./dev/shm) to 64 MB. Explicitly setting serving_container_shared_memory_size_mb=4096 allocates the 4 GB required by the PyTorch container, preventing memory allocation crashes under concurrent inference.autoscaling_target_accelerator_duty_cycle=60 scales GPU replicas every 15 seconds based on the highest target replica count calculated over the preceding 5-minute window (Ceil(current_replicas * (current_utilization / target_utilization))). Running one FastAPI worker per vCPU prevents single-threaded bottlenecks that would otherwise starve GPU utilization and stall autoscaling. Setting min_replica_count=2 ensures replicas span multiple Compute Engine VMs and zones for high availability.mutateDeployedModel modifies max_replica_count and autoscaling_metric_specs on DedicatedResources without redeploying the model or interrupting live traffic.DeployedModel uses independent dedicated compute nodes, preventing resource contention between canary and baseline versions.This approach combines native public endpoint traffic routing, proper container shared-memory sizing, GPU-aligned autoscaling, multi-worker concurrency, multi-zone redundancy, and non-disruptive scaling updates using mutateDeployedModel.
model_v2 to the existing endpoint using a rolling deployment to replace 12345 while reusing its compute nodes and setting traffic_split={"0": 10, "12345": 90}. Leave sharedMemorySizeMb at its 64 MB default, set min_replica_count=1, and call mutateDeployedModel later if machine_type or max_replica_count needs to change.A rolling deployment on Vertex AI replaces an existing DeployedModel in place with a new version of the same model, reusing the underlying compute resources allocated to the previous deployment. Meanwhile, mutateDeployedModel is an API operation designed to modify specific runtime scaling and logging settings on an already-deployed model.
DeployedModel versions concurrently with a 10%/90% traffic_split for canary evaluation.sharedMemorySizeMb at the default 64 MB will cause the PyTorch container requiring 4 GB of IPC shared memory to fail with out-of-memory or shared-memory errors during startup or concurrent tensor operations.min_replica_count=1 places the baseline deployment on a single VM node, preventing Vertex AI from distributing replicas across multiple VMs and availability zones.mutateDeployedModel can update max_replica_count and autoscaling metric targets without redeployment, core compute settings such as machine_type and container specifications are immutable once deployed and require redeploying the model.sharedMemorySizeMb are bound at model upload/deployment and cannot be altered via mutateDeployedModel.min_replica_count >= 2) for production high availability.DeployedModel resources on the same public endpoint so traffic percentages can be tuned or rolled back instantaneously.You wanted to swap a model version in place with identical container and hardware requirements without needing concurrent canary traffic splitting, and you only needed to mutate max_replica_count or logging settings afterward.
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