Register to Better Coder! It's free.
Enjoy the premium features and succeed at every job interview.
How can an application that is running in an Azure virtual machine and using user-assign identity retrieve a bearer token?
Experience Level: Senior
Tags: Azure CloudAzure Virtual Machines
Answer
It needs to call Azure Instance MetaData Service (IMDS) Endpoint which will return an access bearer token in the JSON response.
Related Azure Cloud job interview questions
You need to ensure that all login attempts to the Azure portal from specific countries require Azure Multi-Factor Authentication (MFA). What will you do?
Azure Active DirectoryAzure AD Conditional AccessAzure Cloud SeniorYou have two Azure Virtual machines. You need to configure notifications that will alarm two admin users when more than five events are added to the security log of VM1 or VM2 during a period of 120 seconds. How will you achieve this?
Azure AlertsAzure Cloud SeniorHow do you make sure that when users in your company change jobs, the memberships of the user groups won't be forgotten to be updated and will be kept up-to-date?
Azure Active DirectoryAzure CloudAzure Privileged Identity Management SeniorWhat Azure feature allows you give security people ability to review membership of administrative roles, get alerts about changes in administrator assignments and see history of administrator activation?
Azure Active DirectoryAzure CloudAzure Privileged Identity Management SeniorWhat Azure feature allows you to enable the applications to access Azure Key Vault and retrieve keys for use in code?
Azure CloudAzure Key Vault Senior