Kubernetes and Cloud Native Associate (KCNA) — Question 122
What's the difference between a security profile and a security context?
Answer options
- A. Security Contexts configure Clusters and Namespaces at runtime. Security profiles are control plane mechanisms to enforce specific settings in the Security Context.
- B. Security Contexts configure Pods and Containers at runtime. Security profiles are control plane mechanisms to enforce specific settings in the Security Context.
- C. Security Profiles configure Pods and Containers at runtime. Security Contexts are control plane mechanisms to enforce specific settings in the Security Profile.
- D. Security Profiles configure Clusters and Namespaces at runtime. Security Contexts are control plane mechanisms to enforce specific settings in the Security Profile.
Correct answer: B
Explanation
The correct answer is B because Security Contexts specifically configure Pods and Containers at runtime, while Security profiles serve as control plane mechanisms to enforce settings within those contexts. Options A, C, and D incorrectly describe the roles of Security Contexts and Security Profiles, leading to misunderstandings of their functionalities.