Domain 2 · 25–30%

Implement and manage Microsoft Entra identity and access

Bridging on-premises Active Directory to the cloud, securing how users prove who they are, and controlling access dynamically with Identity Protection and Conditional Access.

Three objectives:

2.1 Identity synchronization with Microsoft Entra

Authentication models (foundational)

ModelWhere password is validatedNeeds on-prem servers?Notes
Password Hash Sync (PHS)In the cloud (hash-of-a-hash synced)No (just sync)Simplest, most resilient; enables leaked-credential detection in Identity Protection recommended
Pass-through Auth (PTA)On-prem AD (via lightweight agents)Yes — agentsPassword never stored in cloud; needs HA agents
Federation (AD FS)On-prem AD FS farmYes — AD FS infraMost complex; for advanced/3rd-party MFA, smartcards

Seamless SSO

Seamless single sign-on (SSSO) can be layered on PHS or PTA to auto-sign-in domain-joined devices on the corporate network. Not needed (and not used) with AD FS or with Hybrid/Entra-joined modern devices that use PRT.

Prepare for sync — IdFix & prerequisites

Before syncing, clean the directory. IdFix is the free tool that scans on-prem AD for errors and fixes them in bulk:

Caveat — IdFix scope

IdFix is specifically for directory object/attribute remediation before sync (duplicates, invalid UPN/proxyAddresses). It does not configure sync or test connectivity — that's a common distractor.

Entra Connect Sync vs Entra Cloud Sync

CapabilityEntra Connect SyncEntra Cloud Sync
ArchitectureFull app + SQL on a Windows server you maintainLightweight cloud-managed agent(s); config lives in the cloud
Multiple disconnected forestsOne server can't sync disjoint forests easily✅ Can sync multiple disconnected forests
High availabilityNeeds staging server✅ Built-in via multiple agents
Device sync / Hybrid Join✅ Supported❌ Not supported (yet)
Pass-through auth, large/complex filtering, Exchange hybrid writeback✅ Full feature setLimited; growing
Group writeback, complex sync rulesLimited
Object volume per agentVery largeUp to ~150k objects per agent

Caveat — which to choose

Pick Cloud Sync for: multiple disconnected forests, simple needs, lightweight HA, no on-prem footprint. Pick Connect Sync when you need device/Hybrid Join sync, Exchange hybrid writeback, complex transformations, or pass-through auth at scale. Both can run side-by-side during migration but must not manage the same objects.

Sync features (Connect Sync):

# Force a delta (incremental) sync cycle on the Connect server
Start-ADSyncSyncCycle -PolicyType Delta
# Full (initial) sync
Start-ADSyncSyncCycle -PolicyType Initial

Monitor with Entra Connect Health

Microsoft Entra Connect Health uses agents to surface sync health, errors, latency, and alerts in the Entra admin center. Requires Entra ID P1 (roughly one P1 licence per agent monitored). It can monitor three roles, each with its own agent:

Troubleshooting synchronization

Accidental deletion threshold

If more than 500 objects would be deleted in one cycle, Connect halts the export to prevent mass deletion. Re-run after confirming, or temporarily raise the threshold with Enable-ADSyncExportDeletionThreshold.

2.2 Implement and manage authentication

Authentication methods

Managed centrally in the Authentication methods policy (Entra admin center → Protection → Authentication methods). Microsoft is migrating legacy MFA/SSPR method management into this single converged policy — target users by group.

MethodStrengthNotes
Passkey (FIDO2) / Windows HelloPhishing-resistant strongestMicrosoft's recommended direction
Certificate-based auth (CBA)Phishing-resistantSmartcards / PKI
Microsoft AuthenticatorStrongPush w/ number matching (now enforced), or passwordless phone sign-in
OATH hardware/software tokensMediumTOTP codes
SMS / Voice callWeakestPhishable; avoid as primary
Temporary Access Pass (TAP)OnboardingTime-limited passcode to bootstrap passwordless / register methods

Number matching & additional context

Authenticator number matching is enabled by default and mandatory — the user types the number shown on the sign-in screen, defeating "MFA fatigue" prompt-bombing. You can also show app/location context.

Self-Service Password Reset (SSPR)

Caveat — SSPR for admins

Admin (privileged) accounts always require two methods and a strong default policy — you can't reduce it. And SSPR write-back to on-prem AD requires password writeback configured in the sync engine.

Microsoft Entra Password Protection

Investigate & resolve authentication issues

Error codeMeaningTypical fix
50126Invalid username or passwordReset/verify credentials
50053Account locked (smart lockout) or too many attemptsWait out lockout / investigate spray
50055Password expiredReset password
53003Blocked by a Conditional Access policyReview which CA policy applied
53004MFA registration required / blockedComplete security-info registration
500121MFA challenge not completed (timeout/denied)Re-attempt / check Authenticator
50057 / 50058Account disabled / session info missingRe-enable account / re-auth

