Exam-Answer

Home / Microsoft / AZ-300 / Question 92

Prev Question
Next Question

Question 92

You use the following Azure CLI command to create an Azure container instance:

az container create --resource-group testgroup --name testcontainer --image microsoft/aci-helloworld

You need to be able to browse to the container's URL.

Which two parameters must you set?

Answers


Advertisement

Explanation

You should set the --dns-name-label parameter. This parameter is necessary so that Azure can resolve the DNS name to the IP address that hosts the container instance.

You should set the --ports parameter. This parameter is necessary so that you can have Azure open the appropriate TCP port.

You do not need to set the --environment-variables parameter. This parameter allows you to set environment variables for container instances, which is unnecessary in this scenario.

You do not need to set the --os-type parameter. This parameter specifies the operating system for the container instance. The type of operating system is irrelevant in this scenario.

You do not need to set the --protocol parameter. This parameter specifies either TCP or UDP. When browsing from a web browser, the protocol is automatically TCP.

References

Comments

Load more
Prev Question
Next Question