AZ-104 Question 155
Select 2Your company has developed a custom web application container image stored on Docker Hub. You are tasked with deploying it in Azure Container Instances (ACI) using the Azure portal so that it’s publicly accessible on port 80. Which of the following steps should you perform?
- A
Set the container image source to Docker Hub, provide the Docker repository name, and specify port 80 under container settings.
- B
Select 'Public' under 'Networking' to assign a publicly accessible IP address.
- C
Configure Azure Container Instances to use a fully managed Kubernetes cluster in Azure Kubernetes Service (AKS).
- D
Enable the 'Always On' feature under App Service Plan to keep the container continuously active.
Show answer and explanation
Correct answers: A, B
Explanation
When deploying a container in Azure Container Instances from the Azure portal, you must specify the image repository and expose the correct port. Additionally, configuring a public IP address will ensure public accessibility. Using AKS and App Service features are not necessary for basic ACI deployments.
- A. Correct.
Specifying Docker Hub as the image source and port 80 is necessary for deploying your container from a public repository and exposing it on port 80 in ACI.
- B. Correct.
Selecting 'Public' under the Networking tab allocates a public IP address, making the container accessible over the internet.
- C. Incorrect.
AKS is a managed Kubernetes environment separate from ACI deployment; you do not need a Kubernetes cluster for a single-container deployment in ACI.
- D. Incorrect.
The 'Always On' feature is an App Service setting, not applicable to Azure Container Instances.