AZ-204 Implement Azure security Practice Question
You are developing a microservices application. Each microservice must authenticate to Azure SQL Database using its own identity. You need to minimize credential management overhead. What should you use?
⚠ Common exam trap
Many exam-takers choose user-assigned managed identities thinking they offer more control, but the question specifically asks to minimize credential management overhead, and system-assigned identities are fully automated with zero manual setup beyond enabling the flag.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
System-assigned managed identities
System-assigned managed identities enable each microservice to authenticate to Azure SQL Database without storing credentials in code or configuration. Azure automatically rotates the identity's service principal certificate and handles token acquisition via the Azure Instance Metadata Service (IMDS) endpoint, eliminating manual credential management. This is the simplest approach when each microservice has a one-to-one relationship with its Azure resource (e.g., App Service or Azure Function).
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
System-assigned managed identities
Why this is correct
System-assigned managed identities are automatically created and deleted with the Azure resource (e.g., an App Service, Azure Function, or AKS pod). They provide a unique identity for each specific microservice instance, enabling fine-grained access control to other Azure services without requiring developers to manage credentials. This approach simplifies the security posture by eliminating the need for manual secret rotation and ensuring identity isolation per service, aligning perfectly with microservice principles.
- ✗
User-assigned managed identities
Why it's wrong here
User-assigned managed identities are standalone Azure resources that can be assigned to multiple Azure services. While flexible for scenarios requiring a shared identity across several components, they do not inherently provide the per-microservice isolation and unique identity lifecycle management that a microservices architecture often benefits from for granular security. Managing their assignment to individual microservice instances also adds operational overhead compared to the automatic provisioning of system-assigned identities.
- ✗
Certificate-based authentication
Why it's wrong here
Certificate-based authentication involves generating, deploying, and securely storing X.509 certificates for each microservice. This method introduces significant operational complexity due to the manual or semi-automated processes required for certificate provisioning, renewal, and revocation across a potentially large number of services. The burden of managing certificate lifecycles, including secure distribution and rotation, makes it less ideal for dynamic microservices environments compared to managed identities.
- ✗
Service principals with client secrets
Why it's wrong here
Service principals with client secrets involve creating an application registration in Azure Active Directory and generating a secret (password) for authentication. This approach necessitates the secure storage and regular rotation of these client secrets, which can be a significant operational and security challenge. Hardcoding or storing secrets in configuration files increases the risk of exposure, making it less secure and more cumbersome than managed identities for microservices, which eliminate credential management.
Go deeper
Related to this question
About these practice questions
This AZ-204 question is part of Courseiva's 881-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.