Sample questions with answers and explanations
Question 1
An ACR task builds an image from a GitHub repository. The image should rebuild on every commit to main. What trigger should the task use?
- A manual trigger only
- A timer trigger that runs every minute and checks the repository for changes
- A source code commit trigger with a GitHub token — Correct
- A base image trigger
Correct answer
A source code commit trigger with a GitHub token
Explanation
ACR Tasks support source commit triggers that start a build when code is pushed to a branch.
Question 2
A container app shows no output in the portal log stream and keeps restarting. Which log source shows platform events such as image pull failures and probe failures?
- Console logs
- Azure Activity log only
- System logs — Correct
- Application Insights availability tests
Correct answer
System logs
Explanation
Container Apps system logs report platform events like image pull errors, container start failures and probe failures. Console logs show app stdout and stderr.
Question 3
A Deployment manifest sets resources.limits.memory to 512Mi. The container regularly uses more memory while loading an embedding model. What symptom is most likely?
- The HPA scales the cluster nodes
- The pod is throttled and runs slower, but is never restarted because memory limits are only advisory
- The Service drops to ClusterIP
- The container is killed with OOMKilled and restarted — Correct
Correct answer
The container is killed with OOMKilled and restarted
Explanation
Exceeding a memory limit causes the kernel to kill the container (OOMKilled). Raise the limit or reduce memory use.
Question 4
You need to collect container stdout logs and node metrics from AKS into Log Analytics with minimal setup. What should you enable?
- Kubernetes Dashboard
- Network Watcher packet capture
- Container insights (the Azure Monitor add-on) for the cluster — Correct
- Diagnostic settings on the cluster resource that send kube-apiserver logs to a storage account
Correct answer
Container insights (the Azure Monitor add-on) for the cluster
Explanation
Container insights collects container logs, Kubernetes events and performance metrics into a Log Analytics workspace.
Question 5
A container app's image, environment variables and scale rules are changed in one update. The app uses multiple revision mode. What happens?
- The changes are applied to the running replicas of the current revision without creating a new revision
- The existing revision is modified in place
- The container app environment is recreated
- A new revision is created, and traffic is routed according to the traffic weights — Correct
Correct answer
A new revision is created, and traffic is routed according to the traffic weights
Explanation
Changes to the revision template (image, env vars, scale rules) create a new revision. In multiple revision mode, traffic follows the configured weights.