CKS • Practice Test 2 — 25 Questions
Free CKS practice test 2 — 25 questions with explanations. No signup required.
An OPA/Gatekeeper ConstraintTemplate is defined with the following Rego rule:
violation[{"msg": msg}] { container := input.review.object.spec.containers[_] container.securityContext.runAsNonRoot != true msg := "Container must run as non-root"
}What happens when a pod is submitted with a container that has runAsNonRoot: true?
Choose an answer to begin — your selection is scored in the full session.
25 questions · instant feedback and full explanations after every question.