exam questions

Exam AZ-304 All Questions

View all questions & answers for the AZ-304 exam

Exam AZ-304 topic 2 question 10 discussion

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

You plan to deploy an application named App1 that will run on five Azure virtual machines. Additional virtual machines will be deployed later to run App1.
You need to recommend a solution to meet the following requirements for the virtual machines that will run App1:
✑ Ensure that the virtual machines can authenticate to Azure Active Directory (Azure AD) to gain access to an Azure key vault, Azure Logic Apps instances, and an Azure SQL database.
✑ Avoid assigning new roles and permissions for Azure services when you deploy additional virtual machines.
✑ Avoid storing secrets and certificates on the virtual machines.
✑ Minimize administrative effort for managing identities.
Which type of identity should you include in the recommendation?

  • A. a service principal that is configured to use a certificate
  • B. a system-assigned managed identity
  • C. a service principal that is configured to use a client secret
  • D. a user-assigned managed identity
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
mmmore
Highly Voted 4 years, 5 months ago
Correct
upvoted 59 times
...
SnakePlissken
Highly Voted 3 years, 11 months ago
I'm a little confused. All the requirements point to a user-assigned managed identity, but that is not supported by Azure Key Vault. "Key Vault references currently only support system-assigned managed identities. User-assigned identities cannot be used." Everybody is so convinced that the answer is correct, but I think it should be system-assigned, although the question is almost shouting user-assigned. https://docs.microsoft.com/en-us/azure/app-service/app-service-key-vault-references#granting-your-app-access-to-key-vault https://www.examtopics.com/discussions/microsoft/view/45744-exam-az-204-topic-3-question-11-discussion/ https://docs.microsoft.com/en-us/azure/app-service/app-service-key-vault-references#granting-your-app-access-to-key-vault https://www.examtopics.com/discussions/microsoft/view/45744-exam-az-204-topic-3-question-11-discussion/
upvoted 8 times
Anilpanda10
3 years, 11 months ago
good point. Has anyone found an answer to this?
upvoted 2 times
...
SnakePlissken
3 years, 11 months ago
Sorry for the double references, I can't edit my comment anymore.
upvoted 1 times
...
Charles99
3 years, 11 months ago
maybe there's a mistake in the doco? I've just verified in the portal that i can ref a user assigned managed identity to an access policy
upvoted 3 times
SnakePlissken
3 years, 11 months ago
Nice work, Charles99! I tried to test it in the sandbox and could create all the resources I needed, except a user-assigned managed identity :\ After your confirmation, I will go for a user-assigned managed identity.
upvoted 1 times
...
...
SnakePlissken
3 years, 11 months ago
Now I'm really confused! According to this article it's possible to access the Key Vault with a user-assigned managed identity. https://thecodeblogger.com/2020/06/13/user-assigned-managed-identity-with-azure-key-vault/ But on this page, Key Vault is not in the list of managed identities. https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/services-support-managed-identities Maybe the support is already built in, but the Microsoft documentation is not updated?
upvoted 2 times
BenWat
3 years, 10 months ago
Key vault is lower down the page under the AAD section: The following services support Azure AD authentication, and have been tested with client services that use managed identities for Azure resources.
upvoted 1 times
...
scottishstvao
3 years, 8 months ago
Hey bud, you got it on the wrong way. The answer is User-Assigned, you can do a Lab before comment wrong suppositions. People can follow what you say and put it wrong at the test time.
upvoted 8 times
...
...
...
VijayRaja2000
Most Recent 3 years ago
Correct, we need to use user assigned managed identity for Virtual machines to share the same identity for the future virtual machines and use this identity (AAD based authentication) to access all the other resources
upvoted 2 times
...
hertino
3 years, 1 month ago
In AZ-305 exam, 9 april 22
upvoted 4 times
...
cloudera
3 years, 1 month ago
Selected Answer: D
Seems D is the correct answer based on the following info: System-assigned managed identities allow you to: • Enable or disable managed identities at the resource level. • Use role-based access control (RBAC) to grant permissions. • View the create, read, update, and delete (CRUD) operations in Azure Activity logs. • View sign-in activity in Azure AD sign-in logs. User-assigned managed identities allow you to: • You can create, read, update, and delete the identities. • You can use RBAC role assignments to grant permissions. • User assigned managed identities can be used ON MORE THAN ONE RESOURCE. • CRUD operations are available for review in Azure Activity logs. • View sign-in activity in Azure AD sign-in logs.
upvoted 3 times
...
Dawn7
3 years, 2 months ago
Selected Answer: D
I would choose D
upvoted 1 times
...
plmmsg
3 years, 2 months ago
Selected Answer: D
User-assigned managed identity
upvoted 1 times
...
arun
3 years, 2 months ago
Selected Answer: D
refer https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/how-manage-user-assigned-managed-identities?pivots=identity-mi-methods-azp
upvoted 1 times
...
S_AB
3 years, 2 months ago
Selected Answer: D
User managed identity, will be for more than 1 VM.
upvoted 1 times
...
anupam77
3 years, 2 months ago
Correct Answer Given [User-assigned managed identity] https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview User-assigned managed identity:- "For example, a workload where multiple virtual machines need to access the same resource." System-assigned managed identity:- "For example, an application that runs on a single virtual machine"
upvoted 2 times
...
chintupawan
3 years, 3 months ago
Given answer is correct. We can definitely assign user identity to key vault. Keys points to consider why Managed User Identity is the correct answer. 1. New VM will be added in future 2. Minimize administrative efforts. Managed User Identity is not tied to a resource life time. It can be assigned to multiple resources.
upvoted 2 times
...
Nokaido
3 years, 4 months ago
Both User assigne and System Assigned Identity will do the job but the System assigned identity is the one without the aministrative hassle. You just click on Systemassigned idenitiy on the VM side and than go to the KeyVault -> Access Policies and add the VM by searching for its name. For me B should be the right answer.
upvoted 1 times
...
Eitant
3 years, 5 months ago
Selected Answer: D
Correct Answer
upvoted 1 times
...
oug
3 years, 6 months ago
Correct!
upvoted 2 times
...
strohcj
3 years, 7 months ago
Just a note...To create a user assigned managed identity, you need MI Contributor role and create the MI in the portal, then you can assign RBAC permissions. The MI will need to be deleted separately when no longer in use. System assigned MI is enabled with the resource is created or after creation under VM - Identity. It is automatically deleted when the VM is deleted. User assigned MI is more secure but in this case, system assigned would save work. My vote is for system assigned.
upvoted 1 times
...
syu31svc
3 years, 7 months ago
https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview Managed identities provide an identity for applications to use when connecting to resources that support Azure Active Directory (Azure AD) authentication User-assigned You may also create a managed identity as a standalone Azure resource. You can create a user-assigned managed identity and assign it to one or more instances of an Azure service D is the answer
upvoted 3 times
cfsxtuv33
3 years, 7 months ago
Answer is correct. https://thecodeblogger.com/2020/06/13/user-assigned-managed-identity-with-azure-key-vault/
upvoted 1 times
...
...
nkv
3 years, 8 months ago
Came in exam on 20-sep-21, i passed, answer are correct
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago