Recall & Review
beginner
What is a managed identity in Azure?
A managed identity is a feature in Azure that provides an automatically managed identity in Azure Active Directory for applications to use when connecting to resources. It removes the need to manage credentials manually.
Click to reveal answer
beginner
What are the two types of managed identities in Azure?
The two types are:<br>1. System-assigned managed identity: Enabled directly on an Azure resource and tied to its lifecycle.<br>2. User-assigned managed identity: Created as a standalone Azure resource and can be assigned to multiple resources.
Click to reveal answer
intermediate
How does a managed identity improve security compared to using service principals with secrets?
Managed identities eliminate the need to store credentials in code or configuration. Azure handles credential rotation automatically, reducing the risk of leaked or expired secrets.
Click to reveal answer
beginner
Which Azure service can use managed identities to authenticate without credentials?
Many Azure services can use managed identities, including Azure Virtual Machines, Azure App Service, Azure Functions, and Azure Logic Apps, to authenticate securely to other Azure services like Key Vault or Storage.
Click to reveal answer
beginner
What is the main step to enable a system-assigned managed identity on an Azure resource?
You enable the system-assigned managed identity in the Azure portal or via CLI by turning on the identity feature for the resource. Azure then creates an identity tied to that resource's lifecycle.
Click to reveal answer
What happens to a system-assigned managed identity when its Azure resource is deleted?
✗ Incorrect
System-assigned managed identities are tied to the lifecycle of the resource and are deleted automatically when the resource is deleted.
Which of the following is NOT a benefit of using managed identities?
✗ Incorrect
Managed identities handle credential rotation automatically, so manual rotation is not required.
Which Azure CLI command enables a system-assigned managed identity on a virtual machine named 'vm1'?
✗ Incorrect
The command 'az vm identity assign' enables a system-assigned managed identity on the specified VM.
User-assigned managed identities can be:
✗ Incorrect
User-assigned managed identities are standalone resources and can be assigned to multiple Azure resources.
Which Azure service is commonly accessed using managed identities for secret retrieval?
✗ Incorrect
Azure Key Vault is commonly accessed using managed identities to securely retrieve secrets without storing credentials.
Explain what a managed identity is and why it is useful in Azure.
Think about how apps connect securely without passwords.
You got /4 concepts.
Describe the difference between system-assigned and user-assigned managed identities.
Consider how each identity is created and managed.
You got /4 concepts.