AZ-104 Question 164
Single answerYou are deploying a containerized web application to Azure Container Apps. The container listens on port 80 and needs to automatically scale out when incoming HTTP traffic increases. Which additional step is required to enable this functionality?
- A
Configure ingress with external traffic enabled and specify the exposed port
- B
Add the container to a Docker Compose environment with port 80 mapped
- C
Enable Azure Monitor metrics for the container's CPU usage
- D
Use a private container registry to publish container images
Show answer and explanation
Correct answer: A
Explanation
Azure Container Apps requires ingress to be enabled so that it can receive external HTTP traffic and automatically scale out based on the number of incoming requests. By specifying the exposed port in the ingress settings, Container Apps can use KEDA-based rules to adjust replicas dynamically.
- A. Correct.
Configuring ingress with external traffic and specifying the container’s exposed port in Azure Container Apps is required for automatic scaling based on HTTP requests.
- B. Incorrect.
Simply mapping port 80 in a Docker Compose file is not sufficient to enable Azure Container Apps’ built-in HTTP-based scaling.
- C. Incorrect.
Enabling Azure Monitor metrics for CPU usage helps with monitoring, but it does not configure HTTP-based autoscaling for Azure Container Apps.
- D. Incorrect.
Using a private container registry is an option for storing images securely, but it does not configure scaling behavior in Azure Container Apps.