Place and scale container workloads
Choose a registry, standalone container group or managed application runtime from lifecycle and scaling needs.
Place and scale container workloads
Azure Container Registry stores versioned images. Use an immutable digest for repeatable deployments and grant the runtime only the required pull access. Container Instances runs a container group with specified CPU, memory and networking. It suits bounded or straightforward workloads. Check the image architecture, command, restart policy and resource requirements.
Container Apps provides a managed application environment with revisions, ingress and scaling rules. Set minimum and maximum replicas and choose a trigger appropriate to the workload. A zero minimum can reduce idle usage for suitable triggers, while a positive minimum can reduce cold-start exposure. CPU and memory per replica affect a different dimension from the number of replicas.
Worked case
A background worker has no incoming HTTP traffic but its queue grows. Which scaling signal should drive its replicas?
Check your reasoning
Use a supported queue-based scale rule with an appropriate identity to read the queue metrics. An HTTP concurrency rule cannot observe pending queue work.
Second worked case
A queue worker must respond immediately after long idle periods. What trade-off does a positive minimum replica count introduce?
Check your reasoning
It can reduce startup delay by keeping capacity available and may increase idle cost. Check the scale rule, queue authorization and maximum replicas under realistic load.
Scaling Azure Container Apps · Official AZ-104 objectives for this domain
Related lesson in Microsoft Certified: Azure Fundamentals. Connect a workload to the right hosting platform.
Practice with the recording
A registry contains a working image, but an app revision cannot start it. How would you separate image publishing from runtime access?
Check your reasoning
Check the configured image name and tag or digest, then verify the app identity can pull from the registry over its network path. A developer’s successful push used a different identity and direction of access.
Current AZ-104 course · 1:14:09 · John Savill · AZ-104 Study Cram v2 · 3:34:35
Place and scale container workloads quiz
Answer 3 questions. Check each answer for an explanation.