nerdexam
Google

PROFESSIONAL-CLOUD-SECURITY-ENGINEER · Question #110

For compliance reasons, an organization needs to ensure that in-scope PCI Kubernetes Pods reside on "in-scope" Nodes only. These Nodes can only contain the "in-scope" Pods. How should the…

The correct answer is A. Add a nodeSelector field to the pod configuration to only use the Nodes labeled inscope: true. A nodeSelector field in the Pod specification instructs the Kubernetes scheduler to place the Pod only on Nodes that carry the matching label (e.g., inscope: true). This satisfies the first requirement - in-scope Pods land only on designated in-scope Nodes. In the context of…

Submitted by femi9· Apr 18, 2026Ensuring compliance

Question

For compliance reasons, an organization needs to ensure that in-scope PCI Kubernetes Pods reside on "in-scope" Nodes only. These Nodes can only contain the "in-scope" Pods. How should the organization achieve this objective?

Options

  • AAdd a nodeSelector field to the pod configuration to only use the Nodes labeled inscope: true.
  • BCreate a node pool with the label inscope: true and a Pod Security Policy that only allows the
  • CPlace a taint on the Nodes with the label inscope: true and effect NoSchedule and a toleration to
  • DRun all in-scope Pods in the namespace "in-scope-pci".

How the community answered

(49 responses)
  • A
    73% (36)
  • B
    6% (3)
  • C
    16% (8)
  • D
    4% (2)

Explanation

A nodeSelector field in the Pod specification instructs the Kubernetes scheduler to place the Pod only on Nodes that carry the matching label (e.g., inscope: true). This satisfies the first requirement - in-scope Pods land only on designated in-scope Nodes. In the context of this question, the answer assumes that in-scope Nodes are isolated and dedicated, so no other workloads are co-scheduled there. Option C (taints and tolerations) is actually a more complete solution in practice because taints with NoSchedule also prevent non-in-scope Pods from landing on the in-scope Nodes, but the given answer is A. Option B references PodSecurityPolicy which is deprecated. Option D (namespace isolation) does not provide Node-level scheduling control.

Topics

#Kubernetes#nodeSelector#Pod scheduling#PCI compliance

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-SECURITY-ENGINEER Practice