Medium1 markMultiple Choice
Domain 1.4: Application IdentitiesDomain 1.4Managed IdentityApp Service

AZ-305 · Question 14 · Domain 1.4: Application Identities

You are designing an architecture where an Azure App Service web app needs to securely access an Azure SQL Database. You want to eliminate the need for developers to manage credentials or connection strings. The identity used for access must be tied to the lifecycle of the App Service and deleted automatically if the App Service is deleted. What should you use?

Answer options:

A.

A user-assigned managed identity.

B.

A system-assigned managed identity.

C.

An Azure AD Service Principal.

D.

Azure Key Vault secrets.

How to approach this question

Differentiate between system-assigned and user-assigned managed identities based on lifecycle.

Full Answer

B.A system-assigned managed identity.✓ Correct
A system-assigned managed identity.
System-assigned managed identities are created in Microsoft Entra ID and are tied directly to the lifecycle of an Azure resource. When the resource is deleted, the identity is automatically deleted.

Common mistakes

Choosing user-assigned managed identity, which persists after resource deletion.

Practice the full Azure Solutions Architect Expert AZ-305 Practice Exam 6

55 questions · hints · full answers · grading

More questions from this exam