ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 34 - CV0-004 discussion

Report
Export

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?

A.
Perform docker pull before executing docker run.
Answers
A.
Perform docker pull before executing docker run.
B.
Execute docker update using a local cron to get the latest container version.
Answers
B.
Execute docker update using a local cron to get the latest container version.
C.
Change the image to use python:latest on the image build process.
Answers
C.
Change the image to use python:latest on the image build process.
D.
Update the Dockerfile to pin the source image version.
Answers
D.
Update the Dockerfile to pin the source image version.
Suggested answer: A

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.

Reference: Within the CompTIA Cloud+ examination scope, understanding management and technical operations in cloud environments, including container management and security, is critical. This includes best practices for maintaining up-to-date container images to minimize vulnerabilities.

asked 02/10/2024
Keenan Bragg
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first