Tech_Interview_Prep

Container & Workload Security

Securing what runs inside containers and the runtime environment around them — images, runtime behavior, and isolation.

What it is

Container and workload security covers the full lifecycle of a containerized application — the image it's built from, what it does at runtime, and how well it's isolated from other workloads.

Key points

  • Image scanning: checking container images for known vulnerabilities in base images and dependencies before deployment — catches a large share of risk before a container ever runs.
  • Least-privilege runtime: containers should run as non-root, with a read-only filesystem and dropped Linux capabilities where possible — reduces what an attacker can do even if the application itself is compromised.
  • Network policies: in Kubernetes, controlling which pods can talk to which other pods — without them, any compromised pod can reach anything else in the cluster by default.
  • Runtime security monitoring detects anomalous behavior in a running container (unexpected process execution, unexpected network connections) — a defense layer for threats that image scanning, which only checks known vulnerabilities, wouldn't catch.