ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 32 - CV0-004 discussion

Report
Export

A security engineer Identifies a vulnerability m a containerized application. The vulnerability can be exploited by a privileged process to read tie content of the host's memory. The security engineer reviews the following Dockerfile to determine a solution to mitigate similar exploits:

Which of the following is the best solution to prevent similar exploits by privileged processes?

A.
Adding the USER myappuserinstruction
Answers
A.
Adding the USER myappuserinstruction
B.
Patching the host running the Docker daemon
Answers
B.
Patching the host running the Docker daemon
C.
Changing FROM alpiner3.17 to FROM alpine:latest
Answers
C.
Changing FROM alpiner3.17 to FROM alpine:latest
D.
Running the container with the ready-only filesystem configuration
Answers
D.
Running the container with the ready-only filesystem configuration
Suggested answer: A

Explanation:

Adding the 'USER myappuser' instruction to the Dockerfile is the best solution to prevent similar exploits by privileged processes. This instruction ensures that the container runs as a non-privileged user instead of the root user, significantly reducing the risk of privileged exploits. Running containers with least privilege principles minimizes the potential impact of vulnerabilities, enhancing the overall security posture of the containerized environment.

Reference: The CompTIA Cloud+ framework includes security concerns, measures, and concepts for cloud operations, highlighting the importance of container security practices, such as running containers as non-root users to prevent unauthorized access and exploitation.

asked 02/10/2024
Jerome Fortin
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first