引導式測驗 · 中等 等級
用於 ML 模型測驗的 Docker 容器
練習機器學習應用程式的 Docker 映像分層、多階段建置、工件處理和執行時間安全性選擇。
問題 1 的 8
為什麼在頻繁變更應用程式來源之前複製相依鎖定檔?
預覽每個問題8 問題
當您參加測驗時,就會出現答案和解釋。
- 為什麼在頻繁變更應用程式來源之前複製相依鎖定檔?
- Docker can reuse the dependency-install layer when only source code changes
- It guarantees packages never need security updates
- It makes model data part of the base image
- It runs dependency installation on the GPU
- 多階段 Docker 建置解決了什麼問題?
- Run every stage at the same time in production
- Use build tools in one stage and copy needed runtime artifacts to another
- Avoid declaring any base image
- Store secrets in an intermediate layer
- 為什麼要掛載大型私人資料集而不是將其複製進影像?
- It removes the need for data access controls
- It ensures the model is deterministic
- It avoids embedding data in an image that is distributed
- It converts the dataset into a model layer automatically
- digest 鎖定為基底影像提供了什麼?
- A smaller image size regardless of its layers
- Automatic security updates without rebuilding
- A record of the Python package versions only
- A more precise identity for the referenced image content
- 執行時機密通常應在哪裡提供?
- In source files copied into the image
- Through a secure runtime mechanism rather than embedded image layers
- In a public base-image tag
- Inside the model's class labels
- What does a running container add beyond an image?
- The physical GPU driver inside the container
- A new compiled base image automatically
- Runtime configuration such as mounts, environment and network
- A guarantee of bitwise-deterministic training
- Why run an application as a non-root user when practical?
- It makes the image digest shorter
- It prevents every dependency vulnerability
- It guarantees the model meets accuracy targets
- It limits privileges if the process is compromised
- What does a container image alone not guarantee?
- Identical numerical results across different hardware
- A packaged filesystem and metadata
- A specified application command
- Layered build inputs