Container images must be scanned and only signed images may run in prod. How do you build it?
AdvancedScenarioAKS and Containers
Answer
Situation read → Scan in CI and registry, sign after build, verify at admission.
What I'd do →
- CI: Trivy scan, fail on critical CVEs with fixes available
- Sign with Notation using a certificate in Key Vault:
notation sign --plugin azure-kv --id <keyId> acrshop.azurecr.io/shop/web@sha256:... - Defender for Containers scans ACR images continuously
- Install Ratify on AKS with Azure Policy (the signature verification policy) to deny unsigned images
- Restrict registries to
acrshop.azurecr.iovia policy
Why → Signing proves an image came from your pipeline; admission control enforces it.
Interview tip → Sign by digest, not tag; tags are mutable.
More on AKS and Containers
You're asked to build a production AKS cluster. Walk through your key decisions.IntermediateA team wants to deploy a new microservice to AKS that reads a database password. How do you wire secrets?BeginnerYou need to upgrade a production AKS cluster from 1.31 to 1.33. Plan it.AdvancedPods need to scale on Service Bus queue length, not CPU. How?AdvancedYou need to run a GPU workload on an existing AKS cluster. What do you do?IntermediateA noisy application keeps starving other workloads on shared nodes. How do you fix it?Beginner