QuestionQ120Verified/Kubernetes FundamentalsCopy linkReport a problemAsk AstroTutorSave questionWhich of the following represents a recommended Kubernetes security practice?ARun the containers as the user with group ID 0 (root) and any user ID.BDisallow privilege escalation from within a container as the default option.CRun the containers as the user with user ID 0 (root) and any group ID.DAllow privilege escalation from within a container as the default option.Show AnswerAnswerExplanationKubernetes recommends setting allowPrivilegeEscalation: false to prevent a container process from obtaining more privileges than its parent. This supports the principle of least privilege; containers should also avoid running as root where possible.Learn moreKubernetes Application Security ChecklistConfigure a Security Context for a Pod or ContainerShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion