0
0
Azurecloud~5 mins

Managed identity integration in Azure - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AThe managed identity is transferred to another resource.
BThe managed identity remains and must be deleted manually.
CThe managed identity is deleted automatically.
DThe managed identity becomes inactive but stays in Azure AD.
Which of the following is NOT a benefit of using managed identities?
ANo need to store secrets in code
BManual rotation of credentials required
CAutomatic credential management
DSimplified authentication to Azure services
Which Azure CLI command enables a system-assigned managed identity on a virtual machine named 'vm1'?
Aaz vm identity assign --name vm1 --resource-group myGroup
Baz identity create --name vm1 --resource-group myGroup
Caz vm create --name vm1 --assign-identity
Daz vm identity enable --name vm1 --resource-group myGroup
User-assigned managed identities can be:
ATied to only one resource's lifecycle
BUsed only with Azure Functions
CAutomatically deleted with the resource
DAssigned to multiple Azure resources
Which Azure service is commonly accessed using managed identities for secret retrieval?
AAzure Key Vault
BAzure Cosmos DB
CAzure DevOps
DAzure Monitor
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.