Azure Developer Implementing Managed Identities Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Questions: 20 | Updated: Aug 14, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. Managed identities can authenticate to services that support Azure AD authentication.

Explanation

Managed identities provide Azure resources with an automatically managed identity, so applications can obtain authentication tokens without storing or handling credentials. These identities can authenticate to Azure services and other services that support Microsoft Entra ID (formerly Azure AD) authentication, subject to the permissions granted to them.

Submit
Please wait...
About This Quiz
Azure Developer Implementing Managed Identities Quiz - Quiz

This quiz evaluates your understanding of managed identities in Azure, a core security feature for developers. You'll test knowledge of system-assigned and user-assigned identities, authentication flows, role-based access control integration, and practical implementation scenarios. Mastering managed identities is essential for building secure, scalable cloud applications on Azure.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. What is the primary security benefit of using managed identities in a microservices architecture?

Explanation

Managed identities give each microservice a distinct identity, allowing access to be granted only to the specific resources and actions it needs. This supports least-privilege access, improves isolation between services, and avoids relying on shared credentials that could expose multiple services if compromised.

Submit

3. Managed identities can be assigned at the subscription level to apply permissions globally.

Explanation

Managed identities are attached to specific Azure resources or created as standalone user-assigned identities; they are not assigned to a subscription to apply permissions globally. You can grant an identity permissions at subscription scope through an Azure role assignment, but that is different from assigning the managed identity itself at that level.

Submit

4. To grant a managed identity permission to read secrets from Azure Key Vault, you assign the ____ role.

Explanation

The Key Vault Secrets User role grants a managed identity permission to read secret values from an Azure Key Vault, without granting broader administrative access to manage the vault or its secrets.

Submit

5. Which of the following scenarios requires a user-assigned managed identity instead of system-assigned?

Explanation

A user-assigned managed identity is created separately from any individual resource, so it can be assigned to multiple applications or Azure resources that need the same identity and permissions. Its lifecycle is managed independently, allowing it to remain available even if one of the resources using it is deleted or replaced.

Submit

6. The Azure Instance Metadata Service endpoint for managed identities is accessible only over HTTPS.

Explanation

Azure Instance Metadata Service (IMDS), including its managed identity token endpoint, is accessed through the link-local address 169.254.169.254 over plain HTTP, not HTTPS. Requests must include the required `Metadata: true` header. This is a platform-specific endpoint, so the statement that it is accessible only over HTTPS is false.

Submit

7. A developer wants to authenticate an Azure Container Instance to Azure Key Vault. Which managed identity type is most appropriate?

Explanation

Azure Container Instances can use either system-assigned or user-assigned managed identities to authenticate to Azure Key Vault. A system-assigned identity is tied to the container group’s lifecycle, while a user-assigned identity can be reused across resources and exists independently of them.

Submit

8. Managed identities use ____ tokens to authenticate to Azure services.

Explanation

Managed identities obtain access tokens from Microsoft Entra ID to prove their identity when accessing Azure services. These tokens are formatted as JSON Web Tokens (JWTs) and contain claims about the identity and its permissions. The Azure service validates the token before granting access, avoiding the need to store credentials in application code.

Submit

9. To assign a user-assigned managed identity to an Azure resource, which Azure CLI command structure is used?

Explanation

The `az resource update` command modifies an existing Azure resource. Setting the identity type to `UserAssigned` configures the resource to use a user-assigned managed identity, which is created separately and can be assigned to supported resources.

Submit

10. What is a key advantage of managed identities over storing connection strings in application code?

Explanation

Managed identities let Azure applications authenticate to supported services without embedding credentials in source code or configuration. Azure manages the identity’s credentials and rotation, reducing the risk of exposure and the need for manual secret management.

Submit

11. What is the primary purpose of managed identities in Azure?

Explanation

Managed identities let Azure resources authenticate securely to other Azure services without requiring developers to store or manage passwords, keys, or other credentials. Azure handles the identity’s credentials automatically, while permissions can be granted through role-based access control. This reduces the risk of exposed secrets and simplifies secure access between resources.

Submit

