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?
- A.az acr import --name dovecoteacr --source docker.io/library/redis:7.4 --image redis:7.4
- B.az acr build --registry dovecoteacr --image redis:7.4 --file Dockerfile docker.io/library/redis
- C.az acr replication create --registry dovecoteacr --location docker.io
- 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
- Event-driven Container Apps job
- Horizontal Pod Autoscaler on CPU
- Container TTL for chat history
- Optimistic concurrency with ETag
- IVFFlat lists and probes tuning
- Entra ID connection to Azure Managed Redis
- Deferring Service Bus messages
- Event Grid system topic for storage events
- NCRONTAB timer trigger schedule
- User-assigned identity shared by apps
- KQL distinct counts with dcount