DCA practice question 7 of 25
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? Solution: node taints
Full set: 191 questionsThe proposed solution is incorrect because "node taints" are a feature of Kubernetes, not Docker Swarm. Taints are used in Kubernetes to mark a node so that it repels pods. Docker Swarm uses a different mechanism, namely placement constraints and preferences based on node labels, to control where service tasks are scheduled. Therefore, the concept of "node taints" cannot be applied to a Docker Swarm cluster to enforce the described security policy.
A: This is incorrect. "Node taints" is not a valid feature or terminology within the Docker Swarm orchestration toolset.
1. Docker Docs, "Manage swarm service placement," Swarm mode > Manage swarm services. The documentation details the use of --constraint and --placement-pref flags, with no mention of "taints."
2. Kubernetes Docs, "Taints and Tolerations." This official Kubernetes documentation describes taints as a node property, confirming it is a Kubernetes-specific concept.
Keep practicing
Take the free DCA practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other DCA practice questions
- Question 1Does this command create a swarm service that only listens on port 53 using the UDP proto…
- Question 2Will this command ensure that overlay traffic between service tasks is encrypted? Solutio…
- Question 4Does this describe the role of Control Groups (cgroups) when used with a Docker container…
- Question 5Can this set of commands identify the published port(s) for a container? Solution: docker…
- Question 6Will this command mount the host's '/data' directory to the ubuntu container in read-only…
- Question 9Will this action upgrade Docker Engine CE to Docker Engine EE? Solution: Uninstall 'docke…
