Capabilities & Default Security — DCA Practice Question
A representative Docker Certified Associate (DCA) exam question on Capabilities & Default Security. Work through it below, then read why each option is right or wrong.
This question is part of the free Docker Certified Associate practice test.
Short answer
The correct answer is B. It drops all capabilities except a limited set needed by typical processes, using an allowlist instead of a denylist..
B is correct: the security page says Docker drops all capabilities except those needed, an allowlist approach. A is wrong because the default set is small, not the full kernel set. C is wrong because a default set such as CHOWN, KILL, and NET_BIND_SERVICE stays enabled without any --cap-add. D is wrong because Docker does not choose the capability set from the image's USER instruction.
The Question
By default, how does Docker Engine handle Linux kernel capabilities for a new container?
Why B is correct
B is correct: the security page says Docker drops all capabilities except those needed, an allowlist approach. A is wrong because the default set is small, not the full kernel set. C is wrong because a default set such as CHOWN, KILL, and NET_BIND_SERVICE stays enabled without any --cap-add. D is wrong because Docker does not choose the capability set from the image's USER instruction.
Why the other options are wrong
Option A does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (B) is the only one that fully meets every constraint stated in the question.
Option C does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (B) is the only one that fully meets every constraint stated in the question.
Option D does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (B) is the only one that fully meets every constraint stated in the question.
Key idea: Capabilities & Default Security
B is correct: the security page says Docker drops all capabilities except those needed, an allowlist approach. A is wrong because the default set is small, not the full kernel set. C is wrong because a default set such as CHOWN, KILL, and NET_BIND_SERVICE stays enabled without any --cap-add. D is wrong because Docker does not choose the capability set from the image's USER instruction. On the DCA exam, questions in the "Security" domain test whether you can map a scenario's constraints to the right choice. Read the requirement carefully, eliminate options that violate any single constraint, and pick the one that satisfies all of them with the least operational overhead.
Ready to see how you'd score?
Take the free practice quiz and find out which Docker Certified Associate domains you need to focus on. No signup required.
Practice 5 similar questions
Same cert, same or adjacent domain. Use these after reviewing the explanation.
Related Docker Certified Associate Practice Questions
Official sources used
Verify program and exam details at the source before scheduling.