Home » Microsoft » AZ-303 v.2 » What should you do?
You have an Azure Container Registry and an Azure container instance.
You pull an image from the registry, and then update the local copy of the image.
You need to ensure that the updated image can be deployed to the container instance. The solution must ensure that you can deploy the updated image or the previous version of the image.
What should you do?
A. Run the docker image push command and specify the tag parameter.
B. Run the az image copy command and specify the tag parameter.
C. Run the az aks update command and specify the attach-acr parameter.
D. Run the kubectl apply command and specify the dry-run parameter.
Correct Answer: A
Explanation/Reference:
Explanation:
The command ‘docker image push’ pushes an image or a repository to a registry.
Incorrect Answers:
B: az image copy
Copies a managed image (or vm) to other regions.
–tags
C: az aks update
Updates a managed Kubernetes cluster.
D: Kubectl apply apply manages applications through files defining Kubernetes resources. It creates and updates resources in a cluster through running kubectl apply. This is the recommended way of managing Kubernetes applications on production.
Reference:
https://docs.docker.com/engine/reference/commandline/image_push/
https://docs.microsoft.com/en-us/cli/azure/ext/image-copy-extension/image
https://docs.microsoft.com/en-us/cli/azure/aks
https://kubernetes.io/docs/reference/kubectl/cheatsheet/#kubectl-apply
How To Pass Azure AZ-305 Exam?
Microsoft Azure AZ-305 PDF dumps.
High quality AZ-305 PDF and software. VALID exam to help you pass.
|
|