CertKeen

Azure AI Cloud Developer (AI-200) · Free practice question 1 of 12

Importing a public image into ACR

Dovecote Systems wants its AKS workloads to stop pulling a base Redis image from Docker Hub and to pull an identical copy from its own registry, dovecoteacr, instead. Nobody on the team has Docker installed. Which command copies the image directly?

  1. A.az acr import --name dovecoteacr --source docker.io/library/redis:7.4 --image redis:7.4
  2. B.az acr build --registry dovecoteacr --image redis:7.4 --file Dockerfile docker.io/library/redis
  3. C.az acr replication create --registry dovecoteacr --location docker.io
  4. D.az acr task run --name redis --registry dovecoteacr --source docker.io
Show answer and explanation

Correct answer: A. az acr import --name dovecoteacr --source docker.io/library/redis:7.4 --image redis:7.4

Why: az acr import copies an image from a public registry or another Azure registry into the target registry as a server-side operation, so no local Docker client is needed. az acr build builds from a Dockerfile and build context rather than copying an existing image. Replications add Azure regions to a Premium registry and can't point at Docker Hub, and task run executes an existing task rather than importing.

More free Azure AI Cloud Developer (AI-200) questions