AZ-500 Exam QuestionsBrowse all questions from this exam

AZ-500 Exam - Question 12


Your company has an Azure Container Registry.

You have been tasked with assigning a user a role that allows for the downloading of images from the Azure Container Registry. The role assigned should not require more privileges than necessary.

Which of the following is the role you should assign?

Show Answer
Correct Answer: AD

To download images from an Azure Container Registry, you should assign a role that grants the necessary permissions without providing excessive access. The appropriate role for this task is 'AcrPull,' which specifically allows the pulling (downloading) of images from the registry without granting broader access or additional permissions. Other roles like 'Reader' provide more extensive access than required, 'Contributor' grants the ability to manage all aspects of a resource, and 'AcrDelete' allows for deleting images—all exceeding the minimal necessary permissions for the task at hand. Therefore, the 'AcrPull' role is the correct choice.

Discussion

17 comments
Sign in to comment
LyonelOption: D
Jul 13, 2021

Question gives the condition, "The role assigned should not require more privileges than necessary." Therefore, D (Acrpull) is CORRECT because it provides the least number of permissions required for downloading images from a Container Registry. Answer A (Reader): provides at least two (2) permissions, which would be one (1) more than Acrpull allows for. [Ref. https://docs.microsoft.com/bs-latn-ba/azure/container-registry/container-registry-roles?tabs=azure-cli]

ech
Oct 23, 2021

agree read can Access Resource Manager and Pull, but AcrPull role is just for pulling the image.

ashxos
Nov 25, 2021

Perfect!

[Removed]
Nov 29, 2021

correct

heatfan900
Sep 19, 2023

CORRECT. NOT SURE Y EVERYONE THINKS YOU NEED THE READER ROLE FOR THIS SCENARIO. FROM MICROSOFT: Azure Resource Manager access is required for the Azure portal and registry management with the Azure CLI. For example, to get a list of registries by using the az acr list command, you need this permission set.

UcyOption: D
Jul 2, 2021

Answer is Wrong.... Correct answer is D AcrPull

majstor86Option: D
Mar 2, 2023

D. AcrPull

Fal991lOption: D
Feb 15, 2023

The role that should be assigned to allow for the downloading of images from the Azure Container Registry without granting unnecessary privileges is "AcrPull". The AcrPull role provides read-only permissions to pull images from the registry. This role is the minimum required permission to pull an image. It does not allow pushing or modifying images or managing the registry itself. The other options are not the best fit for this scenario: The Reader role provides read-only access to all resources within a resource group, which includes the container registry. However, this role is too broad and provides more access than needed for just pulling images. The Contributor role provides the ability to manage all aspects of a resource, including creating, modifying, and deleting. This role is more permissions than are necessary for just pulling images. The AcrDelete role provides the ability to delete repositories and images from the registry. This role is more permissions than are necessary for just pulling images.

codeunitOption: D
Nov 15, 2023

Following and article from Microsoft, ArcPull role will provide the least privilege access: https://learn.microsoft.com/en-us/azure/container-registry/container-registry-roles?tabs=azure-cli

kb1342Option: D
Feb 8, 2024

https://learn.microsoft.com/en-us/azure/container-registry/container-registry-roles?tabs=azure-cli D. Arc Pull Since Reader has more access than necessary

kaboozeOption: D
Dec 16, 2022

arcpull is correct

SeelearndoOption: D
Jan 9, 2023

https://docs.microsoft.com/bs-latn-ba/azure/container-registry/container-registry-roles?tabs=azure-cli

Andre369Option: D
Apr 24, 2023

D is correct

zellckOption: D
May 7, 2023

D is the answer. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-roles

QadourOption: D
Jun 14, 2023

AcrPull is the correct answer ! When we apply the principle of Least privilege

ESAJRROption: D
Jul 4, 2023

D. ArcPull

16116Option: D
Aug 8, 2023

Most certainly agreed with the above statements. Unless proven otherwise, the answer D is correct as pert MS documentation.

wardy1983Option: D
Oct 18, 2023

Answer is ARCPULL Arcpull can only pull and image Reader can access access Resource Manager and PULL Least access is ArcPull case closed!!!

TheFamousSpyOption: D
Mar 3, 2024

Clearly stated in the reference

Mazhar1993Option: D
Apr 19, 2024

The role you should assign is AcrPull because it specifically grants the ability to pull (download) images from the Azure Container Registry, which is the required permission for the user. Assigning the Reader role would provide broader access than necessary, as it includes permissions beyond image pulling. Similarly, assigning the Contributor role would grant excessive privileges, as it includes permissions for creating, deleting, and modifying resources, which are not required for simply downloading images. The AcrDelete role is also not suitable, as it specifically grants permission to delete image data from the registry, which is not needed for the task described. Therefore, AcrPull is the most appropriate role that meets the requirement of allowing image downloading without granting unnecessary privileges. https://learn.microsoft.com/bs-latn-ba/azure/container-registry/container-registry-roles?tabs=azure-cli

xRiot007Option: D
Jul 15, 2024

Wrong answer. Correct answer is D - AcrPull. Viewing the available images in the registry is not enough, you actually have to be able to download (pull) them.