Docker Certified Associate (DCA) — Question 50
A company's security policy specifies that development and production containers must run on separate nodes in a given Swarm cluster.
Can this be used to schedule containers to meet the security policy requirements?
node affinities
Answer options
- A. Yes
- B. No
Correct answer: A
Explanation
The correct answer is 'Yes' because node affinities allow you to specify which nodes in a Swarm cluster should host certain containers, thus enabling compliance with security policies that require isolation between development and production environments. The other option, 'No', is incorrect as it implies that node affinities cannot be used for this purpose, which contradicts their functionality.