AZ-204 Exam QuestionsBrowse all questions from this exam

AZ-204 Exam - Question 162


DRAG DROP

-

You are developing a web service that will run on Azure virtual machines that use Azure Storage. You configure all virtual machines to use managed identities.

You have the following requirements:

• Secret-based authentication mechanisms are not permitted for accessing an Azure Storage account.

• Must use only Azure Instance Metadata Service endpoints.

You need to write code to retrieve an access token to access Azure Storage. To answer, drag the appropriate code segments to the correct locations. Each code segment may be used once or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

Exam AZ-204 Question 162
Show Answer
Correct Answer:
Exam AZ-204 Question 162

Discussion

4 comments
Sign in to comment
manopeydakon
Jan 16, 2024

Not relevant question and answer!

AbdullahFadhl
Aug 4, 2024

It is part of the exam, you can check Microsoft website.

abhishekgraphs
Feb 26, 2024

I asked Google AI tool the following question: How do I retrieve an access token using Azure Instance Metadata Service endpoints ? I think the given answer here is correct!

examtopicsLogin123
Dec 10, 2024

Answer is correct https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/how-to-use-vm-token#get-a-token-using-http https://learn.microsoft.com/en-us/azure/virtual-machines/instance-metadata-service?tabs=windows and there is the same question, but for C# https://www.examtopics.com/discussions/microsoft/view/49787-exam-az-204-topic-3-question-12-discussion/

gfanco
Apr 19, 2025

CORRECT https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/how-to-use-vm-token