Linux_Foundation
CKS · Question #29
Perform the following fixes: 1. For Dockerfile: Fix the image version & user name in Dockerfile. 2. For mydeployment.yaml: Fix security contexts.
Sign in or unlock CKS to reveal the answer and full explanation for question #29. The question stem and answer options stay visible for context.
Submitted by olafpl· May 5, 2026Runtime Security
Question
Perform the following fixes:
- For
Dockerfile: Fix the image version & user name inDockerfile. - For
mydeployment.yaml: Fix security contexts.
Unlock CKS to see the answer
You've previewed enough free CKS questions. Unlock CKS for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Dockerfile security#Kubernetes securityContext#Container runtime security#Least privilege