BrainyBeeBrainyBee
ExploreBlogStart Studying
Home›Explore›Designing Microsoft Azure Infrastructure Solutions (AZ-305)

🔷 Microsoft Azure

Free Designing Microsoft Azure Infrastructure Solutions (AZ-305) Study Resources

Architecture-focused preparation for Microsoft Exam AZ-305, with curriculum-linked lessons, study maps, retrieval practice, and design scenarios across identity, governance, monitoring, data, continuity, compute, applications, migrations, and networking.

570
Practice Questions
20
Mock Exams
147
Study Notes
928
Flashcard Decks
3
Source Materials
Start Studying — Free

On This Page

  • Study Notes (147)
  • Practice Questions (15)
  • Flashcards (30)
  • Related Study Resources

Designing Microsoft Azure Infrastructure Solutions (AZ-305) Study Notes & Guides

147 AI-generated study notes covering the full Designing Microsoft Azure Infrastructure Solutions (AZ-305) curriculum. Showing 10 complete guides below.

Exam Map652 words

AZ-305 Exam Map and Design Decision Playbook

AZ-305

Read full article

AZ-305 Exam Map and Design Decision Playbook

AZ-305 tests architectural judgement. Most prompts give several workable Azure services; the correct answer best satisfies the stated constraints with the least unjustified complexity. Read every scenario as a set of decisions about requirements, failure modes, security boundaries, data semantics, operations, and cost.

Current blueprint at a glance

Identity, governance, monitoring
25–30%
Data storage
20–25%
Business continuity
15–20%
Infrastructure
30–35%

How to read an architecture question

  1. Underline hard constraints. Compliance, protocol, maximum data loss, outage window, region support, compatibility, and operating ownership eliminate options.
  2. Name the architecture decision. Is this identity, authorization, governance, storage, integration, recovery, compute, application, migration, or network design?
  3. Choose the least complex service that meets every hard constraint. Do not optimize a requirement the scenario never states.
  4. Check the whole workload. A redundant web tier does not compensate for one database, one region, one DNS dependency, or a manual recovery path.
  5. Explain the trade-off. A strong answer says what the recommendation gains, what it costs, and why the nearest alternative loses.
Loading Diagram...
Figure 1 — Mermaid diagram

Text equivalent: classify the decision, extract constraints, compare only viable options, test the complete workload, then state the recommendation and its trade-off.

Blueprint-to-study map

DomainRelease roadmapCram sheetsDesign habit
Identity, governance, monitoringUnit 1 roadmapLogging and monitoring; authentication and authorization; governanceSeparate identity, permission, policy, evidence, and network controls.
Data storageUnit 2 roadmapRelational; semi/unstructured; data integrationBegin with data shape, access pattern, consistency, scale, and recovery.
Business continuityUnit 3 roadmapBackup/DR; high availabilityTranslate impact into RTO/RPO and explicit failure domains.
InfrastructureUnit 4 roadmapCompute; application architecture; migrations; networkingCompose services around execution, coupling, dependency, and traffic requirements.

Use the nearest-alternative test

After selecting an answer, name the strongest alternative and the one requirement it fails. If you cannot do that, revisit the constraints.

Blueprint-weighted study cycle

  • Spend roughly one third of scenario practice on infrastructure, but interleave it with identity, data, and continuity because real designs cross domains.
  • Use topic cram sheets for retrieval, then answer architecture items without notes.
  • Keep an error log with four fields: missed requirement, wrong service boundary, misleading distractor, and corrected decision rule.
  • Revisit a miss after one day, one week, and before the next mock. Recognition is not mastery; require yourself to explain the rejected alternatives.
  • Take unit checkpoints after the corresponding roadmap and cram sheets. Use full mocks only after every unit has evidence of recall and design reasoning.

Whole-architecture checklist

  • Identity: tenant, principal type, authentication flow, managed identity, privilege lifecycle.
  • Governance: management scope, policy, compliance evidence, resource lifecycle, cost ownership.
  • Data: model, query/transaction pattern, partitioning, consistency, protection, residency.
  • Continuity: component and workload RTO/RPO, zones/regions, backups, failover, failback, tests.
  • Application: synchronous versus asynchronous coupling, APIs, messages, events, cache, configuration.
  • Network: flows, private/public entry, DNS, routing, inspection, egress, hybrid redundancy.
  • Operations: deployment, monitoring, alert response, capacity, patching, ownership, cost.
Loading flashcards…

Source and freshness

Blueprint ranges follow the Microsoft Learn AZ-305 study guide showing skills measured as of April 17, 2026. The attached books provide teaching depth; current Microsoft Learn documentation controls current product behaviour, availability, limits, and naming. Reviewed 2026-08-02.

Unit Capstone668 words

Unit 1 Capstone — Design identity, governance, and monitoring solutions

AZ-305 › Unit 1

Read full article

Unit 1 Capstone — Design identity, governance, and monitoring solutions

The capstone is a synthesis exercise: design one production workload whose architecture crosses every topic in Unit 1. Your submission should read like a lightweight architecture review package, not an exam answer.

Capstone contract

Blueprint range
25–30%
Integrated topics
3
Target effort
90–120 minutes
Pass standard
No unowned critical risk

Scenario

Contoso is moving a revenue-generating service onto Azure. It operates across two business regions, processes confidential customer data, has a small central platform team, and must demonstrate recoverability to auditors. Traffic and data volume are expected to grow, but finance requires a design that can start economically. The organisation wants a decision package it can use for a proof of concept and production readiness review.

Turn organisational boundaries, duties, and evidence requirements into an operable control model.

Required topic threads

  1. Design solutions for logging and monitoring: Design the signal path from collection to retention, query, alert, and automated response.
  2. Design authentication and authorization solutions: Separate who signs in, what they may do, how privilege activates, and how workloads obtain tokens.
  3. Design governance: Place boundaries, policy, cost ownership, compliance evidence, and privileged access at the right scope.

The client also requires least-privilege workload identity, private administration paths, infrastructure as code, measurable service objectives, cost allocation, and an exit or migration strategy for any service on a retirement path.

Starting comparison

TopicCandidate anchorTrap the capstone must avoid
Design solutions for logging and monitoringAzure Monitor and diagnostic settingsActivity Log is not guest OS telemetry.
Design authentication and authorization solutionsMicrosoft Entra ID and Conditional AccessReader does not imply service data access.
Design governanceManagement groups and subscriptionsTags do not inherit without policy.

Deliverables

  1. Context and requirements: business goals, measurable non-functional requirements, assumptions, exclusions, and five open questions.
  2. Architecture: one system-context diagram and one deployment/data-flow diagram, each with a text equivalent.
  3. Decision records: at least one ADR per topic, including alternatives and consequences.
  4. Security and governance: identities, permissions, network boundaries, policy, secrets, audit evidence, and data residency.
  5. Reliability: dependency inventory, availability calculation assumptions, RTO/RPO allocation, backup/failover/failback, and a test schedule.
  6. Operations: deployment strategy, telemetry, alerts with owners, capacity signals, patching/upgrades, and runbook entry points.
  7. Economics: primary cost drivers, scaling assumptions, commitment risks, and a method for validating current prices.
  8. Pilot plan: success criteria, failure injection, security tests, performance evidence, and a stop/go decision.
Loading Diagram...
Figure 1 — Mermaid diagram

Text equivalent: requirements drive the architecture; security, continuity, and operations qualify it; pilot evidence determines the production decision.

Capstone defence

End with a five-minute defence: recommendation, decisive constraints, strongest rejected alternative, largest residual risk, and the pilot result that could reverse the decision.

Review rubric

Score each dimension from 0 to 3: requirements traceability, cross-topic coherence, least privilege, failure coverage, data semantics, network/DNS completeness, deployability, observability, recovery evidence, cost reasoning, current sources, and clarity. A passing capstone has no zero, no unowned critical risk, and at least 28 of 36 points. A high total cannot compensate for a missing recovery owner or an unsupported product assumption.

Learner self-check

  • Can another engineer implement the design without inventing its key decisions?
  • Does every critical dependency have a health signal and recovery owner?
  • Are current limits, availability, and retirement milestones cited from Microsoft primary sources?
  • Does the proof of concept test the riskiest assumption rather than the easiest happy path?
  • Can I explain how this design changes if scale, recovery, regulation, or team capability changes?

Source and freshness

Aligned to the current AZ-305 blueprint and grounded in both attached course sources. Current product contracts must be cited during the exercise. Reviewed 2026-08-02.

Unit Roadmap639 words

Unit 1 Roadmap — Design identity, governance, and monitoring solutions

AZ-305 › Unit 1

Read full article

Unit 1 Roadmap — identity, governance, and monitoring solutions

This roadmap turns the unit into a study sequence. The goal is to connect topic decisions, not memorize isolated product facts. The current exam blueprint allocates 25–30% to this domain.

Unit 1 release map

Blueprint range
25–30%
Topic cram sheets
3
Primary outcome
Defensible recommendation
Readiness evidence
Checkpoint plus design studio

Unit thesis

Turn organisational boundaries, duties, and evidence requirements into an operable control model.

Recommended learning sequence

  1. Start with observability requirements: signals, destinations, retention, query, alert, and response.
  2. Separate authentication, Azure resource authorization, directory roles, and workload identity.
  3. Place management groups, subscriptions, policy, and privileged access around durable business boundaries.
Loading Diagram...
Figure 1 — Mermaid diagram

Text equivalent: study each topic cram sheet, complete the unit checkpoint, then prove synthesis in a design studio.

Topic map

TopicArchitectural decisionFirst trap to reject
1. Design solutions for logging and monitoringDesign the signal path from collection to retention, query, alert, and automated response.Activity Log is not guest OS telemetry.
2. Design authentication and authorization solutionsSeparate who signs in, what they may do, how privilege activates, and how workloads obtain tokens.Reader does not imply service data access.
3. Design governancePlace boundaries, policy, cost ownership, compliance evidence, and privileged access at the right scope.Tags do not inherit without policy.

How to work this unit

For each topic, read the linked full lessons first when the service boundary is unfamiliar. Use the cram sheet to compress the decision rules. Then close the notes and answer the retrieval prompts. Finish with scenarios that force two or more topics to interact. A correct product name without a constraint-based explanation is not sufficient evidence of readiness.

When reviewing an answer, write a one-sentence recommendation in this form: Choose X because constraints A and B matter; reject Y because it fails C; accept trade-off D. This structure exposes guesses and makes technical review easier.

Unit-level traps

Using Azure Policy to grant access instead of govern resource state. Sending every signal to one workspace without residency, access, or cost analysis. Giving workloads stored credentials when managed identity is supported.

Pre-checkpoint checklist

  • I can state the decision boundary for every service family in this unit.
  • I can distinguish high availability, recovery, security, and governance controls when they appear together.
  • I can identify the strongest distractor and the requirement it fails.
  • I can draw the major dependency or signal flow without copying a diagram.
  • I can explain operational ownership and cost consequences, not only features.
  • I have corrected every missed retrieval prompt at least once from memory.

Common failure patterns

  • Using Azure Policy to grant access instead of govern resource state.
  • Sending every signal to one workspace without residency, access, or cost analysis.
  • Giving workloads stored credentials when managed identity is supported.
Loading flashcards…

Source and freshness

Aligned to the current AZ-305 study guide and grounded in the two attached corpus sources. Product details and limits must be checked against current Microsoft Learn documentation. Reviewed 2026-08-02.

Topic Cram Sheet632 words

Cram Sheet — Design authentication and authorization solutions

AZ-305 › Unit 1 › Design authentication and authorization solutions

Read full article

Cram Sheet — Design authentication and authorization solutions

Separate who signs in, what they may do, how privilege activates, and how workloads obtain tokens. Use this sheet after the linked lessons: it is a retrieval map and decision aid, not a substitute for the worked examples.

Cram target

Unit
1
Blueprint domain
Design identity, governance, and monitoring solutions
Decision anchors
4
Mastery standard
Recommend and reject

Decision matrix

Requirement shapeStart withQualifying rule
Human sign-inMicrosoft Entra ID and Conditional AccessEvaluate identity, app, device, location, and risk
Azure resource actionAzure RBACPrincipal plus role plus narrow durable scope
Workload accessManaged identityAvoid stored credentials; grant a data or control-plane role
Privileged administrationPIMEligible, approved, time-bound activation with audit evidence

The phrase start with matters. A default is only defensible after checking all hard constraints: region and SKU support, protocols, scale, availability, security, residency, recovery, skills, and operating ownership. When two rows appear in one scenario, compose them rather than forcing one service to solve every concern.

Fast design method

  1. Name the workload boundary and the users or systems that cross it.
  2. Extract measurable requirements: latency, throughput, volume, RTO/RPO, consistency, outage window, and retention.
  3. Mark security and governance constraints: identity, network reachability, encryption, residency, audit, and separation of duties.
  4. Select the simplest viable default from the matrix.
  5. Test it against failure domains, scale transitions, deployment, monitoring, and cost.
  6. State the nearest alternative and the one constraint that makes it weaker.
Loading Diagram...
Figure 1 — Mermaid diagram

Text equivalent: derive requirements, choose a default, qualify it against constraints, add operational and failure behaviour, then explain the trade-off.

Answer the architecture decision

For design authentication and authorization solutions, begin with this lens: Separate who signs in, what they may do, how privilege activates, and how workloads obtain tokens.

High-value traps

  • Reader does not imply service data access.
  • Policy does not grant permissions.
  • A managed identity still needs authorization.

Scenario rehearsal

An organisation asks for the capability described by the first matrix row, but also adds a strict recovery target, private connectivity, and a small operations team. Write a recommendation that identifies the core service, the supporting continuity and network controls, and the operating trade-off. Then reject the nearest service alternative using one explicit requirement. If your answer lists products without a traffic, data, identity, or recovery flow, it is incomplete.

Final-minute checklist

  • I can distinguish every service in the matrix by requirement, not logo or name.
  • I know which controls operate at identity, management, data, and network planes.
  • I check regional/SKU support and current limits when a scenario depends on them.
  • I include monitoring, health, capacity, recovery, and ownership in the recommendation.
  • I can explain why the strongest distractor fails.
Loading flashcards…

Source and freshness

Aligned to the current AZ-305 study guide, the attached Exam Ref, and the attached AZ-305 study guide corpus. Current Microsoft Learn documentation controls product availability, limits, and renamed services. Reviewed 2026-08-02.

Lesson4,263 words

Design Authentication and Authorization Solutions — Lesson

AZ-305 › Unit 1 › Design authentication and authorization solutions

Read full article

Design Authentication and Authorization Solutions — Lesson

This integrated module covers the five learning objectives that form the authentication and authorization pillar of AZ-305 Unit 1. You will learn how to design authentication flows with Microsoft Entra ID, plan hybrid identity synchronisation, assign permissions through RBAC and ABAC, extend access to on-premises applications, and protect secrets with Azure Key Vault. Each sub-section maps to one LO; cross-cutting worked examples show how the pieces connect in real architectural decisions.

Reference: Ch. 1, §1.2, p. 14–28 of the AZ-305 exam book.

Why This Matters

Every Azure architecture begins with a question: who is allowed to do what? A misconfigured Conditional Access policy can lock out an entire workforce; an over-permissioned service principal can expose production databases to a compromised pipeline. The AZ-305 exam tests your ability to make these decisions under realistic constraints — budget, compliance, user experience, and legacy infrastructure. Mastering authentication and authorization design is not just an exam objective; it is the single most consequential skill set for any Azure solutions architect, because security failures in this layer cascade into every other layer of the stack.

Prerequisites

  • Microsoft Entra ID tenant basics — Can you explain what a tenant, directory, and subscription are and how they relate?
  • Networking fundamentals (HTTP/S, TLS, DNS) — Can you describe how a browser negotiates a TLS handshake?
  • Basic Active Directory concepts (forests, domains, OUs) — Can you sketch the trust relationship between two AD forests?
  • Azure portal navigation — Can you locate the Entra ID blade, subscription IAM pane, and Key Vault resource in the portal?
  • JSON and ARM template literacy — Can you read a short ARM snippet and identify the resource type?

Learning Objectives

  1. Evaluate authentication mechanisms (MFA, passwordless, Conditional Access, B2B/B2C) and recommend the right combination for a given scenario.
  2. Design a hybrid identity architecture using Microsoft Entra Connect with the appropriate synchronisation method (PHS, PTA, or federation).
  3. Recommend an RBAC/ABAC strategy for Azure resources that satisfies least-privilege and separation-of-duties requirements.
  4. Design secure remote access to on-premises applications using Entra ID Application Proxy.
  5. Architect a secrets, keys, and certificates management solution using Azure Key Vault with appropriate access policies and networking controls.
  6. Analyse cross-cutting scenarios where authentication, authorisation, and secret management decisions interact.

Building Blocks

Microsoft Entra ID (formerly Azure AD) — Analogy: Think of Entra ID as the reception desk of a building — it checks your badge (authentication), looks up which floors you can access (authorisation), and logs your entry (audit). Formal definition: A cloud-based identity and access management service that provides single sign-on, multifactor authentication, and conditional access for users, groups, and service principals. Why it matters: Every Azure resource and most SaaS integrations depend on Entra ID tokens for access decisions.

Conditional Access — Analogy: Like an airport security checkpoint with adaptive rules — frequent flyers with trusted devices go through the fast lane, while first-time travellers get extra screening. Formal definition: A policy engine in Entra ID that evaluates signals (user, device, location, risk level) and enforces access controls (grant, block, require MFA, require compliant device). Why it matters: Conditional Access is the primary enforcement point for Zero Trust in Azure.

Password Hash Synchronisation (PHS) — Analogy: Photocopying a key — the original stays on-premises, but a copy sits in the cloud so either door can recognise you. Formal definition: A sync method where a hash of the on-premises AD password hash is replicated to Entra ID every two minutes. Why it matters: Simplest hybrid identity method; enables cloud-based leaked-credential detection.

Pass-Through Authentication (PTA) — Analogy: A doorbell that rings the on-premises security desk every time someone asks to enter the cloud building. Formal definition: Entra ID forwards the authentication request to an on-premises agent that validates the password against AD in real time. Why it matters: Passwords never leave the on-premises boundary, satisfying certain compliance mandates.

Role-Based Access Control (RBAC) — Analogy: A hotel key card programmed for specific floors — your role determines which resources you can reach. Formal definition: An authorisation system built on role assignments (security principal + role definition + scope) that governs data-plane and control-plane actions on Azure resources. Why it matters: RBAC is the default and recommended authorisation model for Azure; misuse leads to privilege escalation.

Azure Key Vault — Analogy: A bank safety-deposit box — you rent a box (vault), store valuables (secrets, keys, certificates), and only authorised signatories can open it. Formal definition: A managed HSM-backed service for storing and accessing secrets, encryption keys, and X.509 certificates with access governed by RBAC or vault access policies. Why it matters: Eliminates hard-coded credentials; centralises key lifecycle management.

Deep Dive

LO4 — Design an Authentication Solution

The authentication design decision tree starts with who is authenticating: internal workforce, external partners (B2B), or consumers (B2C).

Workforce authentication centres on Entra ID with MFA. The exam tests three MFA methods: Microsoft Authenticator push, FIDO2 security keys, and Windows Hello for Business. Passwordless is the recommended direction — the AZ-305 book emphasises that passwordless authentication reduces phishing surface.

json
{ "displayName": "Require MFA for All Users", "state": "enabled", "conditions": { "users": { "includeUsers": ["All"] }, "applications": { "includeApplications": ["All"] } }, "grantControls": { "operator": "OR", "builtInControls": ["mfa"] } }

[!TIP] Use named locations in Conditional Access to exempt trusted corporate egress IPs from MFA prompts — this balances security with user experience.

B2B collaboration invites external partners into your tenant as guest users. The guest user authenticates against their home tenant (or a one-time passcode if they have no Entra ID). The key design decision is cross-tenant access settings: you control which external tenants may collaborate and whether their MFA claims are trusted.

B2C creates a separate tenant (*.onmicrosoft.com with the B2C extension) and supports custom user flows (sign-up, sign-in, profile edit) with social identity providers (Google, Facebook, Apple). The exam expects you to choose B2C when the scenario involves consumer-facing apps with self-service registration.

Loading Diagram...
Figure 1 — Mermaid diagram

See the LO4-level lesson for a deeper treatment of Conditional Access policy design patterns.

LO5 — Design an Identity Management Solution

Hybrid identity connects on-premises Active Directory to Entra ID through Microsoft Entra Connect (formerly Azure AD Connect). The three synchronisation methods are compared below.

MethodPassword stays on-prem?LatencyRequires agentsCloud leaked-credential detection
PHSNo (hash of hash synced)≤2\leq 2≤2 min syncNo extra agentYes
PTAYesReal-timePTA agent on-premNo
Federation (AD FS)YesReal-timeAD FS farmNo

[!WARNING] PTA requires at least 3 authentication agents for production availability. A single-agent deployment is a single point of failure.

Decision rule: Choose PHS unless a regulatory requirement forbids any password derivative in the cloud. Choose PTA if the requirement is real-time on-premises password validation without deploying AD FS. Choose federation only when you need advanced claim rules or a third-party IdP.

Entra Connect also syncs group memberships, device objects (hybrid join), and writeback attributes (password writeback, group writeback). The exam may test which features require Entra ID P1 vs P2 licensing.

FeatureLicence required
Conditional AccessEntra ID P1
Identity Protection (risk-based CA)Entra ID P2
PIM (just-in-time role activation)Entra ID P2
Self-service password reset (SSPR)Entra ID P1
Dynamic group membershipEntra ID P1
Loading Diagram...
Figure 2 — Mermaid diagram

See the LO5-level lesson for Entra Connect deployment topologies and staging-server patterns.

LO6 — Design Authorisation for Azure Resources

Azure RBAC uses three elements: security principal (user, group, service principal, managed identity), role definition (set of allowed actions), and scope (management group → subscription → resource group → resource).

Built-in roleScopeTypical use
OwnerSubscriptionFull access including IAM
ContributorResource groupDeploy resources, no IAM
ReaderResource groupView only
User Access AdministratorSubscriptionManage role assignments
Key Vault Secrets OfficerKey VaultRead/write secrets

Custom roles are defined in JSON when built-in roles are too broad or too narrow.

json
{ "Name": "VM Restart Operator", "Description": "Can restart VMs but not delete or create them.", "Actions": [ "Microsoft.Compute/virtualMachines/restart/action", "Microsoft.Compute/virtualMachines/read" ], "NotActions": [], "AssignableScopes": ["/subscriptions/00000000-0000-0000-0000-000000000000"] }

