nerdexam
Microsoft

SC-300 · Question #182

You have an Azure subscription that contains an Azure SQL database named db1. You deploy an Azure App Service web app named App1 that provides product information to users that connect to App1…

The correct answer is A. a system-assigned managed identity. Explanation A system-assigned managed identity is the ideal solution because it is automatically created and exclusively tied to App1's lifecycle - when App1 is deleted, the identity is deleted too, ensuring credentials are available only to App1 with no manual credential…

Submitted by devops_kid· Mar 6, 2026Plan and implement workload identities

Question

You have an Azure subscription that contains an Azure SQL database named db1. You deploy an Azure App Service web app named App1 that provides product information to users that connect to App1 anonymously. You need to provide App1 with access to db1. The solution must meet the following requirements:

  • Credentials must only be available to App1.
  • Administrative effort must be minimized.

Which type of credentials should you use?

Options

  • Aa system-assigned managed identity
  • Ban Azure Active Directory (Azure AD) user account
  • Ca SQL Server account
  • Da user-assigned managed identity

How the community answered

(19 responses)
  • A
    79% (15)
  • B
    5% (1)
  • C
    16% (3)

Explanation

Explanation

A system-assigned managed identity is the ideal solution because it is automatically created and exclusively tied to App1's lifecycle - when App1 is deleted, the identity is deleted too, ensuring credentials are available only to App1 with no manual credential management required. This directly satisfies both requirements: exclusivity and minimized administrative effort, since Azure handles the identity automatically without you needing to create, rotate, or store any secrets.

Why the distractors are wrong:

  • B (Azure AD user account): A user account can be shared across multiple applications or users, violating the "credentials only available to App1" requirement, and requires manual management.
  • C (SQL Server account): SQL Server accounts use username/password credentials that must be manually created, stored, and rotated - increasing administrative effort and security risk.
  • D (User-assigned managed identity): While still a managed identity, a user-assigned identity is created independently and can be shared across multiple resources, which violates the exclusivity requirement.

Memory Tip

Think of it this way: System-assigned = born with the app, dies with the app (exclusive + automatic), while User-assigned = a shared ID card that multiple apps can carry. When the question demands exclusivity + minimal effort, always lean toward system-assigned.

Topics

#Managed Identities#Azure App Service#Azure SQL Database#Workload Identity

Community Discussion

No community discussion yet for this question.

Full SC-300 Practice