12. To enable a system-assigned managed identity on an Azure App Service, you modify the ____ setting in the Azure portal.

Explanation

In the Azure portal, open the App Service and select **Identity** under Settings. On the System assigned tab, switch the status to **On** and save. Azure then creates and associates a managed identity with the app, allowing it to authenticate to supported Azure services without storing credentials in the application.

Submit

13. Which Azure SDK method is commonly used to acquire a token for managed identities?

Explanation

`DefaultAzureCredential()` is part of Azure Identity and can use a managed identity when the application runs in Azure. It automatically selects an available authentication method, reducing the need to configure credentials manually. The resulting credential can then request access tokens for Azure services.

Submit

14. What is the relationship between managed identities and Azure RBAC?

Explanation

Managed identities provide an identity that an Azure service can use to authenticate without managing credentials. They do not grant permissions by themselves; Azure RBAC role assignments define what resources the identity can access and what actions it can perform.

Submit

15. System-assigned managed identities are deleted when the associated Azure resource is deleted.

Explanation

A system-assigned managed identity is created specifically for one Azure resource and shares its lifecycle. When that resource is deleted, Azure automatically deletes the identity and its associated service principal. A user-assigned managed identity is separate and can remain available after the resources using it are deleted.

Submit

16. Which HTTP header is required when requesting a token from the Azure Instance Metadata Service?

Explanation

Azure Instance Metadata Service (IMDS) requires requests to include the `Metadata: true` header when calling its token endpoint. This header signals an intentional metadata request and helps protect the service from certain server-side request forgery attacks. The other listed headers are not the required IMDS request header; it must be sent exactly as shown.

Submit

17. To access a managed identity token from an Azure VM, an application typically calls the ____ endpoint.

Explanation

Applications running on an Azure VM obtain managed identity tokens by making an HTTP request to the Azure Instance Metadata Service (IMDS) endpoint. The request specifies the desired resource and API version and includes a metadata header. Azure then returns a token for the assigned identity, without requiring the application to store credentials.

Submit

18. What Azure service issues tokens for managed identities?

Explanation

Azure Instance Metadata Service (IMDS) provides a local endpoint on Azure virtual machines that managed identities use to request access tokens. Azure Key Vault stores secrets and keys, while Azure Policy and Azure Monitor handle governance and monitoring, respectively.

Submit

19. User-assigned managed identities can be shared across multiple Azure resources.

Explanation

A user-assigned managed identity is a standalone Azure resource, separate from the resources that use it. You can associate the same identity with multiple supported Azure resources, allowing each to authenticate to services using its assigned permissions without storing credentials. Its lifecycle is managed independently, so deleting one associated resource does not delete the identity.

Submit

20. Which type of managed identity is automatically created and tied to a specific Azure resource's lifecycle?

Explanation

A system-assigned managed identity is created automatically when enabled on an Azure resource. Azure manages its identity and credentials, and its lifecycle is tied to that resource: deleting the resource also deletes the identity. This differs from a user-assigned identity, which is created separately and can be attached to multiple resources.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Managed identities can authenticate to services that support Azure AD...
What is the primary security benefit of using managed identities in a...
Managed identities can be assigned at the subscription level to apply...
To grant a managed identity permission to read secrets from Azure Key...
Which of the following scenarios requires a user-assigned managed...
The Azure Instance Metadata Service endpoint for managed identities is...
A developer wants to authenticate an Azure Container Instance to Azure...
Managed identities use ____ tokens to authenticate to Azure services.
To assign a user-assigned managed identity to an Azure resource, which...
What is a key advantage of managed identities over storing connection...
What is the primary purpose of managed identities in Azure?
To enable a system-assigned managed identity on an Azure App Service,...
Which Azure SDK method is commonly used to acquire a token for managed...
What is the relationship between managed identities and Azure RBAC?
System-assigned managed identities are deleted when the associated...
Which HTTP header is required when requesting a token from the Azure...
To access a managed identity token from an Azure VM, an application...
What Azure service issues tokens for managed identities?
User-assigned managed identities can be shared across multiple Azure...
Which type of managed identity is automatically created and tied to a...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!