AZ-104 Question 168
Single answerYour organization runs a set of containerized microservices that experience unpredictable spikes in traffic. The team wants a fully managed environment that can automatically scale containers in response to CPU or memory usage, without managing a full cluster. Which approach provides these capabilities?
- A
Use Azure Container Instances and manually adjust the number of container instances as needed
- B
Opt for Azure Container Instances and implement a custom script that spins up new instances based on CPU usage
- C
Deploy Azure Container Apps and configure KEDA-based auto-scaling triggers
- D
Host a self-managed Kubernetes cluster on Azure VMs and develop custom scaling policies
Show answer and explanation
Correct answer: C
Explanation
Azure Container Apps provides an out-of-the-box solution for running and automatically scaling containers without the complexity of a full container orchestrator. By leveraging KEDA, Azure Container Apps allows for event-driven or metric-based scaling while managing the underlying infrastructure on your behalf.
- A. Incorrect.
Azure Container Instances (ACI) does not natively support automatic scaling, scaling is typically manual or relies on external tooling.
- B. Incorrect.
Using a custom script to scale ACI can work but requires additional setup and isn't fully managed, meaning you shoulder more operational burden.
- C. Correct.
Azure Container Apps integrates with KEDA (Kubernetes-based Event Driven Autoscaling), providing a fully managed environment with built-in auto-scaling capabilities for containers.
- D. Incorrect.
A self-managed Kubernetes cluster requires you to maintain the infrastructure and scaling logic, which contradicts the team’s desire for a fully managed solution.