ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 63 - Professional Cloud Security Engineer discussion

Report
Export

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?

A.
Add a nodeSelector field to the pod configuration to only use the Nodes labeled inscope: true.
Answers
A.
Add a nodeSelector field to the pod configuration to only use the Nodes labeled inscope: true.
B.
Create a node pool with the label inscope: true and a Pod Security Policy that only allows the Pods to run on Nodes with that label.
Answers
B.
Create a node pool with the label inscope: true and a Pod Security Policy that only allows the Pods to run on Nodes with that label.
C.
Place a taint on the Nodes with the label inscope: true and effect NoSchedule and a toleration to match in the Pod configuration.
Answers
C.
Place a taint on the Nodes with the label inscope: true and effect NoSchedule and a toleration to match in the Pod configuration.
D.
Run all in-scope Pods in the namespace ''in-scope-pci''.
Answers
D.
Run all in-scope Pods in the namespace ''in-scope-pci''.
Suggested answer: A

Explanation:

nodeSelector is the simplest recommended form of node selection constraint. You can add the nodeSelector field to your Pod specification and specify the node labels you want the target node to have. Kubernetes only schedules the Pod onto nodes that have each of the labels you specify. => https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector Tolerations are applied to pods. Tolerations allow the scheduler to schedule pods with matching taints. Tolerations allow scheduling but don't guarantee scheduling: the scheduler also evaluates other parameters as part of its function. => https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/

asked 18/09/2024
OLUSEGUN IJAOLA
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first