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 engineering team is pre-training a 235-billion-parameter Mixture-of-Experts (MoE) language model in PyTorch from scratch across 512 accelerators on Google Cloud. The workload has the following characteristics and requirements:
Which hardware configuration and distributed parallelism strategy should the team select?
Cloud TPU v6e (Trillium) is a cost-efficient sixth-generation TPU designed primarily for fine-tuning, distillation, and inference serving at scale. Each chip contains one TensorCore (two 256x256 MXUs) and two SparseCores, connected in a 2D torus topology with 800 GBps of bidirectional ICI bandwidth. Context Parallelism (CP) shards the sequence dimension of activation tensors, while Tensor Parallelism (TP) splits individual layer matrices across devices.
16x16 topology). Provisioning a single 512-chip Pod slice on TPU v6e is physically unsupported; scaling to 512 chips would require Multislice execution over the slower Data Center Network (DCN) rather than pure ICI.TPUStrategy violates the project constraint and introduces heavy refactoring overhead.Cloud TPU7x (Ironwood) is a seventh-generation AI accelerator ASIC designed for massive-scale foundation model training, scaling up to 9,216 chips per Pod in a 3D torus interconnect topology. TorchTPU provides a PyTorch-native backend for Cloud TPU, while TorchTitan on TPU supplies pre-tuned distributed training recipes (SimpleFSDP and XLA whole-step graph compilation) that run standard PyTorch models across multi-host TPU slices without framework rewrites. Combining Fully Sharded Data Parallelism (FSDP) with Expert Parallelism (EP) shards weights, gradients, and optimizer states across devices while distributing MoE expert layers across separate chips.
8x8x8 slice (512 chips across 128 VMs) communicates directly over 1,200 GBps of bidirectional Inter-Chip Interconnect (ICI) bandwidth per chip without traversing slower host Ethernet NICs, preventing bottlenecks during All-to-All expert token routing.torch.compile and XLA passes to overlap communication with computation.Unlike multi-node GPU clusters—where ultra-fast NVLink is confined within an 8-GPU server and cross-node traffic must traverse lower-bandwidth NICs—a 512-chip TPU7x slice maintains direct ICI connectivity across the entire Pod slice. It also surpasses smaller 256-chip TPU v6e Pods and avoids the hardware mismatch of older A100 clusters that lack native FP8 Tensor Cores.
A3 Mega (a3-megagpu-8g) instances feature 8 NVIDIA H100 (80 GB HBM3) GPUs per VM interconnected by an NVLink Full Mesh (900 GBps), alongside 8 secondary 200 Gbps NICs running GPUDirect-TCPXO (1,600 Gbps / 200 GBps total inter-node GPU transfer bandwidth). Pipeline Parallelism (PP) partitions model layers sequentially across stages, whereas Tensor Parallelism (TP) splits individual layer matrices and requires high-frequency synchronization.
A2 Ultra (a2-ultragpu-8g) instances are accelerator-optimized VMs equipped with 8 NVIDIA A100 (80 GB) GPUs built on the Ampere architecture. Within a single VM, the 8 GPUs are linked via an NVLink Full Mesh (600 GBps), while inter-node communication relies on standard virtualized networking up to 100 Gbps. Tensor Parallelism (TP) splits individual weight matrices and activations across accelerators, requiring frequent All-Reduce synchronization on every transformer layer.
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