exam questions

Exam AZ-303 All Questions

View all questions & answers for the AZ-303 exam

Exam AZ-303 topic 1 question 22 discussion

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

You have an Azure virtual machine named VM1 and an Azure Active Directory (Azure AD) tenant named adatum.com.
VM1 has the following settings:
✑ IP address: 10.10.0.10
✑ System-assigned managed identity: On
You need to create a script that will run from within VM1 to retrieve the authentication token of VM1.
Which address should you use in the script?

  • A. vm1.adatum.com.onmicrosoft.com
  • B. 169.254.169.254
  • C. 10.10.0.10
  • D. vm1.adatum.com
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Your code that's running on the VM can request a token from the Azure Instance Metadata Service identity endpoint, accessible only from within the VM: http://169.254.169.254/metadata/identity/oauth2/token
Reference:
https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview

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
TEMPKAKAM
Highly Voted 4 years, 6 months ago
Correct Answer
upvoted 21 times
...
ZW9
Highly Voted 4 years, 6 months ago
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service
upvoted 17 times
...
sandeepmalik
Most Recent 3 years, 2 months ago
In today's exam. Score 900+ Correct answer.
upvoted 1 times
...
[Removed]
3 years, 3 months ago
Selected Answer: B
Correct
upvoted 1 times
...
KemalM
3 years, 3 months ago
Selected Answer: B
Correct
upvoted 1 times
...
p_v_p
3 years, 4 months ago
Correct answer, this is the magical IP in the cloud world !
upvoted 1 times
...
nd78
3 years, 4 months ago
on Exam today 21st Jan, 2022
upvoted 1 times
...
Nands23
3 years, 5 months ago
This was on today's exam. 12/29/2021 Gave same answer
upvoted 1 times
...
tomatosis
3 years, 5 months ago
On exam 23 Dec 2021, I chose the same answer
upvoted 2 times
...
jadepe
3 years, 6 months ago
On exam 13dic2021
upvoted 1 times
...
quantumray
3 years, 6 months ago
Question appeared On AZ-303 exam on 08/12/2021 - 49 questions, 4Q - Fabrikan case study
upvoted 2 times
...
Azureforeveryone
3 years, 6 months ago
Correct Answer. Link : https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/how-to-use-vm-token#get-a-token-using-http
upvoted 2 times
...
Dpejic
3 years, 6 months ago
On exam today 22/11/21. r. Score 839
upvoted 2 times
...
syu31svc
3 years, 9 months ago
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service?tabs=windows You'll find the IP 169.254.169.254 mentioned lots of times so answer is B
upvoted 1 times
...
scottishstvao
3 years, 10 months ago
On Exam yesterday 08/14/2021 - Correct Answer I passed
upvoted 4 times
...
kkstays
3 years, 10 months ago
9th Aug 21 - Was in today's exam. 54 Questions in total (4 Case study), No Lab
upvoted 1 times
...
VMUN
3 years, 11 months ago
26-June-21, Passed the exam. Correct Answer
upvoted 4 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 ...