Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Detect misconfigurations and runtime risks in container workloads by using Defender for Containers

A worked example

Match

You enable the Microsoft Defender for Containers plan on an Azure subscription that contains several Azure Kubernetes Service (AKS) clusters. You are reviewing the plan components in the Settings pane to confirm which component each security capability depends on.

Match each capability to the Defender for Containers component it requires. Each component may be used once, more than once, or not at all.

  • Correct match: Defender sensor.

    Suspicious process execution alerts come from the Defender sensor, which uses eBPF on each node to observe process activity. Kubernetes API access reads cluster configuration only and does not observe processes inside containers.

  • Correct match: Defender sensor.

    Binary drift detection is a sensor-based capability: the sensor sees a process starting from a binary absent from the image. Azure Policy acts at deployment time and does not watch processes running in containers.

  • Correct match: Kubernetes API access.

    Kubernetes API access is the component required for agentless container posture management; it reads cluster configuration through AKS Trusted Access. Agentless scanning for machines analyses node VM disk snapshots, not Kubernetes RBAC objects.

  • Correct match: Azure Policy.

    The Azure Policy add-on provides data plane hardening through admission control, and can enforce a rule that blocks privileged containers. The Defender sensor detects runtime behaviour rather than enforcing these best-practice rules on API requests.

Why

The Defender sensor runs as a DaemonSet on each AKS node and collects process, network and Kubernetes event data, so it powers runtime alerts such as suspicious process execution and binary drift. Kubernetes API access gives Defender for Cloud agentless read access to cluster configuration and is required for posture management findings such as CIS benchmark recommendations. Azure Policy for Kubernetes runs as an admission controller and enforces data plane hardening, for example blocking privileged containers. Registry access scans ACR images and agentless scanning for machines snapshots node disks, so neither fits these items.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free