Courseiva
Cloud And Hybrid Infrastructure SecurityeasyMultiple SelectObjective-mapped

CPENT Cloud And Hybrid Infrastructure Security Practice Question

When reviewing container security and Kubernetes cluster configurations, which THREE practices or misconfigurations commonly lead to container escapes or host compromise? (Choose three)

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

Exposing sensitive host directories (such as '/' or '/proc') via 'hostPath' volumes.

Common container security issues include mounting the Docker socket, running containers in privileged mode, and exposing sensitive host paths.

Answer analysis

Option-by-option breakdown

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

  • Using a non-root user directive (USER 1000) inside the Dockerfile.

    Why it's wrong here

    Incorrect. Running as a non-root user is a security best practice that hinders, rather than helps, container escapes.

  • Exposing sensitive host directories (such as '/' or '/proc') via 'hostPath' volumes.

    Why this is correct

    Correct. Mounting host root directories allows direct manipulation of host files, cron jobs, or binaries.

  • Enabling the 'privileged: true' security context flag in the pod specification.

    Why this is correct

    Correct. Privileged containers disable all kernel namespaces and cgroups isolation, granting full access to the host.

  • Mounting the Docker daemon UNIX socket (/var/run/docker.sock) inside a container.

    Why this is correct

    Correct. Access to docker.sock allows a container to create sibling containers with host mounts, easily escaping the container.

  • Enabling Kubernetes Role-Based Access Control (RBAC) with least-privilege binding.

    Why it's wrong here

    Incorrect. Least-privilege RBAC is a hardening control, not a misconfiguration.

About these practice questions

Courseiva writes every CPENT question from scratch — 274 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 and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official EC-Council exam blueprint

This CPENT practice question is part of Courseiva's free EC-Council 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 CPENT exam.