Migrating auth methods — staged rollout

Staged rollout moves selected groups from federated (AD FS) to cloud authentication (PHS or PTA) for testing before cutting the whole domain over with Set-MsolDomainAuthentication/Graph. It is a test feature — not for permanent mixed-state operation.

2.3 Implement and manage secure access

Microsoft Entra Identity Protection

Uses Microsoft's threat intelligence to detect risk and respond automatically. Requires Entra ID P2.

Risk typeWhat it measuresExample signals
User riskProbability the identity is compromisedLeaked credentials, anomalous user behaviour
Sign-in riskProbability a given sign-in isn't the legit ownerAnonymous IP/Tor, atypical travel, unfamiliar sign-in properties, malware-linked IP, password spray

Three policy types:

Best practice — drive risk via Conditional Access

Microsoft now recommends managing user-risk and sign-in-risk conditions inside Conditional Access policies rather than the legacy standalone IP policies — gives you full CA controls (e.g. require password change and MFA).

Investigating & remediating risk

Risk is scored Low / Medium / High. Reports: Risky users, Risky sign-ins, Risk detections, and Risky workload identities (apps/service principals). Remediation closes the loop:

Admin / automatic actionEffect on risk
Self-remediation (MFA + secure password change)Auto-clears user risk if policy allows
Confirm user compromisedRaises risk to High, feeds Microsoft ML
Confirm user safeMarks as safe, ignored in future scoring
Dismiss user riskSets risk to none (no learning signal)
Reset password / block sign-inForces secure reset / stops the account

Caveat — leaked credentials need PHS

The leaked credentials risk detection only works when Password Hash Synchronization is enabled (Microsoft must hold a hash to compare). With pure PTA/federation, that specific detection won't fire. Confirm compromised vs Confirm safe also train the risk engine — Dismiss does not.

Planning Conditional Access

Conditional Access (CA) is the "if-then" policy engine: if these signals are present, then enforce these controls. Requires Entra ID P1.

flowchart LR S1[User / group] --> AS{Assignments} S2[Target resource / app] --> AS S3[Network / location] --> AS S4[Device platform & state] --> AS S5[Sign-in risk / user risk] --> AS S6[Client app] --> AS AS --> AC{Access controls} AC -->|Block| X[Access denied] AC -->|Grant w/ conditions| G[Require MFA · compliant device ·
Hybrid join · app protection · ToU] AC -->|Session| Z[App-enforced · CAE · sign-in frequency]
CA evaluates Assignments (signals) then applies Access controls (grant/block/session).

Caveat — Block always wins

If multiple CA policies apply, an explicit Block beats any Grant. All grant requirements in a policy must be met. Always exclude break-glass / emergency access accounts from CA policies (and from MFA enforcement) to avoid lock-out.

Implementing Conditional Access policies

Assignments (the "if"): Users/groups (incl. guests, directory roles), target resources (cloud apps, user actions like register security info, auth context), conditions (locations/named locations, device platforms, client apps, sign-in/user risk, filter for devices).

Access controls (the "then"):

Report-only mode & What If

Deploy new policies in Report-only mode first to see impact in sign-in logs without enforcing. Use the What If tool to simulate which policies would apply to a given user/app/condition. Templates are available for common scenarios.

Security defaults (free) give a baseline (MFA for admins, block legacy auth). You cannot use CA policies while Security defaults are enabled — disable defaults first. CA is the granular, recommended approach for P1+.

MFA via Conditional Access

Caveat — trusted locations & named locations

Define Named locations (IP ranges or countries) and mark trusted ones to reduce friction (e.g. no MFA from HQ) — but for security questions, conditions like "require MFA except trusted locations" are common. Country/region locations can also block high-risk geographies.

Recommended Conditional Access baseline

Microsoft's "secure foundation" set of policies — recognise these scenarios on the exam:

PolicyTarget → Control
Require MFA for adminsDirectory roles → Require MFA (or phishing-resistant strength)
Require MFA for all usersAll users → Require MFA
Block legacy authenticationClient apps = legacy → Block
Require MFA for risky sign-insSign-in risk = Medium+ → Require MFA (P2)
Require secure password change for risky usersUser risk = High → Require password change + MFA (P2)
Require compliant / Hybrid-joined deviceAll users → Grant: compliant device OR Hybrid join
Require MFA to register security infoUser action = register security info → Require MFA

Authentication strengths

Three built-in strengths — MFA, Passwordless MFA, and Phishing-resistant MFA (FIDO2 / Windows Hello / CBA) — plus custom strengths. A CA policy grant of "require authentication strength" enforces a specific method class, which is stronger than the generic "require MFA".