1. A data scientist at a retail company is working in Vertex AI Workbench and wants to ensure that all team members can reproduce her Python environment exactly, including specific library versions used for feature engineering. She wants the solution to integrate natively with Vertex AI and require minimal manual configuration for her teammates. What should she do?
- A. Export a requirements.txt file and commit it to the shared Git repository so teammates can run pip install manually.
- B. Use a Vertex AI Workbench managed notebook with a custom container image that includes all required dependencies, and share the image via Artifact Registry.✓ Correct
- C. Document the library versions in a README file stored in the notebook's home directory.
- D. Install all dependencies in a persistent disk attached to the Workbench instance and share a snapshot of the disk.
Explanation
Using a custom container image stored in Artifact Registry is the recommended, cloud-native approach. It encapsulates all dependencies and configurations, and any team member can launch an identical Workbench instance from the same image, ensuring full reproducibility with minimal manual effort. Option A (requirements.txt) is fragile because pip may resolve slightly different transitive dependency versions across environments and requires manual steps. Option C (README documentation) is purely informational and does nothing to enforce reproducibility. Option D (disk snapshot) is operationally heavy, not version-controlled, and does not integrate cleanly with Vertex AI's managed notebook workflow.