ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 256 - AZ-104 discussion

Report
Export

You create the following resources in an Azure subscription:

• An Azure Container Registry instance named Registry1.

• An Azure Kubernetes Service (AKS) cluster named Cluster1.

You create a container image named App1 on your administrative workstation. You need to deploy

App1 to Cluster1. What should you do first?

A.
Create a host pool on Cluster1.
Answers
A.
Create a host pool on Cluster1.
B.
Run the az acr build command.
Answers
B.
Run the az acr build command.
C.
Run the docker build command.
Answers
C.
Run the docker build command.
D.
Run the docker push command.
Answers
D.
Run the docker push command.
Suggested answer: B

Explanation:

Run the az acr build command : Correct Choice

az acr build command queues a quick build, providing streaming logs for an Azure Container Registry az acr build --registry

[--agent-pool]

[--auth-mode {Default, None}]

[--build-arg]

[--file]

[--image]

[--no-format]

[--no-logs]

[--no-push]

[--no-wait]

[--platform]

[--resource-group]

[--secret-build-arg]

[--subscription]

[--target]

[--timeout]

[<SOURCE_LOCATION>]

Create a host pool on Cluster1 : Incorrect Choice

Host pools are a collection of one or more identical virtual machines (VMs) within Windows Virtual

Desktop environments. It won't deploy the app to the cluster.

Run the docker push command : Incorrect Choice

Use docker push to share your images to the Docker Hub registry or to a self-hosted one. It won't deploy the app to the cluster.

Run the docker build command : Incorrect Choice

This command will build an image from a Dockerfile. But in the question it has been said that image file is already built and need to deploy. This command will not deploy the image.

Reference:

https://docs.microsoft.com/en-us/cli/azure/acr?view=azure-cli-latest#az-acr-build

https://docs.docker.com/engine/reference/commandline/push/

https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-azure-marketplace

https://docs.docker.com/engine/reference/commandline/build/

asked 26/09/2024
Maria Lilian Tongson
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first