Container and Kubernetes Security Questions
Securing containerized and orchestrated workloads. Covers container image scanning and hardening, Kubernetes security (RBAC, network policies, pod security, secrets), runtime protection, and cloud-native security patterns. The specific attack surface and controls introduced by containers and orchestration platforms.
Design Kubernetes Role and RoleBinding manifests for a service account that only needs read access to secrets in its own namespace and permission to create custom metrics resources. Explain how you would audit the cluster to find overprivileged service accounts, and list strategies to reduce privilege escalation risks for compromised pods.
You need a real-time corrective control that can automatically quarantine a suspected compromised container in Kubernetes across multiple clusters while preserving service continuity. Design the detection-to-action orchestration, leader election, safety checks to avoid mass outages, rollback strategies, audit trails, and how to handle race conditions under high event load.
How would you implement least privilege for both service accounts and human operators in a Kubernetes cluster that hosts multiple teams and namespaces? Describe RBAC design patterns, recommended admission controllers (e.g., OPA/Gatekeeper), network policies, default-deny baselines, and automation you would use to enforce and audit least privilege across clusters.
How would you assess security of microservices communication in a Kubernetes environment? Cover mTLS, service mesh considerations, identity and authorization (service accounts), network policies, ingress/egress controls, and certificate lifecycle management. Provide a prioritized testing checklist.
That is every published Container and Kubernetes Security question for Cybersecurity Engineer so far. Browse the other topics in this category, or practice this one interactively.