CV0-004 · Question #221
A cloud engineer wants containers to run the latest version of a container base image to reduce the number of vulnerabilities. The applications in use requite Python 3.10 and ate not compatible with…
The correct answer is A. Perform docker pull before executing docker run. Performing a "docker pull" before executing "docker run" ensures that the latest version of the container base image is used, aligning with the objective of reducing vulnerabilities. This command fetches the latest image version from the repository, ensuring that the container…
Question
A cloud engineer wants containers to run the latest version of a container base image to reduce the number of vulnerabilities. The applications in use requite Python 3.10 and ate not compatible with any other version. The containers' images are created every time a new version is released from the source image. Given the container Dockerfile below:
Which of the following actions will achieve the objectives with the least effort?
Exhibit
Options
- APerform docker pull before executing docker run.
- BExecute docker update using a local cron to get the latest container version.
- CChange the image to use python:latest on the image build process.
- DUpdate the Dockerfile to pin the source image version.
How the community answered
(60 responses)- A82% (49)
- B10% (6)
- C3% (2)
- D5% (3)
Explanation
Performing a "docker pull" before executing "docker run" ensures that the latest version of the container base image is used, aligning with the objective of reducing vulnerabilities. This command fetches the latest image version from the repository, ensuring that the container runs the most up- to-date and secure version of the base image. This approach is efficient and requires minimal effort, as it automates the process of maintaining the latest image versions for container deployments.
Topics
Community Discussion
No community discussion yet for this question.
