Kubernetes - RBAC and SecurityWhich Kubernetes object would you use to grant permissions within a specific namespace?AClusterRoleBRoleCServiceAccountDNamespaceCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify namespace-scoped permission objectA Role is used to define permissions limited to a single namespace.Step 2: Differentiate from ClusterRoleClusterRole is cluster-wide, so it is not limited to one namespace.Final Answer:Role -> Option BQuick Check:Namespace permissions = Role [OK]Quick Trick: Use Role for namespace permissions, ClusterRole for cluster-wide [OK]Common Mistakes:Using ClusterRole for namespace-only permissionsConfusing ServiceAccount with permission objectsThinking Namespace object grants permissions
Master "RBAC and Security" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes Advanced Deployment Patterns - GitOps with ArgoCD - Quiz 8hard Advanced Deployment Patterns - Canary deployments - Quiz 5medium Advanced Deployment Patterns - GitOps with ArgoCD - Quiz 2easy Helm Package Manager - Helm charts concept - Quiz 11easy Helm Package Manager - Helm charts concept - Quiz 14medium Monitoring and Logging - Resource monitoring best practices - Quiz 11easy Monitoring and Logging - Resource monitoring best practices - Quiz 13medium Operators and Custom Resources - Custom Resource Definitions (CRDs) - Quiz 6medium RBAC and Security - Secrets encryption at rest - Quiz 15hard Service Mesh - Service mesh vs library-based approach - Quiz 7medium