Attribute-Based Access Control (ABAC) extends RBAC by adding conditions to role assignments — for example, "allow Storage Blob Data Reader only on blobs tagged project=phoenix". ABAC conditions use the @Resource and @Principal attributes.

[!IMPORTANT] ABAC conditions are currently supported on Storage Blob Data * roles only. Don't assume ABAC works on arbitrary resource types — the exam may offer ABAC as a distractor for non-storage scenarios.

Loading Diagram...
Figure 3 — Mermaid diagram

See the LO6-level lesson for a complete guide to designing custom roles and ABAC conditions.

LO7 — Design Authorisation for On-Premises Resources

When users are in the cloud but applications are on-premises, Entra ID Application Proxy bridges the gap. A lightweight connector agent installed on an on-premises server creates an outbound HTTPS tunnel to the Application Proxy service — no inbound firewall ports required.

FeatureApplication ProxyVPNReverse proxy (third-party)
Inbound portsNoneYes (UDP 500, 4500)Yes (TCP 443)
Entra ID SSONativeManualDepends
Conditional AccessYesLimitedNo
Agent on-premConnectorVPN gatewayReverse proxy server
Best forLegacy web appsFull network accessComplex routing

The connector agent authenticates to the cloud service with a certificate; user traffic is:

  1. User hits the external URL (e.g., https://expenses.contoso.msappproxy.net).
  2. Entra ID authenticates the user and evaluates Conditional Access.
  3. Application Proxy routes the request through the connector to the internal URL (e.g., http://expenses.corp.contoso.com).
  4. The connector performs Kerberos Constrained Delegation (KCD) if the back-end app uses Windows Integrated Authentication.

[!NOTE] For high availability, deploy at least 2 connectors in the same connector group. Connectors are stateless and auto-update.

See the LO7-level lesson for KCD configuration and connector group design patterns.

LO8 — Design a Solution for Secrets, Keys, and Certificates

Azure Key Vault comes in two tiers: Standard (software-protected keys) and Premium (HSM-backed keys, FIPS 140-2 Level 2). The exam tests when Premium is required — typically for regulatory mandates citing HSM protection.

bash
# Create a Key Vault with soft-delete and purge protection az keyvault create \ --name kv-prod-contoso \ --resource-group rg-security \ --location eastus \ --sku premium \ --enable-purge-protection true \ --enable-rbac-authorization true

Access model choice: Key Vault supports two access models — vault access policies (legacy) and RBAC (recommended). With RBAC, you assign Key Vault Secrets User or Key Vault Crypto Officer at the vault scope, unifying authorisation with the rest of Azure.

Networking: Key Vault supports private endpoints and service endpoints. For production, use a private endpoint in the workload VNet so that secret retrieval never traverses the public internet.

Object typeUse caseExample
SecretConnection strings, API keys, passwordsSqlConnectionString
KeyEncryption (wrap/unwrap), signingTDE protector for Azure SQL
CertificateTLS/SSL termination, code signingApp Service custom domain cert

Key Vault integrates with several Azure services: App Service and Azure Functions read secrets via Key Vault references (@Microsoft.KeyVault(...)). Azure Disk Encryption uses Key Vault keys. Azure SQL TDE can use a customer-managed key stored in Key Vault.

See the LO8-level lesson for key rotation strategies and certificate auto-renewal patterns.

Worked Examples

Easy — Single-LO: Choose the Right Sync Method

Problem: Contoso has 5,0005{,}0005,000 users in on-premises AD. Compliance requires that user passwords never leave the corporate network, even as hashes. The IT team has no AD FS infrastructure and wants the simplest possible setup. Which sync method should the architect recommend?

Step-by-step solution:

  1. PHS syncs a hash of the password hash to the cloud — eliminated by the "no password derivative in cloud" constraint.
  2. Federation requires an AD FS farm — eliminated by the "simplest setup" constraint.
  3. PTA validates passwords in real time against on-prem AD via a lightweight agent — satisfies both constraints.
  4. Recommend PTA with 3 agents across 2 on-prem servers for availability.

[!NOTE] Key insight: PTA is the middle ground between PHS simplicity and federation flexibility. It keeps passwords on-prem without AD FS overhead.

Medium — Two-LO Crossover: MFA Policy + RBAC Assignment

Problem: Fabrikam's cloud team has 20 engineers. The CISO mandates: (a) all engineers must complete MFA before accessing Azure portal, and (b) engineers may deploy VMs but must not modify IAM role assignments. Design the authentication and authorisation controls.

Step-by-step solution:

  1. Authentication (LO4): Create a Conditional Access policy targeting the "Cloud Engineers" security group, scoping to the Azure Management cloud app, requiring MFA grant control.
  2. Authorisation (LO6): Assign the Virtual Machine Contributor built-in role to the "Cloud Engineers" group at the relevant subscription scope. This role allows VM lifecycle operations but excludes Microsoft.Authorization/* actions (no IAM changes).
  3. Verification: An engineer who passes MFA can create a VM but receives AuthorizationFailed if they attempt New-AzRoleAssignment.

[!NOTE] Key insight: Layering Conditional Access (who can authenticate) on top of RBAC (what they can do) implements defence in depth — neither control alone is sufficient.

Hard — Three-LO Crossover: Hybrid Identity + App Proxy + Key Vault

Problem: Northwind Traders runs a legacy ASP.NET payroll app on-premises using Windows Integrated Authentication. The company is moving to Entra ID for SSO. Requirements: (a) remote workers must access the payroll app without VPN, (b) the app's SQL connection string must not be stored in web.config, and (c) password sync to the cloud is prohibited. Design the end-to-end solution.

Step-by-step solution:

  1. Identity (LO5): Deploy Entra Connect with PTA (password stays on-prem). Install 3 PTA agents.
  2. Remote access (LO7): Deploy Entra ID Application Proxy with 2 connectors in a connector group. Configure KCD so the connector can obtain Kerberos tickets on behalf of the Entra-authenticated user.
  3. Secret management (LO8): Store the SQL connection string in Azure Key Vault. The on-premises app reads the secret at startup via the Key Vault SDK, authenticating with a managed identity registered in Entra ID (or a service principal with certificate-based auth).
  4. Conditional Access (LO4): Apply a CA policy to the Application Proxy enterprise app requiring MFA and a compliant device.

[!NOTE] Key insight: Application Proxy + KCD eliminates VPN while preserving Windows Integrated Auth. Key Vault removes the secret from configuration files, and PTA satisfies the no-cloud-password constraint.

Visual Explanations

Conditional Access Policy Evaluation Flow

Loading Diagram...
Figure 4 — Mermaid diagram

This diagram shows how Conditional Access collects multiple signals before making a grant/block decision. The policy engine evaluates all matching policies — the most restrictive grant control wins.

Azure RBAC Inheritance Model

Scope levelExampleInherited by
Management Groupmg-contoso-rootAll child subscriptions
Subscriptionsub-prod-001All resource groups within
Resource Grouprg-web-prodAll resources within
Resourcekv-prod-contoso(leaf — no children)

Roles assigned at a higher scope propagate downward. A Reader assignment at the management group level grants read access to every resource in every subscription beneath it. Use the narrowest scope that satisfies the requirement.

Hybrid Identity Architecture (TikZ)

Compiling TikZ diagram…
⏳
Running TeX engine…
This may take a few seconds
Figure 5 — TikZ diagram

This diagram illustrates the full hybrid identity architecture: Entra Connect synchronises identities, PTA agents handle real-time password validation, Application Proxy connectors provide remote access via KCD, and Key Vault is accessed through Entra ID RBAC.

Common Mistakes

❌ Myth: PHS sends user passwords to the cloud, so it fails every compliance audit. ✅ Reality: PHS syncs a SHA-256 hash of the MD4 hash — the original password is never transmitted or stored. Microsoft uses this double-hash to detect leaked credentials (Entra ID Protection). Many compliance frameworks accept PHS when the architecture is documented. Why it's tricky: The word "hash" sounds insecure to non-technical stakeholders, but PHS is actually the most secure sync method because it enables cloud-based threat detection that PTA and federation cannot.

❌ Myth: Assigning Owner at the subscription scope is fine for the lead architect because they need full access. ✅ Reality: Owner includes Microsoft.Authorization/*/Write, meaning the architect can grant anyone any role — including themselves elevated access. Use Contributor for resource deployment and grant User Access Administrator separately with PIM just-in-time activation if IAM changes are needed. Why it's tricky: Owner feels natural for a lead role, but it violates least-privilege and separation-of-duties. The exam specifically tests whether you choose Owner vs. Contributor + PIM.

❌ Myth: Key Vault access policies and RBAC can be used together on the same vault. ✅ Reality: A vault uses either the access-policy model or the RBAC model — not both simultaneously. The property enableRbacAuthorization is a boolean toggle. Microsoft recommends RBAC for new deployments because it unifies authorisation with the rest of Azure. Why it's tricky: Legacy documentation and older exam prep materials show access policies as the primary model, so candidates assume they can layer RBAC on top. They cannot.

❌ Myth: Application Proxy requires opening inbound firewall ports to the on-premises network. ✅ Reality: The connector agent creates outbound HTTPS connections to the Application Proxy cloud service. No inbound ports are needed, which is a key security advantage over traditional reverse proxies and VPNs. Why it's tricky: Candidates familiar with traditional DMZ architectures assume inbound ports are required. The outbound-only model is a distinguishing feature the exam tests.

Practice Exercises

🟢 Easy — Contoso wants to enable self-service password reset (SSPR) for cloud-only users. Which Entra ID licence tier is required?

▶💡 Hint

SSPR for cloud-only users is available at a specific premium tier. Check the licence table in the Deep Dive.

▶✅ Solution

Entra ID P1 is required for SSPR. Entra ID Free supports admin-only password reset, not self-service for all users.

🟢 Easy — Which Key Vault tier must Fabrikam choose if their auditor requires FIPS 140-2 Level 2 HSM-backed keys?

▶💡 Hint

Key Vault has two SKUs. Only one provides HSM backing.

▶✅ Solution

Key Vault Premium. Standard uses software-protected keys only.

🟡 Medium — Woodgrove Bank must ensure that only users on compliant, Intune-managed devices can access their Azure SQL databases via Azure Data Studio. They also need MFA. Design the Conditional Access policy.

▶💡 Hint

You need to combine two grant controls. Think about the operator (AND vs OR).

▶✅ Solution

Create a Conditional Access policy: target all users in the "Database Admins" group, scope to the "Azure SQL Database" cloud app, grant controls = require MFA AND require device to be marked as compliant. The AND operator ensures both conditions must be satisfied.

🟡 Medium — An engineer needs to read secrets from Key Vault kv-prod but should not be able to delete them or manage keys/certificates. Which built-in RBAC role should you assign?

▶💡 Hint

There are separate roles for secrets, keys, and certificates — and "User" vs "Officer" distinctions.

▶✅ Solution

Assign Key Vault Secrets User at the kv-prod resource scope. This role grants Microsoft.KeyVault/vaults/secrets/getSecret/action and list, but not delete or write. It does not grant any key or certificate permissions.

🔴 Hard — Litware Inc. is migrating 12,00012{,}00012,000 users from three AD forests to a single Entra ID tenant. Forest A uses a .local UPN suffix (non-routable). Forests B and C use routable UPN suffixes. Password sync to the cloud is acceptable. Design the Entra Connect topology and address the UPN issue.

▶💡 Hint

Consider how many Entra Connect servers you need for multiple forests, and what happens when a UPN suffix is non-routable.

▶✅ Solution

Deploy a single Entra Connect server with multi-forest topology (one connector per forest). Use PHS for synchronisation. For Forest A, add an alternative routable UPN suffix (e.g., litware.com) in Active Directory Domains and Trusts, then update user accounts to use the routable suffix before sync. Alternatively, configure Entra Connect to use the mail attribute as the source anchor for sign-in if UPN remediation is infeasible. Deploy a staging-mode Entra Connect server for disaster recovery.

🔴 Hard — Synthetic scenario (AZ-305 style): Adatum Corp runs a legacy Java app on-premises that uses header-based authentication (the app reads X-Remote-User from the HTTP header). Remote workers need SSO via Entra ID without VPN. Which service should the architect recommend, and how does it handle header injection?

▶💡 Hint

Application Proxy supports multiple SSO modes beyond KCD. One of them is specifically designed for header-based apps.

▶✅ Solution

Deploy Entra ID Application Proxy with header-based SSO. Configure the connector to inject the X-Remote-User header with the authenticated user's UPN after Entra ID completes authentication and Conditional Access evaluation. This mode is designed for legacy apps that cannot negotiate Kerberos or SAML. For additional security, apply a Conditional Access policy to the enterprise app requiring MFA.

Summary & Concept Map

  • Entra ID is the central identity provider for all Azure workloads; Conditional Access is the enforcement engine for Zero Trust.
  • B2B extends your tenant to partners (they authenticate at their home tenant); B2C is a separate tenant for consumer-facing self-service sign-up.
  • Entra Connect bridges on-prem AD to the cloud — choose PHS for simplicity and leak detection, PTA for on-prem-only passwords, federation only for advanced claims.
  • RBAC + ABAC enforce least-privilege at every scope level; prefer built-in roles, use custom roles sparingly, and always assign to groups, not individuals.
  • Application Proxy provides VPN-less access to on-prem web apps through outbound-only connectors with SSO (KCD, header-based, SAML).
  • Key Vault centralises secrets, keys, and certificates; use RBAC access model, Premium SKU for HSM, and private endpoints for network isolation.
  • Cross-cutting theme: layer authentication (who you are), authorisation (what you can do), and secret management (how credentials are stored) as independent, composable controls.
Loading Diagram...
Figure 6 — Mermaid diagram

Connections & Next Steps

This topic integrates five learning objectives into one security design module. For deeper mastery, proceed through the lessons in this order:

  1. LO4 — Design an authentication solution — deep dive into Conditional Access policy patterns, B2B cross-tenant settings, and B2C user flow customisation.
  2. LO5 — Design identity management — Entra Connect topologies, staging-server failover, and password writeback configuration.
  3. LO6 — Design authorisation for Azure resources — custom role JSON authoring, ABAC condition syntax, and PIM activation workflows.
  4. LO7 — Design authorisation for on-premises resources — Application Proxy connector groups, KCD setup, and header-based SSO configuration.
  5. LO8 — Design secrets, keys, and certificates management — Key Vault networking, key rotation automation, and certificate auto-renewal with App Service.

After completing this topic, move to Topic U1/T3 — Design solutions for logging and monitoring, where you will learn how to audit and monitor the identity decisions made here.

Design Studio734 words

Design Studio — Design authentication and authorization solutions

AZ-305 › Unit 1 › Design authentication and authorization solutions

Read full article

Design Studio — Design authentication and authorization solutions

This studio turns the topic into an architecture exercise. Produce a recommendation that another engineer could challenge, implement, and validate. There is no credit for a list of Azure products without flows, constraints, failure behaviour, and trade-offs.

Studio brief

Unit
1
Domain
Design identity, governance, and monitoring solutions
Decision threads
4
Target effort
45–60 minutes

Client brief

Fabrikam is modernising a production workload in this domain: Separate who signs in, what they may do, how privilege activates, and how workloads obtain tokens. The workload serves internal teams and external customers, carries regulated data, and must remain supportable by a small platform team. The client has supplied incomplete requirements; part of the exercise is to state assumptions and identify questions that would materially change the recommendation.

The initial requirements are:

  1. The design must address human sign-in with explicit assumptions and measurable acceptance evidence.
  2. The design must address azure resource action with explicit assumptions and measurable acceptance evidence.
  3. The design must address workload access with explicit assumptions and measurable acceptance evidence.
  4. The design must address privileged administration with explicit assumptions and measurable acceptance evidence.
  5. The solution must use Microsoft Entra identities, private connectivity where justified, infrastructure as code, and observable health signals.
  6. The design must state a recovery path, operational owner, cost driver, and one deliberate compromise.

Candidate decision anchors

Requirement threadCandidate starting pointQualification rule
Human sign-inMicrosoft Entra ID and Conditional AccessEvaluate identity, app, device, location, and risk
Azure resource actionAzure RBACPrincipal plus role plus narrow durable scope
Workload accessManaged identityAvoid stored credentials; grant a data or control-plane role
Privileged administrationPIMEligible, approved, time-bound activation with audit evidence

These are starting points, not an answer key. You may select a different service when a stated assumption or constraint justifies it. Every deviation must identify the requirement it serves and the new operational cost it introduces.

Studio workflow

  1. 1

    Clarify

    Write five questions whose answers could change the architecture. Mark hard constraints separately from preferences.

Required submission

  1. A one-page architecture diagram with a text equivalent.
  2. A decision record containing context, decision, alternatives, consequences, and validation evidence.
  3. A requirement-to-control matrix that maps every hard constraint to a component or operating process.
  4. A failure table covering component, zone, region, identity, network, and operator-error failures where applicable.
  5. Three validation tests: one functional, one reliability/security, and one operational or cost test.

Review traps

  • Reader does not imply service data access.
  • Policy does not grant permissions.
  • A managed identity still needs authorization.

Do not hide uncertainty

If region support, SKU capability, quota, price, or service retirement affects the answer, cite the current Microsoft Learn page and record the review date. Treat the attached books as teaching context, not the final authority for current limits.

Assessment rubric

Dimension0 — Missing1 — Partial2 — Release quality
RequirementsProducts chosen before constraintsSome constraints mappedHard constraints, assumptions, and change-driving questions are explicit
ArchitectureComponent listMain flow shownIdentity, traffic/data, dependencies, and failure boundaries are coherent
Trade-offsNo alternativeAlternative namedStrongest alternative rejected using a stated requirement
OperabilityMonitoring mentionedSome runbook detailHealth, capacity, deployment, recovery, ownership, and cost evidence defined
CurrencyNo sourcesSecondary/undated sourceCurrent Microsoft primary source linked and reviewed date recorded

Reflection

  • Which requirement eliminated the most attractive alternative?
  • Which assumption creates the greatest residual risk?
  • What would you test in a pilot before approving production deployment?
  • How would the recommendation change if the operations team doubled in size or the recovery objective tightened?

Source and freshness

Grounded in the current AZ-305 skills outline and both attached course sources. Current service contracts must be verified in Microsoft Learn during the studio. Reviewed 2026-08-02.

LO Quick Note758 words

Quick Note — Recommend an Authentication Solution

AZ-305 › Unit 1 › Design authentication and authorization solutions › Recommend an authentication solution

Read full article

Quick Note — Recommend an Authentication Solution

This lesson aligns with AZ-305 Chapter 2, §2.1–2.2, p. 41–65 and covers the architecture and design considerations for authenticating users and applications in Azure. We focus on Microsoft Entra ID (formerly Azure AD) as the identity platform, multi-factor authentication (MFA), Conditional Access policies, passwordless authentication methods, and authentication protocols such as SAML 2.0, OAuth 2.0, and OpenID Connect (OIDC). This is not a lesson on identity governance or lifecycle management (see LO-5), nor on authorization and RBAC (see LO-6/LO-7) — it is about how to verify who someone is when they attempt to access resources.

Retrieval target

Objective
Recommend an Authentication Solution
Mode
Closed-book recall
Target time
5 minutes
Escalation
Open the full lesson after a miss

Decision anchors

PromptCompact answer
Microsoft Entra IDMicrosoft's cloud identity-and-access platform (formerly Azure Active Directory). Issues identities, authenticates users, and authorizes access to cloud apps and Azure resources. The tenant is the directory boundary — one Microsoft 365 / Azure subscription is associated with exactly one Entra tenant.
Multi-factor authentication (MFA)An authentication method that requires more than one challenge before granting access: something you have (phone, key, FIDO2), know (password, PIN), are (biometrics), or where you are (location). The most effective single control for reducing credential-theft risk in Entra ID.
Conditional Access policyAn if/then rule in Entra ID — if signals match (user, app, device platform, location, client app, risk level), then grant or block, optionally requiring extra controls like MFA or a compliant device. The standard tool for enforcing MFA, blocking legacy auth, and acting on Identity Protection risk signals.
Password hash synchronization (PHS)An Entra Connect sign-in method that synchronizes a hash of the on-prem AD password hash into Entra ID. Users authenticate in the cloud — no on-prem dependency at sign-in. Simplest hybrid option; tolerates on-prem outages because Entra can validate the password by itself.

Read the answers once, then cover the right-hand column and reconstruct each one from the prompt. A useful answer names the requirement, the recommended control or service boundary, and the nearest alternative it rejects. If you can only recognize the answer after seeing it, retrieval is not yet secure.

Turn recall into an architecture answer

For recommend an authentication solution, state: choose X because constraints A and B apply; reject Y because it fails C; validate with evidence D.

Ninety-second explanation

Without notes, explain:

  1. What requirement signals this learning objective rather than a neighbouring one?
  2. Which two solution families are most likely to be compared?
  3. Which hard constraint eliminates the strongest distractor?
  4. What identity, network, data, or failure boundary must appear in the design?
  5. Which operational test would prove the recommendation works?

Then compare your explanation with the full lesson. Record the missing decision rule—not merely the missed product name—in your error log.

Loading flashcards…

When to open the full lesson

Open the curriculum-linked lesson when you cannot explain a comparison, when a scenario depends on a numeric limit or SKU feature, or when the service is on a retirement path. Use current Microsoft Learn documentation for availability, limits, pricing, naming, and migration milestones; the quick note is intentionally compact.

Source and freshness

Derived from the linked AZ-305 lesson and retrieval deck, grounded in both attached course sources. Reviewed 2026-08-02. Current Microsoft documentation controls changing product contracts.

Lesson4,868 words

Recommend an Authentication Solution — Lesson

AZ-305 › Unit 1 › Design authentication and authorization solutions › Recommend an authentication solution

Read full article

Recommend an Authentication Solution — Lesson

This lesson aligns with AZ-305 Chapter 2, §2.1–2.2, p. 41–65 and covers the architecture and design considerations for authenticating users and applications in Azure. We focus on Microsoft Entra ID (formerly Azure AD) as the identity platform, multi-factor authentication (MFA), Conditional Access policies, passwordless authentication methods, and authentication protocols such as SAML 2.0, OAuth 2.0, and OpenID Connect (OIDC). This is not a lesson on identity governance or lifecycle management (see LO-5), nor on authorization and RBAC (see LO-6/LO-7) — it is about how to verify who someone is when they attempt to access resources.

Reference: Ch. 2, §2.1–2.2, p. 41–65 of the AZ-305 exam book.

Why This Matters

Authentication is the foundation of every secure Azure architecture. Microsoft reports that organisations enabling MFA block over 99.9% of account-compromise attacks. As an architect designing infrastructure for financial services, healthcare, or enterprise SaaS, you must choose between basic username-password, multi-factor methods, passwordless approaches, and federation patterns. The wrong choice costs companies millions in downtime and compliance fines — the right choice enables a workforce to be productive, mobile, and secure. The AZ-305 exam tests your ability to match authentication mechanisms to real-world constraints: device fleets, regulatory mandates, user populations, and risk tolerance.

Prerequisites

  • Authentication vs. authorisation — Can you explain why verifying who someone is (authentication) is separate from deciding what they can do (authorisation)? Self-check: if a user passes MFA but has no RBAC role, can they read a Storage blob?
  • Entra ID tenant basics — Do you know what a tenant is and how it isolates users? Self-check: can a user in Tenant A directly sign in to resources in Tenant B without an invitation?
  • Token-based access — Can you describe why APIs accept tokens instead of passwords? Self-check: what happens when a JWT access token expires — does the user re-enter their password?
  • Hybrid identity awareness — Do you know the difference between cloud-only and synced (hybrid) identities? Self-check: what tool synchronises on-premises AD users to Entra ID?

Learning Objectives

By the end of this lesson you will be able to:

  1. Analyse authentication requirements across on-premises, cloud, and hybrid identity scenarios and recommend the appropriate Entra ID deployment model.
  2. Evaluate MFA methods and Conditional Access policies against organisational risk profiles and design a policy framework that balances security with usability.
  3. Design passwordless authentication implementations using FIDO2 security keys, Windows Hello for Business, and Microsoft Authenticator passwordless sign-in.
  4. Recommend the correct authentication protocol (SAML 2.0, OAuth 2.0, OIDC) for federation with third-party identity providers or SaaS applications.
  5. Architect managed-identity solutions for Azure workloads that eliminate stored secrets.
  6. Assess B2C and external-identity scenarios for customer-facing and partner-facing applications.

Building Blocks

Entra ID (formerly Azure Active Directory) — Analogy: Azure's phone book and security guard rolled into one — the phone book lists all users and apps, and the guard checks ID before letting anyone in. → Formal definition: a cloud-based identity and access management service that authenticates users and apps, manages devices, and enforces policies across Microsoft and third-party cloud applications. → Why it matters: it is the core identity platform for Azure; without it there is no user access, no MFA, no Conditional Access, no federation.

Multi-Factor Authentication (MFA) — Analogy: requiring both a passport and a fingerprint scan to enter a building, rather than just the passport. → Formal definition: a security control that requires two or more independent verification factors — something you know, something you have, something you are — before granting access. → Why it matters: even if passwords are stolen, a second factor is exponentially harder to compromise; MFA reduces breach impact by 99% or more in empirical studies.

Conditional Access — Analogy: a bouncer who lets you in from your home office with just an ID but demands a fingerprint scan if you arrive from airport WiFi because the risk is higher. → Formal definition: a policy-driven authentication mechanism that grants, challenges, or denies access based on real-time signals — location, device health, user risk, application sensitivity. → Why it matters: it enables risk-based authentication, allowing legitimate users seamless access while blocking suspicious logins automatically.

Passwordless Authentication — Analogy: replacing a metal key with a biometric fingerprint reader that is unique to you and impossible to lose or share. → Formal definition: authentication methods that replace or eliminate the password — FIDO2 security keys, Windows Hello for Business (biometric or PIN), certificate-based auth, or Microsoft Authenticator phone sign-in. → Why it matters: passwords are the weakest link; passwordless methods are resistant to phishing and credential stuffing.

Authentication Protocol — Analogy: a standardised handshake between a user, an app, and an identity provider (IdP) so they all know each other and trust the exchange. → Formal definition: a technical specification for exchanging identity information; common ones are SAML 2.0 (XML-based federation), OAuth 2.0 (delegation/authorisation), and OIDC (authentication layer on top of OAuth). → Why it matters: each protocol solves a different problem; choosing the wrong one breaks interoperability or introduces security gaps.

Managed Identity — Analogy: a passport-less identity for an Azure resource (VM, Function, App Service) that Azure automatically manages — the service never stores a secret because Azure vouches for it at runtime. → Formal definition: an identity automatically created and managed by Azure for resources to authenticate to other Azure services without storing credentials. Two types: system-assigned (tied to one resource) and user-assigned (reusable across resources). → Why it matters: it eliminates connection strings and secrets from application code.

Deep Dive

Microsoft Entra ID Authentication Fundamentals

Entra ID is the identity layer for Azure. When a user logs in, Entra ID verifies credentials and issues a token. When an app wants to access another service, it authenticates via Entra ID and receives a token. All Azure resources check tokens from Entra ID to decide who you are.

Tenants and users:

ConceptDescriptionExample
TenantA dedicated instance of Entra ID; your organisation's identity boundarycontoso.onmicrosoft.com
Primary userA work/school account managed by your organisationalice@contoso.com
Guest userAn external user invited from a partner organisationbob@partner.com (B2B guest)
Service principalAn identity for an application or serviceApp registration for a custom API
Managed identityAn identity for an Azure resource, managed by AzureSystem-assigned MI for an App Service

Authentication flows:

FlowActorToken issuedUse case
Interactive (auth code)Human user via browserID token + access tokenWeb apps, SPAs
Device codeHuman user on input-limited deviceID token + access tokenCLI tools, IoT
Client credentialsApp (no user)Access token onlyBackend daemon, microservice
On-behalf-ofApp acting for a userAccess tokenMiddle-tier API calling downstream API
ROPC (resource owner)Legacy app sending username/password directlyAccess tokenLegacy migration only — avoid in new designs

[!NOTE] In hybrid scenarios (on-premises Active Directory + Entra ID), you use Microsoft Entra Connect Sync or Microsoft Entra Cloud Sync to synchronise identities. Seamless SSO lets domain-joined users sign in to cloud apps without re-entering credentials.

Multi-Factor Authentication and Conditional Access

MFA is no longer optional for sensitive workloads — it is a best practice and often a compliance requirement.

MFA methods ranked by strength:

MethodPhishing-resistantHardware requiredEase of deploymentBest for
FIDO2 security keyYesUSB/NFC keyMediumAdmins, executives, high-risk roles
Windows Hello for BusinessYesWindows 10+ with TPM 2.0Easy (corporate fleet)Corporate desktop users
Microsoft Authenticator (push)ModerateSmartphoneEasyGeneral workforce
OATH hardware tokenNoPhysical tokenMediumShared workstations, manufacturing
SMS / voice OTPNo (SIM swap risk)PhoneVery easyFallback, low-sensitivity apps

Conditional Access policies evaluate signals at sign-in time and make a real-time grant/deny/challenge decision:

json
{ "displayName": "Require MFA outside corporate network", "state": "enabled", "conditions": { "applications": { "includeApplications": ["All"] }, "users": { "includeUsers": ["All"], "excludeUsers": ["BreakGlassAccount"] }, "locations": { "includeLocations": ["All"], "excludeLocations": ["CorporateNetwork"] } }, "grantControls": { "operator": "OR", "builtInControls": ["mfa"] } }

[!TIP] Start with a baseline: require MFA for Azure Portal, all admin roles, and sensitive apps. Use "Report-only" mode for 1–2 weeks before enforcing. Review the Entra ID sign-in logs to catch false positives before users are blocked.

Named locations and device compliance:

  • A named location is an IP range (e.g., your office CIDR blocks) or country that Entra ID recognises as trusted.
  • Device compliance checks whether a device meets Intune security baselines (BitLocker enabled, antivirus active, OS patched).
  • Combining named locations + device compliance reduces false positives while maintaining strong security.

Passwordless Authentication

Passwordless eliminates the password entirely — a paradigm shift from "something you know" to "something you have" or "something you are."

FIDO2 security keys:

  • A hardware device (USB, NFC, or Bluetooth) storing a private key.
  • The key signs a challenge from the server without revealing the private key.
  • Phishing-resistant: the key is domain-bound — an attacker cannot redirect it to a fake site.
  • Deployment: register keys in the Entra ID portal or via Microsoft Authenticator.

Windows Hello for Business:

  • Biometric (face/fingerprint) or PIN on a Windows device.
  • Private key stored in the Trusted Platform Module (TPM), a hardware security chip.
  • Requires Windows 10+ with TPM 2.0.
  • Deploy via Intune or Group Policy.
powershell
# Check TPM status on a Windows device Get-Tpm | Select-Object TpmPresent, TpmReady, TpmEnabled # Verify Windows Hello for Business registration dsregcmd /status | Select-String -Pattern "NgcSet|WorkplaceJoined|AzureAdJoined"

Microsoft Authenticator passwordless:

  • User sees a number-match prompt on their phone, confirms via biometric, done.
  • Works cross-platform (iOS, Android) — ideal for BYOD.

Certificate-Based Authentication (CBA):

  • Authenticate via X.509 certificate on a smart card or device.
  • Common in government (e.g., US federal PIV/CAC) and regulated industries.

[!IMPORTANT] Passwordless does not mean MFA is unnecessary. Defence in depth means layering passwordless + Conditional Access + device compliance. A FIDO2 key satisfies both the "something you have" and "something you are" factors in a single gesture.

Authentication Protocols: SAML, OAuth 2.0, and OIDC

When integrating third-party applications or federating with partners, you must choose a protocol.

FeatureSAML 2.0OAuth 2.0OIDC
Primary purposeIdentity federationDelegated authorisationAuthentication + authorisation
Token formatXML assertionJWT access tokenID token (JWT) + access token
TransportHTTP POST / redirectHTTPS + JSONHTTPS + JSON
Best forLegacy enterprise apps, on-prem federationAPI access delegationModern SaaS, SPAs, mobile apps
Entra ID supportFull (enterprise apps gallery)Full (app registrations)Full (app registrations)

When to choose which:

Loading Diagram...
Figure 1 — Mermaid diagram

Managed identities for workloads:

When an Azure resource (VM, Function App, Container Instance) needs to authenticate to another Azure service, use a managed identity.

bicep
resource webApp 'Microsoft.Web/sites@2023-01-01' = { name: 'app-contoso-api' location: location identity: { type: 'SystemAssigned' } properties: { siteConfig: { appSettings: [] } } } // Grant the web app access to Key Vault resource kvAccess 'Microsoft.KeyVault/vaults/accessPolicies@2023-07-01' = { name: '${keyVaultName}/add' properties: { accessPolicies: [ { tenantId: subscription().tenantId objectId: webApp.identity.principalId permissions: { secrets: ['get', 'list'] } } ] } }

[!WARNING] Never store connection strings or client secrets in application code or config files when a managed identity is available. Secrets in code leak via git history, error logs, and backup files. Use DefaultAzureCredential in your SDK calls — it automatically discovers managed identities at runtime.

B2C and External Identity Scenarios

Microsoft Entra External ID for customers is a separate service from Entra ID, designed for customer-facing consumer identity management.

ScenarioServiceScaleIdentity source
Employee authenticationEntra IDThousandsCorporate directory
Partner/contractor collaborationEntra ID External Identities (B2B)Dozens to hundredsPartner's own IdP
Customer-facing appMicrosoft Entra External ID for customersMillionsSocial (Google, Facebook), local email

B2C user flow example (sign-up/sign-in with social providers):

yaml
# Conceptual B2C policy configuration userFlows: signUpSignIn: type: signUpOrSignIn identityProviders: - google - facebook - localEmailSignUp userAttributes: - displayName - email - givenName applicationClaims: - sub - email - displayName mfaEnforcement: conditional sessionTimeout: 60 # minutes

When to use B2C vs. External Identities:

  • B2C: you are a SaaS provider or retailer with potentially millions of customer logins; you want full control over the sign-up/sign-in UX.
  • External Identities: you are inviting a handful of partner organisations to collaborate inside your Entra ID tenant; they sign in with their home IdP.

Worked Examples

Easy — Single-Tenant Corporate MFA Rollout

Problem: A medium-sized insurance company (500 employees) uses Entra ID for Microsoft 365 and Azure resources. Currently they enforce passwords with no MFA. They must roll out MFA company-wide for SOC 2 Type II compliance. The workforce is 70% in two corporate offices, 30% remote.

Step-by-step solution:

  1. Assess current state: check how many users have Microsoft Authenticator installed; identify any legacy apps that cannot support modern auth.
  2. Phase 1 (Weeks 1–2): deploy Authenticator via Intune push or manual download. Provide training videos and helpdesk support.
  3. Phase 2 (Week 3): enable MFA registration requirement; users register on next sign-in. Allow Authenticator (push), SMS, and FIDO2.
  4. Phase 3 (Week 4): create a Conditional Access policy — Condition: all cloud apps, all users; Control: require MFA; Exclusion: 2 break-glass accounts.
  5. Monitor: track adoption via Entra ID Authentication Methods Activity report. Follow up with non-compliant users.

[!NOTE] Most users will choose Authenticator (push notification). FIDO2 is ideal for admins and executives — consider it as a Phase 2 initiative.

Medium — Multi-Location Conditional Access with BYOD

Problem: A financial services firm (2,0002{,}0002,000 employees) has offices in New York, London, and Singapore. Employees use both personal laptops (BYOD) and corporate devices. They access Azure Portal, Dynamics 365, and custom banking APIs. They need to allow productivity but block risky logins (e.g., new country at 3 AM).

Step-by-step solution:

  1. Define named locations: Corporate Network = IP ranges of the three offices; Allowed Countries = US, UK, Singapore.
  2. Enable device compliance in Intune: require BitLocker, antivirus, no jailbreak. Non-compliant devices cannot access banking APIs.
  3. Create Conditional Access policies:
    • Policy 1 (Sensitive Apps): Apps = Azure Portal + Dynamics + Banking APIs; Device not compliant → require MFA + compliant device.
    • Policy 2 (High Risk): Sign-in risk = high OR user risk = high → require MFA + password change.
    • Policy 3 (Location Block): Location = outside Allowed Countries → block access entirely.
  4. Test: use Report-only mode for 1 week, review sign-in logs, adjust.
kusto
// Review Conditional Access sign-in failures in Log Analytics SigninLogs | where TimeGenerated > ago(7d) | where ConditionalAccessStatus == "failure" | summarize count() by UserPrincipalName, AppDisplayName, ConditionalAccessPolicies | order by count_ desc | take 20

[!NOTE] Entra ID's impossible-travel detection is automatic. The key is interpreting the risk signals and mapping them to the right control — block vs. step-up MFA vs. allow.

Hard — Hybrid Identity with Federation, B2C, and Managed Identities

Problem: A healthcare company has 1,5001{,}5001,500 employees on on-premises AD, a patient-facing mobile app (100,000100{,}000100,000+ users needing social login), and a backend microservice in Azure Container Instances that reads patient records from Azure SQL Database without storing secrets.

Step-by-step solution:

  1. Hybrid identity: deploy Microsoft Entra Cloud Sync to synchronise on-premises AD users to Entra ID. Enable Seamless SSO so domain-joined users sign in to cloud apps automatically.
  2. B2C for patients: create a separate Microsoft Entra External ID for customers tenant. Define a sign-up/sign-in user flow with Google, Facebook, and local email. Integrate the mobile app (iOS/Android) via MSAL. B2C returns an ID token + access token on sign-in.
  3. Managed identity for the microservice: enable a system-assigned managed identity on the Container Instance. In Azure SQL Database, create a contained database user mapped to the MI. Grant SELECT on patient tables. In code, use DefaultAzureCredential to obtain a token scoped to https://database.windows.net.
  4. Conditional Access for employees: require MFA for Salesforce; block high-risk countries; require compliant devices for Azure Portal.
bash
# Create a contained database user for the managed identity in Azure SQL az sql db execute \ --resource-group rg-healthcare \ --server sql-healthcare-prod \ --name PatientDB \ --query "CREATE USER [aci-patient-reader] FROM EXTERNAL PROVIDER; ALTER ROLE db_datareader ADD MEMBER [aci-patient-reader];"

[!NOTE] Three identity systems coexist: on-premises AD (employees, synced to Entra ID), Entra ID (cloud and hybrid), and B2C (patients). Each is isolated and purpose-built.

Visual Explanations

Entra ID Authentication Flow (Mermaid)

Loading Diagram...
Figure 2 — Mermaid diagram

Caption: The basic authentication flow. The user provides credentials and MFA; Entra ID validates, evaluates Conditional Access, and issues a JWT. The resource verifies the token and grants access.

Conditional Access Decision Tree (Mermaid)

Loading Diagram...
Figure 3 — Mermaid diagram

Caption: Conditional Access evaluates real-time signals (location, device state, risk level) and makes a dynamic decision: allow, challenge with MFA, or block.

Authentication Protocol Comparison (TikZ)

Compiling TikZ diagram…
⏳
Running TeX engine…
This may take a few seconds
Figure 4 — TikZ diagram

Caption: Evolution and comparison of authentication protocols. SAML 2.0 handles legacy federation, OAuth 2.0 handles API delegation, and OIDC extends OAuth with an authentication layer for modern apps.

Passwordless Methods Comparison Table

MethodPhishing-resistantEase of setupHardware requiredBest for
FIDO2 security keyYes (strongest)MediumUSB/NFC keyC-suite, admins, high-risk roles
Windows Hello for BusinessYesEasy (corporate fleet)Windows 10+ with TPM 2.0Corporate desktop/laptop users
Microsoft Authenticator (passwordless)ModerateEasySmartphoneRemote workers, general workforce
SMS OTPNo (SIM swap risk)Very easyPhone (any)Fallback only, low-sensitivity apps
Certificate-based auth (CBA)YesHardSmart card or device certGovernment, regulated industries

Caption: FIDO2 and Windows Hello are phishing-resistant and recommended for high-value accounts. Authenticator is the easiest cross-platform option. SMS should only be a fallback.

Common Mistakes

❌ Myth: "We require MFA for all users, so we are fully secure." ✅ Reality: MFA adds a second factor but does not adapt to risk. If an attacker compromises a password and tricks the user into approving an MFA push (MFA fatigue), they gain access. Conditional Access adds a third dimension: even if MFA passes, it can block access from high-risk locations or non-compliant devices. Why it's tricky: MFA feels like a complete solution because users see the second prompt. Conditional Access is invisible to legitimate users but invaluable against advanced attacks. Many teams stop after enabling MFA.

❌ Myth: "We use SAML for all cloud integrations because it is the enterprise standard." ✅ Reality: SAML was designed in the 2000s for on-premises federation. OIDC, built on OAuth 2.0, is the modern standard for cloud applications and APIs. Most SaaS apps prefer OIDC. Using SAML for a new cloud-native app is like insisting on fax when email is available — it works, but you lose features and integration capabilities. Why it's tricky: SAML is mature and stable; many architects learned it first. The mental model says "SAML = enterprise." But OIDC is now the enterprise standard for cloud; the switch requires updating app registrations but yields simpler code and better API support.

❌ Myth: "We store the database connection string in our app's config. It is in a private repo, so it is safe." ✅ Reality: Secrets in code leak via git history, error logs, deployment artefacts, and backup files. A junior developer commits a secret; it lives in the repo forever. A managed identity eliminates this risk entirely — Azure vouches for the app at runtime with a short-lived token. Why it's tricky: Managed identities require a mental shift from "here is the key, use it" to "Azure will give you a temporary key at runtime." The first approach feels simpler but is architecturally fragile.

❌ Myth: "All users must comply with our Conditional Access policies — no exceptions." ✅ Reality: If a Conditional Access misconfiguration blocks all users — including admins — you lose access to your tenant. You must maintain 2 break-glass (emergency access) accounts excluded from all policies. These accounts have long complex passwords, no MFA, are monitored by alerts, and are only used in emergencies. Why it's tricky: Excluding accounts feels insecure. But 2 heavily guarded break-glass accounts are far safer than a complete tenant lockout with no recovery path.

Practice Exercises

🟢 Easy — A start-up with 50 employees uses Entra ID for Microsoft 365. They have no MFA today. Which single Conditional Access policy should they deploy first?

▶💡 Hint

Think about the highest-risk access point that is also the easiest to protect.

▶✅ Solution

Require MFA for all users accessing all cloud apps. Exclude 2 break-glass accounts. This is the single highest-impact policy and covers the broadest attack surface. At 50 users, a blanket policy is manageable.

🟢 Easy — An app registration in Entra ID returns both an ID token and an access token after sign-in. Which authentication protocol is being used?

▶💡 Hint

SAML uses XML assertions. OAuth 2.0 returns only an access token. Which protocol adds an ID token on top of OAuth?

▶✅ Solution

OpenID Connect (OIDC). It extends OAuth 2.0 by adding an ID token (JWT with identity claims) alongside the access token.

🟡 Medium — A pharmaceutical company has offices in Boston and Toronto. Remote workers use personal laptops. They access a HIPAA-regulated patient records app on Azure App Service. Design a Conditional Access policy set.

▶💡 Hint

Consider: (1) named locations for offices, (2) device compliance for BYOD, (3) the sensitivity of HIPAA data, (4) break-glass exclusions.

▶✅ Solution

Policy 1: Condition = Patient Records App + location not in "Boston" or "Toronto" named locations → Control = require MFA. Policy 2: Condition = Patient Records App + device not Intune-compliant → Control = require MFA + compliant device. Exclusion on both: break-glass accounts and service accounts. This allows office workers frictionless access on compliant devices while remote/BYOD users must satisfy MFA and device compliance.

🟡 Medium — A web app on Azure App Service needs to read secrets from Azure Key Vault. Currently the connection string is in appsettings.json. Redesign this using a managed identity.

▶💡 Hint

Enable a system-assigned managed identity on the App Service. Grant it an access policy on Key Vault. Update the code to use DefaultAzureCredential.

▶✅ Solution

Enable the system-assigned managed identity on the App Service (Bicep: identity: { type: 'SystemAssigned' }). In Key Vault, create an access policy granting Get and List secrets permissions to the App Service's principal ID. In code, replace the connection string with new SecretClient(vaultUri, new DefaultAzureCredential()). Remove the secret from appsettings.json and git history entirely.

🔴 Hard — A logistics company wants to: (a) allow 10,00010{,}00010,000+ customers to track shipments via a web portal with social login, and (b) allow 5 partner logistics companies to access a shared shipment database (read-only). Should they use Microsoft Entra External ID for customers, Entra ID External Identities, or a combination? Justify.

▶💡 Hint

Consider scale (10,00010{,}00010,000+ vs. 5), governance (self-service vs. admin-provisioned), social login needs, and identity isolation.

▶✅ Solution

Customers: Use Microsoft Entra External ID for customers. Rationale: 10,00010{,}00010,000+ external, unmanaged identities at consumer scale. B2C supports social login (Google, Facebook), self-service sign-up, and is isolated from the corporate tenant. Partners: Use Entra ID External Identities (B2B guest). Rationale: only 5 known organisations; invite their users as guests. They sign in with their home IdP and inherit your Conditional Access policies. Architecture: two separate identity systems — B2C for customers (public portal) and Entra ID for partners (governed, internal). This ensures compliance (customers never touch the corporate tenant) and appropriate scale.

🔴 Hard — A healthcare company has on-premises AD (1,5001{,}5001,500 employees), a patient mobile app (100,000100{,}000100,000+ users), and a backend microservice in Azure Container Instances that reads from Azure SQL Database. Design the complete authentication architecture covering all three identity populations.

▶💡 Hint

Think: (1) hybrid identity for employees, (2) B2C for patients, (3) managed identity for the microservice. How do these three coexist?

▶✅ Solution

Employees: deploy Microsoft Entra Cloud Sync to synchronise on-prem AD to Entra ID. Enable Seamless SSO for domain-joined devices. Apply Conditional Access policies (MFA for sensitive apps, compliant devices for Azure Portal). Patients: create a separate Microsoft Entra External ID for customers tenant. Define a sign-up/sign-in user flow with Google, Facebook, and local email. The mobile app uses MSAL to authenticate and receives ID + access tokens. Microservice: enable a system-assigned managed identity on the Container Instance. Create a contained database user in Azure SQL mapped to the MI. Grant db_datareader. In code, use DefaultAzureCredential for token-based SQL auth. Result: three isolated identity systems, zero stored secrets, strong MFA for employees, frictionless social login for patients.

Summary & Concept Map

  • Entra ID is the foundational identity platform for every Azure authentication scenario — employees, apps, and services all authenticate through it.
  • MFA + Conditional Access together form the modern security baseline: MFA alone is insufficient; Conditional Access adds risk-adaptive, context-aware enforcement.
  • Passwordless methods (FIDO2, Windows Hello for Business, Microsoft Authenticator) eliminate the weakest link — the password — and should be the target state for all organisations.
  • OIDC is the modern standard for SaaS and cloud app integration; use SAML 2.0 only for legacy federation scenarios that do not support OIDC.
  • Managed identities eliminate stored secrets for Azure workloads — always prefer them over connection strings or client secrets.
  • Use B2C for consumer-scale external identity (social login, self-service) and External Identities for governed B2B partner collaboration.
  • Always maintain 2 break-glass accounts excluded from all Conditional Access policies to prevent tenant lockout.
Loading Diagram...
Figure 5 — Mermaid diagram
LO Quick Note796 words

Quick Note — Recommend an Identity Management Solution

AZ-305 › Unit 1 › Design authentication and authorization solutions › Recommend an identity management solution

Read full article

Quick Note — Recommend an Identity Management Solution

This lesson covers the identity lifecycle—how on-premises and cloud-based identities are synchronized, provisioned, and managed in hybrid and cloud-native Azure environments. Based on AZ-305 exam guidance (Ch. 2, §2.2, p. 47–65), the focus is on synchronization strategy, Seamless SSO, group sync, B2B/B2C, and managed identities. Identity management is distinct from authentication (LO4) and authorization (LO6/7) — we emphasize the lifecycle: how identities are created, synced, and deprovisioned.

Retrieval target

Objective
Recommend an Identity Management Solution
Mode
Closed-book recall
Target time
5 minutes
Escalation
Open the full lesson after a miss

Decision anchors

PromptCompact answer
Entra ID user — Member vs GuestTwo userType values in an Entra tenant. Member — a regular employee identity owned by your tenant (default for synced or in-cloud-created users). Guest — an external person invited via B2B; they sign in with their home tenant's identity and appear in your directory but cannot be assigned licenses by default and have a more limited Directory view.
Dynamic groupAn Entra ID group whose membership is determined by a rule over user (or device) attributes — e.g., user.department -eq "Sales". Members join and leave automatically as attributes change. Requires Entra ID P1 licensing. Use for license / app assignment that should track org changes without manual list maintenance.
Service principalThe identity an application, service, or automation uses to authenticate to Entra-protected resources. Created automatically when you register an app in the portal. Two flavors: Application service principal (manual app registration, you manage the credential) and Managed identity (Azure-managed credential lifecycle, see separate card).
Managed identityA service principal whose credential is created, rotated, and deleted by Azure — your code never sees a secret. Available on most Azure compute (VM, VMSS, App Service, Functions, Logic Apps, AKS). Get a token from the IMDS endpoint, present it to any resource that does Entra auth (Storage, Key Vault, SQL, etc.).

Read the answers once, then cover the right-hand column and reconstruct each one from the prompt. A useful answer names the requirement, the recommended control or service boundary, and the nearest alternative it rejects. If you can only recognize the answer after seeing it, retrieval is not yet secure.

Turn recall into an architecture answer

For recommend an identity management solution, state: choose X because constraints A and B apply; reject Y because it fails C; validate with evidence D.

Ninety-second explanation

Without notes, explain:

  1. What requirement signals this learning objective rather than a neighbouring one?
  2. Which two solution families are most likely to be compared?
  3. Which hard constraint eliminates the strongest distractor?
  4. What identity, network, data, or failure boundary must appear in the design?
  5. Which operational test would prove the recommendation works?

Then compare your explanation with the full lesson. Record the missing decision rule—not merely the missed product name—in your error log.

Loading flashcards…

When to open the full lesson

Open the curriculum-linked lesson when you cannot explain a comparison, when a scenario depends on a numeric limit or SKU feature, or when the service is on a retirement path. Use current Microsoft Learn documentation for availability, limits, pricing, naming, and migration milestones; the quick note is intentionally compact.

Source and freshness

Derived from the linked AZ-305 lesson and retrieval deck, grounded in both attached course sources. Reviewed 2026-08-02. Current Microsoft documentation controls changing product contracts.

Lesson5,982 words

Recommend an Identity Management Solution — Lesson

AZ-305 › Unit 1 › Design authentication and authorization solutions › Recommend an identity management solution

Read full article

Recommend an Identity Management Solution — Lesson

This lesson covers the identity lifecycle—how on-premises and cloud-based identities are synchronized, provisioned, and managed in hybrid and cloud-native Azure environments. Based on AZ-305 exam guidance (Ch. 2, §2.2, p. 47–65), the focus is on synchronization strategy, Seamless SSO, group sync, B2B/B2C, and managed identities. Identity management is distinct from authentication (LO4) and authorization (LO6/7) — we emphasize the lifecycle: how identities are created, synced, and deprovisioned.

Why This Matters

Identity management underpins security architecture. In hybrid organizations, on-premises directories contain thousands of user accounts; moving to Azure requires a synchronization strategy that is secure, low-latency, and maintainable. Wrong choices lead to:

  • Orphaned accounts in the cloud with no on-premises counterpart (manual cleanup cost).
  • Sync failures that break productivity (users cannot sign in).
  • Security gaps (e.g., federation without proper token validation).
  • B2B/B2C confusion (guest collaboration vs. customer identity, different policies).
  • Managed identity misuse (resource-to-resource auth becomes fragile if you pick system-assigned when user-assigned is better).

AZ-305 expects you to recommend the right identity solution given a scenario: a multi-site enterprise, a startup going cloud-first, a partner ecosystem requiring B2B access, or a customer-facing app needing B2C. This lesson equips you to make that call.

Prerequisites

  • Active Directory basics — domain controller, OU, group policy, trust relationships. Self-check: what is the role of a domain controller in Kerberos authentication?
  • Microsoft Entra ID (Entra ID) fundamentals — tenants, users, groups, app registrations, role assignments. Self-check: what is the difference between a security group and a Microsoft 365 group in Entra ID?
  • Azure networking — VNets, on-premises connectivity (ExpressRoute, VPN). Self-check: which connectivity method does Entra Connect use to reach Entra ID — internet HTTPS or private endpoint?
  • PKI and certificates — SSL/TLS, token signing, federation metadata. Self-check: why does AD FS require a token-signing certificate?
  • Authentication concepts — passwords, MFA, SSO, SAML, OAuth 2.0, OpenID Connect. Self-check: what is the difference between SAML and OpenID Connect?

Learning Objectives

After completing this lesson, you will be able to:

  1. Evaluate synchronization methods (PHS, PTA, Federation) and recommend the right one for a given scenario (latency, security, complexity).
  2. Configure Seamless SSO and explain how it interacts with PHS/PTA to reduce password prompts.
  3. Design group synchronization (scoping filters, group writeback) for role-based access control in hybrid deployments.
  4. Distinguish B2B from B2C identities and recommend collaboration tools (guest users, B2B cross-tenant access) vs. customer identity platforms (custom policies, external identity providers).
  5. Choose between system-assigned and user-assigned managed identities for workloads and explain when to avoid managed identities entirely (switch to service principals).
  6. Architect an end-to-end identity solution combining Entra Connect sync, Seamless SSO, managed identities, and B2B/B2C policies.

Building Blocks

Entra Connect — Analogy: think of a postal sorting office that takes letters from your local mailboxes (on-prem AD) and delivers copies to a central hub (cloud Entra ID) on a regular schedule. → Formal definition: an on-premises synchronisation engine (formerly Azure AD Connect) that replicates user, group, and contact objects from Active Directory to Microsoft Entra ID. It supports three authentication methods: PHS, PTA, and Federation. → Why it matters: Entra Connect is the bridge between your on-prem identity store and the cloud — getting its sync method and scoping right determines sign-in latency, disaster recovery posture, and compliance stance.

Password Hash Sync (PHS): Entra Connect hashes the user's on-prem password and syncs the hash to the cloud. The user types their on-prem password at cloud sign-in; Azure computes the hash and matches it. No password exposure over the internet.

Pass-Through Authentication (PTA): User enters password at cloud sign-in; Azure forwards it to an on-prem agent, which validates it against Active Directory. The password never leaves the organization.

Federation (AD FS) — Analogy: a trusted notary who vouches for your identity — the cloud never sees your password; it only sees the notary's signed stamp. → Formal definition: AD FS (or a third-party STS) acts as a trust broker; the user is redirected on-prem for authentication, and AD FS issues a SAML token back to Entra ID. → Why it matters: Federation gives full control over authentication logic (custom MFA, hardware tokens, biometrics) but carries the highest infrastructure and maintenance cost.

Seamless SSO — Analogy: an automatic badge swipe — your domain-joined laptop silently proves your identity via Kerberos, so you never type a password for cloud apps. → Formal definition: an optional add-on for PHS or PTA that uses the AZUREADSSOACC computer account in on-prem AD to issue Kerberos tickets accepted by Entra ID. → Why it matters: eliminates password fatigue for corporate network users without requiring Federation infrastructure.

Group Synchronization: Entra Connect syncs on-prem security groups and distribution groups to the cloud. Writeback allows cloud-created groups to sync back on-prem (requires Enterprise licensing).

Managed Identities: Azure resources (VMs, App Services, Functions, Logic Apps, Data Factory, Synapse, Kubernetes) get an identity from Entra ID without managing secrets. System-assigned = 1:1 with resource. User-assigned = many resources share one identity.

Service Principals: The Azure object backing an app registration or managed identity. Used for resource-to-resource authentication.

B2B (Business-to-Business): Invite external users (partners, vendors, contractors) as guests into your Entra ID tenant. They retain their home org identity. Useful for collaboration, not customer identity.

B2C (Business-to-Customer): A separate Entra ID B2C tenant for customer-facing apps. Customers sign up, reset passwords, and authenticate without an internal user account. Supports external identity providers (Google, Facebook, SAML, OpenID Connect).

Deep Dive

1. Synchronization Methods: PHS vs. PTA vs. Federation

Password Hash Sync (PHS)

  • How it works: Every two minutes, Entra Connect hashes on-prem passwords (one-way, salted) and syncs them to the cloud. User signs into Azure with the same password.
  • Pros: Low latency (no on-prem call required), simple to deploy, built-in disaster recovery (if on-prem AD is down, users can still sign in with cached credentials).
  • Cons: Requires trust in Microsoft's hashing; not suitable if compliance mandates passwords never leave the office.
  • Use when: You want simplicity, resilience, and cloud-first migration; you have reliable Entra Connect health monitoring.
  • Infrastructure: One Entra Connect server (or two in staging for HA), no extra agents required.
bicep
resource entraConnect 'Microsoft.ADHybridHealthService/services@2014-01-01' = { name: 'entra-connect-phs' properties: { serviceType: 'AzureActiveDirectoryConnect' health: true } }

[!TIP] Always enable Entra Connect Health monitoring alongside PHS — it surfaces sync failures, hash-mismatch events, and agent-health issues before users notice broken sign-ins.

Pass-Through Authentication (PTA)

  • How it works: User enters password at cloud sign-in; Entra ID forwards the credential to an on-prem agent (running on a server or VM), which validates it against Active Directory. Password is never stored in the cloud.
  • Pros: Passwords never sync or hash; passwords never stored in cloud; tight on-prem control (if you disable on-prem account, cloud access stops immediately); works with Seamless SSO.
  • Cons: Extra on-prem infrastructure (agents); latency (on-prem call per sign-in); if agents fail, sign-in fails (need HA).
  • Use when: Compliance requires passwords to never leave on-premises; you have reliable on-prem network connectivity and agent infrastructure.
  • Infrastructure: 2–3 PTA agents on-prem (HA), each running the PTA agent service; ensure redundancy.
powershell
# Register a PTA agent on an on-prem server Install-Module -Name AzureADConnect Register-AzureADConnectAuthenticationAgent ` -TenantId "contoso.onmicrosoft.com" ` -AgentGroupName "PTA-HA-Group"

[!WARNING] If all PTA agents go offline simultaneously, users cannot sign in — there is no cached-credential fallback as with PHS. Deploy agents in at least 2 separate data centres or availability zones.

Federation (AD FS / Custom STS)

  • How it works: User is redirected to an on-prem identity provider (AD FS, Okta, Ping Identity, etc.). The provider authenticates the user and issues a SAML 2.0 token; the user's browser posts the token to Entra ID, which trusts it and issues a cloud token.
  • Pros: Full control over authentication (custom MFA, device checks, hardware tokens); integrates with third-party identity solutions; existing AD FS investment.
  • Cons: Highest complexity; requires PKI, token signing certs, and federation metadata; single point of failure if on-prem STS is down; latency (user is redirected on-prem).
  • Use when: You need custom authentication logic; you have an existing AD FS or third-party STS; you require on-prem MFA device integration.
  • Infrastructure: AD FS farm (2+ servers for HA), WAP (Web Application Proxy) for external access, certificate management.

Decision Matrix

CriterionPHSPTAFederation
Password storage in cloudHashed onlyNoNo
On-prem infrastructureMinimalModerate (agents)High (AD FS farm)
Sign-in latencyLowMediumMedium–High
Custom auth logicNoNoYes
Disaster recoveryExcellent (cached)Good (multiple agents)Fair (depends on on-prem)
CostLowestMediumHigh

2. Seamless SSO and Group Synchronization

Seamless SSO

Enables silent, password-less sign-in when the user is on a domain-joined computer and within the corporate network.

  • How: Browser sends an HTTP request with Kerberos ticket (created via Windows NTLM) to a special Azure endpoint. No password prompt.
  • Works with: PHS and PTA (not Federation; Federation already handles on-prem auth).
  • Setup: Entra Connect wizard, relies on the AZUREADSSOACC computer account in on-prem AD.
  • Deployment: Requires group policy or registry to set Azure endpoints as trusted sites in Internet Explorer / Edge.
  • Benefit: Reduces password fatigue; users expect seamless experience on corporate networks.

Group Synchronization

  • Default: On-prem security groups and distribution groups sync to Entra ID (read-only unless writeback enabled).
  • Scoping: Use Entra Connect filtering to sync only certain OUs, groups, or user cohorts (e.g., sales only, not finance). Reduces Entra ID object count and blast radius if sync misconfigures.
  • Writeback: Cloud-created security groups can be synced back to on-prem AD (Enterprise P1 license required). Useful for role-based groups created in the cloud that need on-prem permissions.

[!NOTE] Dynamic membership groups created in Entra ID do not support writeback to on-premises AD. If your access model relies on dynamic groups, keep those assignments cloud-only and use static security groups for any on-prem permission grants.

  • Group types: Mail-enabled security groups, distribution groups. Dynamic groups in the cloud do not sync back.
  • Use case: Grant on-prem file share access based on cloud role membership, or cloud-based conditional access policies based on on-prem group membership.

3. B2B vs. B2C Identities

B2B (Business-to-Business) — Guest Users in Your Tenant

  • Scenario: Partner company employees, external consultants, vendors need access to your Azure resources, Microsoft 365, or apps.
  • Mechanism: Invite them as "Guest" users into your Entra ID. They authenticate to their home organization; you trust their home org's authentication.
  • Identity: Guest user has a UPN like partner@partner.onmicrosoft.com#EXT#@yourtenant.onmicrosoft.onmicrosoft.com; their directory lives in their home tenant.
  • Licensing: Guest users don't consume your Entra ID licenses; they consume licenses in their home org. You pay only if they access resources you own (Microsoft 365, Azure apps).
  • Conditional access: You can enforce conditional access policies on guests (require MFA, device compliance).
  • B2B Cross-Tenant Access: Advanced feature — configure mutual trust with partner tenants to simplify guest invitation and resource sharing.
json
{ "crossTenantAccessPolicy": { "partner": { "tenantId": "partner-tenant-guid", "b2bCollaborationInbound": { "usersAndGroups": { "accessType": "allowed" }, "applications": { "accessType": "allowed", "targets": [{ "appId": "app-guid" }] } }, "trustSettings": { "isCompliantDeviceAccepted": true, "isMfaAccepted": true } } } }
  • Use case: Allowing partners to collaborate on a project SharePoint site, granting a contractor access to a Web App, or giving vendors read access to a Power BI dashboard.

B2C (Business-to-Customer) — Customer Identity

  • Scenario: Your app serves external customers. You need a way for customers to sign up, sign in, reset passwords, and authenticate without having them as internal users.
  • Tenant: Separate Entra ID B2C tenant (different domain, different management).
  • User journeys: Customizable flows—sign-up, sign-in, password reset, profile edit. You control UI, validation, and post-auth redirects.
  • Identity providers: Customers can authenticate via their own credentials (email/password), or via external providers (Google, Facebook, Twitter, SAML, OpenID Connect).
  • Custom policies: SAML and OpenID Connect support. Build complex auth flows (e.g., "sign in with LinkedIn, then MFA, then consent screen").

[!IMPORTANT] A B2C tenant is a separate Entra ID tenant — it does not share users, groups, or policies with your primary (workforce) tenant. Treat it as an independent boundary for licensing, compliance, and data residency.

  • Licensing: B2C billing is per-authentication (monthly active users). Significantly cheaper than internal licensing for large customer bases.
  • Use case: E-commerce site with millions of customers, SaaS platform with free tier sign-ups, mobile app with social login.

B2B vs. B2C Comparison Table

AspectB2BB2C
User typePartner employees, contractorsCustomers, end-users
Identity ownershipHome org (federated)B2C tenant
License costHome org paysPay-per-MAU in B2C
CustomizationLimited (Entra ID constraints)Extensive (custom policies)
External IdPLimited (Entra ID federation)Full (Google, Facebook, SAML, OIDC)
MFA enforcementConditional accessCustom policies
Multi-tenancyGuest in one tenantSingle B2C tenant

4. Managed Identities: System-Assigned vs. User-Assigned

Why Managed Identities?

When an Azure resource (VM, App Service, Function, etc.) needs to authenticate to another resource (Key Vault, storage account, SQL database), it needs credentials. Managed identities provide credentials automatically without you managing secrets.

System-Assigned Managed Identity

  • Lifecycle: Created when the resource is created; deleted when the resource is deleted. 1:1 relationship.
  • Identity: A service principal in Entra ID with the same name/ID as the resource.
  • Scope: Can be accessed only by that one resource.
  • Use when: Resource accesses a single backend (e.g., App Service → Key Vault). Tight coupling is acceptable.
  • Cons: If you scale the resource (e.g., multiple App Service instances), they all share the same identity (no fine-grain audit trail per instance).

User-Assigned Managed Identity

  • Lifecycle: Created separately, can be assigned to multiple resources. Many-to-one relationship.
bash
# Create a user-assigned managed identity az identity create \ --name mi-app-tier \ --resource-group rg-identity \ --location eastus # Assign it to an App Service az webapp identity assign \ --name webapp-prod \ --resource-group rg-app \ --identities /subscriptions/{sub}/resourceGroups/rg-identity/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mi-app-tier
  • Identity: A standalone Entra ID service principal; you control its lifecycle.
  • Scope: Can be shared across resources in the same or different resource groups/subscriptions.
  • Use when: Multiple resources share the same backend identity, or you want to reuse an identity across deployments (Terraform, ARM templates).
  • Pros: Better for Infrastructure-as-Code (lifecycle matches app tier, not individual resource). Easier to rotate (one change, all consumers updated).

System-Assigned vs. User-Assigned Decision

FactorSystem-AssignedUser-Assigned
LifecycleTied to resourceIndependent
SharingSingle resourceMultiple resources
Audit trailBlended (instance-level)Clear (identity-level)
IaC friendlyNo (tied to resource)Yes (portable)
ComplexityLowMedium
CostFreeFree

When NOT to Use Managed Identities

  • Legacy app requires hardcoded connection strings or keys (use Key Vault reference or app settings instead).
  • Cross-tenant authentication (managed identity works within one tenant; use service principal with certificate).
  • Third-party service without Entra ID support (store secret in Key Vault, reference in app).

Worked Examples

Example 1: Easy — Single-Site Hybrid Sync

Scenario

A mid-size bank (500 users) has on-premises Active Directory and is piloting Azure cloud services. Users should sign into Azure apps with their current on-prem password. There are no special compliance mandates about password location. You need high availability and minimal on-prem infrastructure changes.

Solution

  1. Deploy Entra Connect on a server (or VM) in the on-prem data center, with a staging replica for HA.
  2. Choose PHS: Users sync to the cloud with password hashes. Setup is fast, and if on-prem AD goes down temporarily, users can still access cloud apps (cached login). Cost is minimal.
  3. Enable Seamless SSO for domain-joined workstations: users on corporate network won't be prompted for password when accessing cloud apps.
  4. Sync on-prem groups to govern access: Finance group in on-prem AD → Finance group in Entra ID → assign Azure RBAC roles or app access.
  5. Monitor: Set up Entra Connect Health monitoring; alert on sync failures.
kusto
SigninLogs | where AppDisplayName == "Microsoft Entra ID Connect" | where ResultType != "0" | summarize FailedSyncAttempts = count() by bin(TimeGenerated, 1h), UserPrincipalName | order by FailedSyncAttempts desc

Example 2: Medium — Partner Collaboration with B2B

Scenario

A software vendor partners with an outsourced QA firm (20 employees) who need access to your Azure DevOps project, a shared SharePoint site, and a test environment. Grant access without creating internal accounts; restrict to test only.

Solution

  1. Invite B2B guests: Use "Invite external user" in Entra ID. Guests authenticate to their home org (the QA firm's Entra ID or Microsoft account).
  2. Azure RBAC assignment: Assign the QA team a custom role (Contributor on test RG, Reader on DevOps) at the test resource group scope.
  3. Conditional access: Require MFA for guests accessing your environment (corporate policy). Guest must authenticate to their home org first; then Azure validates the token.
  4. Application integration: If you have a custom web app, add the guest's home org tenant as an external identity provider (federated); they can sign in with their corporate credentials.
  5. Monitor guest activity: Use Entra ID sign-in logs to audit guest access; revoke access by deleting the guest user (no cleanup in their home org).

Example 3: Hard — Multi-Tenant SaaS with Managed Identities and B2C

Scenario

You are building a SaaS analytics platform. Customers (enterprises) want to sign their end-users (employees) into your app using their own Entra ID (i.e., your app is a multi-tenant app in their Entra IDs). You also have a B2C tier for small business customers who sign up directly. Your backend consists of a Node.js App Service that calls a SQL database and reads/writes to a storage account. You need least-privilege access and audit trails per customer.

Solution

  1. Multi-tenant app registration: Register your app in your tenant with "Accounts in any Entra ID tenant" (multi-tenant). Customers add your app to their Entra ID; their users sign in via Entra ID.
  2. B2C for self-serve customers: Create a separate B2C tenant for direct sign-ups (email/password, Google login). B2C users are redirected to your multi-tenant app after signing in.
  3. User-assigned managed identity for the App Service: Create one identity scoped to serve the app tier. It has:
    • db_datareader, db_datawriter roles in SQL Database.
    • Storage Blob Data Contributor on the storage account.
    • Key Vault Secrets User on the key vault (to fetch database connection string, API keys).
  4. Token refresh logic: App Service code fetches a managed identity token at startup and caches it (with 1-minute refresh buffer). Call Key Vault and SQL via token.
  5. Per-customer data isolation: App code filters data by customer_id (from the signed-in user's token claim). SQL row-level security (RLS) enforces this at the database layer.
  6. Audit: Enable SQL audit and storage account logging. Managed identity sign-in attempts appear in Entra ID logs (track which tenant's users hit your app).

Visual Explanations

Diagram 1: Sync Methods at a Glance

Loading Diagram...
Figure 1 — Mermaid diagram

Diagram 2: B2B Guest Collaboration Flow

Loading Diagram...
Figure 2 — Mermaid diagram

Diagram 3: Managed Identity Lifecycle

Loading Diagram...
Figure 3 — Mermaid diagram

Diagram 4: Group Sync with Writeback

Loading Diagram...
Figure 4 — Mermaid diagram

Comparison Table: Identity Management Patterns

PatternUse CaseAuth MethodInfrastructure
PHS + Seamless SSOHybrid, cloud-first migrationPassword hash + Kerberos1 Entra Connect server
PTA + Seamless SSOCompliance: passwords on-premPass-through validation2–3 PTA agents
Federation (AD FS)Custom auth, existing STSSAML 2.0 tokenAD FS farm + WAP
Cloud-OnlyStartup, no on-prem ADEntra ID nativeEntra ID only
B2B Guest CollaborationPartner/vendor accessExternal Entra ID tenantConditional access policies
B2CCustomer identityEmail/password, social IdPB2C tenant + custom policies

Example TikZ Figure: Seamless SSO Handshake

Compiling TikZ diagram…
⏳
Running TeX engine…
This may take a few seconds
Figure 5 — TikZ diagram

Managed Identity Costs and Coverage

Resource TypeSystem-AssignedUser-AssignedNotes
App Service✓✓Both fully supported
VM✓✓Both fully supported
Function Apps✓✓Both fully supported
Container Instances✓✓Both fully supported
Logic Apps✓✓Both fully supported
Data Factory✓✓Both fully supported
Azure Synapse✓✓Both fully supported
AKS (Kubelet)✗✓User-assigned only; kubelet agents use it
Cost per identityFreeFreeNo per-identity charge

Common Mistakes

❌ Myth: "We chose PTA, so passwords are more secure than PHS." ✅ Reality: PTA validates passwords on-prem, but the password transmission from client to cloud is over HTTPS — equally secure for both PHS and PTA. The real benefit of PTA is policy control: if you disable a user on-prem, cloud access stops immediately. Choose PTA for enforcement latency, not transport security. Why it's tricky: The name "Pass-Through" implies the password travels somewhere unsafe, but HTTPS protects the wire in both models.

❌ Myth: "Seamless SSO requires Federation (AD FS)." ✅ Reality: Seamless SSO works with PHS and PTA only — it does not work with Federation, because Federation already handles on-prem authentication via SAML token redirect. If you want silent Kerberos-based sign-in for domain-joined users, pair PHS or PTA with Seamless SSO. Why it's tricky: Federation also provides "single sign-on," but through a completely different mechanism (SAML redirect, not Kerberos ticket). The exam uses both terms and expects you to distinguish them.

❌ Myth: "We should sync all on-prem groups to the cloud; Entra ID will auto-manage them." ✅ Reality: Over-syncing groups clutters Entra ID and creates orphaned permissions. Use scoping filters in Entra Connect to sync only groups relevant to cloud workloads (e.g., functional teams, not legacy distribution lists). Entra ID does not auto-delete or auto-disable stale synced groups — you must audit and prune regularly. Why it's tricky: The default Entra Connect configuration syncs all groups, which feels like the safe choice. In practice it creates noise that makes RBAC auditing harder.

❌ Myth: "B2B guests can just use a personal Microsoft account — it works fine." ✅ Reality: B2B guests can authenticate with personal MSAs, but you cannot enforce conditional access policies (MFA, device compliance) on personal accounts. Best practice: require guests to authenticate to their organizational Entra ID. For freelancers without one, invite as personal MSA but layer stricter conditional access (always require MFA, restrict to managed devices). Why it's tricky: The invitation flow accepts any email, and personal MSAs "just work" — the security gap only surfaces when you try to enforce compliance policies.

❌ Myth: "System-assigned managed identity is always simpler — just use it everywhere." ✅ Reality: System-assigned is simpler per resource, but at scale (10 App Services each needing Key Vault access = 10 separate RBAC role assignments). User-assigned lets you manage one identity for all 10, with a single set of permissions. For Infrastructure-as-Code and production workloads, user-assigned is often the better choice. Why it's tricky: Tutorials and quickstarts default to system-assigned because it is one toggle in the portal. The operational cost only becomes visible when you manage dozens of resources.

❌ Myth: "Our company uses B2B for partners, so we don't need B2C." ✅ Reality: B2B is for partner/vendor collaboration (business-to-business); B2C is for customer-facing apps (business-to-customer). A company often needs both: B2B for vendor portal access, B2C for customer app logins. Conflating them leads to poor licensing (customers consuming workforce Entra ID seats) and poor UX (customers seeing internal org branding). Why it's tricky: Both involve "external users," and the Azure portal surfaces them in similar-looking blades — but their tenants, licensing, and policy models are completely different.

Practice Exercises

Exercise 1: Sync Method Decision 🟢 Easy

Scenario: A healthcare provider has $5,000 users in on-prem AD. Compliance (HIPAA) mandates that passwords never leave the organization's network. The organization has reliable fiber connectivity and a 99.9% uptime SLA on-prem. Cloud apps should be available even if on-prem AD is temporarily down. Which sync method do you recommend, and why?

▶💡 Hint

Which sync methods keep passwords entirely on-premises? Consider the compliance requirement first, then availability.

▶✅ Solution

PTA + Seamless SSO. HIPAA rules out PHS (password hashes are sent to the cloud, even though hashed). Federation is overly complex here (no custom auth logic mentioned). PTA validates passwords on-prem and pairs with Seamless SSO for silent sign-in on domain-joined workstations. Deploy 2–3 PTA agents across separate sites for HA — if one AD server is down, users authenticate via another agent.

Exercise 2: B2B Guest Conditional Access 🟡 Medium

Scenario: Your company (Acme Corp) invites a guest user from PartnerCorp. The guest should access Acme's Azure SQL Database via Azure Data Studio, but only from Acme's corporate network or from a company-issued laptop with Intune compliance. What conditional access policy would you create?

▶💡 Hint

Consider the key decision factors for this scenario.

▶✅ Solution

Answer: Create a conditional access policy with the following conditions:

  • Users: Guest user (or "External users" if templated).
  • Apps: Target the SQL Database or the Azure portal (depending on access method).
  • Conditions:
    • Location: Allow only known corporate IP ranges or trusted locations.
    • Device: Require device compliance (Intune enrollment, or trusted device from partner org).
    • Sign-in risk: Low (do not allow risky sign-ins).
  • Grant: Require MFA and compliant device.
  • Session: Apply app-enforced restrictions (IP pinning, session timeout).

Why this works: Guests authenticate to their home org (PartnerCorp); Entra ID in Acme's tenant trusts that auth and layers on additional checks (MFA, device compliance, location). If the guest's device is not managed or they sign in from an unexpected location, access is blocked.

Exercise 3: Managed Identity for Multi-Database App 🟡 Medium

Scenario: You have an App Service that reads from a SQL Database (read-only query), writes to another SQL Database (operational data), and uploads files to a storage account. You want to minimize secrets in your app config. Should you use one system-assigned identity or create a user-assigned identity? Explain your choice.

▶💡 Hint

Consider the key decision factors for this scenario.

▶✅ Solution

Answer: Create a user-assigned managed identity (not system-assigned).

Rationale:

  • A single user-assigned identity can be assigned to the App Service and given granular RBAC roles: db_datareader on DB1, db_datawriter on DB2, Storage Blob Data Contributor on the storage account.
  • If you scale the App Service (add multiple instances), all instances share the same identity, making audit trails cleaner (one identity per app tier, not per instance).
  • User-assigned identity is portable: if you redeploy the app (IaC/Terraform), the identity persists independently, so you don't lose permissions.
  • Although system-assigned would also work functionally, user-assigned is operationally superior for multi-resource scenarios and Infrastructure-as-Code patterns.

Exercise 4: B2C Custom Policy Flow 🟡 Medium

Scenario: Your B2C tenant serves two types of customers: "Premium" (must authenticate via corporate SAML) and "Free" (can sign up with email/password). Design a user journey that branches on sign-up based on customer tier.

▶💡 Hint

Consider the key decision factors for this scenario.

▶✅ Solution

Answer: Create a B2C custom policy with the following elements:

  1. Sign-up form: Collect email, password, and a "Tier" selection (radio: Premium/Free).
  2. Conditional orchestration:
    • If Tier = "Premium": Redirect to SAML federated identity provider (customer's corporate SAML).
    • If Tier = "Free": Proceed with email/password validation and account creation.
  3. Token claim: Add a tier claim to the final token, so your app can enforce tier-based permissions.
  4. Redemption: Issue an ID token with the tier claim to your app; app uses it to apply tier-specific UI (e.g., premium features disabled for free tier).

Exercise 5: PHS to PTA Migration 🔴 Hard

Scenario: Your company used PHS for $2,000 users. A new compliance requirement mandates password hashes never leave on-prem. You must migrate to PTA without downtime. Outline the steps.

▶💡 Hint

Consider the key decision factors for this scenario.

▶✅ Solution

Answer: Deploy 2–3 PTA agents on separate on-prem servers; set up a staging Entra Connect instance. Enable PTA in the Entra Connect wizard while keeping PHS temporarily active. Pilot with 50 test users, then roll out department-by-department over 1–2 weeks. Monitor sign-in failures in Entra ID logs. Once all users are on PTA, disable PHS to remove password hashes from the cloud. Keep PHS as a documented rollback plan.

Exercise 6: Choosing System-Assigned vs. User-Assigned at Scale 🟡 Medium

Scenario: You manage a microservices platform with 20 stateless services deployed on AKS, App Services, and Functions. Each service accesses a central SQL Database, a shared Key Vault, and a logging storage account. You're using Terraform to manage all infra. Would you use system-assigned or user-assigned managed identities, and why?

▶💡 Hint

Consider the key decision factors for this scenario.

▶✅ Solution

Answer: Use user-assigned managed identities, one per service tier (not per instance/pod).

Rationale:

  • Scale: With 20 services, system-assigned would create 20 separate identities, each with its own RBAC bindings. User-assigned lets you group them logically: one identity per service tier (web, api, worker), reducing management overhead.
  • IaC lifecycle: Terraform manages the app deployment; if you redeploy a service, a new system-assigned identity is created, losing RBAC permissions. User-assigned identity persists across redeployments (you define it as a separate Terraform resource).
  • Audit trails: One identity per service tier is cleaner in audit logs; you see "api-service-identity accessed Key Vault" rather than "app-service-instance-12 accessed Key Vault."
  • Migration: If you later move a service from App Service to AKS, the identity is reusable (just re-assign it to the new workload).

Exercise 7: Disaster Recovery Scenario 🔴 Hard

Scenario: A company uses PTA for sign-in. During a data-center outage, all on-prem PTA agents become unreachable for 2 hours. Users cannot sign into Azure apps. What could have mitigated this, and what actions do you take during/after?

▶💡 Hint

Consider the key decision factors for this scenario.

▶✅ Solution

Answer:

Mitigation: Deploy PTA agents across 2+ data centres/availability zones, co-located with AD replicas. Enable PHS as a warm standby — if all agents fail, cached hashes provide sign-in continuity. During outage: Monitor Entra ID sign-in logs; alert on-prem IT; consider temporary PHS enablement. After: Verify agent health via Entra Connect Health; review locked-out accounts; implement PTA agent availability alerts.

Exercise 8: B2B + B2C Architecture 🔴 Hard

Scenario: Your organization runs both a B2B SaaS product (partners collaborate on projects) and a B2C product (customers subscribe and use features). Describe how you would architecture identities for this scenario to keep B2B and B2C separate and secure.

▶💡 Hint

Consider the key decision factors for this scenario.

▶✅ Solution

Answer:

Tenant A (Production): Internal users via Entra Connect (PHS + Seamless SSO); B2B guests from partner orgs. Tenant B (B2C): Separate B2C tenant for customer sign-ups (email/password, social IdPs). Backend: Single API deployment accepts tokens from both tenants; shared database uses row-level security (RLS) filtered by tenant_id. RBAC: Tenant A uses Azure RBAC for partners; Tenant B uses app-level tier logic for customers. Why separate: Isolation prevents cross-tier access, simplifies compliance (B2C may have different data residency), and avoids customers consuming workforce Entra ID licenses.

Summary & Concept Map

Key Takeaways

  1. Sync method choice (PHS, PTA, Federation) depends on latency tolerance, on-prem infrastructure capacity, and compliance policy. PHS is simplest; PTA is most secure; Federation is most flexible but complex.

  2. Seamless SSO layers atop PHS or PTA to give domain-joined users silent sign-in (no password prompt). Requires Kerberos delegation and special setup (AZUREADSSOACC account).

  3. Group synchronization bridges on-prem and cloud: on-prem groups sync to cloud (read-only by default); cloud-created groups sync back with writeback (Enterprise license required). Use scoping to avoid sync bloat.

  4. B2B is for partner/vendor collaboration (guests in your tenant, home org identity). B2C is for customers (separate tenant, customer-managed identity). Both serve different use cases and licensing models.

  5. System-assigned managed identities are 1:1 with a resource; user-assigned are reusable. User-assigned is better for scale and IaC; system-assigned is simpler per-resource. Choose based on lifecycle alignment.

  6. Avoid managed identities if your resource doesn't support them (use service principals instead) or if you need cross-tenant auth (use certificates, not tokens).

Concept Map

Loading Diagram...
Figure 6 — Mermaid diagram

More Study Notes (137)

Quick Note — Recommend a Solution for Authorizing Access to Azure Resources

AZ-305 › Unit 1 › Design authentication and authorization solutions › Recommend a solution for authorizing access to Azure resources

745 words

Recommend a Solution for Authorizing Access to Azure Resources — Lesson

AZ-305 › Unit 1 › Design authentication and authorization solutions › Recommend a solution for authorizing access to Azure resources

2,561 words

Quick Note — Recommend a Solution to Manage Secrets, Certificates, and Keys

AZ-305 › Unit 1 › Design authentication and authorization solutions › Recommend a solution to manage secrets, certificates, and keys

872 words

Recommend a Solution to Manage Secrets, Certificates, and Keys — Lesson

AZ-305 › Unit 1 › Design authentication and authorization solutions › Recommend a solution to manage secrets, certificates, and keys

5,324 words

Cram Sheet — Design governance

AZ-305 › Unit 1 › Design governance

621 words

Design Governance — Topic Lesson

AZ-305 › Unit 1 › Design governance

5,083 words

Design Studio — Design governance

AZ-305 › Unit 1 › Design governance

732 words

Quick Note — Recommend a Solution for Identity Governance

AZ-305 › Unit 1 › Design governance › Recommend a solution for identity governance

817 words

Recommend a Solution for Identity Governance — Lesson

AZ-305 › Unit 1 › Design governance › Recommend a solution for identity governance

5,997 words

Quick Note — Recommend a Solution for Managing Compliance

AZ-305 › Unit 1 › Design governance › Recommend a solution for managing compliance

792 words

Recommend a Solution for Managing Compliance — Lesson

AZ-305 › Unit 1 › Design governance › Recommend a solution for managing compliance

4,603 words

Quick Note — Recommend a Structure for Management Groups, Subscriptions, Resource Groups, and Tagging

AZ-305 › Unit 1 › Design governance › Recommend a structure for management groups, subscriptions, and resource groups, and a strategy for resource tagging

803 words

Recommend a Structure for Management Groups, Subscriptions, Resource Groups, and Tagging — Lesson

AZ-305 › Unit 1 › Design governance › Recommend a structure for management groups, subscriptions, and resource groups, and a strategy for resource tagging

5,250 words

Identity, Governance & Monitoring — A Unit 1 Survey

AZ-305 › Unit 1: Design identity, governance, and monitoring solutions

5,935 words

Quick Note — Recommend a Solution for Authorizing Access to On-Premises Resources

AZ-305 › Unit 1: Design identity, governance, and monitoring solutions › Design authentication and authorization solutions › Recommend a solution for authorizing access to on-premises resources

844 words

Recommend a Solution for Authorizing Access to On-Premises Resources — Lesson

AZ-305 › Unit 1: Design identity, governance, and monitoring solutions › Design authentication and authorization solutions › Recommend a solution for authorizing access to on-premises resources

4,810 words

Cram Sheet — Design solutions for logging and monitoring

AZ-305 › Unit 1 › Design solutions for logging and monitoring

642 words

Design Solutions for Logging and Monitoring — Lesson

AZ-305 › Unit 1 › Design solutions for logging and monitoring

4,125 words

Design Studio — Design solutions for logging and monitoring

AZ-305 › Unit 1 › Design solutions for logging and monitoring

744 words

Quick Note — Recommend a Logging Solution

AZ-305 › Unit 1 › Design solutions for logging and monitoring › Recommend a logging solution

740 words

Recommend a Logging Solution — Lesson

AZ-305 › Unit 1 › Design solutions for logging and monitoring › Recommend a logging solution

4,823 words

Quick Note — Recommend a Monitoring Solution

AZ-305 › Unit 1 › Design solutions for logging and monitoring › Recommend a monitoring solution

737 words

Recommend a Monitoring Solution — Lesson

AZ-305 › Unit 1 › Design solutions for logging and monitoring › Recommend a monitoring solution

5,950 words

Quick Note — Recommend a Solution for Routing Logs

AZ-305 › Unit 1 › Design solutions for logging and monitoring › Recommend a solution for routing logs

823 words

Recommend a Solution for Routing Logs — Lesson

AZ-305 › Unit 1 › Design solutions for logging and monitoring › Recommend a solution for routing logs

5,480 words

Unit 2 Capstone — Design data storage solutions

AZ-305 › Unit 2

667 words

Unit 2 Roadmap — Design data storage solutions

AZ-305 › Unit 2

620 words

Cram Sheet — Design data integration

AZ-305 › Unit 2 › Design data integration

621 words

Design Data Integration — Lesson

AZ-305 › Unit 2 › Design data integration

5,256 words

Design Studio — Design data integration

AZ-305 › Unit 2 › Design data integration

730 words

Quick Note — Recommend a Solution for Data Analysis

AZ-305 › Unit 2 › Design data integration › Recommend a solution for data analysis

761 words

Recommend a Solution for Data Analysis — Lesson

AZ-305 › Unit 2 › Design data integration › Recommend a solution for data analysis

5,154 words

Quick Note — Recommend a Solution for Data Integration

AZ-305 › Unit 2 › Design data integration › Recommend a solution for data integration

785 words

Recommend a Solution for Data Integration — Lesson

AZ-305 › Unit 2 › Design data integration › Recommend a solution for data integration

2,797 words

Quick Note — Recommend a Database Service Tier and Compute Tier

AZ-305 › Unit 2 › Design data storage for relational data › Recommend a database service tier and compute tier

798 words

Recommend a Database Service Tier and Compute Tier — Lesson

AZ-305 › Unit 2 › Design data storage for relational data › Recommend a database service tier and compute tier

4,464 words

Quick Note — Recommend a Solution for Database Scalability

AZ-305 › Unit 2 › Design data storage for relational data › Recommend a solution for database scalability

801 words

Recommend a Solution for Database Scalability — Lesson

AZ-305 › Unit 2 › Design data storage for relational data › Recommend a solution for database scalability

5,400 words

Quick Note — Recommend a Solution for Data Protection (Relational)

AZ-305 › Unit 2 › Design data storage for relational data › Recommend a solution for data protection

895 words

Recommend a Solution for Data Protection (Relational) — Lesson

AZ-305 › Unit 2 › Design data storage for relational data › Recommend a solution for data protection

5,357 words

Quick Note — Recommend a Solution for Storing Relational Data

AZ-305 › Unit 2 › Design data storage for relational data › Recommend a solution for storing relational data

887 words

Recommend a Solution for Storing Relational Data — Lesson

AZ-305 › Unit 2 › Design data storage for relational data › Recommend a solution for storing relational data

4,822 words

Design Data Storage for Semi-Structured and Unstructured Data — Topic Lesson

AZ-305 › Unit 2 › Design data storage for semi-structured and unstructured data

5,711 words

Quick Note — Recommend a Data Solution for Protection and Durability

AZ-305 › Unit 2 › Design data storage for semi-structured and unstructured data › Recommend a data solution for protection and durability

783 words

Recommend a Data Solution for Protection and Durability — Lesson

AZ-305 › Unit 2 › Design data storage for semi-structured and unstructured data › Recommend a data solution for protection and durability

5,928 words

Quick Note — Recommend a Data Storage Solution to Balance Features, Performance, and Costs

AZ-305 › Unit 2 › Design data storage for semi-structured and unstructured data › Recommend a data storage solution to balance features, performance, and costs

896 words

Recommend a Data Storage Solution to Balance Features, Performance, and Costs — Lesson

AZ-305 › Unit 2 › Design data storage for semi-structured and unstructured data › Recommend a data storage solution to balance features, performance, and costs

4,174 words

Quick Note — Recommend a Solution for Storing Semi-Structured Data

AZ-305 › Unit 2 › Design data storage for semi-structured and unstructured data › Recommend a solution for storing semi-structured data

856 words

Recommend a Solution for Storing Semi-Structured Data — Lesson

AZ-305 › Unit 2 › Design data storage for semi-structured and unstructured data › Recommend a solution for storing semi-structured data

4,299 words

Quick Note — Recommend a Solution for Storing Unstructured Data

AZ-305 › Unit 2 › Design data storage for semi-structured and unstructured data › Recommend a solution for storing unstructured data

873 words

Recommend a Solution for Storing Unstructured Data — Lesson

AZ-305 › Unit 2 › Design data storage for semi-structured and unstructured data › Recommend a solution for storing unstructured data

5,300 words

Design Data Storage Solutions — Unit Lesson

AZ-305 › Unit 2: Design data storage solutions

6,794 words

Cram Sheet — Design data storage solutions for relational data

AZ-305 › Unit 2 › Design data storage solutions for relational data

640 words

Design Data Storage Solutions for Relational Data — Lesson

AZ-305 › Unit 2 › Design data storage solutions for relational data

6,662 words

Design Studio — Design data storage solutions for relational data

AZ-305 › Unit 2 › Design data storage solutions for relational data

740 words

Cram Sheet — Design semi-structured and unstructured data storage

AZ-305 › Unit 2 › Design semi-structured and unstructured data storage

650 words

Design Studio — Design semi-structured and unstructured data storage

AZ-305 › Unit 2 › Design semi-structured and unstructured data storage

750 words

Unit 3 Capstone — Design business continuity solutions

AZ-305 › Unit 3

635 words

Unit 3 Roadmap — Design business continuity solutions

AZ-305 › Unit 3

567 words

Design Business Continuity Solutions — Lesson

AZ-305 › Unit 3: Design business continuity solutions

6,210 words

Quick Note — Recommend a High Availability Solution for Compute

AZ-305 › Unit 3: Design business continuity solutions › Design for high availability › Recommend a high availability solution for compute

872 words

Recommend a High Availability Solution for Compute — Lesson

AZ-305 › Unit 3: Design business continuity solutions › Design for high availability › Recommend a high availability solution for compute

5,134 words

Quick Note — Recommend a High Availability Solution for Relational Data

AZ-305 › Unit 3: Design business continuity solutions › Design for high availability › Recommend a high availability solution for relational data

881 words

Recommend a High Availability Solution for Relational Data — Lesson

AZ-305 › Unit 3: Design business continuity solutions › Design for high availability › Recommend a high availability solution for relational data

4,919 words

Quick Note — Recommend a High Availability Solution for Semi-Structured and Unstructured Data

AZ-305 › Unit 3: Design business continuity solutions › Design for high availability › Recommend a high availability solution for semi-structured and unstructured data

891 words

Recommend a High Availability Solution for Semi-Structured and Unstructured Data — Lesson

AZ-305 › Unit 3: Design business continuity solutions › Design for high availability › Recommend a high availability solution for semi-structured and unstructured data

4,791 words

Quick Note — Recommend a Recovery Solution for Azure and Hybrid Workloads

AZ-305 › Unit 3 › Design business continuity solutions › Recommend a recovery solution for Azure and hybrid workloads that meets recovery objectives

828 words

Recommend a Recovery Solution for Azure and Hybrid Workloads — Lesson

AZ-305 › Unit 3 › Design business continuity solutions › Recommend a recovery solution for Azure and hybrid workloads that meets recovery objectives

2,764 words

Cram Sheet — Design for high availability

AZ-305 › Unit 3 › Design for high availability

622 words

Design for High Availability — Lesson

AZ-305 › Unit 3 › Design for high availability

6,185 words

Design Studio — Design for high availability

AZ-305 › Unit 3 › Design for high availability

731 words

Cram Sheet — Design solutions for backup and disaster recovery

AZ-305 › Unit 3 › Design solutions for backup and disaster recovery

655 words

Design Solutions for Backup and Disaster Recovery — Lesson

AZ-305 › Unit 3 › Design solutions for backup and disaster recovery

4,963 words

Design Studio — Design solutions for backup and disaster recovery

AZ-305 › Unit 3 › Design solutions for backup and disaster recovery

745 words

Quick Note — Recommend a Backup and Recovery Solution for Compute

AZ-305 › Unit 3 › Design solutions for backup and disaster recovery › Recommend a backup and recovery solution for compute

944 words

Recommend a Backup and Recovery Solution for Compute — Lesson

AZ-305 › Unit 3 › Design solutions for backup and disaster recovery › Recommend a backup and recovery solution for compute

4,157 words

Quick Note — Recommend a Backup and Recovery Solution for Databases

AZ-305 › Unit 3 › Design solutions for backup and disaster recovery › Recommend a backup and recovery solution for databases

902 words

Recommend a Backup and Recovery Solution for Databases — Lesson

AZ-305 › Unit 3 › Design solutions for backup and disaster recovery › Recommend a backup and recovery solution for databases

5,200 words

Quick Note — Recommend a Backup and Recovery Solution for Unstructured Data

AZ-305 › Unit 3 › Design solutions for backup and disaster recovery › Recommend a backup and recovery solution for unstructured data

854 words

Recommend a Backup and Recovery Solution for Unstructured Data — Lesson

AZ-305 › Unit 3 › Design solutions for backup and disaster recovery › Recommend a backup and recovery solution for unstructured data

5,572 words

Unit 4 Capstone — Design infrastructure solutions

AZ-305 › Unit 4

691 words

Unit 4 Roadmap — Design infrastructure solutions

AZ-305 › Unit 4

672 words

Cram Sheet — Design an application architecture

AZ-305 › Unit 4 › Design an application architecture

610 words

Design an Application Architecture — Lesson

AZ-305 › Unit 4 › Design an application architecture

5,585 words

Design Studio — Design an application architecture

AZ-305 › Unit 4 › Design an application architecture

723 words

Cram Sheet — Design compute solutions

AZ-305 › Unit 4 › Design compute solutions

640 words

Design Compute Solutions — Lesson

AZ-305 › Unit 4 › Design compute solutions

5,004 words

Design Studio — Design compute solutions

AZ-305 › Unit 4 › Design compute solutions

742 words

Design Infrastructure Solutions — A Unit 4 Survey

AZ-305 › Unit 4: Design infrastructure solutions

7,200 words

Quick Note — Recommend a Caching Solution for Applications

AZ-305 › Unit 4: Design infrastructure solutions › Design an application architecture › Recommend a caching solution for applications

1,088 words

Recommend a Caching Solution for Applications — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design an application architecture › Recommend a caching solution for applications

2,936 words

Quick Note — Recommend a Messaging Architecture

AZ-305 › Unit 4: Design infrastructure solutions › Design an application architecture › Recommend a messaging architecture

800 words

Recommend a Messaging Architecture — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design an application architecture › Recommend a messaging architecture

4,496 words

Quick Note — Recommend an Application Configuration Management Solution

AZ-305 › Unit 4: Design infrastructure solutions › Design an application architecture › Recommend an application configuration management solution

840 words

Recommend an Application Configuration Management Solution — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design an application architecture › Recommend an application configuration management solution

4,001 words

Quick Note — Recommend an Automated Deployment Solution for Applications

AZ-305 › Unit 4: Design infrastructure solutions › Design an application architecture › Recommend an automated deployment solution for applications

822 words

Recommend an Automated Deployment Solution for Applications — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design an application architecture › Recommend an automated deployment solution for applications

4,000 words

Quick Note — Recommend an Event-Driven Architecture

AZ-305 › Unit 4: Design infrastructure solutions › Design an application architecture › Recommend an event-driven architecture

864 words

Recommend an Event-Driven Architecture — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design an application architecture › Recommend an event-driven architecture

4,458 words

Quick Note — Recommend a Solution for API Integration

AZ-305 › Unit 4: Design infrastructure solutions › Design an application architecture › Recommend a solution for API integration

852 words

Recommend a Solution for API Integration — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design an application architecture › Recommend a solution for API integration

4,079 words

Quick Note — Recommend a Compute Solution for Batch Processing

AZ-305 › Unit 4: Design infrastructure solutions › Design compute solutions › Recommend a compute solution for batch processing

882 words

Recommend a Compute Solution for Batch Processing — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design compute solutions › Recommend a compute solution for batch processing

4,478 words

Quick Note — Recommend a Container-Based Solution

AZ-305 › Unit 4: Design infrastructure solutions › Design compute solutions › Recommend a container-based solution

846 words

Recommend a Container-Based Solution — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design compute solutions › Recommend a container-based solution

4,585 words

Quick Note — Recommend a Serverless-Based Solution

AZ-305 › Unit 4: Design infrastructure solutions › Design compute solutions › Recommend a serverless-based solution

882 words

Recommend a Serverless-Based Solution — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design compute solutions › Recommend a serverless-based solution

4,408 words

Quick Note — Recommend a Virtual Machine-Based Solution

AZ-305 › Unit 4: Design infrastructure solutions › Design compute solutions › Recommend a virtual machine-based solution

888 words

Recommend a Virtual Machine-Based Solution — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design compute solutions › Recommend a virtual machine-based solution

4,682 words

Quick Note — Specify Components of a Compute Solution Based on Workload Requirements

AZ-305 › Unit 4: Design infrastructure solutions › Design compute solutions › Specify components of a compute solution based on workload requirements

850 words

Specify Components of a Compute Solution Based on Workload Requirements — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design compute solutions › Specify components of a compute solution based on workload requirements

4,672 words

Evaluate a Migration Solution that Leverages the Microsoft Cloud Adoption Framework — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design migrations › Evaluate a migration solution that leverages the Microsoft Cloud Adoption Framework for Azure

4,031 words

Quick Note — Evaluate a Migration Solution that Leverages the Microsoft Cloud Adoption Framework

AZ-305 › Unit 4: Design infrastructure solutions › Design migrations › Evaluate a migration solution that leverages the Microsoft Cloud Adoption Framework for Azure

865 words

Evaluate On-Premises Servers, Data, and Applications for Migration — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design migrations › Evaluate on-premises servers, data, and applications for migration

4,001 words

Quick Note — Evaluate On-Premises Servers, Data, and Applications for Migration

AZ-305 › Unit 4: Design infrastructure solutions › Design migrations › Evaluate on-premises servers, data, and applications for migration

818 words

Quick Note — Recommend a Solution for Migrating Databases

AZ-305 › Unit 4: Design infrastructure solutions › Design migrations › Recommend a solution for migrating databases

900 words

Recommend a Solution for Migrating Databases — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design migrations › Recommend a solution for migrating databases

4,000 words

Quick Note — Recommend a Solution for Migrating Unstructured Data

AZ-305 › Unit 4: Design infrastructure solutions › Design migrations › Recommend a solution for migrating unstructured data

901 words

Recommend a Solution for Migrating Unstructured Data — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design migrations › Recommend a solution for migrating unstructured data

4,000 words

Quick Note — Recommend a Solution for Migrating Workloads to IaaS and PaaS

AZ-305 › Unit 4: Design infrastructure solutions › Design migrations › Recommend a solution for migrating workloads to infrastructure as a service (IaaS) and platform as a service (PaaS)

883 words

Recommend a Solution for Migrating Workloads to IaaS and PaaS — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design migrations › Recommend a solution for migrating workloads to infrastructure as a service (IaaS) and platform as a service (PaaS)

4,001 words

Quick Note — Recommend a Connectivity Solution that Connects Azure Resources to On-Premises Networks

AZ-305 › Unit 4: Design infrastructure solutions › Design network solutions › Recommend a connectivity solution that connects Azure resources to on-premises networks

897 words

Recommend a Connectivity Solution that Connects Azure Resources to On-Premises Networks — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design network solutions › Recommend a connectivity solution that connects Azure resources to on-premises networks

4,001 words

Quick Note — Recommend a Connectivity Solution that Connects Azure Resources to the Internet

AZ-305 › Unit 4: Design infrastructure solutions › Design network solutions › Recommend a connectivity solution that connects Azure resources to the internet

840 words

Recommend a Connectivity Solution that Connects Azure Resources to the Internet — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design network solutions › Recommend a connectivity solution that connects Azure resources to the internet

4,001 words

Quick Note — Recommend a Load-Balancing and Routing Solution

AZ-305 › Unit 4: Design infrastructure solutions › Design network solutions › Recommend a load-balancing and routing solution

834 words

Recommend a Load-Balancing and Routing Solution — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design network solutions › Recommend a load-balancing and routing solution

4,002 words

Quick Note — Recommend a Solution to Optimize Network Performance

AZ-305 › Unit 4: Design infrastructure solutions › Design network solutions › Recommend a solution to optimize network performance

928 words

Recommend a Solution to Optimize Network Performance — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design network solutions › Recommend a solution to optimize network performance

4,000 words

Quick Note — Recommend a Solution to Optimize Network Security

AZ-305 › Unit 4: Design infrastructure solutions › Design network solutions › Recommend a solution to optimize network security

851 words

Recommend a Solution to Optimize Network Security — Lesson

AZ-305 › Unit 4: Design infrastructure solutions › Design network solutions › Recommend a solution to optimize network security

4,000 words

Cram Sheet — Design migrations

AZ-305 › Unit 4 › Design migrations

632 words

Design Migrations — Topic Lesson

AZ-305 › Unit 4 › Design migrations

6,511 words

Design Studio — Design migrations

AZ-305 › Unit 4 › Design migrations

735 words

Cram Sheet — Design network solutions

AZ-305 › Unit 4 › Design network solutions

635 words

Design Network Solutions — Lesson

AZ-305 › Unit 4 › Design network solutions

7,200 words

Design Studio — Design network solutions

AZ-305 › Unit 4 › Design network solutions

738 words

Ready to practice? Jump straight in — no sign-up needed.

Take practice tests, review flashcards, and read study notes right now.

Take a Practice Test

Designing Microsoft Azure Infrastructure Solutions (AZ-305) Practice Questions

Try 15 sample questions from a bank of 570. Answers and detailed explanations included.

Q1medium

Which platform best fits the HTTP container that should scale to zero with minimal orchestration management?

A.

Azure Container Apps

B.

A permanently running AKS cluster required by policy

C.

SQL Server on Azure VM

D.

Azure Dedicated Host without containers

Show answer & explanation

Correct Answer: A

Container Apps provides a managed application environment, revisions, ingress, and event/HTTP-driven scaling without exposing full Kubernetes administration.

Answer: A

Q2medium

Your legal team requires that all blobs uploaded to a specific container cannot be modified or deleted for 365 days to meet SEC Rule 17a-4 compliance. You plan to enforce this using infrastructure as code. Which Bicep resource configuration correctly implements a time-based immutable storage policy on the container?

A.

Deploy a Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies resource with immutabilityPeriodSinceCreationInDays set to 365.

B.

Deploy a Microsoft.Storage/storageAccounts resource with properties.encryption.requireInfrastructureEncryption set to true.

C.

Deploy a Microsoft.Authorization/locks resource with properties.level set to ReadOnly on the storage account.

D.

Deploy a Microsoft.Storage/storageAccounts/blobServices/containers resource with properties.defaultEncryptionScope set to a customer-managed key.

Show answer & explanation

Correct Answer: A

Immutable storage policies enforce a write-once, read-many (WORM) state on blob data. A time-based retention policy prevents modification and deletion for a specified number of days. The correct Bicep resource type is Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies.

Here is a sample Bicep deployment:

bicep
resource immutabilityPolicy 'Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies@2023-01-01' = { name: '${storageAccount.name}/default/${container.name}/default' properties: { immutabilityPeriodSinceCreationInDays: 365 allowProtectedAppendWrites: true } }

Setting immutabilityPeriodSinceCreationInDays to 365 ensures blobs cannot be modified or deleted for one year after creation.

Why each distractor is wrong:

  • B — requireInfrastructureEncryption enables double encryption at the infrastructure level. It has nothing to do with immutability or data retention.
  • C — A ReadOnly Resource Manager lock prevents changes to the storage account configuration but does not prevent blob-level operations such as delete or overwrite.
  • D — defaultEncryptionScope controls which encryption key is used for new blobs. It provides confidentiality, not immutability.

This relates to the Well-Architected Security pillar and the Reliability pillar — immutable policies protect business-critical data from accidental or malicious deletion.

Answer: A

Q3easy

Your organization needs to deploy a SQL Server database on an Azure VM. The workload requires a high memory-to-CPU ratio for in-memory analytics. You want to query Azure Resource Graph to identify which VM family is currently deployed in your subscription. Which VM family type should you recommend, and which KQL query would list VMs of that family?

A.

Memory Optimized — Esv5, Edsv5, Mv2 series

B.

General Purpose — Dsv5, Dadsv5 series

C.

Compute Optimized — Fsv2 series

D.

Storage Optimized — Lsv2 series

Show answer & explanation

Correct Answer: A

The Memory Optimized VM family (E-series, M-series) provides a high memory-to-CPU ratio, making it the recommended choice for relational database servers, medium to large caches, and in-memory analytics workloads. The book explicitly recommends the Edsv5 series as best for SQL Servers on VMs.

You can verify deployed VMs using an Azure Resource Graph query:

kusto
resources | where type == "microsoft.compute/virtualmachines" | extend vmSize = tostring(properties.hardwareProfile.vmSize) | where vmSize startswith "Standard_E" or vmSize startswith "Standard_M" | project name, resourceGroup, vmSize, location | order by name asc

Why the other options are wrong:

OptionFamilyBest forWhy wrong here
BGeneral Purpose (D-series)Balanced CPU-to-memory; dev/test, small-to-medium databasesDoes not provide the high memory ratio needed for in-memory analytics
CCompute Optimized (F-series)High CPU-to-memory; batch processing, web servers, gamingOpposite of what is needed — low memory ratio
DStorage Optimized (L-series)High disk throughput and I/O; big data, data warehousingOptimizes for storage I/O, not memory capacity

This aligns with the Performance Efficiency pillar of the Well-Architected Framework — right-sizing VMs to match workload characteristics.

Answer: A

Q4medium

You are deploying Azure SQL Database long-term retention using infrastructure as code. Review the Bicep snippet below and identify which resource type and property format correctly configures a 10-year backup retention policy.

bicep
resource ltrPolicy 'Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies@2021-11-01' = { name: 'default' parent: sqlDatabase properties: { weeklyRetention: 'P4W' monthlyRetention: 'P12M' yearlyRetention: 'P10Y' weekOfYear: 1 } }
A.

The resource type should be Microsoft.RecoveryServices/vaults/backupPolicies with retentionDays: 3650.

B.

The resource type should be Microsoft.Sql/servers/databases/backupRetentionPolicies with retentionYears: 10.

C.

The snippet is correct: Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies with ISO 8601 duration strings (e.g., 'P10Y').

D.

The snippet is incorrect because weekOfYear is not a valid property; LTR only accepts weeklyRetention and monthlyRetention.

Show answer & explanation

Correct Answer: C

Azure SQL Database LTR is configured using the resource type Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies. Retention periods use ISO 8601 duration format: 'P4W' (4 weeks), 'P12M' (12 months), 'P10Y' (10 years). The weekOfYear property specifies which week's full backup to retain for the yearly policy.

  • A — Microsoft.RecoveryServices/vaults/backupPolicies is for Azure Backup vault policies (VM backups, SQL on VM), not for Azure SQL Database PaaS LTR.
  • B — backupRetentionPolicies is not a valid Azure SQL resource type for LTR. The short-term retention (PITR) uses backupShortTermRetentionPolicies.
  • D — weekOfYear is a valid and required property that specifies which week of the year to retain a yearly backup copy.

This tests the Operational Excellence pillar — deploying backup policies through IaC ensures consistent, auditable configuration.

Answer: C

Q5hard

A startup stores IoT device telemetry as key–value pairs. The current system uses Azure Table Storage in a General-Purpose V2 account. The application reads telemetry using both the partition key (deviceId) and the row key (timestamp). The team is evaluating a migration to Azure Cosmos DB for Table. Evaluate the comparison table below and determine which statement correctly describes a trade-off the team should consider.

CriterionAzure Table StorageCosmos DB for Table
Latency (reads/writes)Variable; no SLA on latency<10< 10<10 ms reads, <15< 15<15 ms writes at p99
Throughput modelShared across storage accountDedicated RU/s per table
Secondary indexesNone (partition key + row key only)Automatic secondary indexes on all properties
Global distributionGRS (read-only failover)Multi-region writes with turnkey geo-replication
Max entity size1 MB2 MB
Cost modelPay per GB stored + per transactionPay per provisioned RU/s + per GB stored
SLA (availability)99.9% (RA-GRS: 99.99% read)99.99% (single region); 99.999% (multi-region)
A.

Migrating to Cosmos DB for Table will always reduce total cost of ownership because Cosmos DB’s automatic indexing eliminates the need for manual index management

B.

The startup should migrate to Cosmos DB for Table if they need guaranteed low-latency reads and multi-region writes, but should expect higher costs for low-throughput workloads compared to Azure Table Storage

C.

Azure Table Storage already provides automatic secondary indexes on all properties, so the migration would offer no querying advantage

D.

Cosmos DB for Table uses a pay-per-GB model identical to Azure Table Storage, so cost is not a differentiating factor

Show answer & explanation

Correct Answer: B

This question requires synthesizing multiple trade-off dimensions between Azure Table Storage and Cosmos DB for Table.

Why B is correct: The table above shows Cosmos DB offers SLA-backed latency (<10< 10<10 ms reads) and multi-region writes—features Azure Table Storage lacks. However, Cosmos DB uses a provisioned-throughput (RU/s) pricing model. For workloads with low and sporadic traffic, the cost of provisioning even the minimum RU/s (400 RU/s in standard mode) exceeds the per-transaction cost of Table Storage. The book (Ch. 2, p. 87) notes Azure Table Storage is a cost-effective solution for simple key-value lookups.

Why A is wrong: While automatic indexing is a Cosmos DB advantage, it does not eliminate costs—in fact, indexing consumes additional RU/s and storage. For low-throughput workloads, Cosmos DB is typically more expensive, not less.

Why C is wrong: Azure Table Storage does not provide secondary indexes. Queries that do not include both partition key and row key result in full table scans, as stated in the book (Ch. 2, p. 92–93).

Why D is wrong: The pricing models are fundamentally different. Table Storage charges per transaction and per GB. Cosmos DB charges per provisioned RU/s and per GB. These models favor different workload profiles.

This is a Cost Optimization pillar trade-off.

Answer: B

Q6medium

You are writing an Infrastructure-as-Code template to deploy two database VMs with accelerated networking enabled to reduce latency. Which Bicep property enables accelerated networking on the NIC?

bicep
// Deploy two VMs with accelerated networking enabled param location string = 'eastus' param vmCount int = 2 resource networkInterface 'Microsoft.Network/networkInterfaces@2021-02-01' = [ for i in range(0, vmCount): { name: 'nic-db-${i + 1}' location: location properties: { ipConfigurations: [ { name: 'ipconfig1' properties: { subnet: { id: vnet.properties.subnets[0].id } } } ] enableAcceleratedNetworking: true enableIPForwarding: false } } ] resource vm 'Microsoft.Compute/virtualMachines@2021-03-01' = [ for i in range(0, vmCount): { name: 'vm-db-${i + 1}' location: location properties: { networkProfile: { networkInterfaces: [ { id: networkInterface[i].id } ] } osProfile: { computerName: 'db-${i + 1}' adminUsername: 'azureuser' } hardwareProfile: { vmSize: 'Standard_D4s_v3' } } } ]
A.

enableIPForwarding: true in the NetworkInterface resource

B.

acceleratedNetworking: true in the networkProfile of the VM resource

C.

sriovEnabled: true in the VM's compute section

D.

enableAcceleratedNetworking: true in the NetworkInterface properties

Show answer & explanation

Correct Answer: D

The correct Bicep property is enableAcceleratedNetworking: true in the NetworkInterface properties. This enables SR-IOV and bypasses the Hyper-V virtual switch. enableIPForwarding controls IP routing, not acceleration. acceleratedNetworking is not a valid VM-level property (it must be set on the NIC). sriovEnabled is not an Azure Bicep property. Ch. 4, §4.4, p. 154–155. Answer: D

Q7medium

You are designing an event-driven image-processing pipeline. When a user uploads an image to Azure Blob Storage, the system must automatically resize the image using Azure Functions and store the result. Refer to the architecture diagram and component table below. Which option correctly describes the event flow?

A.

Blob upload emits a BlobCreated event to Event Grid → Event Grid triggers the Azure Function → Function writes the resized image back to Storage

B.

Azure Function polls Blob Storage on a 30-second timer → detects new blobs → processes and writes resized image

C.

Event Grid continuously reads blobs from Storage → passes raw bytes to Functions → Functions return results to Event Grid

D.

Azure Logic Apps monitors the container → calls Functions via HTTP → Functions upload results to a separate subscription

Show answer & explanation

Correct Answer: A

The correct event-driven pattern uses Azure Event Grid as the reactive event router. When a blob is created in Azure Blob Storage, the storage account publishes a Microsoft.Storage.BlobCreated event to Event Grid. Event Grid then invokes the subscribed Azure Function, which processes the image and writes the output back to storage.

ComponentRole in Pipeline
Azure Blob StorageSource: receives user uploads, publishes events
Azure Event GridRouter: delivers BlobCreated events to subscribers
Azure FunctionsProcessor: resizes image on trigger
Azure Blob Storage (output)Sink: stores processed images

Option B uses polling (timer trigger), which is inefficient and adds latency. Option C incorrectly describes Event Grid reading blob content (it only routes event metadata). Option D introduces unnecessary Logic Apps orchestration for a simple trigger-process pattern. This aligns with the Well-Architected Performance Efficiency pillar — prefer event-driven over polling.

Answer: A

Q8hard

A financial services company must ensure that every VM created in their Azure environment automatically has the Azure Monitor Agent extension installed. The compliance team also wants to be notified of any VMs that were deployed before the policy was assigned and are currently missing the extension. The solution must automatically remediate both new and existing noncompliant VMs. Which combination of policy effect and operational action best meets these requirements?

A.

Deny effect to block VMs without the extension, plus a manual script to install the extension on existing VMs

B.

Audit effect to flag noncompliant VMs, plus an Azure Automation runbook triggered by policy compliance events

C.

DeployIfNotExists effect to auto-deploy the extension on new VMs, plus a remediation task to fix existing noncompliant VMs

D.

Modify effect to add the extension property to the VM resource during creation, plus a remediation task to fix existing VMs

Show answer & explanation

Correct Answer: C

The requirement has two parts: (1) automatically install the extension on new VMs, and (2) remediate existing VMs that are missing the extension. The table below evaluates each option:

OptionAuto-installs on new VMs?Remediates existing VMs?Blocks legitimate deployments?Requires managed identity?
A — Deny + scriptNo (blocks the VM entirely)Via manual script onlyYesNo
B — Audit + runbookNo (only flags)Possible but indirectNoNo (for policy)
C — DeployIfNotExists + remediation taskYes (deploys extension post-creation)Yes (via remediation task)NoYes
D — Modify + remediation taskNo (Modify changes properties, not deploy extensions)NoNoYes

Option C is correct. DeployIfNotExists evaluates after a VM is created or updated: if the related extension resource does not exist, it executes an ARM template to deploy it. For VMs that predate the policy assignment, the triggered evaluation cycle marks them as noncompliant without carrying out remediation — a separate remediation task must be created from the Remediation page in Azure Policy to fix these existing resources.

Option A would block VM creation entirely if the extension isn't specified in the deployment template — this is overly restrictive and does not meet the "auto-remediation" requirement.

Option B flags noncompliant VMs but does not natively remediate them; the runbook approach adds operational complexity.

Option D uses Modify, which changes properties or tags on the resource itself during creation. Installing a VM extension is a separate resource deployment, not a property modification — Modify is not designed for this.

The DeployIfNotExists policy assignment requires a managed identity (system-assigned or user-assigned) with appropriate permissions to carry out the extension deployment.

This aligns with the Operational Excellence and Security pillars — automating agent deployment reduces configuration drift.

Answer: C

Q9medium

What prevents traffic from continuing to a failed API instance?

A.

A load-balancer health probe aligned with application readiness

B.

A resource tag

C.

A longer DNS TTL with no probe

D.

A storage immutability policy

Show answer & explanation

Correct Answer: A

Health probes remove unhealthy backends from rotation. Probe semantics must reflect whether the instance can serve real requests rather than merely whether a port is open.

Answer: A

Q10medium

A policy must add a diagnostic setting to existing and new supported resources. Which effect pattern is designed for that remediation behavior?

A.

Audit only

B.

DeployIfNotExists with a managed identity and remediation task

C.

Disabled

D.

A tag value with no policy assignment

Show answer & explanation

Correct Answer: B

DeployIfNotExists evaluates the related resource and can deploy it through the assignment's managed identity. Existing resources require a remediation task; Audit only reports noncompliance.

Answer: B

Q11hard

Where should partner authentication validation, quotas, transformations, and a developer-facing API contract be centralized?

A.

Azure API Management

B.

A NAT Gateway

C.

A VM disk snapshot

D.

Azure Files cloud tiering

Show answer & explanation

Correct Answer: A

API Management centralizes gateway policies, products/subscriptions, documentation, transformations, and observability around backend APIs.

Answer: A

Q12medium

You are writing a Bicep template to deploy an Azure Cosmos DB for NoSQL account with Session consistency as the default. Review the Bicep snippet below:

bicep
resource cosmosAccount 'Microsoft.DocumentDB/databaseAccounts@2023-04-15' = { name: cosmosAccountName location: location properties: { databaseAccountOfferType: 'Standard' consistencyPolicy: { defaultConsistencyLevel: '______' } locations: [ { locationName: location failoverPriority: 0 isZoneRedundant: true } ] } }

Which value should replace the blank to set Session consistency?

A.

Session

B.

session

C.

ConsistentPrefix

D.

BoundedStaleness

Show answer & explanation

Correct Answer: A

In Azure Resource Manager (and Bicep), the defaultConsistencyLevel property of Microsoft.DocumentDB/databaseAccounts accepts a PascalCase enum value. The five valid values are: Strong, BoundedStaleness, Session, ConsistentPrefix, and Eventual.

Why A is correct: Session (PascalCase) is the correct enum value for session consistency. Session consistency is the most widely used level and the default when creating a Cosmos DB account through the Azure Portal. It guarantees monotonic reads, monotonic writes, and read-your-own-writes within a single client session.

Why B is wrong: ARM/Bicep enum values are case-sensitive. The value session (lowercase) will cause a validation error during deployment.

Why C is wrong: ConsistentPrefix is a valid consistency level but does not match the requirement. It guarantees that reads never see out-of-order writes, but it does not guarantee read-your-own-writes.

Why D is wrong: BoundedStaleness is a valid consistency level that provides a staleness window guarantee, but it is not Session consistency and incurs higher RU costs for cross-region reads.

This aligns with the Operational Excellence pillar: deploying infrastructure as code with correct configuration.

Answer: A

Q13hard

Which plan assignment best matches the stated access patterns?

A.

Analytics for incident tables; a lower-cost supported plan and long-term retention for verbose audit tables

B.

Auxiliary for alert-driving incident tables because every Azure Monitor feature is identical across plans

C.

Analytics for every table with identical retention regardless of use

D.

Delete verbose audit data after 30 days despite the seven-year requirement

Show answer & explanation

Correct Answer: A

Analytics supports full interactive querying and alert scenarios. Lower-cost table plans and long-term retention suit low-touch verbose data, subject to their query and feature boundaries.

Answer: A

Q14medium

Which service best distributes lightweight OrderStatusChanged events to independent subscribers with filtering and push delivery?

A.

Azure Event Grid

B.

A shared file lock

C.

Azure Bastion

D.

A Recovery Services vault

Show answer & explanation

Correct Answer: A

Event Grid is designed for discrete reactive events, filtered subscriptions, and push delivery to supported handlers.

Answer: A

Q15easy

A database administrator needs to determine whether an Azure SQL Database on the Standard DTU tier is approaching its 3,0003{,}0003,000-DTU cap during peak hours. Which KQL query, executed against metrics forwarded to a Log Analytics workspace, returns the average DTU consumption percentage binned by hour?

A.
kusto
AzureMetrics | where ResourceProvider == "MICROSOFT.SQL" | where MetricName == "dtu_consumption_percent" | summarize avg(Average) by bin(TimeGenerated, 1h) | order by TimeGenerated desc
B.
kusto
AzureDiagnostics | where Category == "DTUMetrics" | summarize avg(dtu_used_d) by bin(TimeGenerated, 1h)
C.
kusto
Heartbeat | where Category == "SQLDatabase" | summarize count() by bin(TimeGenerated, 1h)
D.
kusto
Perf | where ObjectName == "Azure SQL Database" | where CounterName == "DTU Percentage" | summarize avg(CounterValue) by bin(TimeGenerated, 1h)
Show answer & explanation

Correct Answer: A

Platform metrics forwarded from Azure SQL Database to a Log Analytics workspace land in the AzureMetrics table. The metric dtu_consumption_percent tracks the percentage of allocated DTUs being consumed. Summarizing the Average column by 1-hour bins reveals peak-hour utilisation.

  • B — AzureDiagnostics stores resource logs (query text, errors, waits), not platform metrics. There is no DTUMetrics category.
  • C — Heartbeat tracks agent connectivity for VMs and has nothing to do with SQL Database metrics.
  • D — The Perf table collects OS-level performance counters from the Azure Monitor Agent on VMs; Azure SQL Database (a PaaS service) does not write to Perf.

Knowing where platform metrics land in the workspace is essential for right-sizing a DTU tier — a core Cost Optimization pillar practice.

Answer: A

These are 15 of 570 questions available. Take a practice test →

Designing Microsoft Azure Infrastructure Solutions (AZ-305) Flashcards

928 flashcards for spaced-repetition study. Showing 30 sample cards below.

AZ-305 LO — Evaluate a Migration Solution Using the CAF(12 cards shown)

Question

Cloud Adoption Framework (CAF)

Answer

Microsoft's opinionated playbook for cloud adoption — documentation, tools, templates, and best practices organized around the seven phases of an enterprise cloud journey. Vendor-neutral concepts but tooling targeted at Azure. Pairs with the Well-Architected Framework (WAF) — CAF is what to adopt; WAF is how to build well once adopted.

Question

The seven CAF phases

Answer

  1. Strategy — business justification, outcomes.
  2. Plan — actionable plan to drive outcomes.
  3. Ready — set up the landing zone.
  4. Adopt — split into Migrate (move existing workloads) and Innovate (build cloud-native).
  5. Govern — governance disciplines (cost, security, identity, deployment).
  6. Manage — operations baseline.
  7. Organize — team and role structure for cloud.

Question

Landing Zone

Answer

A pre-configured, opinionated Azure environment ready to receive workloads. Includes governance baselines (Policy, RBAC, network topology, identity, logging, security). CAF publishes enterprise-scale landing zone reference architecture with Bicep / Terraform templates. The 'foundation' you deploy before the first workload — saves teams from re-inventing tenant-level setup.

Question

The 6 R's of cloud migration

Answer

  1. Rehost (lift-and-shift) — move VM as-is; fastest path.
  2. Refactor — minor code changes to fit PaaS (e.g., move to App Service).
  3. Rearchitect — restructure into microservices / serverless.
  4. Rebuild — discard and rewrite cloud-native.
  5. Replace — retire app, adopt SaaS (Salesforce, ServiceNow).
  6. Retire — kill the workload entirely.
    The 6 R's are a per-application decision — most portfolios mix all six.

Question

CAF Migrate methodology iteration

Answer

An iterative process — one workload or small group per iteration — composed of three phases:

  1. Assess — discover, evaluate, classify the workload; pick a target architecture and R.
  2. Migrate — execute the chosen R (rehost via Azure Migrate, refactor to PaaS, etc.).
  3. Process improvement — retrospective; tune the playbook; repeat with the next workload.
    Iteration beats big-bang migration because risk and learning compound at small batch size.

Question

CAF Govern disciplines

Answer

Five disciplines published in CAF that a landing zone enforces:

  1. Cost management — budgets, tags, alerts.
  2. Security baseline — Defender for Cloud + MCSB policies.
  3. Identity baseline — Entra ID, RBAC, PIM, Conditional Access.
  4. Resource consistency — Policy, Blueprints / Deployment Stacks, tagging.
  5. Deployment acceleration — IaC, deployment pipelines, drift detection.
    Apply at the Root MG or per-business-unit MG so every subscription inherits.

Question

How does CAF help you choose the right R for a given on-prem app?

Answer

Assess the app's portfolio attributes:
• Is the app stagnant / out of support? → Retire.
• Is there a SaaS equivalent that meets requirements? → Replace.
• Critical, recently updated, well-architected? → Rehost quickly to free up the datacenter; modernize later.
• Bottlenecked by infra but code is fine? → Refactor to PaaS.
• Monolith with high modernization ROI? → Rearchitect.
• Strategic differentiator? → Rebuild cloud-native.
CAF tools (Strategic Migration Assessment) score each app to suggest an R.

Question

Why does CAF push enterprise-scale landing zones instead of letting each team set up their own subscription?

Answer

An enterprise-scale landing zone enforces:
• Consistent MG / subscription hierarchy so Policy and RBAC inherit predictably.
• Network topology (hub-spoke, secured Azure Firewall) before workloads land.
• Identity + logging plumbed once for all tenants.
• Bicep / Terraform reference architectures so deployment is reproducible.
Letting each team set up ad-hoc means inconsistent governance and rework when central security / compliance arrives. Landing zones front-load that work.

Question

Enterprise plans to migrate 500 workloads over 2 years. Apply CAF to sequence the program.

Answer

  1. Strategy — leadership defines business outcomes and the cost-of-staying baseline.
  2. Plan — portfolio-classify the 500 workloads with the 6 R's; group into waves of 10–20.
  3. Ready — deploy the enterprise-scale landing zone (MG hierarchy, Policy initiatives, hub VNet, identity, logging).
  4. Adopt iteratively — each wave: discover with Azure Migrate, choose an R per app, migrate, run smoke tests, retrospect.
  5. Govern + Manage + Secure — same policies / Defender baseline / Sentinel apply to every wave.
  6. Organize — Cloud Center of Excellence team coordinates platform; business units own workloads.

Question

How do CAF, WAF, and the Azure Architecture Center divide responsibilities?

Answer

CAF (Cloud Adoption Framework) — what to do and when: the phased program from strategy to operations. Process-oriented.
WAF (Well-Architected Framework) — how to design a workload well, judged on five pillars (Reliability, Security, Cost Optimization, Operational Excellence, Performance Efficiency). Per-workload technical guidance.
Azure Architecture Center — reference architectures and pattern library you compose into a workload.
CAF guides the program; WAF reviews each workload; AAC supplies the building blocks.

Question

Why does CAF treat migration as iterative rather than 'plan everything, then migrate'?

Answer

Three benefits:
• Risk reduction — small batches isolate failures; one bad migration doesn't tank the program.
• Compounding learning — each iteration's retrospective improves the playbook for the next.
• Faster business value — workloads land in cloud sooner, freeing on-prem datacentre + delivering cost saving / agility per wave.
Big-bang migration concentrates risk and delays value until late in the program — when problems hit, they hit at the worst time. CAF's Assess → Migrate → Process improvement loop trades 'optimal sequencing on paper' for incremental, validated progress.

Question

Walk through CAF tooling at each phase — what software helps with what.

Answer

Strategy / Plan — Strategic Migration Assessment & Readiness Tool (SMART), Cloud Adoption Plan generator.
Ready — Bicep / Terraform enterprise-scale landing-zone templates; Azure Policy built-in initiatives.
Migrate (Adopt) — Azure Migrate (discovery + assessment + replication), Database Migration Service, App Service Migration Assistant.
Govern — Azure Policy, Cost Management + Billing, Defender for Cloud, Microsoft Purview.
Manage — Azure Monitor, Azure Automation, Update Manager.
Organize — Cloud Center of Excellence (CCoE) playbooks; no specific tool, primarily process.

AZ-305 LO — Evaluate On-Premises Servers, Data, and Applications for Migration(12 cards shown)

Question

Azure Migrate Hub

Answer

A central portal for discovering, assessing, and migrating workloads to Azure. Hosts multiple tools under one project: Server Assessment, Server Migration, Database Migration, Web App migration assistant, Data Box for offline data shipping. First-party and free; partner tools (Carbonite, Movere) also surface here.

Question

Azure Migrate appliance (Collector)

Answer

A lightweight Windows VM you deploy in the on-prem (or another cloud) network that performs agentless discovery: connects to vCenter / Hyper-V Manager / physical servers and inventories their config, performance, and disk metadata. Sends the data outbound (HTTPS) to Azure Migrate. The data plane behind 'click Discover' in the Migrate Hub portal.

Question

Agentless vs Agent-based discovery

Answer

Agentless dependency analysis (recommended for new projects) — the Azure Migrate appliance gathers TCP connection and process data without installing guest agents. The enhanced experience automatically analyzes eligible discovered servers and supports application grouping.
Agent-based dependency analysis (existing classic projects only) — Azure Monitor Agent plus the Dependency agent sends data to Log Analytics. New servers cannot be onboarded to this classic path, which is scheduled for deprecation. Prefer agentless analysis for new migration-wave planning.

Question

Azure Migrate Assessment

Answer

A scoped analysis run that produces a readiness verdict + right-sized recommendation + cost estimate per server. Inputs: assessment criteria (Azure VM target, AVS, App Service), pricing tier (PAYG / 3-year RI), AHB toggle, sizing mode (Performance-based or As-on-prem). Output: per-server PDF / CSV with recommended VM size, monthly cost, and any migration blockers (unsupported OS / boot type).

Question

Performance-based vs As-on-prem sizing

Answer

Two sizing modes in Azure Migrate Assessment:
Performance-based — recommendation derived from actual CPU/RAM/disk utilisation sampled by the appliance over time. Usually right-sizes down versus on-prem allocation. Default for cost-optimising migrations.
As-on-prem — recommendation matches the on-prem allocation exactly (e.g., 8 vCPU + 32 GB → D8s_v5D8s\_v5D8s_v5). Safer for lift-and-shift when uncertainty is high; usually leaves money on the table.

Question

Dependency analysis (application dependency map)

Answer

Visualises which servers and processes communicate, so dependent systems can move in the same migration wave. Use the current agentless dependency analysis experience through the Azure Migrate appliance for new projects. It collects connection and process data without guest agents and supports project-wide and per-server views. The older agent-based path (Azure Monitor Agent + Dependency agent + Log Analytics) is limited to existing classic projects and cannot onboard new servers.

Question

What does an Azure Migrate readiness verdict mean — 'Ready', 'Ready with conditions', 'Not Ready'?

Answer

Per-server result from Assessment:
Ready — Azure-compatible OS, boot type, disk sizes, network — migrate as-is.
Ready with conditions — most properties fit but one needs change (OS upgrade, switch from BIOS to UEFI, >64> 64>64 TB disk too large for VM). Migrate after remediating the condition.
Not Ready — incompatible OS / disk / config that Azure can't host as a VM (legacy 32-bit Windows, >64> 64>64 vCPU non-standard configs). Re-platform or replace before migration.

Question

When does Azure Migrate's right-sizing save money — and when does it lie?

Answer

Saves money when on-prem provisioning was over-allocated for safety (most data centers run at 20–40% CPU). Performance-based sizing drops the recommendation to fit the actual peak.
Lies when the sample window is too short to capture month-end / quarter-end / batch peaks — recommendation is undersized and the migrated workload throttles. Best practice: sample for at least 30 days (Azure Migrate default), prefer 90 days for seasonal workloads, and add headroom on the recommendation for critical workloads.

Question

On-prem datacenter: 1,2001{,}2001,200 servers across VMware + Hyper-V + 50 physical, 300 SQL Server DBs. Sketch the assessment plan.

Answer

  1. Deploy Azure Migrate appliance in the VMware cluster (one VM) + a second appliance for Hyper-V; agent-based discovery for the physical hosts via Service Map agents.
  2. Let appliances sample 30+ days of perf data.
  3. Run a Server Assessment with performance-based sizing, AHB on (assuming SA), 3-year RI pricing.
  4. Run Dependency analysis (agent-based) to define migration waves of 10–20 co-dependent servers each.
  5. Run Database Assessment separately on the SQL Server estate via Data Migration Assistant (DMA) → identifies blockers for SQL DB / MI targets.
  6. Output: TCO comparison, ranked migration waves, per-DB target recommendation (DB / MI / VM).

Question

Walk through the Assess → Migrate → Optimize loop with Azure Migrate.

Answer

Assess — Discover (appliance) → Group → Assess (sizing + readiness) → Dependency map. Output: target architecture per workload.
Migrate — Server Migration replicates the selected VMs to Azure (agentless or agent-based replication), test failover into a test VNet, then cutover (turn off source, finalize replica). Database Migration Service does the same for SQL / Postgres / MySQL.
Optimize — After cutover, right-size the actual VM (Azure Advisor recommendations), apply Reserved Instances + AHB, enable Azure Backup + Defender, archive cold data.
Each iteration: one wave of workloads moves through all three phases before the next wave starts.

Question

How do discovery, dependency analysis, and readiness assessment layer to define a migration wave?

Answer

  1. Discovery answers 'what's in the estate?' — inventory of every server / DB / app.
  2. Dependency analysis answers 'what talks to what?' — clusters servers into co-dependent groups (a database, the app it serves, and the load balancer in front).
  3. Readiness assessment answers 'can each member of the cluster run on Azure?' — flags blockers per server.
    A migration wave = a co-dependent cluster (from step 2) where all members are Ready or Ready-with-conditions (from step 3). Migrating individual servers out of a cluster usually breaks traffic.

Question

Why is TCO comparison a critical output of assessment — even when the migration is already approved?

Answer

TCO comparison surfaces:
• The actual cloud cost of each migrated workload at chosen tiers (PAYG vs RI, with/without AHB) — drives the budget conversation.
• Hidden on-prem cost — datacenter floor space, cooling, hardware refresh cycles, undepreciated assets — which leadership often underestimates.
• Workload-by-workload payback period — flags which apps to migrate first for fastest ROI.
• Cost spikes — discovers apps whose Azure cost will be higher than on-prem (legacy CPU-light, RAM-heavy workloads); these need re-architecture before migration.

AZ-305 LO — Recommend a Backup and Recovery Solution for Compute(6 cards shown)

Question

Two-tier Azure VM backup: Snapshot tier + Vault tier

Answer

When you back up an Azure VM, Backup first takes a disk snapshot stored locally (instant, retained for 5 days by default — used for fast restores). Then it copies the snapshot to the Recovery Services Vault for longer retention. Snapshot-tier restores are fast (no copy); vault-tier restores fetch from the vault and take longer but cover the full retention window (up to 99 years).

Question

Instant Restore

Answer

A restore from the snapshot tier (not from the vault), available while the recovery point is still in its 5-day snapshot retention. Bypasses the vault download and gets a VM back in minutes instead of hours. Pick the right RP and restore disk → attach to a new VM. After the snapshot ages out, you can still restore — just slower, from the vault.

Question

Cross-Region Restore (CRR)

Answer

An optional Recovery Services Vault feature that lets you restore a VM, file, or disk in the paired region without waiting for Microsoft to declare a regional failover. Requires the vault to be GRS-redundant (not LRS or ZRS) and CRR explicitly enabled. Costs more (writes also go to the paired region). Use to meet compliance audits or run cross-region drills.

Question

File-level recovery from a VM backup

Answer

An option where Azure Backup mounts the VM's recovery point as iSCSI-attached drives on a recovery client machine (running a downloaded script). You browse the file system and copy out specific files / folders — no need to restore the entire VM disk just to get one config file back. Available for both Windows and Linux VMs, from any RSV recovery point.

Question

Enhanced Backup policy (Azure VM)

Answer

A newer backup policy type with two big features over Standard: multiple backups per day (up to 4 per day at 4/6/8/12 h intervals — Standard is 1/day max) and support for VMs with up to 32 managed disks (Standard caps at 16). Required for Trusted Launch VMs and confidential VMs. Pick when RPO < 24 h or the VM is multi-disk.

Question

Velero (AKS backup)

Answer

An open-source Kubernetes backup tool that backs up cluster objects (deployments, services, secrets) and persistent volumes to Azure Blob storage. The Microsoft-supported AKS backup feature in Backup Vault is built on Velero under the covers. Used for application-aware AKS DR across regions: backup → store in geo-redundant blob → restore into a fresh cluster in the paired region.

Showing 30 of 928 flashcards. Study all flashcards →

Related Study Resources

Explore other free certification prep and study materials on BrainyBee.

∫

Calculus 1 Mastery

AWS Certified Cloud Practitioner (CLF-C02)

854 questions · 163 notes

AWS Certified Solutions Architect - Associate (SAA-C03)

833 questions · 204 notes

AWS Certified Machine Learning Engineer - Associate (MLA-C01)

724 questions · 160 notes

AWS Certified Advanced Networking - Specialty (ANS-C01)

1156 questions · 231 notes

AWS Certified CloudOps Engineer - Associate (SOA-C03)

840 questions · 148 notes

Microsoft Azure Fundamentals (AZ-900)

680 questions · 96 notes

AWS Certified Security - Specialty (SCS-C03)

980 questions · 130 notes

Ready to ace Designing Microsoft Azure Infrastructure Solutions (AZ-305)?

Access all 570 practice questions, 20 timed mock exams, study notes, and flashcards — no sign-up required.

Start Studying — Free
Explore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.

Loading Diagram...
Flowchart, left to right. Requirements connects to Classify decision. C connects to Extract hard constraints. K connects to Compare viable options. O connects to Check whole-workload failure modes. W connects to State recommendation and trade-off.

Exam-map checkpoint

Card 1 of 4

Front of flashcard 1 of 4

What should you extract before comparing Azure services?

easy

Hard constraints and the actual architecture decision.

az-305retrieval

Exam-map checkpoint

Card 1

Front

What should you extract before comparing Azure services?

Back

Hard constraints and the actual architecture decision.

Card 2

Front

What makes a distractor attractive?

Back

It solves part of the scenario but violates or ignores one stated constraint.

Card 3

Front

Why check the whole workload?

Back

End-to-end availability and recovery are limited by dependencies, not the strongest component.

Card 4

Front

What belongs in an error log?

Back

The missed requirement, mistaken service boundary, distractor, and corrected decision rule.

Exam-map checkpoint

Card 1

Front

What should you extract before comparing Azure services?

Back

Hard constraints and the actual architecture decision.

Card 2

Front

What makes a distractor attractive?

Back

It solves part of the scenario but violates or ignores one stated constraint.

Card 3

Front

Why check the whole workload?

Back

End-to-end availability and recovery are limited by dependencies, not the strongest component.

Card 4

Front

What belongs in an error log?

Back

The missed requirement, mistaken service boundary, distractor, and corrected decision rule.

Loading Diagram...
Flowchart, left to right. Requirements connects to Architecture. A connects to Security and governance. A connects to Continuity and failure tests. A connects to Operations and cost. S connects to Pilot evidence. C connects to P. O connects to P. P connects to Production decision.
Loading Diagram...
Flowchart, left to right. Unit 1: Design identity, governance, and monitoring solutions connects to Design solutions for logging and monitoring. Unit 1: Design identity, governance, and monitoring solutions connects to Design authentication and authorization solutions. Unit 1: Design identity, governance, and monitoring solutions connects to Design governance. T1 connects to Unit checkpoint. C connects to Unit design studio.

Unit 1 roadmap checkpoint

Card 1 of 3

Front of flashcard 1 of 3

What is the design lens for design solutions for logging and monitoring?

easy

Design the signal path from collection to retention, query, alert, and automated response.

az-305retrieval

Unit 1 roadmap checkpoint

Card 1

Front

What is the design lens for design solutions for logging and monitoring?

Back

Design the signal path from collection to retention, query, alert, and automated response.

Card 2

Front

What is the design lens for design authentication and authorization solutions?

Back

Separate who signs in, what they may do, how privilege activates, and how workloads obtain tokens.

Card 3

Front

What is the design lens for design governance?

Back

Place boundaries, policy, cost ownership, compliance evidence, and privileged access at the right scope.

Unit 1 roadmap checkpoint

Card 1

Front

What is the design lens for design solutions for logging and monitoring?

Back

Design the signal path from collection to retention, query, alert, and automated response.

Card 2

Front

What is the design lens for design authentication and authorization solutions?

Back

Separate who signs in, what they may do, how privilege activates, and how workloads obtain tokens.

Card 3

Front

What is the design lens for design governance?

Back

Place boundaries, policy, cost ownership, compliance evidence, and privileged access at the right scope.

Loading Diagram...
Flowchart, left to right. Scenario connects to Requirements. R connects to Default service family. D connects to All hard constraints met?. F connects to Choose qualified alternative (No). F connects to Add operations and failure handling (Yes). A connects to O. O connects to Explain trade-off.

Design authentication and authorization solutions checkpoint

Card 1 of 4

Front of flashcard 1 of 4

For human sign-in, what is the default decision anchor?

easy

Microsoft Entra ID and Conditional Access: Evaluate identity, app, device, location, and risk.

az-305retrieval

Design authentication and authorization solutions checkpoint

Card 1

Front

For human sign-in, what is the default decision anchor?

Back

Microsoft Entra ID and Conditional Access: Evaluate identity, app, device, location, and risk.

Card 2

Front

For azure resource action, what is the default decision anchor?

Back

Azure RBAC: Principal plus role plus narrow durable scope.

Card 3

Front

For workload access, what is the default decision anchor?

Back

Managed identity: Avoid stored credentials; grant a data or control-plane role.

Card 4

Front

For privileged administration, what is the default decision anchor?

Back

PIM: Eligible, approved, time-bound activation with audit evidence.

Design authentication and authorization solutions checkpoint

Card 1

Front

For human sign-in, what is the default decision anchor?

Back

Microsoft Entra ID and Conditional Access: Evaluate identity, app, device, location, and risk.

Card 2

Front

For azure resource action, what is the default decision anchor?

Back

Azure RBAC: Principal plus role plus narrow durable scope.

Card 3

Front

For workload access, what is the default decision anchor?

Back

Managed identity: Avoid stored credentials; grant a data or control-plane role.

Card 4

Front

For privileged administration, what is the default decision anchor?

Back

PIM: Eligible, approved, time-bound activation with audit evidence.

Loading Diagram...
Flowchart, top to bottom. Who is authenticating? connects to Entra ID + MFA (Employees). Who is authenticating?"] -->|Employees| B["Entra ID + MFA connects to B2B Collaboration (External partners). Who is authenticating?"] -->|Employees| B["Entra ID + MFA connects to Entra ID B2C (Consumers). B connects to Conditional Access policies. C connects to Cross-tenant access settings. D connects to Custom user flows + social IdPs. E connects to Passwordless / FIDO2 / Authenticator.
Loading Diagram...
Flowchart, left to right. On-Prem AD connects to Sync Engine (Entra Connect). SYNC connects to Entra ID (PHS). SYNC connects to AGENT["PTA Agent"] CLOUD (PTA). SYNC connects to ADFS["AD FS Farm"] CLOUD (Federation).
Loading Diagram...
Flowchart, top to bottom. Security Principal connects to Role Assignment (assigned). RA connects to Role Definition. RA connects to Scope. RA connects to ABAC Condition (optional). SC connects to Management Group. MG connects to Subscription. SUB connects to Resource Group. RG connects to Resource.
Loading Diagram...
Flowchart, top to bottom. User attempts sign-in connects to Collect signals. SIG connects to Location / IP. SIG connects to Device state. SIG connects to Sign-in risk level. SIG connects to Target application. LOC connects to Policy engine evaluates. DEV connects to EVAL. RISK connects to EVAL. 4 more statements.
Loading Diagram...
Flowchart, top to bottom. Entra ID connects to Users & Service Principals (authenticates). Entra ID"] -->|authenticates| USER["Users & Service Principals connects to Conditional Access (enforces). Entra ID"] -->|authenticates| USER["Users & Service Principals connects to Entra Connect (syncs via). EC connects to On-Prem AD (PHS / PTA / Fed). Entra ID"] -->|authenticates| USER["Users & Service Principals connects to RBAC / ABAC (authorises via). RBAC connects to Azure Resources (scoped to). Entra ID"] -->|authenticates| USER["Users & Service Principals connects to Application Proxy (SSO via). APPPROXY connects to On-Prem Apps (tunnels to). 3 more statements.

Recommend an Authentication Solution — quick retrieval

Card 1 of 4

Front of flashcard 1 of 4

Microsoft Entra ID

easy

Microsoft's cloud identity-and-access platform (formerly Azure Active Directory). Issues identities, authenticates users, and authorizes access to cloud apps and Azure resources. The tenant is the directory boundary — one Microsoft 365 / Azure subscription is associated with exactly one Entra tenant.

entra-idtenant

Recommend an Authentication Solution — quick retrieval

Card 1

Front

Microsoft Entra ID

Back

Microsoft's cloud identity-and-access platform (formerly Azure Active Directory). Issues identities, authenticates users, and authorizes access to cloud apps and Azure resources. The tenant is the directory boundary — one Microsoft 365 / Azure subscription is associated with exactly one Entra tenant.

Card 2

Front

Multi-factor authentication (MFA)

Back

An authentication method that requires more than one challenge before granting access: something you have (phone, key, FIDO2), know (password, PIN), are (biometrics), or where you are (location). The most effective single control for reducing credential-theft risk in Entra ID.

Card 3

Front

Conditional Access policy

Back

An if/then rule in Entra ID — if signals match (user, app, device platform, location, client app, risk level), then grant or block, optionally requiring extra controls like MFA or a compliant device. The standard tool for enforcing MFA, blocking legacy auth, and acting on Identity Protection risk signals.

Card 4

Front

Password hash synchronization (PHS)

Back

An Entra Connect sign-in method that synchronizes a hash of the on-prem AD password hash into Entra ID. Users authenticate in the cloud — no on-prem dependency at sign-in. Simplest hybrid option; tolerates on-prem outages because Entra can validate the password by itself.

Recommend an Authentication Solution — quick retrieval

Card 1

Front

Microsoft Entra ID

Back

Microsoft's cloud identity-and-access platform (formerly Azure Active Directory). Issues identities, authenticates users, and authorizes access to cloud apps and Azure resources. The tenant is the directory boundary — one Microsoft 365 / Azure subscription is associated with exactly one Entra tenant.

Card 2

Front

Multi-factor authentication (MFA)

Back

An authentication method that requires more than one challenge before granting access: something you have (phone, key, FIDO2), know (password, PIN), are (biometrics), or where you are (location). The most effective single control for reducing credential-theft risk in Entra ID.

Card 3

Front

Conditional Access policy

Back

An if/then rule in Entra ID — if signals match (user, app, device platform, location, client app, risk level), then grant or block, optionally requiring extra controls like MFA or a compliant device. The standard tool for enforcing MFA, blocking legacy auth, and acting on Identity Protection risk signals.

Card 4

Front

Password hash synchronization (PHS)

Back

An Entra Connect sign-in method that synchronizes a hash of the on-prem AD password hash into Entra ID. Users authenticate in the cloud — no on-prem dependency at sign-in. Simplest hybrid option; tolerates on-prem outages because Entra can validate the password by itself.

Loading Diagram...
Flowchart, top to bottom. New app integration? connects to App supports OIDC? ("Yes"). New app integration?"] -->|"Yes"| B{"App supports OIDC? connects to Only SAML available? ("Legacy app"). B connects to Use OIDC ("Yes"). B connects to Use OAuth 2.0 + custom auth ("No, only OAuth"). C connects to Use SAML 2.0 ("Yes"). C connects to D ("No, supports both"). D connects to Register app in Entra ID. E connects to G. 1 more statements.
Loading Diagram...
Flowchart, left to right. User / App connects to Entra ID ("1. Credentials + MFA"). EntraID connects to EntraID ("2. Validate + evaluate CA policy"). EntraID connects to User / App"] -->|"1. Credentials + MFA"| EntraID["Entra ID ("3. Issue token"). User / App"] -->|"1. Credentials + MFA"| EntraID["Entra ID connects to Azure Resource / SaaS App ("4. Present token"). Resource connects to Resource ("5. Verify signature and claims"). Resource connects to User / App"] -->|"1. Credentials + MFA"| EntraID["Entra ID ("6. Grant access").
Loading Diagram...
Flowchart, top to bottom. User attempts sign-in connects to Trusted named location?. Location connects to Device compliant? ("Yes"). Location connects to Require MFA ("No"). Device connects to Sign-in or user risk? ("Yes"). Device connects to Require MFA + compliant device ("No"). Risk connects to Block or step-up auth ("High"). Risk connects to Allow access ("Normal"). MFA connects to MFA passed?. 5 more statements.
Loading Diagram...
Flowchart, top to bottom. Recommend an Authentication Solution connects to Identity Platform. Recommend an Authentication Solution"] --> B["Identity Platform connects to Security Layers. Recommend an Authentication Solution"] --> B["Identity Platform connects to Protocols. Recommend an Authentication Solution"] --> B["Identity Platform connects to Workload Identity. B connects to Entra ID. B connects to Microsoft Entra External ID for customers. B connects to External Identities. C connects to MFA Methods. 16 more statements.

Recommend an Identity Management Solution — quick retrieval

Card 1 of 4

Front of flashcard 1 of 4

Entra ID user — Member vs Guest

easy

Two userType values in an Entra tenant. Member — a regular employee identity owned by your tenant (default for synced or in-cloud-created users). Guest — an external person invited via B2B; they sign in with their home tenant's identity and appear in your directory but cannot be assigned licenses by default and have a more limited Directory view.

entra-iduserguest

Recommend an Identity Management Solution — quick retrieval

Card 1

Front

Entra ID user — Member vs Guest

Back

Two userType values in an Entra tenant. Member — a regular employee identity owned by your tenant (default for synced or in-cloud-created users). Guest — an external person invited via B2B; they sign in with their home tenant's identity and appear in your directory but cannot be assigned licenses by default and have a more limited Directory view.

Card 2

Front

Dynamic group

Back

An Entra ID group whose membership is determined by a rule over user (or device) attributes — e.g., user.department -eq "Sales". Members join and leave automatically as attributes change. Requires Entra ID P1 licensing. Use for license / app assignment that should track org changes without manual list maintenance.

Card 3

Front

Service principal

Back

The identity an application, service, or automation uses to authenticate to Entra-protected resources. Created automatically when you register an app in the portal. Two flavors: Application service principal (manual app registration, you manage the credential) and Managed identity (Azure-managed credential lifecycle, see separate card).

Card 4

Front

Managed identity

Back

A service principal whose credential is created, rotated, and deleted by Azure — your code never sees a secret. Available on most Azure compute (VM, VMSS, App Service, Functions, Logic Apps, AKS). Get a token from the IMDS endpoint, present it to any resource that does Entra auth (Storage, Key Vault, SQL, etc.).

Recommend an Identity Management Solution — quick retrieval

Card 1

Front

Entra ID user — Member vs Guest

Back

Two userType values in an Entra tenant. Member — a regular employee identity owned by your tenant (default for synced or in-cloud-created users). Guest — an external person invited via B2B; they sign in with their home tenant's identity and appear in your directory but cannot be assigned licenses by default and have a more limited Directory view.

Card 2

Front

Dynamic group

Back

An Entra ID group whose membership is determined by a rule over user (or device) attributes — e.g., user.department -eq "Sales". Members join and leave automatically as attributes change. Requires Entra ID P1 licensing. Use for license / app assignment that should track org changes without manual list maintenance.

Card 3

Front

Service principal

Back

The identity an application, service, or automation uses to authenticate to Entra-protected resources. Created automatically when you register an app in the portal. Two flavors: Application service principal (manual app registration, you manage the credential) and Managed identity (Azure-managed credential lifecycle, see separate card).

Card 4

Front

Managed identity

Back

A service principal whose credential is created, rotated, and deleted by Azure — your code never sees a secret. Available on most Azure compute (VM, VMSS, App Service, Functions, Logic Apps, AKS). Get a token from the IMDS endpoint, present it to any resource that does Entra auth (Storage, Key Vault, SQL, etc.).

Loading Diagram...
Flowchart, top to bottom. On-Premises AD connects to Choose Sync Method. B connects to Entra Connect (Password Hash) ("PHS"). B connects to Entra Connect + PTA Agent ("PTA"). B connects to AD FS / Custom STS ("Federation"). C connects to Cloud: Hashed Password. D connects to Cloud: Agent Validates On-Prem. E connects to Cloud: Trusts SAML Token. F connects to User Sign-In (Cached if Down). 2 more statements.
Loading Diagram...
Flowchart, left to right. Your Tenant connects to Invite Guest. B connects to Guest's Home Org. C connects to Guest Authenticates. D connects to Home Org Token ("MFA (Conditional Access)"). E connects to Azure Trust Chain. F connects to Guest accesses Resource<br/>(Azure RBAC, App). Audit Trail in<br/>Entra ID Sign-Ins connects to G.
Loading Diagram...
Flowchart, top to bottom. Create Azure Resource<br/>(VM, App Service, Function) connects to Managed Identity Type?. B connects to Identity Created<br/>(1:1 with Resource) ("System-Assigned"). B connects to Identity Pre-Exists<br/>(Reused Across Resources) ("User-Assigned"). C connects to Assign RBAC Role<br/>(e.g., Key Vault Secrets User). D connects to E. E connects to App Requests Token<br/>(via Managed Identity Endpoint). F connects to Token Cached<br/>(Refresh < 1 min before expiry). G connects to Authenticate to Backend<br/>(SQL, Storage, Key Vault). 3 more statements.
Loading Diagram...
Flowchart, left to right. On-Prem AD<br/>Finance Security Group connects to Cloud Entra ID<br/>Finance Group (Read) ("Entra Connect Sync"). Cloud-Created<br/>Sales Group connects to On-Prem AD<br/>Sales Group ("Writeback (P1)"). B connects to Assign Azure Role. D connects to Grant On-Prem Permissions. E connects to Cloud App Access. F connects to File Share / On-Prem App Access.
Loading Diagram...
Flowchart, top to bottom. Identity Management connects to Synchronization. Identity Management"] --> B["Synchronization connects to B2B Collaboration. Identity Management"] --> B["Synchronization connects to B2C Customers. Identity Management"] --> B["Synchronization connects to Managed Identities. B connects to PHS. B connects to PTA. B connects to Federation. B1 connects to Hash Sync. 19 more statements.