
Microsoft Entra ID (the product formerly called Azure Active Directory) is the identity layer behind Azure, Microsoft 365, Intune and thousands of SaaS apps. Almost every Azure administrator, cloud engineer, Microsoft 365 administrator, Intune engineer and cloud security role in India now has an identity round, and the questions have moved well beyond "what is Azure AD". Interviewers ask about Conditional Access design, Privileged Identity Management, workload identity federation, token validation, hybrid sync and why a disabled user could still read mail for twenty minutes.
This guide has 48 questions in seven sections: fundamentals, intermediate, advanced, scenario-based, architecture and design, troubleshooting and hands-on. Each answer explains the concept, shows a command or configuration where it helps, and says what the interviewer is listening for. Licensing and feature details were checked against Microsoft Learn on 5 December 2026. Microsoft changes Entra licensing and preview status often, so confirm against the current documentation before an interview. Features marked (preview) were in preview on that date.
If you are preparing for a broader Azure round, pair this with our Azure interview questions and the Azure interview questions hub. Endpoint and device roles should also read the Microsoft Intune interview questions, because Conditional Access and device compliance are usually asked together.
Fundamentals
1. What is Microsoft Entra ID and how is it different from on-premises Active Directory Domain Services?
Microsoft Entra ID is Microsoft's cloud identity and access management service. It holds users, groups, devices and application identities for a tenant, authenticates them, and issues tokens that apps and Azure services trust. It speaks modern web protocols: OpenID Connect and OAuth 2.0 for most apps, SAML 2.0 and WS-Federation for older enterprise SaaS.
Active Directory Domain Services (AD DS) is a different product. It is a domain-joined directory built on LDAP and Kerberos/NTLM, organised into forests, domains and organisational units, and managed with Group Policy. Entra ID has no OUs and no Group Policy; it has a flat directory with administrative units for delegation, and device policy comes from Intune instead. Many organisations run both and synchronise AD DS identities into Entra ID with Microsoft Entra Connect Sync or Cloud Sync.
What the interviewer wants to hear: Entra ID is not "AD in the cloud"; it is a token-based identity provider using OIDC, OAuth and SAML, while AD DS uses Kerberos and LDAP.
Follow-up: If an app needs LDAP or Kerberos and you have no domain controllers in Azure, what can you use? (Microsoft Entra Domain Services, a managed domain that is billed separately.)
2. Explain the relationship between a tenant, a directory and an Azure subscription.
A tenant is a dedicated instance of Entra ID for an organisation. It holds the directory of users, groups and apps, and it has an immutable tenant ID (a GUID) plus one or more verified domain names. An Azure subscription is a billing and resource container. Every subscription trusts exactly one tenant for authentication, but one tenant can have many subscriptions.
That is why moving a subscription to another tenant is disruptive: Azure RBAC role assignments, managed identities and Key Vault access that reference principals in the old tenant stop working and must be recreated.
What the interviewer wants to hear: one tenant to many subscriptions, subscription trusts one tenant, and you know the side effects of changing the trusted tenant.
3. What is the difference between Microsoft Entra roles and Azure RBAC roles?
Entra roles control what someone can do in the directory and in Microsoft 365 services: create users, reset passwords, register apps, manage Conditional Access. Examples are Global Administrator, User Administrator, Application Administrator and Conditional Access Administrator.
Azure RBAC roles control access to Azure resources through Azure Resource Manager: virtual machines, storage accounts, AKS clusters. They are assigned at management group, subscription, resource group or resource scope. Examples are Owner, Contributor, Reader and many service-specific roles such as Key Vault Secrets User.
The two systems are separate. A Global Administrator does not automatically have access to Azure subscriptions. They can use the "Access management for Azure resources" setting to elevate themselves to User Access Administrator at root scope, which should be temporary and audited.
# Azure RBAC assignment at resource group scope
az role assignment create \
--assignee <object-id> \
--role "Reader" \
--scope /subscriptions/<sub-id>/resourceGroups/rg-app
What the interviewer wants to hear: directory roles versus resource roles, different scopes, and that Global Administrator elevation exists but should be rare.
4. What user types exist in Entra ID?
Users are either members or guests. Members are normally employees. Guests are external users invited through B2B collaboration; they sign in with their home identity (another Entra tenant, a Microsoft account, email one-time passcode or a configured identity provider) and get a guest object in your tenant.
Separately, users are either cloud-only (created in Entra ID) or synchronised (sourced from on-premises AD through Connect Sync or Cloud Sync). For a synced user, most attributes are mastered on-premises, so you change them in AD and wait for the next sync rather than editing them in the portal.
What the interviewer wants to hear: member/guest is about the relationship, cloud/synced is about the source of authority.
5. What are the group types, and what is a dynamic group?
Entra ID has security groups (used for access to apps, Azure RBAC, licensing and policy targeting) and Microsoft 365 groups (which also create a shared mailbox, SharePoint site and other collaboration resources). Membership can be assigned manually or dynamic.
A dynamic group uses a rule evaluated against user or device attributes, so membership updates automatically. Dynamic membership rules require Microsoft Entra ID P1 for the users in scope.
(user.department -eq "Finance") -and (user.country -eq "India")
What the interviewer wants to hear: when to use each group type, and that dynamic groups need P1 and depend on clean HR attributes.
Follow-up: What happens if the department attribute is empty for half your users? (They silently fall out of the group, so attribute hygiene matters.)
6. Which protocols does Entra ID support, and when would you use each?
- OpenID Connect: sign-in for modern web, mobile and single-page apps. It returns an ID token describing the user.
- OAuth 2.0: authorisation for calling APIs. It returns access tokens (and refresh tokens). Flows include authorization code with PKCE, client credentials, on-behalf-of and device code.
- SAML 2.0: single sign-on for many enterprise SaaS applications that predate OIDC.
- WS-Federation: mainly older Microsoft and .NET applications.
The OAuth 2.0 resource owner password credentials (ROPC) grant is incompatible with MFA, and Microsoft now steers developers away from it.
What the interviewer wants to hear: OIDC is authentication, OAuth is authorisation, and you prefer authorization code with PKCE for interactive apps and client credentials for daemons.
7. What do Entra ID Free, P1 and P2 give you?
According to Microsoft's licensing page, Free is included with Azure and Microsoft 365 subscriptions and covers core directory, SSO, security defaults and basic sign-in and audit logs. P1 adds Conditional Access, dynamic groups, self-service password reset with on-premises writeback, custom directory roles and Application Proxy. P2 adds Microsoft Entra ID Protection (risk-based Conditional Access) and Privileged Identity Management. Microsoft Entra ID Governance adds features such as Lifecycle Workflows and the fuller access review and entitlement management capabilities.
P1 is included in Microsoft 365 E3 and Business Premium; P2 is included in Microsoft 365 E5. Workload ID premium features such as Conditional Access for workload identities are licensed separately per workload identity.
What the interviewer wants to hear: Conditional Access needs P1, risk-based policies and PIM need P2, and you would check the current licensing page because bundles change.
8. What are security defaults?
Security defaults are a free, on/off baseline. When enabled they require all users to register for MFA, require MFA for administrators every sign-in, prompt users for MFA when Microsoft considers it necessary, block legacy authentication protocols, block device code flow and require MFA for Azure Resource Manager access (portal, Azure CLI, Azure PowerShell).
Security defaults cannot be customised. Organisations with P1 or P2 that need exclusions or finer control disable security defaults and replace them with Conditional Access policies. Microsoft-managed Conditional Access policies exist to carry over the same protections.
What the interviewer wants to hear: security defaults are for tenants without Conditional Access; you can't run them alongside custom Conditional Access.
9. Which MFA methods are considered phishing-resistant?
Phishing-resistant methods bind authentication to the legitimate site, so a fake login page cannot relay them. In Entra ID these are passkeys (FIDO2) including device-bound passkeys in Microsoft Authenticator, Windows Hello for Business, and certificate-based authentication. SMS, voice call and push approval without binding are not phishing-resistant, though Authenticator number matching reduces MFA-fatigue attacks.
You enforce them with authentication strengths in Conditional Access, for example requiring the built-in "Phishing-resistant MFA" strength for administrators.
What the interviewer wants to hear: you know MFA is not one thing, and admins should be on phishing-resistant methods.
Intermediate
10. What is the difference between an app registration and an enterprise application?
Registering an app creates an application object in the home tenant. It is the global definition: client ID, redirect URIs, credentials, exposed scopes, app roles and requested permissions. You manage it under App registrations.
A service principal is the local instance of that app in a specific tenant. It holds what the app is allowed to do in that tenant: consented permissions, user assignments, Conditional Access targeting and sign-in logs. You manage it under Enterprise applications. A single-tenant app has one service principal in its home tenant; a multitenant app gets a service principal in every tenant that consents to it.
Microsoft also documents two other service principal types: managed identity service principals (no application object) and legacy service principals.
What the interviewer wants to hear: application object is the blueprint (one), service principal is the instance per tenant (many), and permissions and assignments live on the service principal.
Follow-up: If you delete the app registration, what happens to the service principal in the home tenant? (It is deleted too; restoring the app object does not restore it.)
11. Compare system-assigned and user-assigned managed identities.
Both are service principals that Azure manages for you, so there is no secret to store or rotate, and there is no Entra licensing cost.
| Property | System-assigned | User-assigned |
|---|---|---|
| Created | As part of one Azure resource | As a standalone Azure resource |
| Lifecycle | Deleted with the resource | Independent; delete explicitly |
| Sharing | One resource only | Can attach to many resources |
| Good for | Single VM or app with its own permissions | Scale sets, pre-authorised access, frequently recreated resources |
Microsoft's documentation recommends user-assigned identities for Microsoft services because they can be created and authorised before the compute exists.
What the interviewer wants to hear: lifecycle and sharing differences, and a reason to prefer user-assigned in IaC pipelines.
12. Explain delegated permissions versus application permissions.
Delegated permissions (scopes) are used when an app acts on behalf of a signed-in user. The effective access is the intersection of what the app was granted and what the user can do. They appear in the scp claim.
Application permissions (app roles) are used by daemons and services with no user present, through the client credentials flow. The app gets the permission across the tenant, for example reading every mailbox, and it always needs admin consent. They appear in the roles claim.
What the interviewer wants to hear: application permissions are tenant-wide and high-risk, so you scope them (for example with Exchange application access policies or RBAC for applications where supported) and review them regularly.
Follow-up: Which claim would your API check for each type?
13. How does a Conditional Access policy work?
A Conditional Access policy is an if-then rule. Assignments say who and what it applies to: users, groups, roles, workload identities, target resources (cloud apps, user actions, authentication context), and conditions such as user risk, sign-in risk, device platform, locations, client apps and device filters. Access controls say what happens: block, or grant with requirements such as MFA, an authentication strength, a compliant device, a hybrid joined device, an app protection policy, a password change or terms of use. Session controls cover sign-in frequency, persistent browser session, app enforced restrictions and Defender for Cloud Apps session control.
Microsoft's documentation stresses that Conditional Access is enforced after first-factor authentication, so it is not a defence against password spray volume or denial of service by itself. When several policies apply, all of them must be satisfied, and a block wins.
What the interviewer wants to hear: assignments, conditions, grant and session controls; evaluated after first factor; all matching policies are combined and block beats grant.
14. How do you test a Conditional Access policy safely?
Create it in report-only mode first. Report-only policies are evaluated at sign-in and logged, but not enforced. Check the "Report-only" result in the sign-in logs or in the Conditional Access insights workbook for a week or two to see who would have been blocked or prompted.
Use the What If tool to simulate a specific user, app, location and device. Exclude your emergency access accounts from every policy, then pilot with a small group before switching to "On".
What the interviewer wants to hear: report-only, What If, break-glass exclusions and a staged rollout, not "I turned it on for all users".
15. Compare password hash sync, pass-through authentication and federation.
| Method | Where the password is checked | On-premises dependency | Notes |
|---|---|---|---|
| Password hash synchronization (PHS) | In Entra ID, against a synced hash of the hash | Only the sync engine | Simplest; needed for ID Protection leaked-credential detection; disabled accounts can take up to about 30 minutes to reflect |
| Pass-through authentication (PTA) | By on-premises AD via lightweight agents | Agents plus domain controllers | Enforces on-premises account states and sign-in hours at sign-in; Microsoft recommends three agents for availability |
| Federation (for example AD FS) | By the federation service | AD FS and WAP farms, certificates | Needed for some third-party auth or sAMAccountName sign-in; most complex |
Microsoft recommends enabling PHS whichever method you choose, as a disaster-recovery fallback and for leaked-credential detection. Failover from PTA to PHS is not automatic; you switch the sign-in method in Entra Connect.
What the interviewer wants to hear: trade-offs, and that PHS should be on even when you use PTA or federation.
16. What is the difference between Microsoft Entra Connect Sync and Cloud Sync?
Connect Sync is the full sync engine installed on a Windows server. It runs a delta sync cycle every 30 minutes by default (password hash sync runs on its own, roughly every two minutes), supports complex sync rule customisation, and uses a staging-mode server for high availability.
Cloud Sync keeps configuration in the cloud and uses lightweight provisioning agents that need only outbound connectivity. Multiple active agents give automatic failover, it handles disconnected forests natively, and the provisioning service runs every two minutes. Microsoft provides a decision guide and a migration tool because Cloud Sync does not yet cover every Connect Sync scenario.
# On the Connect Sync server
Get-ADSyncScheduler
Start-ADSyncSyncCycle -PolicyType Delta
What the interviewer wants to hear: architecture difference, HA approach, and that you check the decision guide before migrating.
17. What does self-service password reset writeback do?
SSPR lets users reset their own password after proving their identity with registered methods. For synced users the password lives in on-premises AD, so without writeback a cloud reset is useless on-premises. Password writeback sends the new password back to AD through Connect Sync or Cloud Sync. SSPR itself is available broadly, but SSPR with on-premises writeback requires P1.
What the interviewer wants to hear: writeback exists because synced users are mastered on-premises, and it needs P1.
18. Describe the ID token, access token and refresh token.
- ID token: proof that a user signed in, consumed by the client app. Contains claims such as
oid,tid,nameandpreferred_username. - Access token: presented to an API. Its audience (
aud) is the API. Microsoft says clients should treat access tokens as opaque; only the API validates them. - Refresh token: used by the client to obtain new access tokens silently.
By default an access token's lifetime is randomised between 60 and 90 minutes (75 on average) to spread load. In Continuous Access Evaluation sessions, tokens can be long-lived, up to 28 hours, because revocation is driven by events.
What the interviewer wants to hear: which party consumes which token, and that you never identify users by email or UPN but by oid plus tid.
Advanced
19. What problem does Privileged Identity Management solve, and what is the difference between eligible and active assignments?
PIM removes standing privilege. Instead of permanently holding Global Administrator or Owner, a user is eligible and must activate the role for a limited time, optionally with MFA, justification, a ticket number and approval. Active assignments give the permissions without any action. Both can be permanent or time-bound with start and end dates.
PIM covers Microsoft Entra roles, Azure resource roles and PIM for Groups, and it sends notifications, keeps audit history and supports access reviews. Users with eligible or time-bound assignments, approvers and reviewers need Entra ID P2 or Entra ID Governance licences.
What the interviewer wants to hear: just-in-time, time-bound, approval and MFA on activation; you keep only emergency accounts permanently active.
Follow-up: What happens to eligible Entra role assignments if the P2 licence expires? (Microsoft documents that eligible assignments are removed and permanent ones are unaffected.)
20. What is Microsoft Entra ID Protection and how is it used with Conditional Access?
ID Protection calculates sign-in risk (the likelihood that a particular sign-in is not made by the account owner, for example anonymous IP or unfamiliar properties) and user risk (the likelihood that the account is compromised, for example leaked credentials). Risk-based Conditional Access policies then act on it, for example requiring MFA for medium sign-in risk and a secure password change for high user risk. ID Protection and risk-based policies require P2.
Leaked-credential detection depends on password hash sync for hybrid users, which is one reason Microsoft recommends PHS everywhere.
What the interviewer wants to hear: two kinds of risk, remediation through Conditional Access, and the PHS dependency.
21. What is Continuous Access Evaluation?
Continuous Access Evaluation (CAE) lets resource providers such as Exchange Online, SharePoint Online and Teams reject a still-valid token when something important changes, instead of waiting for it to expire. Critical events include a user being deleted or disabled, a password change or reset, MFA being enabled for the user, an admin revoking refresh tokens, and high user risk from ID Protection. Services can also enforce IP-based Conditional Access location policies.
The resource returns a 401 with a claims challenge; a CAE-capable client then goes back to Entra ID for a new token. Microsoft notes event propagation can take up to 15 minutes, while IP location enforcement is instant. CAE only understands IP-based named locations, not country locations.
What the interviewer wants to hear: event-driven revocation, the claims challenge, and the supported services and locations limitation.
22. What is workload identity federation?
Workload identity federation lets a workload outside Azure, or one that uses an app registration, get Entra tokens without a stored secret or certificate. You add a federated identity credential to an app registration or user-assigned managed identity that says "trust tokens from this issuer with this subject and this audience". The workload presents a token from its own identity provider (GitHub Actions, a Kubernetes service account token, Google Cloud, AWS, SPIFFE) and Entra ID exchanges it for an access token.
The issuer, subject and audience must match case-sensitively; wildcards are not supported; the recommended audience is api://AzureADTokenExchange; and an app or managed identity can have at most 20 federated credentials.
What the interviewer wants to hear: no secrets, a trust on issuer plus subject, exact matching, and examples such as GitHub Actions and AKS workload identity.
23. What are authentication strengths and authentication context?
Authentication strength is a Conditional Access grant control that specifies which combinations of methods are acceptable, for example "Phishing-resistant MFA". It is more precise than "Require MFA", which any MFA method satisfies.
Authentication context lets you protect a specific action or piece of data inside an app rather than the whole app. You define a context (for example "c1 - highly confidential"), target a Conditional Access policy at it, and the app, a SharePoint sensitivity label or PIM activation requests that context. PIM can require an authentication context on role activation.
What the interviewer wants to hear: strengths control "how strong", context controls "for which sensitive step".
24. How should an API validate an Entra access token?
- Accept only tokens whose
audis your API's application ID or App ID URI. Accepting tokens meant for another resource is a confused-deputy bug. - Validate the signature using the key whose
kidmatches, fetched from thejwks_uriin the OpenID Connect metadata. Refresh keys periodically because Microsoft rotates them. - Validate the issuer. For multitenant apps, substitute the token's
tidinto the templated issuer and check exact match, and check the signing key's issuer too. - Check
expandnbf, then authorise usingscp(delegated) orroles(application).
Use a maintained library such as Microsoft.Identity.Web rather than hand-written parsing. Tokens for Microsoft Graph are not meant to be validated by your code.
What the interviewer wants to hear: audience, signature, issuer, lifetime, then scopes or roles, done by a library.
25. What are administrative units and custom roles?
Administrative units (AUs) scope directory roles to a subset of users, groups or devices, for example letting the Hyderabad helpdesk reset passwords only for Hyderabad users. Restricted management AUs go further and block even tenant-level admins from changing members unless they are assigned at the AU scope. Custom Entra roles let you build least-privilege role definitions from individual permissions.
Per Microsoft's licensing page, custom role assignments need P1 for each assigned user, and AU administrators need P1, while AU members need only Free (unless dynamic membership is used).
What the interviewer wants to hear: AUs for delegation by scope, custom roles for least privilege, and the licensing nuance.
26. How do cross-tenant access settings affect B2B collaboration?
Cross-tenant access settings control inbound and outbound B2B collaboration and B2B direct connect, per partner organisation or by default. A key setting is trust: you can choose to trust MFA, compliant device and hybrid joined device claims from a partner's home tenant, so guests are not forced to register MFA again in your tenant. Without trust, your Conditional Access policies make the guest register and perform MFA in your tenant.
What the interviewer wants to hear: default versus per-organisation settings, inbound versus outbound, and the MFA trust option.
Scenario-based
27. A vendor team of 15 people needs access to one internal app for three months. How do you set it up?
Invite them as B2B guests rather than creating member accounts. Put the app in an access package in entitlement management with an approval step from the app owner and an assignment expiry of three months, so access is removed automatically. Require MFA for guests through Conditional Access (or trust the partner's MFA through cross-tenant access settings if their tenant is well managed). Add a recurring access review for the package. Requiring user assignment on the enterprise app ensures only assigned guests can get a token.
Check licensing before you promise this design: access packages with expiry need P2 or Entra ID Governance depending on the capability, and guests are billed under the External ID monthly active user model.
What the interviewer wants to hear: guest accounts, time-bound access that removes itself, MFA, and reviews.
28. Your GitHub Actions pipeline deploys to Azure using a client secret stored in GitHub. Security wants it removed. What do you do?
Switch to OpenID Connect with workload identity federation. Add a federated credential to the app registration (or a user-assigned managed identity) with issuer https://token.actions.githubusercontent.com, the right subject and audience api://AzureADTokenExchange. Give the workflow id-token: write permission and use azure/login with client ID, tenant ID and subscription ID only. Then delete the client secret and narrow the RBAC assignment to the resource group the pipeline actually deploys to.
permissions:
id-token: write
contents: read
steps:
- uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
Use an environment-based subject such as repo:org/app:environment:production so only jobs bound to that GitHub environment (which can require reviewers) can deploy to production.
What the interviewer wants to hear: federated credential, exact subject matching, environment protection, and removing the old secret. Our GitHub Actions interview questions cover the pipeline side.
29. The only Global Administrator has left the company and their account is disabled. How do you prevent this in future?
Microsoft recommends two cloud-only emergency access ("break-glass") accounts permanently assigned Global Administrator, not tied to a person, on the tenant's onmicrosoft.com domain, excluded from normal Conditional Access policies but protected with phishing-resistant MFA such as FIDO2 passkeys or certificate-based authentication. Mandatory Azure MFA applies to them too, so passwords alone will not work. Monitor every sign-in by these accounts with an alert, store credentials in separate secure locations, and test them on a schedule.
For day-to-day admins, use PIM-eligible roles and more than one Privileged Role Administrator so no single departure locks you out. If you are already locked out, the recovery path is a Microsoft support case with proof of ownership, which can take time.
What the interviewer wants to hear: two break-glass accounts, strong MFA, alerting, and avoiding single points of human failure.
30. Users have MFA enforced, yet an attacker accessed a mailbox using only a password. How?
The most common cause is legacy authentication. Protocols such as IMAP, POP3, SMTP AUTH and older Exchange ActiveSync basic authentication do not support MFA, so a password spray can succeed if legacy protocols are not blocked. Other causes include an MFA exclusion for a trusted location the attacker reached, a stolen session token or refresh token (token theft bypasses MFA because MFA already happened), or a user approving a fraudulent push.
Fix it by blocking legacy authentication with Conditional Access, removing broad location-based MFA exclusions, using phishing-resistant methods for privileged users, and investigating the sign-in logs by client app and IP.
What the interviewer wants to hear: legacy auth first, then token theft and MFA fatigue, and evidence from sign-in logs.
31. After mandatory Azure MFA was enforced, a nightly PowerShell script that signs in as a user account started failing. What is the correct fix?
Microsoft's mandatory MFA for Azure has two phases: phase 1 (portal and admin centres) and phase 2 (Azure CLI, Azure PowerShell, the mobile app, IaC tools and the Resource Manager REST API for create, update and delete operations, starting 1 October 2025). User accounts used as service accounts are in scope; managed identities and service principals are not.
The fix is not to exclude the user. Move the script to a workload identity: a managed identity if it runs on Azure compute (Automation, a VM, a Function), or a service principal with a certificate or federated credential if it runs elsewhere. ROPC-based sign-in will also fail once MFA applies.
Connect-AzAccount -Identity # inside Azure compute with a managed identity
What the interviewer wants to hear: workload identities for automation; mandatory MFA has no opt-out for user accounts.
32. HR disabled a leaver in on-premises AD at 10:00, but they read Teams messages until 10:25. Why, and how do you tighten it?
With password hash sync, the account state reaches Entra ID only after the next sync, and Microsoft documents disabled accounts with up to a 30-minute delay under PHS. Existing tokens may also keep working until they expire unless the resource supports CAE.
To tighten it: as part of the leaver runbook, disable the account in Entra ID directly or trigger a delta sync, and revoke sessions (Revoke-MgUserSignInSession), which CAE-enabled services such as Exchange, SharePoint and Teams pick up in near real time. Pass-through authentication enforces on-premises account state at sign-in, but it does not revoke existing tokens either.
What the interviewer wants to hear: sync latency plus token lifetime, and session revocation with CAE as the fix.
33. Two companies merge; each has its own AD forest with no trust between them. How do you bring both into one tenant?
Microsoft Entra Cloud Sync handles multiple disconnected forests natively: install provisioning agents in each forest, configure scoping and attribute mappings in the cloud, and both forests provision into one tenant. Plan UPN suffixes and domain verification, check for duplicate attributes (UPN and proxyAddresses) across forests, decide on the authentication method per forest, and verify any features you rely on against the Cloud Sync versus Connect Sync comparison before committing.
What the interviewer wants to hear: Cloud Sync for disconnected forests, plus conflict planning.
Architecture and design
34. Design a Conditional Access baseline for a 5,000-user company with P1 licences.
- Require phishing-resistant MFA (authentication strength) for all administrator roles.
- Require MFA for all users on all resources, with exclusions only for break-glass accounts.
- Block legacy authentication.
- Require MFA (or a compliant device) for Azure management.
- Require a compliant or hybrid joined device for sensitive apps, with app protection policies for mobile.
- Protect security information registration (require a trusted location or a temporary access pass).
- Block countries the business does not operate in, if justified.
- Sign-in frequency and no persistent browser for unmanaged devices.
Use a naming convention, put exclusions in dedicated groups that are reviewed, deploy every policy in report-only first, and keep the policies as code (Microsoft Graph, Terraform or similar) so changes are reviewed. Risk-based policies come later if the organisation buys P2.
What the interviewer wants to hear: a layered baseline, exclusion governance and a deployment process, not a single "MFA for everyone" policy.
35. How would you design privileged access for an Azure estate?
Separate admin accounts from daily accounts (cloud-only, no mailbox). Make every privileged Entra and Azure role PIM-eligible with MFA or an authentication context on activation, approval for the highest roles and short activation windows. Use PIM for Groups for role-assignable groups. Require phishing-resistant MFA and compliant privileged access devices for admin sign-in. Assign Azure RBAC at the narrowest scope that works, prefer built-in roles, and review assignments quarterly. Keep two break-glass accounts with alerting.
What the interviewer wants to hear: separate identities, just-in-time, strong authentication, least privilege and review.
36. You are building a multitenant SaaS app on Entra ID. What design decisions matter?
- Register the app as multitenant and use the
organizationsorcommonauthority. - Validate the issuer per tenant using
tid, not a single fixed issuer, and decide whether you allow every tenant or only onboarded ones. - Key all customer data by
tidandoid. - Ask for the least privileged delegated permissions; anything needing admin consent creates onboarding friction.
- Define app roles so customer admins can assign users to roles in their own tenant.
- Expect customers' Conditional Access to apply to your app in their tenant.
What the interviewer wants to hear: tenant isolation in validation and data, least privilege consent, and customer-controlled roles.
37. How do you make hybrid identity resilient?
Enable password hash sync even if you use PTA or federation, so you can switch sign-in to cloud authentication during an on-premises outage (the switch is manual). For Connect Sync, keep a staging-mode server ready. For PTA, run at least three agents. For Cloud Sync, run multiple agents. Monitor with Entra Connect Health (P1) or provisioning logs, and document the switch-over runbook. Microsoft's guidance describes organisations with PHS recovering in hours after ransomware, compared with weeks for those without it.
What the interviewer wants to hear: PHS as a fallback, redundancy for every on-premises component, and a tested runbook.
38. Design secretless access from an app running on Azure to Key Vault, Storage and SQL.
Give the app a user-assigned managed identity. Grant data-plane RBAC roles at the narrowest scope: Key Vault Secrets User on the vault, Storage Blob Data Reader on the container, and a contained database user mapped to the identity in Azure SQL with Entra-only authentication. In code, use DefaultAzureCredential or ManagedIdentityCredential. Disable shared key access on storage and local SQL authentication where possible so there is no fallback secret.
from azure.identity import DefaultAzureCredential
from azure.storage.blob import BlobServiceClient
cred = DefaultAzureCredential()
svc = BlobServiceClient("https://myacct.blob.core.windows.net", credential=cred)
What the interviewer wants to hear: managed identity, data-plane roles, and turning off key-based fallbacks.
Troubleshooting
39. How do you interpret common AADSTS sign-in errors?
| Code | Meaning (Microsoft error reference) | First check |
|---|---|---|
| AADSTS50076 | User must use MFA due to a configuration change, policy or new location | Interactive MFA required; client must handle it |
| AADSTS50079 | User must register for MFA | Registration status, registration policy |
| AADSTS50105 | Signed-in user isn't assigned to a role for the app | Enterprise app user assignment |
| AADSTS53000 | Conditional Access requires a compliant device | Intune compliance state |
| AADSTS53003 | Blocked by Conditional Access | Which policy applied in sign-in logs |
| AADSTS65001 | User or admin hasn't consented to the app | Consent and permissions |
| AADSTS700016 | Application not found in the directory | Wrong client ID or tenant |
| AADSTS7000215 | Invalid client secret | Expired or wrong secret (or use the secret ID by mistake) |
Microsoft notes error codes can change, so look up the current text at the login error lookup page.
What the interviewer wants to hear: you start from the correlation ID and the sign-in log entry, not from guessing.
40. A Conditional Access policy is not applying to a user. How do you troubleshoot?
Open the user's sign-in log entry and the Conditional Access tab, which lists every policy with result Success, Failure, Not applied or Report-only. "Not applied" means an assignment or condition didn't match. Then check: is the policy On or report-only; is the user in an excluded group; is the target resource the one actually signed in to (for example the client app versus the resource it calls); does the client app condition match; do location ranges include the actual egress IP; and run What If with the same parameters. Remember some sign-ins, such as those of service principals, are not covered by user policies.
What the interviewer wants to hear: sign-in log Conditional Access tab first, then assignments and conditions methodically.
41. Connect Sync reports duplicate attribute errors for some users. What is happening?
Entra ID requires values such as userPrincipalName and proxyAddresses to be unique. If two objects (often a synced user and an existing cloud-only user, or two forests) carry the same value, the second object fails to export or is quarantined for that attribute. Use Entra Connect Health or the provisioning errors view to identify the conflicting object, fix the source value in AD, or decide whether the cloud object should be soft-matched (by primary SMTP or UPN) or hard-matched (by setting the immutable ID) to the on-premises object. Then run a delta sync.
What the interviewer wants to hear: uniqueness constraints, soft match versus hard match, and fixing at the source of authority.
42. A web app with a managed identity gets 403 from Key Vault. What do you check?
- Is the managed identity actually enabled on the app, and is the code using the right one (client ID set for user-assigned)?
- Which permission model does the vault use: Azure RBAC or access policies? A role assignment does nothing on a vault using access policies, and vice versa.
- Is the role a data-plane role (Key Vault Secrets User) rather than a control-plane role (Contributor)?
- Is the assignment at the right scope, and has it propagated? RBAC changes can take a few minutes.
- Is the vault firewall or private endpoint blocking the request? That usually shows as a different error, but check.
What the interviewer wants to hear: data plane versus control plane and the vault permission model, the two most common causes.
43. Your app expects a groups claim but some users' tokens don't have it. Why?
The groups claim has an overage limit: 200 groups for JWTs and 150 for SAML tokens. When a user exceeds it, Entra ID omits the groups claim and includes an overage indicator (_claim_names and _claim_sources pointing at Microsoft Graph, or hasgroups in some flows). The app must then call Graph to get memberships. Better designs use app roles assigned to groups, or filter the groups claim to groups assigned to the application.
What the interviewer wants to hear: overage limits and the app-roles alternative.
44. A user activated an Azure role in PIM but still gets "authorization failed". What next?
Confirm in PIM that activation is Active (not pending approval) and at the expected scope. Azure RBAC changes can take time to propagate, and the user's existing token or portal session may predate the activation, so sign out and back in, or run az account clear and az login again. Check the role actually includes the needed action (for example Reader cannot write) and there is no deny assignment or resource lock blocking it.
What the interviewer wants to hear: token freshness and propagation, then role definition, deny assignments and locks.
Hands-on
45. Create an app registration with a GitHub federated credential using Azure CLI.
APP_ID=$(az ad app create --display-name gh-deploy-app --query appId -o tsv)
az ad sp create --id $APP_ID
cat > cred.json <<'EOF'
{
"name": "gh-prod",
"issuer": "https://token.actions.githubusercontent.com",
"subject": "repo:my-org/my-app:environment:production",
"audiences": ["api://AzureADTokenExchange"]
}
EOF
az ad app federated-credential create --id $APP_ID --parameters cred.json
az role assignment create --assignee $APP_ID --role Contributor \
--scope /subscriptions/<sub-id>/resourceGroups/rg-app-prod
What the interviewer wants to hear: you create the service principal, set an exact subject, and scope RBAC to a resource group rather than the subscription.
46. Revoke a user's sessions and block sign-in with Microsoft Graph PowerShell.
Connect-MgGraph -Scopes "User.ReadWrite.All"
$u = Get-MgUser -UserId "leaver@contoso.com"
Update-MgUser -UserId $u.Id -AccountEnabled:$false
Revoke-MgUserSignInSession -UserId $u.Id
For a synced user, disable the account on-premises as well, otherwise the next sync can re-enable it.
What the interviewer wants to hear: disable plus revoke, and awareness of the source of authority.
47. Write a KQL query to find failed sign-ins by error code in Log Analytics.
When Entra sign-in logs are sent to a Log Analytics workspace through diagnostic settings, they land in the SigninLogs table.
SigninLogs
| where TimeGenerated > ago(24h)
| where ResultType != "0"
| summarize Failures = count() by ResultType, ResultDescription, AppDisplayName
| order by Failures desc
Add | where ConditionalAccessStatus == "failure" to focus on Conditional Access blocks.
What the interviewer wants to hear: you know logs must be exported for long retention and querying, and you can slice by error and app.
48. Assign a user-assigned managed identity to a VM and give it read access to a storage container.
az identity create -g rg-app -n id-app
PRINCIPAL=$(az identity show -g rg-app -n id-app --query principalId -o tsv)
ID=$(az identity show -g rg-app -n id-app --query id -o tsv)
az vm identity assign -g rg-app -n vm-app --identities $ID
az role assignment create --assignee-object-id $PRINCIPAL \
--assignee-principal-type ServicePrincipal \
--role "Storage Blob Data Reader" \
--scope /subscriptions/<sub-id>/resourceGroups/rg-app/providers/Microsoft.Storage/storageAccounts/stapp/blobServices/default/containers/reports
Passing --assignee-principal-type avoids failures when a newly created identity has not replicated yet.
What the interviewer wants to hear: data-plane role at container scope and the replication detail.
How to prepare for an Entra ID interview
- Build a free Entra ID tenant with a Microsoft 365 developer or trial subscription and practise Conditional Access in report-only mode.
- Register an app, call Microsoft Graph with delegated and application permissions, and decode the tokens to see
scpandroles. - Set up GitHub Actions OIDC to a test subscription end to end.
- Read sign-in logs for your own test failures; interviewers often ask how you diagnosed a real problem.
- Know the licensing line between Free, P1, P2 and Governance, and say when you would check the current page.
Identity questions also appear in security rounds. Our AI security interview questions cover how identity controls apply to AI agents and apps.
Sources
- Microsoft Entra licensing (checked 5 December 2026)
- Microsoft Entra Conditional Access overview (checked 5 December 2026)
- Configure security defaults for Microsoft Entra ID (checked 5 December 2026)
- Authentication for Microsoft Entra hybrid identity solutions (checked 5 December 2026)
- Microsoft Entra Connect Sync: Scheduler (checked 5 December 2026)
- What is Microsoft Entra Cloud Sync? (checked 5 December 2026)
- Managed identities for Azure resources (checked 5 December 2026)
- Apps and service principals in Microsoft Entra ID (checked 5 December 2026)
- Access tokens in the Microsoft identity platform (checked 5 December 2026)
- ID token claims reference (groups overage) (checked 5 December 2026)
- What is Privileged Identity Management? (checked 5 December 2026)
- Continuous access evaluation in Microsoft Entra (checked 5 December 2026)
- Workload identity federation (checked 5 December 2026)
- Create a trust relationship between an app and an external identity provider (checked 5 December 2026)
- Authenticate to Azure from GitHub Actions by OpenID Connect (checked 5 December 2026)
- Plan for mandatory Microsoft Entra MFA (checked 5 December 2026)
- Microsoft Entra authentication and authorization error codes (checked 5 December 2026)
Prepare with Cloud Soft Solutions
Cloud Soft Solutions trains Azure administrators and cloud engineers in our Ameerpet, Hyderabad classroom and online. Our Azure and identity sessions include hands-on labs on Conditional Access, PIM, managed identities, hybrid sync and GitHub Actions OIDC, followed by mock interviews built around the scenarios in this guide. The goal is that you can explain your design decisions and troubleshooting steps clearly, the way interviewers expect.
📞 Call +91 96660 19191 · +91 99496 16388 · WhatsApp
Cloud Soft Solutions, 513, 5th Floor, Aditya Enclave, Nilagiri Block, beside Ameerpet Metro Station, Ameerpet, Hyderabad 500016, Telangana, India
Frequently Asked Questions
Is Microsoft Entra ID the same as Azure Active Directory?
Yes. Microsoft renamed Azure Active Directory to Microsoft Entra ID. It is Microsoft's cloud identity and access management service, separate from on-premises Active Directory Domain Services.
Which licence is required for Conditional Access?
Conditional Access requires Microsoft Entra ID P1. Risk-based Conditional Access policies use Microsoft Entra ID Protection, which requires P2.
Which licence does Privileged Identity Management need?
Privileged Identity Management requires Microsoft Entra ID P2 or Microsoft Entra ID Governance licences for users with eligible or time-bound assignments, approvers and reviewers.
What is the difference between an app registration and an enterprise application?
An app registration creates the application object, the global definition in the home tenant. An enterprise application is the service principal, the local instance of the app in a tenant, where permissions and assignments live.
What is the default access token lifetime in Microsoft Entra ID?
By default, the Microsoft identity platform assigns access tokens a random lifetime between 60 and 90 minutes, about 75 minutes on average. CAE-enabled sessions can receive long-lived tokens of up to 28 hours.
Does mandatory Azure MFA apply to managed identities and service principals?
No. Microsoft states workload identities such as managed identities and service principals are not affected by mandatory MFA enforcement. User accounts used as service accounts are affected.



