exam questions

Exam AZ-500 All Questions

View all questions & answers for the AZ-500 exam

Exam AZ-500 topic 1 question 20 discussion

Actual exam question from Microsoft's AZ-500
Question #: 20
Topic #: 1
[All AZ-500 Questions]

Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements.
You are in the process of creating an Azure Kubernetes Service (AKS) cluster. The Azure Kubernetes Service (AKS) cluster must be able to connect to an Azure
Container Registry.
You want to make sure that Azure Kubernetes Service (AKS) cluster authenticates to the Azure Container Registry by making use of the auto-generated service principal.
Solution: You create an Azure Active Directory (Azure AD) role assignment.
Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
romaso82
Highly Voted 3 years, 9 months ago
correct answer
upvoted 18 times
...
PKPKPK
Highly Voted 3 years, 4 months ago
Selected Answer: B
i think its B as it wold need an RBAC role instead AAD role
upvoted 16 times
xRiot007
9 months, 3 weeks ago
The answer is B, but not because of that. The Microsoft Entra group will attach the AcrPull permission automatically, completing RBAC. The reason why the answer is No is because the authentication is done automatically, you don't have to create any roles. You just need to attach the service (AKS) to the container (ACR)
upvoted 5 times
chema77
6 months, 2 weeks ago
Sorry to dissagree: The answer is B instead of A because of the Entra/RBAC thing. But we'd rather choose A when the option is RBAC (az-500 is about security): "To avoid needing an Owner or Azure account administrator role, you can also manually configure a service principal to pull images from ACR. For more information, see ACR authentication with service principals or Authenticate from Kubernetes with a pull secret. Alternatively, you can use a managed identity instead of a service principal for easier management." https://learn.microsoft.com/en-us/azure/aks/tutorial-kubernetes-deploy-cluster?tabs=azure-cli
upvoted 1 times
chema77
6 months, 2 weeks ago
https://learn.microsoft.com/en-us/azure/container-registry/container-registry-auth-service-principal#when-to-use-a-service-principal
upvoted 1 times
...
...
...
...
Duyons
Most Recent 2 days, 19 hours ago
Selected Answer: A
Hey everyone, just to clarify this question is correct as written. AKS does not get AcrPull permission by default when using a service principal, unless you explicitly grant it. This solution says: "You create an Azure Active Directory (Azure AD) role assignment." That means you manually assign the required role (like AcrPull) to the auto-generated service principal, so that AKS can pull images from the Azure Container Registry. So yes, this meets the goal. Correct answer: A. Yes Hope that helps!
upvoted 1 times
...
Ruffyit
3 weeks ago
Selected Answer: B
The answer is B, but not because of that. The Microsoft Entra group will attach the AcrPull permission automatically, completing RBAC. The reason why the answer is No is because the authentication is done automatically, you don't have to create any roles. You just need to attach the service (AKS) to the container (ACR)
upvoted 1 times
...
gauravwagh16193
3 weeks, 6 days ago
Selected Answer: B
No, the solution does not meet the goal. To ensure that the Azure Kubernetes Service (AKS) cluster can authenticate to the Azure Container Registry using the auto-generated service principal, you need to assign the AcrPull role to the service principal associated with the AKS cluster. Creating an Azure Active Directory (Azure AD) role assignment alone does not automatically configure the necessary permissions for the AKS cluster to pull images from the Azure Container Registry.
upvoted 1 times
...
stonwall12
2 months, 2 weeks ago
Selected Answer: B
Answer: B, No Reason: Creating an Azure AD role assignment alone does not enable AKS to authenticate to ACR using the auto-generated service principal. Instead, you need to grant the AKS-generated service principal the appropriate permissions on the ACR using the AcrPull role. This allows AKS to pull images from the ACR without additional configuration. Reference: https://learn.microsoft.com/en-us/azure/aks/cluster-container-registry-integration?tabs=azure-cli#create-a-new-aks-cluster-with-acr-integration
upvoted 1 times
...
AdityaGupta
3 months, 3 weeks ago
Selected Answer: B
A service principal is recommended in several Kubernetes scenarios to pull images from an Azure container registry. With Azure Kubernetes Service (AKS), you can also use an automated mechanism to authenticate with a target registry by enabling the cluster's managed identity.
upvoted 1 times
AdityaGupta
1 month, 1 week ago
Correction: Answer is A. Referring to question, we already have an auto-generated SPN the next task should be AAD role assignment to this SPN. Explanation: - When to Use Each? Use SPN if: AKS and ACR are in different subscriptions or different tenants. You require manual control over credentials and role assignments. You are using an automation system that depends on SPNs. Use Managed Identity if: You want passwordless authentication and automatic identity management. AKS and ACR are in the same subscription. You follow Azure best practices for security and identity management.
upvoted 1 times
...
...
Ruffyit
6 months, 2 weeks ago
b is correct
upvoted 1 times
...
forfuntwo2
7 months, 1 week ago
Selected Answer: B
In Azure Active Directory (Azure AD), if another administrator or non-administrator needs to manage Azure AD resources, you assign them an Azure AD role that provides the permissions they need. For example, you can assign roles to allow adding or changing users, resetting user passwords, managing user licenses, or managing domain names. This article lists the Azure AD built-in roles you can assign to allow management of Azure AD resources. For information about how to assign roles, see Assign Azure AD roles to users. If you are looking for roles to manage Azure resources, see Azure built-in roles.
upvoted 1 times
...
Mazhar1993
7 months, 1 week ago
The answer is No. When an AKS cluster is created, Azure automatically generates a service principal to facilitate interactions with other Azure resources, including ACR. This auto-generated service principal can be directly used for authenticating the AKS cluster to the ACR registry. Therefore, creating an additional Azure AD role assignment is unnecessary as the auto-generated service principal already fulfills the authentication requirements. The proposed solution of creating an Azure AD role assignment adds complexity without providing any additional benefit, making it unnecessary and not meeting the goal efficiently. https://learn.microsoft.com/bs-latn-ba/azure/aks/cluster-container-registry-integration?tabs=azure-cli
upvoted 5 times
pentium75
9 months, 1 week ago
Why would the auto-generated service principal already have access to my ACR without me assigning a role for that?
upvoted 2 times
...
...
pentium75
9 months, 1 week ago
Selected Answer: B
Unless there's a typo in the question, B because it refers specifically to an "Azure AD role" which is not required here.
upvoted 1 times
...
fastline112003
9 months, 2 weeks ago
This should be usually done with Azure RBAC: az aks update -n myAKSCluster -g myResourceGroup --attach-acr <acr-name>
upvoted 1 times
...
Atom270
11 months ago
Selected Answer: B
Obviously answer is B, why would anyone select A as it is related to role assigment
upvoted 1 times
...
Slawekyo
11 months, 3 weeks ago
In Topic 3, question 16. You have the same question but to choose answer, there "Azure Active Directory (Azure AD) role assignment" is correct so answer is def A
upvoted 3 times
...
Jkayx94
1 year, 2 months ago
Selected Answer: B
Requires ACR-Pull which is an Azure RBAC Built in Role: https://learn.microsoft.com/bs-latn-ba/azure/role-based-access-control/built-in-roles#acrpull Answer is B
upvoted 1 times
...
[Removed]
1 year, 4 months ago
The AKS to ACR integration assigns the AcrPull role to the Microsoft Entra ID managed identity associated with the agent pool in your AKS cluster.
upvoted 2 times
...
zied01
1 year, 5 months ago
it's just a confusion between Azure AD roles and Azure RBAC but i think that to goal of this question is to make sure that the SPN should have a permission this is the goal and not the role/permission it self i think the answer is yes
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago