Kcna Kubernetes And Cloud Native Associate · Free Practice Question Medium
Question 34
You have a distributed data processing application that needs to run close to where the data resides for optimal performance. You want to ensure that the application's pods are scheduled on nodes that have local SSDs attached. What should you use? (Select two)
-
A
Node Affinity
-
B
StatefulSet
-
C
PodSecurityPolicy
-
D
ResourceQuotas
-
E
DaemonSet
Reveal correct answers
Correct answers: A, E
A.
Node Affinity can be used to constrain which nodes your pod is eligible to be scheduled based on labels on nodes and conditions called node affinity rules. You can set rules targeting nodes that have local SSDs.
B.
While a StatefulSet is good for managing stateful applications, it doesn't allow for scheduling based on hardware attributes like local SSDs.
C.
PodSecurityPolicy is for setting security features on pods but does not influence scheduling based on hardware requirements.
D.
ResourceQuotas are used to limit the resources that a namespace can consume but are not used for scheduling based on hardware attributes.
E.
A DaemonSet ensures that all (or some) nodes run a copy of a pod. By using a DaemonSet in combination with NodeSelector, you can ensure that your pods are scheduled on nodes with local SSDs.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
