Home / AZ-500: Microsoft Azure Security Technologies / Mock exam
AZ-500: Microsoft Azure Security Technologies Exam-style mock test

Microsoft Azure Security Engineer (AZ-500) Practice Exams|Practice test

Full explanations Exam format Pass line 70%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Manage Identity and Access
Meridian Capital, a global investment bank, prohibits personal mobile devices on its trading floor, where traders rotate across shared Windows workstations throughout the day. The security team must roll out phishing-resistant passwordless sign-in to Microsoft Entra ID for these traders. What should you implement?
・Enroll traders in Microsoft Authenticator push notifications on corporate smartphones that are stored at each trading desk.
Incorrect. Authenticator push requires a phone in hand and is not phishing resistant; it can be approved against an attacker-initiated session, and the mobile-device ban makes this impractical on the floor.
・Configure Windows Hello for Business with PIN and biometric unlock on each individual trading workstation.
Incorrect. Windows Hello for Business credentials are bound to a single device per user, so traders who rotate across many shared workstations would have to provision a credential on every machine they touch.
・Enable SMS-based sign-in for the trader accounts by using the desk telephone numbers on the floor.
Incorrect. SMS-based sign-in is neither passwordless-strong nor phishing resistant, codes can be intercepted or relayed, and shared desk numbers cannot be tied to individual trader identities.
✓Issue FIDO2 security keys to traders and enable the FIDO2 method in the Authentication methods policy.
Correct. FIDO2 security keys are portable hardware credentials that satisfy phishing-resistant passwordless requirements and roam with each trader across shared workstations once enabled in the Authentication methods policy.
Explanation
FIDO2 security keys are the phishing-resistant passwordless method designed for shared-workstation environments: the hardware credential roams with the user rather than being bound to one device. Windows Hello for Business is per-device, while Authenticator push and SMS fail the phishing-resistance requirement.
Example2 · Secure Networking
Meridian Capital, a global investment bank, runs its trading platform in vnet-trade with web-tier and database-tier VMs spread across several subnets. A least-privilege mandate requires that only web-tier VMs reach the database tier on TCP 1433, and the rule must keep working as the platform team adds VMs without IP-based updates. A security engineer creates application security groups asg-web and asg-db and attaches NICs to each, but the NSG rule using asg-web as source and asg-db as destination fails validation. What should the engineer do to make the ASG-based rule deployable?
・Rewrite the rule so the ASGs are referenced only as the destination, because NSG rules do not accept an ASG in the source field.
Incorrect. NSG rules fully support an ASG as the source, the destination, or both; the source field is not the constraint that causes validation to fail.
・Replace the NSG with an Azure Firewall network rule, because traffic between two ASGs can only be filtered by a firewall SKU.
Incorrect. Azure Firewall is not required for ASG-to-ASG filtering; NSGs natively filter between ASGs, and Azure Firewall rules do not use ASGs as match criteria at all.
・Detach the NSG from the subnets and reassociate it at the NIC level, since ASG-based rules are evaluated only on interfaces.
Incorrect. NSGs associated at the subnet level evaluate ASG-based rules normally; where the NSG is attached has no effect on whether an ASG rule validates.
✓Reassign the NICs so every interface in asg-web and asg-db belongs to vnet-trade, then recreate the NSG rule.
Correct. When an NSG rule references ASGs, all NICs assigned to those ASGs must exist in the same virtual network. A NIC from another VNet attached to either ASG makes the rule invalid, so consolidating membership into vnet-trade fixes it.
Explanation
ASGs let NSG rules follow workload roles instead of IP addresses, but every NIC assigned to the ASGs referenced in a single rule must live in one virtual network. The failing rule indicates ASG membership spans VNets, so consolidating NIC membership into vnet-trade is the fix—no firewall, rule-direction, or association change is needed.
Example3 · Secure Compute, Storage, and Databases
Meridian Capital Partners, a global investment bank, runs Linux VMs in Azure that process trade settlement data. A regulator's finding requires that the OS disk, data disks, temp disk, and the disk caches all be encrypted, and the bank's platform team has banned in-guest encryption agents and extensions on these VMs because a prior extension failure blocked a settlement batch. Which approach meets the finding?
・Enable Azure Disk Encryption using the dm-crypt extension on each Linux virtual machine in the estate
Incorrect. Azure Disk Encryption relies on the in-guest dm-crypt extension, which the platform team has explicitly banned after the extension failure incident.
✓Enable encryption at host on the virtual machines after deallocating and resizing them
Correct. Encryption at host encrypts data at the hypervisor level, covering OS and data disks, the temp disk, and disk caches, with no in-guest agent or extension required.
・Apply server-side encryption with customer-managed keys in a disk encryption set to every managed disk
Incorrect. Server-side encryption with customer-managed keys protects managed disks at rest in the storage backend but does not encrypt the temp disk or the disk caches.
・Enable infrastructure encryption so the managed disks get double encryption at rest with platform keys
Incorrect. Infrastructure encryption adds a second layer of at-rest encryption on managed disks only; it still leaves the temp disk and disk caches outside its scope.
Explanation
Encryption at host is the only option that satisfies both constraints: it encrypts temp disks and caches end to end while being implemented at the hypervisor, so no VM extension is installed. Azure Disk Encryption needs an in-guest extension, and both SSE variants cover only managed disks at rest, missing the temp disk and cache requirement.
Example4 · Manage Security Operations
Meridian Health Systems, a HIPAA-regulated hospital network, assigned a custom security initiative to its production subscription. A DeployIfNotExists policy in the initiative enables secure transfer on storage accounts, but 40 storage accounts created before the assignment still show as non-compliant two weeks later. You must bring the existing accounts into compliance using the initiative itself. What should you do?
・Run az policy state trigger-scan so the initiative re-evaluates and redeploys to the existing storage accounts
Incorrect. Triggering a compliance scan only re-evaluates resource state; DeployIfNotExists deployments run on resource create or update, or through a remediation task, never during a scan.
✓Create a remediation task and grant its managed identity the required role.
Correct. Existing resources are fixed by a remediation task; the policy assignment's managed identity must hold the role needed to modify the storage accounts at the remediation scope.
・Change the policy effect to Deny, then delete and recreate the initiative assignment on the production subscription
Incorrect. Deny blocks non-compliant create and update operations going forward; it never modifies storage accounts that already exist.
・Switch the assignment's enforcement mode from DoNotEnforce to Default and wait for the nightly evaluation cycle to apply changes
Incorrect. Enforcement mode does not drive retroactive deployments; even in Default mode, DeployIfNotExists only fires on create or update events or through an explicit remediation task.
Explanation
DeployIfNotExists policies act on resources only when they are created or updated, so pre-existing resources stay non-compliant until a remediation task runs. The remediation task uses the assignment's managed identity, which must be granted the role defined in the policy at the target scope. Scans, Deny effects, and enforcement mode changes all fail because none of them deploy anything to existing resources.
Example5 · Manage Identity and Access
Meridian Health Network, a HIPAA-regulated hospital group, currently relies on security defaults in its Microsoft Entra tenant. Compliance now requires MFA for all staff but with two emergency break-glass accounts excluded, and sign-ins from the clinical VLAN must additionally require a compliant device. When the security engineer tries to enforce these rules, what should be done first?
・Keep security defaults on and add the two break-glass accounts to its exclusion list.
Incorrect. Security defaults is an all-or-nothing tenant setting; it has no exclusion list, no per-user scoping, and no conditions, so break-glass accounts cannot be exempted while it is on.
✓Disable security defaults, then build Conditional Access policies requiring MFA with the break-glass accounts excluded.
Correct. Security defaults and Conditional Access cannot be enforced together; disabling security defaults unlocks custom policies where you can require MFA, add user exclusions for break-glass accounts, and add network-scoped device conditions.
・Enable legacy per-user MFA for all staff and set the break-glass accounts to Disabled.
Incorrect. Legacy per-user MFA cannot express conditions such as requiring a compliant device from a specific network, and Microsoft recommends migrating away from it rather than expanding its use.
・Create the Conditional Access policies in report-only mode while leaving security defaults turned on for baseline protection.
Incorrect. Report-only mode never enforces controls, and enforced Conditional Access policies cannot be turned on while security defaults remains enabled, so the compliance requirement is never met.
Explanation
Security defaults is a fixed, tenant-wide baseline with no exclusions or conditions, so any requirement involving excluded accounts or device/network conditions forces a move to Conditional Access. The correct sequence is to disable security defaults and replace it with Conditional Access policies that replicate MFA enforcement while adding the break-glass exclusions and device conditions.
Example6 · Manage Identity and Access
StreamCast, a media streaming platform, invites roughly 300 freelance subtitle editors into its Microsoft Entra tenant as B2B guests each quarter. The identity team must assign a Microsoft 365 license add-on and scope quarterly access reviews to every current and future guest without anyone maintaining membership manually. What should they configure?
・Add each freelancer to a Microsoft 365 group during invitation redemption with a Logic App.
Incorrect. Hooking group membership to the redemption flow only catches newly invited guests; the hundreds of existing guest objects are never added, and a failed Logic App run silently drops members.
・Create an administrative unit for the external users and scope both the licensing assignment and the quarterly reviews to that unit.
Incorrect. Administrative units scope administrative role permissions over objects; they are not a target for group-based licensing and are not the construct used to scope group-style access review membership.
・Run a nightly automation runbook that exports guests with Microsoft Graph and rebuilds a static group.
Incorrect. A scheduled rebuild introduces up to a day of lag, breaks group-based licensing semantics during the rebuild window, and adds an automation account that itself must be secured and monitored.
✓Create a security group with the dynamic membership rule (user.userType -eq "Guest") and target that group for group-based licensing and the recurring access reviews.
Correct. A dynamic membership rule on user.userType evaluates continuously, so every existing and future guest joins the group automatically, and the group can be used for group-based licensing and as the scope of recurring access reviews.
Explanation
Dynamic membership rules keyed on user.userType -eq "Guest" give a self-maintaining group that always reflects the guest population, which is exactly what group-based licensing and recurring access reviews need. Event-driven or scheduled scripts recreate this behavior with gaps and operational risk, and administrative units solve admin-delegation problems, not membership targeting.
Example7 · Manage Identity and Access
Helix Fabrication runs a Microsoft Entra tenant with security defaults enabled. A legacy MES integration account used by a shop-floor SCADA gateway cannot complete MFA, so its nightly sign-ins now fail. The security team must keep MFA enforced for all human users while allowing this one account to sign in, and Microsoft Entra ID P1 licenses are already assigned. What should you do?
・Keep security defaults enabled and switch the service account to per-user MFA with its state set to Disabled in the legacy MFA portal.
Incorrect. Per-user MFA states cannot override security defaults; the tenant-wide MFA enforcement from security defaults still applies to the account, so its sign-ins keep failing.
✓Disable the all-or-nothing security defaults, then create a scoped Conditional Access policy that requires multifactor authentication for all users while explicitly excluding only the legacy service account.
Correct. Security defaults offer no exclusions, so you replace them with a Conditional Access policy that requires MFA for all users and excludes only the service account, preserving enforcement for everyone else.
・Add the plant gateway's public IP range as a trusted named location so security defaults skips MFA for sign-ins from that address.
Incorrect. Security defaults do not evaluate named locations or trusted IPs; location-based exceptions only work inside Conditional Access policies.
・Keep security defaults enabled and simply clear the account's registered methods in the tenant authentication methods policy.
Incorrect. The authentication methods policy controls which methods can be registered; it cannot exempt an account from the MFA requirement imposed by security defaults.
Explanation
Security defaults are all-or-nothing and support no per-account, location, or method exclusions. With P1 licensing available, the correct pattern is to disable security defaults and rebuild the same MFA requirement as a Conditional Access policy, where the single non-interactive account can be excluded.
Example8 · Manage Identity and Access
Meridian Freight synchronizes its on-premises Active Directory forest to Microsoft Entra ID with Entra Connect. An audit found depot staff setting passwords such as 'Meridian2026!' at domain-joined terminals. You must block passwords containing company-specific terms whenever users change passwords against the on-premises domain controllers. What should you implement?
・Create fine-grained password policies in Active Directory that raise the length and complexity requirements for the depot staff organizational units.
Incorrect. Fine-grained password policies control length, complexity, and age, but complexity rules cannot blacklist specific words like the company name, so 'Meridian2026!' still passes.
✓Install the Entra Password Protection proxy and DC agents, add the banned terms, run Enforced mode.
Correct. Entra Password Protection extends the global and custom banned password lists to on-premises AD DS: the proxy relays policy from Entra ID, the DC agents evaluate every change, and Enforced mode actually rejects banned passwords.
・Enable self-service password reset with password writeback so the cloud banned password list applies to on-premises accounts.
Incorrect. Password writeback applies the banned list only to resets initiated through SSPR; password changes performed directly against a domain controller at the terminal are never evaluated.
・Deploy the Entra Password Protection proxy and DC agents in Audit mode, add the custom banned terms, and alert on banned-password events from domain controller logs.
Incorrect. Audit mode only logs would-be violations to the event log for impact analysis; the weak passwords are still accepted until the mode is switched to Enforced.
Explanation
Only Microsoft Entra Password Protection for AD DS evaluates on-premises password changes against the custom banned password list, and only Enforced mode rejects them. Complexity policies cannot ban specific terms, and writeback covers SSPR resets rather than DC-side changes.
Example9 · Manage Identity and Access
An automotive parts plant bans personal phones on the production floor. OT engineers sign in to shared engineering workstations and must use phishing-resistant passwordless authentication. Procurement issued one approved hardware security key model, and the security team requires that no other key models can be registered. How do you configure Microsoft Entra ID?
✓Enable passkey (FIDO2) in the authentication methods policy and allow only the issued key model's AAGUID via key restrictions.
Correct. The passkey (FIDO2) method is phishing-resistant, works across shared workstations, and its key restriction settings let you allow-list the AAGUID of the approved key model so other models are rejected at registration.
・Deploy Windows Hello for Business through Intune so each engineer provisions a PIN and biometric gesture on every shared workstation they use.
Incorrect. Windows Hello for Business binds credentials to a specific device per user, which scales poorly across shared workstations and provides no mechanism to restrict hardware key models.
・Enable Microsoft Authenticator phone sign-in with number matching enforced for the OT engineering staff group.
Incorrect. Authenticator phone sign-in requires a smartphone, which is prohibited on the production floor, and number matching does not make it phishing-resistant hardware-key authentication.
・Enable certificate-based authentication using smart card certificates issued from the plant's internal PKI.
Incorrect. Certificate-based authentication is phishing-resistant but offers no AAGUID-style control to limit registration to one approved security key model, which is an explicit requirement.
Explanation
Only the FIDO2 passkey method combines phishing resistance, portability across shared workstations, and AAGUID-based key restrictions that enforce a single approved hardware model. The key restriction allow list in the authentication methods policy is the discriminator the alternatives cannot satisfy.
Example10 · Manage Identity and Access
PixelRaid Studios, an online gaming studio, runs a Microsoft Entra ID P1 tenant that still has security defaults enabled. The security team must now require MFA only when staff sign in from outside the studio's build-farm network, and two break-glass accounts must be exempt from all MFA enforcement. When an engineer tries to enable a Conditional Access policy, the portal blocks the change. What should you do first?
✓Disable security defaults, then enable Conditional Access policies that enforce MFA by location and exclude the break-glass accounts.
Correct. Security defaults and Conditional Access policies are mutually exclusive; you must turn off security defaults before enabling Conditional Access policies that add location conditions and break-glass exclusions.
・Keep security defaults enabled and place the two break-glass accounts into a security group that is excluded from security defaults enforcement.
Incorrect. Security defaults are an all-or-nothing tenant setting; they support no group or account exclusions, so the break-glass accounts cannot be exempted this way.
・Enable legacy per-user multifactor authentication for all staff and set the two break-glass accounts to Disabled in the per-user MFA portal.
Incorrect. Legacy per-user MFA cannot evaluate network location, so it would prompt everywhere rather than only outside the build-farm network, and it conflicts with Conditional Access best practice.
・Leave security defaults enabled and save the Conditional Access policy in report-only mode so the exclusions apply without any conflict.
Incorrect. The tenant blocks enabling Conditional Access policies, including report-only ones, while security defaults are on, and report-only mode never enforces the MFA requirement anyway.
Explanation
Security defaults and Conditional Access cannot be active at the same time, and security defaults offer no exclusions or conditions. With a P1 license the correct path is to disable security defaults and replace them with Conditional Access policies that scope MFA by location and exclude the emergency-access accounts.
Example11 · Manage Identity and Access
Orbitly, a multi-tenant B2B SaaS provider, must move its 24x7 NOC engineers to phishing-resistant passwordless sign-in. A compliance audit requires that only company-issued FIDO2 hardware security keys from one approved vendor can be registered; any other key model must be rejected at registration. What should you configure in Microsoft Entra ID?
・Enable Microsoft Authenticator push notifications with number matching for the NOC group and disable every other authentication method for them in the authentication methods policy.
Incorrect. Authenticator push with number matching is not phishing resistant and is not a hardware security key, so it fails both audit requirements.
✓Enable the FIDO2 security key method for the NOC group and set key restrictions that allow only the approved vendor's AAGUIDs.
Correct. The FIDO2 (passkey) authentication method policy supports key restrictions by AAGUID, which lets you allow only the approved vendor's key models at registration time.
・Deploy Windows Hello for Business through Microsoft Intune so each NOC engineer signs in with biometrics bound to an assigned workstation.
Incorrect. Windows Hello for Business is phishing resistant but is bound to a single device, is not a portable hardware key, and offers no way to restrict registration to one key vendor.
・Enable certificate-based authentication and issue smart card certificates to every NOC engineer from the company's internal PKI.
Incorrect. Certificate-based authentication can be phishing resistant, but it does not use FIDO2 security keys and cannot enforce the vendor-specific hardware key mandate.
Explanation
Only the FIDO2 security key authentication method policy supports AAGUID-based key restrictions, which is the mechanism that rejects non-approved key models at registration. The other methods either lack phishing resistance or cannot constrain which physical key hardware is used.
Example12 · Manage Identity and Access
A state university's Microsoft Entra tenant still runs with security defaults enabled. The identity team must now exempt two emergency access (break-glass) accounts from MFA and require MFA only for sign-ins that originate outside the campus IP ranges. The team has Microsoft Entra ID P1 licenses. What should you do first?
・Create a Conditional Access policy that requires MFA and excludes the two emergency accounts
Incorrect. Conditional Access policies cannot be enabled while security defaults are active; the tenant blocks turning the policy on until security defaults are switched off, so this cannot be the first step.
・Enable legacy per-user MFA for all accounts except the two emergency accounts
Incorrect. Legacy per-user MFA cannot be scoped by network location, so it cannot satisfy the requirement to prompt only for off-campus sign-ins, and it still conflicts with the tenant-wide security defaults behavior.
✓Disable security defaults from the Properties pane of the organization's Microsoft Entra tenant
Correct. Security defaults enforce MFA for all users with no exclusions and are mutually exclusive with Conditional Access, so they must be disabled before location-scoped policies with account exclusions can take effect.
・Add the campus public IP ranges as a trusted named location before any other change
Incorrect. Creating a trusted named location does not lift security defaults; all users, including the break-glass accounts, would still be forced to register and perform MFA regardless of the location definition.
Explanation
Security defaults and Conditional Access are mutually exclusive: while security defaults are on, every user is subject to blanket MFA enforcement and custom policies cannot be enabled. Disabling security defaults is the prerequisite that unlocks location conditions and break-glass exclusions in Conditional Access.
Example13 · Manage Identity and Access
A regional electricity transmission operator hosts B2B guest accounts for engineers from GridServ, a maintenance contractor with its own Microsoft Entra tenant. Your Conditional Access policy requires MFA for all guests. GridServ engineers already complete MFA in their home tenant and now face a second prompt in yours. You must keep enforcing the MFA requirement while eliminating the duplicate prompt. What should you configure?
・Exclude the GridServ guests from the Conditional Access MFA policy
Incorrect. Excluding the guests removes the MFA requirement entirely in your tenant; if GridServ ever relaxes its own policy, those sign-ins would reach your resources with no MFA enforced at all.
・Add GridServ as a connected organization in entitlement management so its MFA claims flow in
Incorrect. Connected organizations only govern who can request access packages in entitlement management; they do not pass or honor MFA claims during authentication to your tenant.
・Convert the GridServ guest users to member users so their home-tenant MFA registration applies
Incorrect. Converting guests to members changes user type and licensing posture but authentication still occurs against your tenant's policies, so the duplicate MFA prompt remains.
✓Configure inbound cross-tenant access settings to trust MFA performed in the GridServ tenant
Correct. Inbound trust settings in cross-tenant access let your tenant accept MFA claims issued by GridServ's tenant, so the existing Conditional Access policy is satisfied without a second challenge.
Explanation
Cross-tenant access settings allow an inbound trust of MFA (and device compliance) claims from a specific partner tenant, so the Conditional Access MFA grant is satisfied by the home-tenant challenge. The discriminator is that trust settings preserve enforcement, whereas policy exclusions silently drop it.
Example14 · Manage Identity and Access
Meridian Mutual Insurance runs a hybrid estate in which Microsoft Entra Connect synchronizes identities from on-premises Active Directory. An audit found underwriters setting passwords such as 'Meridian2026!' directly against domain controllers. You must block company-specific terms whenever users change passwords against on-premises Active Directory, and the domain controllers must not require direct outbound internet access. What should you do?
✓Define a custom banned password list in Microsoft Entra Password Protection and deploy the proxy service and DC agents.
Correct. Microsoft Entra Password Protection extends the tenant's custom banned password list to on-premises Active Directory; the DC agents evaluate password changes locally and the proxy service relays policy downloads, so domain controllers need no direct internet access.
・Add the terms to a fine-grained password policy in on-premises Active Directory and link it to every staff security group.
Incorrect. Fine-grained password policies control length, complexity, and lockout settings only; they cannot ban specific words or company terms from passwords.
・Enable password hash synchronization in Microsoft Entra Connect and monitor the leaked credential detections in Microsoft Entra ID Protection.
Incorrect. Leaked credential detection reports passwords found in breach data after the fact; it does not evaluate or block weak company-specific terms at the moment a password is changed on a domain controller.
・Enable self-service password reset with password writeback and direct staff to change passwords only through the Entra portal.
Incorrect. SSPR with writeback governs resets initiated in the cloud, but it cannot intercept password changes performed directly against domain controllers, which is the audited gap.
Explanation
Entra Password Protection with the on-premises proxy and DC agent components is the only mechanism that enforces the tenant's custom banned password list on domain-controller password changes without giving DCs internet access. FGPP lacks word banning, and leaked credential detection or SSPR do not evaluate on-premises change operations.
Example15 · Manage Identity and Access
Skyvia Airways invites engineers from its ground-handling partner, which runs its own Microsoft Entra tenant, as B2B collaboration guests. Skyvia's Conditional Access requires multifactor authentication for all apps, so the guests are forced to register MFA a second time even though they already complete MFA in their home tenant. You must let these guests satisfy Skyvia's MFA requirement using their home-tenant MFA while keeping the Conditional Access policy enforced for them. What should you configure?
✓In cross-tenant access settings, edit the inbound trust settings for the partner organization so Skyvia accepts and trusts the multifactor authentication claim from its home tenant.
Correct. Inbound trust settings in cross-tenant access let Skyvia accept the MFA claim issued by the partner's Microsoft Entra tenant, so guests satisfy the Conditional Access MFA grant without registering methods again.
・Exclude the partner guest accounts from the Conditional Access policy by using a dedicated dynamic group for external users.
Incorrect. Excluding the guests removes the MFA requirement for them entirely, which violates the mandate to keep the Conditional Access policy enforced for partner users.
・Configure SAML/WS-Fed identity provider federation for the partner's domain so its users sign in with their own provider.
Incorrect. SAML/WS-Fed federation is for partner domains that do not have a Microsoft Entra tenant; it changes how guests authenticate but does not make Skyvia trust the partner's MFA claims.
・Convert the guests to B2B direct connect and share the operations apps through Microsoft Teams shared channels instead.
Incorrect. B2B direct connect only supports Microsoft Teams Connect shared channels; it cannot broker access to the airline's other Entra-protected applications.
Explanation
Cross-tenant access inbound trust settings are the designed control for honoring MFA (and device compliance) claims from a partner Entra tenant, eliminating duplicate MFA registration while the Conditional Access policy stays in force. Exclusions weaken enforcement, federation targets non-Entra partners, and direct connect is Teams-only.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)