nerdexam
Microsoft

AZ-104 · Question #803

You have an Azure subscription. You create an Azure container registry and a container image. You need to push the container image to the container registry by using the Azure Command- Line…

The correct answer is A. Tag a container image with the name of the container registry's login server. Create an alias of the image Use docker tag to create an alias of the image with the fully qualified path to your registry. This example specifies the samples namespace to avoid clutter in the root of the registry. docker tag nginx myregistry.azurecr.io/samples/nginx Push the…

Submitted by yousef_jo· Mar 4, 2026Deploy and manage Azure compute resources

Question

You have an Azure subscription. You create an Azure container registry and a container image. You need to push the container image to the container registry by using the Azure Command- Line Interface (CLI). You sign in to the container registry. Which action should you perform next?

Options

  • ATag a container image with the name of the container registry's login server.
  • BList the images in the container registry.
  • CDeploy a container group.
  • DConfigure a YAML file.

How the community answered

(52 responses)
  • A
    75% (39)
  • B
    13% (7)
  • C
    8% (4)
  • D
    4% (2)

Explanation

Create an alias of the image Use docker tag to create an alias of the image with the fully qualified path to your registry. This example specifies the samples namespace to avoid clutter in the root of the registry. docker tag nginx myregistry.azurecr.io/samples/nginx Push the image to your registry Now that you've tagged the image with the fully qualified path to your private registry, you can push it to the registry with docker push: docker push myregistry.azurecr.io/samples/nginx https://learn.microsoft.com/en-us/azure/container-registry/container-registry-get-started-docker-cli

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice