exam questions

Exam AZ-500 All Questions

View all questions & answers for the AZ-500 exam

Exam AZ-500 topic 3 question 16 discussion

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

You are configuring an Azure Kubernetes Service (AKS) cluster that will connect to an Azure Container Registry.
You need to use the auto-generated service principal to authenticate to the Azure Container Registry.
What should you create?

  • A. an Azure Active Directory (Azure AD) group
  • B. an Azure Active Directory (Azure AD) role assignment
  • C. an Azure Active Directory (Azure AD) user
  • D. a secret in Azure Key Vault
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
DeepMoon
Highly Voted 4 years, 7 months ago
1. When you create an AKS cluster, Azure also creates a service principal to support cluster operability with other Azure resources. 2. This service principal can already authenticate to AAD (since it was created in AAD). 3. But it needs to be RBAC permissions on the ACR Registry to pull images. To do so, you need to create an Azure AD role assignment that grants the cluster's service principal access to the container registry.
upvoted 104 times
kiketxu
4 years, 6 months ago
Perfectly explained. Thanks!
upvoted 9 times
...
...
gfhbox0083
Highly Voted 4 years, 10 months ago
B for sure. (Azure AD) role assignment
upvoted 28 times
...
Jimmy500
Most Recent 10 months, 2 weeks ago
There is one more question in the bank in topic1 qustion 20 I think here we need to assign RBAC not Azure AD ROLE
upvoted 1 times
...
ESAJRR
1 year, 7 months ago
Selected Answer: B
B. an Azure Active Directory (Azure AD) role assignment
upvoted 1 times
...
ITFranz
1 year, 8 months ago
Thank you for the explanation DeepMoon. The answer is: Azure AD role assignment
upvoted 1 times
...
majstor86
2 years, 2 months ago
Selected Answer: B
B. an Azure Active Directory (Azure AD) role assignment
upvoted 1 times
...
ligu
2 years, 3 months ago
You need to create an Azure AD role assignment that grants the cluster's service principal access to the container registry- Answer is correct
upvoted 1 times
...
Eltooth
3 years, 2 months ago
Selected Answer: B
B is correct answer.
upvoted 2 times
...
cfsxtuv33
3 years, 3 months ago
Repeat question I believe, I wish I remembered the other question. I think it was the same "role assignment" answer though.
upvoted 1 times
...
Joshing
3 years, 3 months ago
Selected Answer: B
Azure AD role assignment is the closest answer but is wrong. It would be an Azure role. Not Azure AD role.
upvoted 12 times
...
Tombarc
3 years, 4 months ago
Well, what makes me confused is the word used in this question. Azure role assignment is different from Azure AD role assignment. Why does the service principal need an Azure AD role assignment? https://docs.microsoft.com/en-us/azure/container-registry/container-registry-authentication?tabs=azure-cli#service-principal https://docs.microsoft.com/en-us/azure/container-registry/container-registry-authentication?tabs=azure-cli#authentication-options https://docs.microsoft.com/en-us/azure/container-registry/authenticate-kubernetes-options https://docs.microsoft.com/en-us/azure/active-directory/roles/permissions-reference
upvoted 2 times
...
adamsca
3 years, 5 months ago
Correct This is a duplicate Question of Q1 topic3. Slightly different wording but same.
upvoted 2 times
...
poplovic
3 years, 8 months ago
b is correct
upvoted 1 times
...
SecurityAnalyst
3 years, 8 months ago
# IN EXAM - 31/8/2021
upvoted 4 times
...
amanp
4 years, 3 months ago
Given Answer is correct. Service principal must be assigned atleast Reader role to the ACR for deploying to ACI or AKS
upvoted 2 times
...
DeepMoon
4 years, 7 months ago
1. When you create an AKS cluster, Azure also creates a service principal to support cluster operations with other Azure resources. 2. This service principal can already authenticate to AAD (since it was created in AAD by Azure). 3. But it needs to be RBAC permissions on the ACR Registry to pull images. 4. To do so, you need to create an Azure AD role assignment that grants the cluster's service principal access to the container registry.
upvoted 10 times
...
shaheer1991
5 years ago
the given answer is the most reasonable between the choices.
upvoted 3 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 ...