1. You are designing a containerized custom training job for Vertex AI. Your container image is 5 GB and is stored in Artifact Registry. The training job uses 8 workers, each pulling the image. During training startup, you notice a 15-minute delay before actual training begins. What are the most efficient ways to reduce this delay? (Select TWO.)
- A. Optimize the container image by removing unnecessary dependencies and build artifacts; aim for a smaller image size✓ Correct
- B. Use a base image with TensorFlow/PyTorch pre-installed instead of installing from scratch in the Dockerfile✓ Correct
- C. Enable image caching in Artifact Registry so workers reuse previously pulled images
- D. Increase the machine type CPU cores to speed up image extraction on the worker nodes
- E. Replace Artifact Registry with Cloud Storage for faster image pulls
- F. Distribute the training across fewer workers (e.g., 4 instead of 8) to reduce total pull time
Explanation
Container image optimization (removing unnecessary files) and using pre-built base images are the two most effective ways to reduce image size and pull time. A 5 GB image is large; optimizing it can reduce to 1-2 GB, cutting pull time significantly. Artifact Registry caching is automatic; enabling it doesn't typically provide additional speedup. CPU cores affect extraction, not network pull time. Cloud Storage doesn't serve OCI images efficiently. Reducing workers would increase total time. Image optimization and base image selection directly address the bottleneck.