Bird
0
0

What is a primary security benefit of running Docker containers without root privileges?

easy📝 Conceptual Q1 of 15
Docker - Security
What is a primary security benefit of running Docker containers without root privileges?
AEnables running containers on any host OS
BImproves container startup speed
CAllows containers to access all host files
DLimits potential damage if the container is compromised
Step-by-Step Solution
Solution:
  1. Step 1: Understand root privileges

    Root user inside a container has elevated permissions that can affect the host if compromised.
  2. Step 2: Running as non-root

    Running containers as non-root limits the scope of what an attacker can do if they gain access.
  3. Final Answer:

    Limits potential damage if the container is compromised -> Option D
  4. Quick Check:

    Security principle of least privilege applied [OK]
Quick Trick: Non-root limits container's attack surface [OK]
Common Mistakes:
  • Assuming non-root improves performance
  • Thinking non-root allows full host access

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes