Courseiva
hardMultiple SelectObjective-mapped

XK0-006 Practice Question: A security policy requires that containers run…

A security policy requires that containers run with minimal privileges. Which THREE measures should be implemented? (Select THREE.)

⚠ Common exam trap

Candidates often think that 'minimal privileges' only means running as non-root, when in fact seccomp profiles and capability dropping are equally critical to enforce kernel-level restrictions and prevent syscall-based exploits.

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

Use --security-opt seccomp=default

The `--security-opt seccomp=default` flag applies the default seccomp (secure computing mode) profile, which restricts the system calls available to the container. This enforces the principle of least privilege by blocking dangerous syscalls (e.g., `mount`, `reboot`) while allowing necessary ones, reducing the attack surface without manual profile creation.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use --security-opt seccomp=default

    Why this is correct

    The default seccomp profile restricts system calls, improving security.

  • Mount host filesystem read-write

    Why it's wrong here

    This grants the container write access to the host, violating minimal privilege.

  • Run as non-root user

    Why this is correct

    Running as non-root limits the impact of a container compromise.

  • Expose all ports to host

    Why it's wrong here

    Exposing all ports increases the attack surface; only expose necessary ports.

  • Drop all Linux capabilities and add only required

    Why this is correct

    Capabilities should be minimized; drop all and add back only what is needed.

About these practice questions

Courseiva writes every XK0-006 question from scratch — 979 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.