exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 71 discussion

Actual exam question from Microsoft's AZ-204
Question #: 71
Topic #: 2
[All AZ-204 Questions]

DRAG DROP
-

You have two Azure Container Registry (ACR) instances: ACR01 and ACR02.

You plan to implement a containerized application named APP1 that will use a base image named BASE1. The image for APP1 will be stored in ACR01. The image BASE1 will be stored in ACR02.

You need to automate the planned implementation by using a sequence of five Azure command-line interface (Azure CLI) commands. Your solution must ensure that the APP1 image stored in ACR01 will be automatically updated when the BASE1 image is updated.

In which order should you perform the actions? To answer, move all container build automation options from the list of container build automations to the answer area and arrange them in the correct order.

NOTE: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
NikolaMicic
Highly Voted 7 months ago
The provided answer is correct: az acr build az acr task create az role assignment create az acr task credential add az acr task run https://learn.microsoft.com/en-us/azure/container-registry/container-registry-tutorial-private-base-image-update .
upvoted 19 times
...
J_obando13
Most Recent 1 month ago
Got this in the exam today! May 15, 2025. Went most voted. 940/1000. 50 of 51 from examtopics. Cases Munson’s Pickles and Preserves Farm (7) and Fourth Coffee (3)
upvoted 1 times
...
abubabu
6 months, 3 weeks ago
from gpt az role assignment create: Grant ACR01 access to ACR02 by creating a role assignment. This is necessary for ACR01 to pull the BASE1 image from ACR02 during the build process. az acr task credential add: Add credentials to ACR01 for authenticating with ACR02. This ensures the build task can access the BASE1 image in ACR02. az acr task create: Create a task in ACR01 that defines the build process for APP1, including the trigger for the BASE1 image in ACR02. This sets up the automation pipeline. az acr task run: Trigger the build task manually to ensure that the process is correctly configured and working as expected. az acr build: Use the build command to build the APP1 image in ACR01. This builds the APP1 image with the BASE1 image as the base.
upvoted 1 times
Dan696969
5 months, 3 weeks ago
if you feed chatgpt the link from @NikolaMicic chatgpt says this az acr build az acr task create az role assignment create az acr task credential add az acr task run
upvoted 1 times
...
...
Jay456
6 months, 3 weeks ago
What is automated about manually running these commands? :-o
upvoted 1 times
...
tndias
7 months, 1 week ago
1- az acr task create 2- az role assignment create 3- az acr task credential add 4- az acr build 5- az acr task run So, the correct order is to build the image first (az acr build) and then run the task (az acr task run). This ensures that the image is available in your Azure Container Registry before running any tasks that depend on
upvoted 3 times
...
Mattt
7 months, 1 week ago
1- az acr task create 2- az role assignment create 3- az acr task credential add 4- az acr task run 5- az acr build - Create ACR Task: This defines the build process for APP1, including the base image, build context, and output image. - Assign Role: This ensures the task has the necessary permissions to access both registries. - Add Credentials: This provides the task with authentication information to pull the BASE1 image and push the APP1 image. - Run Task: This triggers the build process, which will automatically pull the latest BASE1 image and build APP1. - Manual Build: This is an alternative approach, but it requires manual intervention to trigger the build whenever BASE1 changes.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...