ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 38 - CV0-004 discussion

Report
Export

A cloud engineer is reviewing the following Dockerfile to deploy a Python web application:

Which of the following changes should the engineer make lo the file to improve container security?

A.
Add the instruction 'JSER nonroot.
Answers
A.
Add the instruction 'JSER nonroot.
B.
Change the version from latest to 3.11.
Answers
B.
Change the version from latest to 3.11.
C.
Remove the EHTRYPOIKT instruction.
Answers
C.
Remove the EHTRYPOIKT instruction.
D.
Ensure myapp/main.pyls owned by root.
Answers
D.
Ensure myapp/main.pyls owned by root.
Suggested answer: A

Explanation:

To improve container security, the engineer should add the instruction 'USER nonroot' to the Dockerfile. This change ensures that the container does not run as the root user, which reduces the risk of privilege escalation attacks. Running containers as a non-root user is a best practice for enhancing security in containerized environments.

Reference: CompTIA Cloud+ content includes security concerns, measures, and concepts for cloud operations, highlighting container security best practices such as running containers with least privilege to mitigate security risks.

asked 02/10/2024
Pedro Pereira
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first