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 ML engineering team is building an automated experimentation workflow using Gemini Enterprise Agent Platform Pipelines and logging experiment runs to Experiments on Agent Platform. You need to scale distributed training for a TensorFlow 2.15 transformer model across a multi-host Cloud TPU Pod while meeting the following requirements:
Which compute and container configuration should you implement?
enable_pathways_for_tpus enabled, and run the TensorFlow 2.15 training job inside a jax-ai-image container scheduled onto a tpu-v5p-slice node pool.Cluster Toolkit deploys optimized Google Kubernetes Engine (GKE) clusters from Terraform blueprints, and enabling enable_pathways_for_tpus configures Pathways, a single-controller distributed AI runtime designed to coordinate massive multi-slice Cloud TPU workloads using Kubernetes JobSet and Kueue.
pathways-proxy / IFRT proxy) is built to compile and dispatch JAX programs across Cloud TPU slices, and the jax-ai-image container packages jax[tpu] and JAX-aligned libtpu dependencies rather than TensorFlow 2.15 TPU wheels and PJRT TensorFlow variables.tpu-v5p-slice), and maintaining Kubernetes nodeSelector and JobSet manifests directly violates the requirement to avoid manual Kubernetes cluster and node pool management.pathways-rm and the IFRT proxy to orchestrate multi-slice JAX workloads under a single-controller model.nodeSelector fields (cloud.google.com/gke-tpu-accelerator and cloud.google.com/gke-tpu-topology) and matching libtpu.so versions.This architecture would be optimal if the team were training a frontier-scale JAX foundation model requiring multi-slice TPU v5p orchestration under a single controller and had platform engineering support to operate GKE clusters.
Choose GKE with Cluster Toolkit and Pathways for custom multi-slice JAX orchestration, and choose Agent Platform serverless training when minimizing cluster operations within MLOps pipelines.
PJRT_DEVICE=TPU set to utilize TPU v6e's default PJRT runtime.TPU v6e (Trillium) is a newer Cloud TPU generation that uses PJRT as its default runtime for accelerated training and serving. Prebuilt training containers on Agent Platform provide managed Docker images with preinstalled ML frameworks for standard supported configurations.
PJRT_DEVICE=TPU is the configuration flag used by PyTorch/XLA (torch_xla[tpu]), not TensorFlow. TensorFlow requires NEXT_PLUGGABLE_DEVICE_USE_C_API=true and TF_PLUGGABLE_DEVICE_LIBRARY_PATH=/lib/libtpu.so.libtpu.so through framework-specific flags and wheel distributions.This approach would be viable if the team rewrote their model in PyTorch 2.1+, selected a PyTorch TPU prebuilt container (or custom container with torch_xla[tpu]), and used PJRT_DEVICE=TPU on TPU v6e VMs.
When migrating models to newer TPU generations on Agent Platform, always verify both framework support and whether a prebuilt image exists before designing pipeline components.
tf-tpu-pod-base-cp310:latest with TensorFlow 2.15, /lib/libtpu.so, PJRT environment variables (NEXT_PLUGGABLE_DEVICE_USE_C_API=true and TF_PLUGGABLE_DEVICE_LIBRARY_PATH=/lib/libtpu.so), and a CMD instruction.On Gemini Enterprise Agent Platform, serverless training with TPU VMs allows teams to execute distributed multi-host training without managing underlying cluster infrastructure. Because prebuilt TensorFlow training containers are not available for TPU v5e, running TensorFlow 2.15 on a TPU v5e Pod requires extending the Google-maintained TPU Pod base image (tf-tpu-pod-base-cp310:latest) with TPU-compiled binaries and PJRT runtime configuration.
tf-tpu-pod-base-cp310:latest the required base image for multi-host Pod initialization.libtpu.so shared library to /lib/libtpu.so and setting NEXT_PLUGGABLE_DEVICE_USE_C_API=true alongside TF_PLUGGABLE_DEVICE_LIBRARY_PATH=/lib/libtpu.so.CMD rather than ENTRYPOINT avoids overwriting the base image's built-in ENTRYPOINT, ensuring multi-host worker coordination initializes properly.tensorflow wheel and libtpu.so version in Artifact Registry guarantees identical environments across pipeline runs.libtpu library bundles the XLA compiler, TPU runtime, and driver to maximize matrix-multiply throughput for large batch sizes.This configuration is the only supported way to run TensorFlow 2.15 on multi-host TPU Pods within Agent Platform serverless training. It satisfies framework compatibility, multi-host Pod initialization, and low-ops pipeline orchestration simultaneously.
tf-tpu-pod-base-cp38:latest with TensorFlow 2.15, /lib/libtpu.so, and an ENTRYPOINT instruction to launch the training script across all Pod hosts.tf-tpu-pod-base-cp38 and ENTRYPOINT doThe tf-tpu-pod-base-cp38:latest image is an Agent Platform base container preconfigured with Python 3.8 and multi-host TPU Pod initialization scripts. In Dockerfiles, the ENTRYPOINT instruction defines the primary executable that runs when a container starts.
cp38 base image provides Python 3.8, which only supports TensorFlow 2.12 and lower, causing wheel installation and runtime incompatibilities with TensorFlow 2.15.ENTRYPOINT in a custom Dockerfile overrides the base image's built-in ENTRYPOINT responsible for configuring multi-host TPU Pod coordination, breaking distributed execution.NEXT_PLUGGABLE_DEVICE_USE_C_API=true and TF_PLUGGABLE_DEVICE_LIBRARY_PATH=/lib/libtpu.so, TensorFlow cannot initialize the PJRT runtime required on TPU v5e.tf-tpu-pod-base-cp38:latest maps strictly to Python 3.8 (TensorFlow <= 2.12), while tf-tpu-pod-base-cp310:latest maps to Python 3.10 (TensorFlow >= 2.13).CMD (or ContainerSpec.args) to invoke the training script while preserving the parent ENTRYPOINT.ENTRYPOINT ["python3", "trainer.py"], TensorFlow TPU Pod containers must avoid ENTRYPOINT.Using tf-tpu-pod-base-cp38:latest would be appropriate if the workload used TensorFlow 2.12 on a supported legacy TPU Pod (such as TPU v3), provided CMD were used instead of ENTRYPOINT.
Always match the Python version suffix (cp38 vs. cp310) in the base image URI to the target TensorFlow wheel's ABI tag (cp310).
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