Skip to main content
InterviewHubPRO
Section Overview
Q38

Question 38 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

76%
Microsoft Azure (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

Microsoft Entra ID: Service Principals vs Managed Identities.

senior LevelazureAdvanced Internals

In Simple Words:

  • Service Principal: An identity created for an application or CI/CD runner. Requires managing secrets (passwords, certificates) that expire and must be rotated manually.
  • Managed Identity (Recommended): An automated identity managed directly by Azure for Azure resources (VMs, App Services, Functions):
    • Zero Secrets: Eliminates hardcoded passwords from configuration files!
    • Azure handles automatic token acquisition and credential rotation transparently.