ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 78 - AZ-104 discussion

Report
Export

HOTSPOT

You plan to deploy an Azure container instance by using the following Azure Resource Manager template.

Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the template.


Question 78
Correct answer: Question 78

Explanation:

Box 1: can connect to the container from any device

In the policy "osType": "window" refer that it will create a container in a container group that runs

Windows but it won't block access depending on device type.

Box 2: the container will restart automatically

Docker provides restart policies to control whether your containers start automatically when they exit, or when Docker restarts. Restart policies ensure that linked containers are started in the correct order. Docker recommends that you use restart policies, and avoid using process managers to start containers.

on-failure : Restart the container if it exits due to an error, which manifests as a non-zero exit code.

As the flag is mentioned as "on-failure" in the policy, so it will restart automatically

Reference:

https://docs.microsoft.com/en-us/cli/azure/container?view=azure-cli-latest

https://docs.docker.com/config/containers/start-containers-automatically/

asked 26/09/2024
Davide Maranzana
33 questions
User
0 comments
Sorted by

Leave a comment first