hardMultiple SelectObjective-mapped
XK0-006 Practice Question: A security-conscious administrator runs…
A security-conscious administrator runs containers with Podman. Which THREE methods ensure that a container runs with the least privilege required?
⚠ Common exam trap
CompTIA often tests the misconception that `--read-only=true` is a privilege-reduction method, when in fact it only restricts filesystem writes and does not limit user or capability privileges.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
--user 1000
Using `--user 1000` runs the container process with a non-root user (UID 1000), which reduces the attack surface by preventing root-level access inside the container. This is a fundamental least-privilege practice, as containers default to running as root unless explicitly changed.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
--privileged
Why it's wrong here
Gives full privileges, opposite of least privilege.
- ✓
--user 1000
Why this is correct
Runs the container as a non-root user, reducing privilege.
- ✓
--cap-drop=ALL
Why this is correct
Drops all kernel capabilities, leaving only needed ones if added back.
- ✗
--read-only=true
Why it's wrong here
Makes the root filesystem read-only, but the container still runs as root unless combined.
- ✓
--security-opt seccomp=default.json
Why this is correct
Applies a default seccomp profile to restrict system calls.
Go deeper
Related to this question
Learn chapter
User and Group Administration
Key term
Process
In IT service management, a process is a structured set of activities designed to accomplish a specific objective, such as managing incidents or changes, by transforming inputs into defined outputs.
Key term
Practice
Practice in IT service management refers to the repeated application of processes, procedures, and skills to improve efficiency, reduce errors, and maintain consistent service delivery.
About these practice questions
One of 979 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.