0
0
Azurecloud~20 mins

Managed identities concept in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Managed Identities Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the primary benefit of using managed identities in Azure?

Managed identities help Azure services authenticate securely without needing to manage credentials manually. What is the main advantage of this?

AThey eliminate the need to store and rotate credentials manually, reducing security risks.
BThey allow users to log in to Azure Portal without a password.
CThey automatically back up all Azure resources daily.
DThey provide unlimited free compute resources for identity management.
Attempts:
2 left
💡 Hint

Think about how credentials are handled and the risks involved.

Architecture
intermediate
2:00remaining
Which Azure service can use a system-assigned managed identity to access Azure Key Vault securely?

You want an Azure service to retrieve secrets from Azure Key Vault without embedding credentials. Which service can use a system-assigned managed identity for this purpose?

AAzure Blob Storage
BAzure Virtual Machine
CAzure CDN
DAzure Traffic Manager
Attempts:
2 left
💡 Hint

Consider which services run code and can have identities assigned.

security
advanced
2:00remaining
What happens if you delete an Azure resource with a system-assigned managed identity?

Consider an Azure resource (like a VM) with a system-assigned managed identity. What is the effect on the managed identity when the resource is deleted?

AThe managed identity remains active and can be used by other resources.
BThe managed identity is disabled but not deleted.
CThe managed identity is converted to a user-assigned managed identity.
DThe managed identity is automatically deleted along with the resource.
Attempts:
2 left
💡 Hint

Think about the lifecycle of system-assigned identities tied to resources.

service_behavior
advanced
2:00remaining
How does a user-assigned managed identity differ in lifecycle from a system-assigned managed identity?

Compare user-assigned and system-assigned managed identities regarding their lifecycle and reuse.

AUser-assigned managed identities cannot be assigned to more than one resource; system-assigned identities can.
BUser-assigned managed identities are deleted when the resource is deleted; system-assigned identities persist independently.
CUser-assigned managed identities exist independently and can be shared across multiple resources; system-assigned identities are tied to one resource and deleted with it.
DBoth user-assigned and system-assigned managed identities are deleted when the resource is deleted.
Attempts:
2 left
💡 Hint

Think about identity reuse and independence from resources.

Best Practice
expert
2:00remaining
You want to grant an Azure Function access to an Azure Storage account securely. Which approach follows best practices using managed identities?

Choose the best way to allow an Azure Function to access an Azure Storage account without storing credentials in code.

AAssign a system-assigned managed identity to the Azure Function and grant it the Storage Blob Data Contributor role on the Storage account.
BCreate a user-assigned managed identity and embed its client secret in the Azure Function code.
CStore the Storage account key in Azure Function app settings and use it in code.
DUse a shared access signature (SAS) token hardcoded in the Azure Function.
Attempts:
2 left
💡 Hint

Consider secure authentication without secrets in code or settings.