🔥 3-day streak
Certified Kubernetes Administrator (CKA)87 / 125
Question 87 of 125
You are scheduling a batch workload that must land only on nodes located in either the 'us-east-1a' or 'us-east-1b' zones, but must NOT run on nodes labeled 'disktype=hdd'. You write a Pod spec with a single requiredDuringSchedulingIgnoredDuringExecution nodeSelectorTerm containing two matchExpressions: one with key 'topology.kubernetes.io/zone', operator 'In', values ['us-east-1a','us-east-1b'], and one with key 'disktype', operator 'NotIn', values ['hdd']. The Pod schedules onto a node in us-east-1a that has 'disktype=ssd'. A node in us-east-1a labeled 'disktype=hdd' is available but the Pod avoids it. Which statement correctly explains the matching behavior?
Reviewed for accuracy · Report an issueNext question