ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 358 - AZ-104 discussion

Report
Export

You have an Azure Kubernetes cluster in place.

You have to deploy an application using an Azure Container registry image.

Which of the following command can be used for this requirement?

A.
az kubernetes deploy
Answers
A.
az kubernetes deploy
B.
kubectl apply
Answers
B.
kubectl apply
C.
New-AzKubernetes set
Answers
C.
New-AzKubernetes set
D.
docker run
Answers
D.
docker run
Suggested answer: B

Explanation:

kubectl apply : Correct Choice

The kubectl command can be used to deploy applications to a Kubernetes cluster.

az kubernetes deploy : Incorrect Choice

This command is used to manage Azure Kubernetes Services. This is not used to deploy applications to a Kubernetes cluster.

New-AzKubernetes set : Incorrect Choice

This command is used to create a new managed Kubernetes cluster. This is not used to deploy applications to a Kubernetes cluster.

docker run : Incorrect Choice

This is run command in a new container. This is not used to deploy applications to a Kubernetes cluster.

Reference:

https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#apply

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

https://docs.microsoft.com/en-us/powershell/module/az.aks/New-AzAks?view=azps-3.8.0&viewFallbackFrom=azps-4.3.0

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

asked 26/09/2024
Rita Marques
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first