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.
A team prototyped a real-time text classification and short entity-extraction service with a 70B-parameter dense LLM on a3-highgpu-8g nodes, reaching a 96.5% F1 score. Production scaling on Google Cloud requires:
TPS/chip/$Profiling shows autoregressive decoding on the 70B model is memory-bandwidth-bound and breaks the P99 SLA as batch size grows.
Which model selection and serving strategy should you adopt?
tensor_parallel_size=1) with bounded context length (--max-model-len=512) and horizontal autoscaling.Task-specific compact models—such as distilled encoders (e.g., DistilBERT) or smaller fine-tuned models—use knowledge distillation or domain-specific fine-tuning to achieve high accuracy on narrow tasks with a fraction of the parameters of a 70B dense LLM. Pairing a compact model with 8-bit quantization (such as FP8 or INT8) and single-GPU replicas (tensor_parallel_size=1) eliminates multi-chip communication overhead while maximizing hardware efficiency.
tensor_parallel_size=1 avoids inter-GPU NVLink/PCIe synchronization delays. Non-autoregressive encoders like DistilBERT process the 512-token sequence in a single forward pass, eliminating sequential token-by-token decoding bottlenecks.TPS/chip/$): Constraining --max-model-len=512 shrinks KV cache memory allocation per request, enabling deployment on smaller, cost-effective GPUs (such as NVIDIA L4 or single H100 instances) with higher concurrent batching before hitting the P99 latency inflection point.Unlike retaining a 70B dense LLM—which remains inherently constrained by weight-loading memory bandwidth during decoding—right-sizing the model family and architecture fundamentally shifts the latency-throughput curve, delivering orders-of-magnitude better TPS/chip/$ while comfortably satisfying strict tail-latency SLAs.
AutoML tabular builds managed gradient-boosted trees and tabular neural architectures optimized for structured, columnar datasets (such as CSVs or BigQuery tables). GPU time-sharing allows multiple Kubernetes containers to share a single physical GPU by allocating discrete execution time slices.
The prediction task operated on structured tabular features (rather than unstructured text), deployed on CPU-optimized machine types without GPU accelerators, and did not require transformer-based entity extraction.
Matching the model family to both data modality and accelerator capabilities is critical; adding high-end GPUs like H100s to tabular models increases infrastructure cost without accelerating inference.
pipeline_parallel_size=2) to distribute layers and scale throughput.4-bit quantization compresses model weights from 16-bit floating point down to 4-bit representations, reducing accelerator VRAM requirements by up to four times. Pipeline parallelism (pipeline_parallel_size=2) partitions a model's layers sequentially across multiple compute nodes, passing intermediate activations over the network from one node to the next.
pipeline_parallel_size across multiple nodes introduces inter-node network communication delays and pipeline bubbles on every forward pass, adding significant latency penalties that conflict with a strict 120 ms P99 SLA and 50 ms TTFT.TPS/chip/$: Even quantized, a 70B autoregressive model performs vastly more operations per prediction than a compact or distilled model for simple 512-token classification.The workload required serving an ultra-large model (such as a 405B+ or 600B+ parameter model) whose memory footprint exceeded the total accelerator memory of a single node, and the application could tolerate higher inter-node latency in exchange for multi-host capacity.
Pipeline parallelism is a scaling mechanism for oversized models that cannot fit within a single node, not a latency-optimization strategy for workloads that can be served by smaller model families.
max_num_seqs) until the model shifts from memory-bound to compute-bound to maximize TPS/chip/$.Cloud TPU v5p pods are custom Google AI accelerators engineered for massive-scale matrix multiplication using specialized matrix multiplication units (MXUs). Increasing max_num_seqs raises the number of concurrent sequences processed in a batch, which increases operational intensity (FLOPS per byte transferred) and pushes hardware utilization along the roofline model.
max_num_seqs: Raising concurrent sequences linearly expands KV cache consumption, risking preemption or out-of-memory errors.The workload was an offline batch inference job with relaxed latency constraints (minutes to hours) running a TPU-co-designed model architecture with MXU-aligned tensor dimensions.
Benchmarking TPS/chip/$ must always be bounded by the P99 latency SLA; maximizing theoretical FLOPS utilization at the expense of user-facing tail latency invalidates production readiness.
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