Interview Prep/Azure/Entra ID, RBAC and Identities

How do client secrets, certificates and federated credentials compare for service principals?

IntermediateConceptEntra ID, RBAC and Identities
Answer
Credential Risk Rotation
Client secret A string that leaks into logs, env vars, git Manual, max 2 years (policy often 6–12 months)
Certificate Private key can be kept in Key Vault or HSM Manual or Key Vault auto-renew
Federated credential No secret at all Nothing to rotate

Order of preference: managed identity, then federated credential, then certificate, and a client secret only when the platform supports nothing else. We use app management policies to block new secrets tenant-wide where possible.

Azure All Azure questions Roadmap: Azure core services

More on Entra ID, RBAC and Identities