Microsoft DevOps Engineer Expert AZ-400 Practice Question
An Azure Function app written in C# must read messages from an Azure Service Bus queue and write records to Azure SQL Database. The security team requires that:
No credentials are stored in source code or application configuration.
Credential rotation must occur automatically without administrator intervention.
The identity used must be deleted automatically when the Function app is deleted.
Which identity solution should you recommend?
Register an Azure AD application and store its client secret in Azure Key Vault for the Function app to retrieve at runtime.
Enable a system-assigned managed identity for the Function app and grant it the required Azure RBAC roles.
Create a user-assigned managed identity and share it across all serverless workloads in the subscription.
Use an Azure AD application that authenticates with a certificate managed outside Azure and reference the certificate thumbprint in the Function app.
A system-assigned managed identity is created in Azure AD at the same time as the Azure resource and is automatically deleted when the resource is removed. Azure handles credential rotation for the identity, so no secrets need to be stored or manually updated. A user-assigned managed identity is not removed when the Function app is deleted, and both types of service principal that rely on client secrets or certificates require manual credential storage and rotation, violating the stated requirements.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a system-assigned managed identity?
Open an interactive chat with Bash
How does Azure handle credential rotation with managed identities?
Open an interactive chat with Bash
What is the difference between a system-assigned managed identity and a user-assigned managed identity?
Open an interactive chat with Bash
What is a system-assigned managed identity in Azure?
Open an interactive chat with Bash
How does Azure RBAC work with managed identities?
Open an interactive chat with Bash
What are the differences between system-assigned and user-assigned managed identities?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Develop a security and compliance plan
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .