All exams← All Microsoft Certified: Azure Solutions Architect Expert notes

Design Authentication and Authorization Solutions: Microsoft Certified: Azure Solutions Architect Expert revision notes

Revision notes

## Design Authentication and Authorization Solutions

This topic focuses on securing access to Azure resources and applications by designing robust authentication and authorization mechanisms.

Authentication Solutions

Authentication verifies an identity. Azure Active Directory (Azure AD) is the core identity service, providing a centralized identity management solution.

  • User Authentication:
  • Azure AD: Manages identities for employees, partners, and guests. Supports Single Sign-On (SSO) across cloud and on-premises applications.
  • Azure AD B2C: Designed specifically for consumer-facing applications, allowing customers to sign in using social identities (e.g., Google, Facebook) or local accounts.
  • MFA & Passwordless: Enhance security. Multi-Factor Authentication (MFA) requires multiple verification methods. Passwordless methods (e.g., FIDO2 security keys, Microsoft Authenticator app) improve user experience and security.
  • Hybrid Identities: Integrate on-premises Active Directory with Azure AD using Azure AD Connect for synchronized identities.
  • Guest Access (Azure AD B2B): Enables secure collaboration with external users by inviting them as guest users into your Azure AD tenant.
  • Application Authentication:
  • Managed Identities: The recommended and most secure way for Azure resources (e.g., VMs, App Services) to authenticate to other Azure services (e.g., Key Vault, Azure SQL). They eliminate the need to manage credentials directly.
  • Service Principals: Represent an application's identity within a specific Azure AD tenant. Used for non-Azure hosted applications, automation scripts, or when Managed Identities are not applicable. Created via Azure AD application registration.
  • API Keys/Certificates: Can be used for authentication, but Managed Identities are generally preferred for Azure services due to better credential management.

Authorization Solutions

Authorization determines what an authenticated identity can do.

  • Azure Role-Based Access Control (Azure RBAC): Provides granular access management to Azure resources. Assigns roles (e.g., Owner, Contributor, Reader) to users, groups, or service principals at different scopes (management group, subscription, resource group, resource).
  • Attribute-Based Access Control (ABAC): Extends RBAC by adding conditions based on resource attributes, request attributes, or custom security attributes.
  • Azure AD Groups: Best practice to assign RBAC roles to Azure AD groups rather than individual users for easier management and scalability.
  • Privileged Identity Management (PIM): Provides just-in-time (JIT) and time-bound access to elevated roles, minimizing standing access and reducing the attack surface. Includes access reviews and alerts.
  • Secure Access to Azure Resources:
  • Azure AD Conditional Access: Enforces policies based on conditions (user, location, device state, application) to grant or deny access, or require MFA. This is a powerful policy engine.
  • Azure Policy: Enforces organizational standards and assesses compliance at scale. Can be used to enforce security configurations.
  • Service Endpoints & Private Endpoints: Network-level security features to restrict access to Azure services from specific virtual networks, enhancing data exfiltration protection.
  • Authorization to Applications:
  • Application Roles & Scopes: Define specific permissions an application can request or be granted.
  • Consent Framework: Users or administrators grant permissions to applications to access protected resources on their behalf.

Key facts

Flashcards

What is the primary service for identity and access management in Azure?
Azure Active Directory (Azure AD).
tap to reveal
When should you use Azure AD B2C?
For consumer-facing applications where customers use their social or local accounts to sign in.
tap to reveal
What is the recommended way for an Azure service (like a VM) to authenticate to another Azure service (like Key Vault)?
Managed Identities (System-assigned or User-assigned).
tap to reveal
How do you grant granular permissions to users, groups, or applications to manage Azure resources?
Azure Role-Based Access Control (Azure RBAC).
tap to reveal
What Azure service provides just-in-time (JIT) and time-bound access to elevated roles?
Azure Privileged Identity Management (PIM).
tap to reveal
What is the purpose of Azure AD Conditional Access?
To enforce policies (e.g., MFA, device compliance) based on user, location, device, or application conditions before granting access.
tap to reveal
How do you enable external users to collaborate securely on your Azure AD resources?
Azure AD B2B (Business-to-Business) collaboration.
tap to reveal
What is an Azure AD Service Principal used for?
To represent an application's identity within a specific Azure AD tenant, allowing it to access resources.
tap to reveal
Practice questions

Design Authentication and Authorization Solutions: 5 practice questions

Q1. A company has an on-premises Active Directory and wants to implement single sign-on (SSO) for its cloud applications. They have a strict policy that user password hashes must never be synchronized or stored in the cloud. Authentication requests must be validated directly against their on-premises domain controllers. Which Microsoft Entra hybrid identity solution should you recommend?
  • A.  Pass-through Authentication (PTA)
  • B.  Federation with Active Directory Federation Services (AD FS)
  • C.  Microsoft Entra Domain Services
  • D.  Password Hash Synchronization (PHS)
Show answer & explanation
✓ Answer: A. Pass-through Authentication (PTA)
Pass-through Authentication (PTA) forwards the user's password to an on-premises agent for validation against the local Active Directory, meeting the requirement to not store password hashes in the cloud and to authenticate on-premises.
Q2. You need to grant a contractor the 'Virtual Machine Contributor' role for a specific project. This access must be temporary, require an approval workflow before activation, and automatically expire after 90 days. Which Microsoft Entra feature is designed to meet these requirements for just-in-time (JIT) access?
  • A.  Microsoft Entra Privileged Identity Management (PIM)
  • B.  Administrative Units
  • C.  Conditional Access Policies
  • D.  Dynamic Group Membership
Show answer & explanation
✓ Answer: A. Microsoft Entra Privileged Identity Management (PIM)
Privileged Identity Management (PIM) provides time-bound and approval-based role activation, which is the ideal solution for providing temporary, just-in-time privileged access that is auditable and automatically revoked.
Q3. A retail company is building a new e-commerce website and mobile app for its customers. The company wants to allow customers to sign up and sign in using their existing social media accounts (e.g., Google, Facebook) or a local account with an email and password. Which Azure service should be used to manage these customer identities?
  • A.  Active Directory Federation Services (AD FS)
  • B.  Microsoft Entra B2B collaboration
  • C.  Microsoft Entra Domain Services
  • D.  Microsoft Entra B2C
Show answer & explanation
✓ Answer: D. Microsoft Entra B2C
Microsoft Entra B2C is a customer identity and access management (CIAM) solution designed for customer-facing applications. It supports social identity providers and customizable user sign-up and sign-in journeys.
Q4. An application running in an Azure App Service needs to securely access secrets stored in Azure Key Vault. You want to avoid storing any credentials, like connection strings or application secrets, in the App Service configuration. What is the most secure and recommended method to grant the application access?
  • A.  Enable a system-assigned Managed Identity for the App Service.
  • B.  Use a Shared Access Signature (SAS) token with a long expiration.
  • C.  Store the Key Vault access key in the application's web.config file.
  • D.  Hard-code the client secret for a service principal in the application code.
Show answer & explanation
✓ Answer: A. Enable a system-assigned Managed Identity for the App Service.
Managed Identity provides the Azure resource with an identity in Microsoft Entra ID. This identity can then be granted access to Key Vault, allowing the application to retrieve secrets without needing any credentials stored in its code or configuration.
Q5. A large organization is structured by department. You need to delegate permissions to a 'Marketing IT' group to reset passwords and manage user properties, but only for users within the 'Marketing' department. This IT group must not have any administrative permissions over users in other departments. Which Microsoft Entra feature should you use to scope these permissions?
  • A.  Create a custom Azure RBAC role and assign it to the group.
  • B.  Configure a Conditional Access policy for the Marketing IT group.
  • C.  Place the marketing users into an Administrative Unit and scope the role assignment to it.
  • D.  Assign the 'Helpdesk Administrator' role to the group at the tenant level.
Show answer & explanation
✓ Answer: C. Place the marketing users into an Administrative Unit and scope the role assignment to it.
Administrative Units are Microsoft Entra resources that can be containers for other Entra resources, allowing you to delegate administrative permissions over a specific subset of users, effectively scoping the role's power.
Test yourself
See the Microsoft Certified: Azure Solutions Architect Expert page

More Microsoft Certified: Azure Solutions Architect Expert topics