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.

HardTechnical
90 practiced

You suspect a container breakout on a production node. Create an incident response runbook: immediate containment (isolate node/pods), evidence collection (kernel logs, containerd/container logs, memory snapshots), forensic analysis steps, and remediation (patch/replace node, rotate credentials). Include communications and audit steps.

HardTechnical
98 practiced

A CI/CD system was compromised and an attacker pushed a malicious image signed with stolen signing keys. Describe how you would revoke trust in the compromised keys, identify which clusters pulled the malicious image, and safely roll back/remediate across an environment of many clusters.

MediumSystem Design
72 practiced

Design a multi-tenant Kubernetes isolation strategy for an organization that runs dozens of customer workloads on shared clusters. Discuss namespaces, network policies, node pools, resource quotas, RBAC boundaries, and any control plane or billing considerations.

HardTechnical
81 practiced

Discuss the trade-offs between enforcing security policies in CI/CD (blocking builds) versus at admission time (blocking pods at runtime). How do you handle false positives, developer productivity, and guarantee that runtime state matches what was approved in CI?

MediumTechnical
81 practiced

How would you implement least privilege for Kubernetes service accounts using RBAC and OPA Gatekeeper? Describe how to design roles, bind them safely, write admission control policies to prevent privilege escalation, and a rollout plan to retrofit an existing cluster with minimal disruption.

Unlock Full Question Bank

Get access to all 48 Container and Kubernetes Security interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.