Q001 - Question
An organization needs the Contributor role to require approval and a one-hour maximum activation duration on a production subscription. The same role on development resource groups must allow activation without approval. Which PIM for Azure resources capability enables this configuration?
Domain: Manage identity, access, and governance (20–25%) Type: Single choice
- A. Direct assignment of role settings uniformly across the entire tenant
- B. Independent role settings configuration per role at each resource scope
- C. Resource discovery settings configured at the root management group
- D. Inheritance of subscription-level role settings down to all child resource groups
B is correct.
Explanation: PIM allows administrators to configure role settings for Azure resource roles independently per role per resource scope. This distinct flexibility enables enforcing strict activation controls, such as mandatory approval and a one-hour maximum duration, on a production subscription while maintaining lower-friction, approval-free settings for the same Contributor role at the development resource group scope.
A is incorrect: Azure resource roles are scoped to Azure Resource Manager objects rather than tenant-wide directories, so settings cannot be enforced tenant-wide uniformly.
C is incorrect: Resource discovery surfaces subscriptions and resource groups in PIM, but it does not establish or govern activation rules for individual roles.
D is incorrect: Permissions inherit downward across Azure scopes, but role settings are configured independently per scope rather than automatically forcing production rules on children.
Q002 - Question
Contoso plans to implement passwordless authentication for mobile and cross-platform employees who need phishing-resistant credentials. The solution must use hardware-backed credentials unlocked by local biometrics or PINs without requiring dedicated physical security keys. Which authentication method should you configure?
Domain: Manage identity, access, and governance (20–25%) Type: Single choice
- A. Passkey in Microsoft Authenticator configured through the Passkey (FIDO2) authentication method policy
- B. Windows Hello for Business deployed through Microsoft Intune device configuration profiles
- C. Synced passkeys stored in third-party personal consumer password managers
- D. Microsoft Authenticator push notifications with number matching and application context enabled
A is correct.
Explanation: Passkeys in Microsoft Authenticator provide mobile and cross-platform users with portable, phishing-resistant passwordless credentials. These credentials are hardware-backed on the mobile device and unlocked using local biometrics or a PIN. Administrators enable this method by configuring the Passkey (FIDO2) authentication method policy in Microsoft Entra ID and scoping it to the target user groups.
B is incorrect: Windows Hello for Business is recommended specifically for corporate Windows devices managed by Intune or Group Policy, rather than cross-platform mobile environments.
C is incorrect: Synced passkeys trade enterprise control for personal device convenience and are intended for lower-risk general users rather than managed corporate cross-platform deployments.
D is incorrect: Microsoft Authenticator push notifications represent an app-based multifactor authentication method paired with passwords, rather than a passwordless hardware-backed passkey credential.
Q003 - Question
An administrator needs a tightly scoped temporary Microsoft Entra role for a project that ends in 10 days. The activation step is impractical for this work, and access must end on a set date. Which Privileged Identity Management (PIM) assignment should you create?
Domain: Manage identity, access, and governance (20–25%) Type: Single choice
- A. An eligible assignment with a 24-hour maximum activation duration
- B. An active assignment with an expiration at the end of the project
- C. A permanent active assignment that you remove manually after the project
- D. An eligible assignment that requires approval and justification
B is correct.
Explanation: Active assignments grant immediate role permissions without requiring an activation step, making them suitable when activation is impractical. Because PIM can time-bound active assignments to expire at a specific time, you can set the expiration for the project end date. This satisfies the temporary standing access requirement while ensuring elevated privileges terminate automatically without manual intervention.
A is incorrect: Eligible assignments require an explicit activation step before granting access, and sessions expire by activation duration rather than the project date.
C is incorrect: Permanent assignments introduce indefinite standing privilege with no configured expiration, requiring administrators to remember manual cleanup when the project eventually concludes.
D is incorrect: Configuring approval and justification strengthens activation controls, but the administrator must still submit an activation request, violating the impracticality constraint.
Q004 - Question
Contoso is configuring self-service password reset policies for a dedicated security group containing privileged administrator accounts. To comply with Microsoft Entra ID administrator reset constraints and security best practices, how should the administrator SSPR policy be configured?
Domain: Manage identity, access, and governance (20–25%) Type: Single choice
- A. Require two authentication methods, utilizing Microsoft Authenticator and phone-based verification.
- B. Require one authentication method, utilizing Microsoft Authenticator push notifications.
- C. Require two authentication methods, utilizing security questions and external email verification.
- D. Require two authentication methods, utilizing FIDO2 security keys and office phone verification.
A is correct.
Explanation: Microsoft Entra ID enforces stricter SSPR protections for administrators, requiring two authentication methods for password resets. For privileged groups, Microsoft recommends combining strong methods such as Microsoft Authenticator with phone-based verification while avoiding security questions, which are disallowed for administrator resets, and avoiding email verification to prevent escalation through mailbox compromise.
B is incorrect: Administrator accounts strictly require two authentication methods to complete a password reset, making a single-method policy configuration insufficient regardless of the method chosen.
C is incorrect: Security questions are not permitted for administrator reset scenarios, and email reset is not recommended because compromised mailboxes can lead to account takeover.
D is incorrect: FIDO2 security keys and passkeys serve strictly as sign-in credentials and are ineligible for use in self-service password reset verification challenges.
Q005 - Question
Contoso must protect administrative portals by requiring phishing-resistant authentication methods. Other enterprise applications must continue to permit standard multifactor authentication. A security administrator configures Conditional Access policies with authentication strengths. Which configuration meets these requirements while following Zero Trust principles?
Domain: Manage identity, access, and governance (20–25%) Type: Single choice
- A. Assign the built-in phishing-resistant MFA strength to the Conditional Access policy targeting the administrative portals.
- B. Configure a tenant-wide authentication strength requiring phishing-resistant MFA across all enterprise cloud applications.
- C. Require Microsoft Authenticator push notifications within the Conditional Access policy targeting the administrative portals.
- D. Set the administrative portal Conditional Access policy grant control to require SMS one-time passcodes and passwords.
A is correct.
Explanation: Authentication strength policies are applied per application through Conditional Access, enabling administrators to require phishing-resistant MFA for sensitive portals while allowing standard MFA on lower-risk systems. This granularity implements the Zero Trust verify explicitly principle. The built-in phishing-resistant strength policy includes Windows Hello for Business, FIDO2 security keys, certificate-based authentication, and passkeys in Microsoft Authenticator.
B is incorrect: Authentication strength cannot be applied as a single blanket tenant-wide setting; it is enforced per application, and an organization-wide mandate prevents standard MFA.
C is incorrect: Microsoft Authenticator push notifications are categorized as app-based MFA with high security, but they do not belong to the built-in phishing-resistant authentication strength family.
D is incorrect: SMS one-time passcode verification is a legacy MFA method rated low-medium that is vulnerable to SIM-swapping attacks, failing to meet the phishing-resistant requirement.
Q006 - Question
Contoso Health needs KQL alert rules against vault activity and a multi-year archive for compliance. The team wants one diagnostic setting on the production vault. Which configuration meets both requirements?
Domain: Manage and monitor security posture (20–25%) Type: Single choice
- A. Select the Audit category and send it only to a Log Analytics workspace
- B. Select the Audit category and send it to a Log Analytics workspace and a storage account
- C. Select the Audit category and send it only to Event Hubs
- D. Create an Event Grid subscription for the vault events and a storage account
B is correct.
Explanation: The Audit (AuditEvent) category can go to more than one destination in a diagnostic setting. A Log Analytics workspace supports KQL queries and alert rules. A storage account supports long-term archive retention for compliance requirements with multi-year log retention. Choosing both destinations meets both requirements in one setting, because the archive can run in parallel.
A is incorrect: A Log Analytics workspace supports KQL queries and alerts, but this setting has no storage account for the multi-year archive.
C is incorrect: Event Hubs streams log data to a SIEM such as Microsoft Sentinel. It doesn't provide the Log Analytics alerting or archive.
D is incorrect: Event Grid provides low-latency triggers for automation, not the complete historical record that KQL alert rules query in Log Analytics.
Q007 - Question
An application encrypts data by using an Azure Key Vault key that it references with a specific version URI. You add a rotation policy that creates a new version every 18 months. After rotation, the application still uses the original version. What should you change?
Domain: Secure storage, databases, and networking (25–30%) Type: Single choice
- A. Change the application to reference the key by its versionless URI.
- B. Shorten the expiry time in the rotation policy.
- C. Increase the notification time in the rotation policy.
- D. Re-encrypt the existing data under the new key version.
A is correct.
Explanation: Rotation creates a new key version, but applications that use a specific version URI stay pinned to that version. Applications that use the versionless URI, which contains only the vault URL and key name, receive the latest version automatically. No application configuration change is needed at rotation time. New encryption operations then use the latest version.
B is incorrect: Expiry time sets the lifetime of each key version. It doesn't change which version the application references, so the application stays pinned.
C is incorrect: Notification time sets when Key Vault publishes a near-expiry event to Event Grid. It doesn't change the version the application references.
D is incorrect: Re-encrypting existing data is a separate planned activity. It isn't automatic and doesn't change which key version a pinned application uses.
Q008 - Question
A production database has two valid sign-ins, db-user-a and db-user-b. An application uses a versionless Key Vault reference, and the current secret holds the db-user-a password. You must rotate the credential with zero downtime. What should you do first?
Domain: Secure storage, databases, and networking (25–30%) Type: Single choice
- A. Generate a new db-user-a password, update the database, and store it as a new secret version.
- B. Store a new db-user-b password as a new secret version, and then update the database.
- C. Generate a new db-user-b password, update the database, and then add it as a new secret version.
- D. Update the single secret value in one atomic operation and rely on retry logic.
C is correct.
Explanation: In dual-credential rotation, rotate the credential the application isn't using. Generate a new db-user-b password, update the database sign-in, and then add that password as a new secret version. The application keeps using db-user-a until the versionless reference resolves to db-user-b, so no disruption occurs. Then verify the application uses db-user-b before rotating db-user-a.
A is incorrect: The application currently uses db-user-a. Changing that password first can make the application's stored credential invalid, which the dual-credential pattern avoids.
B is incorrect: Storing the new db-user-b password in Key Vault before updating the database causes the application to fetch credentials the database rejects.
D is incorrect: Single-credential rotation has a transition window that high-availability production services can't accept. Dual-credential rotation removes it by keeping two valid credentials.
Q009 - Question
A workload requires a 256-bit symmetric encryption key. A compliance framework also requires the key to be HSM-protected. You are choosing where to create the key in Azure Key Vault. Which option meets both requirements?
Domain: Secure storage, databases, and networking (25–30%) Type: Single choice
- A. Create an octet key with HSM protection in an Azure Key Vault Premium vault.
- B. Create an RSA-HSM key in an Azure Key Vault Premium vault.
- C. Create an octet key in Azure Key Vault Managed HSM.
- D. Create a software-protected octet key in an Azure Key Vault Standard vault.
C is correct.
Explanation: Octet keys provide symmetric encryption. In Key Vault Premium they can't be HSM-backed. They are supported as HSM keys only on Azure Key Vault Managed HSM, so creating the octet key there meets both the symmetric and HSM requirements. Key operations then run inside the HSM boundary. Premium vaults support HSM protection only for RSA and EC keys.
A is incorrect: Octet keys can't be HSM-backed in a Premium vault, so this configuration can't meet the HSM requirement for a symmetric key.
B is incorrect: RSA-HSM keys provide hardware protection, but RSA keys are asymmetric algorithms that cannot provide the symmetric encryption this scenario requires.
D is incorrect: The Standard SKU supports software-protected keys only, so an octet key there isn't HSM-protected and doesn't meet the hardware protection requirement.
Q010 - Question
Several teams deploy Key Vaults across your organization. You must block creation of new vaults that don't have purge protection enabled and identify existing vaults that don't meet the requirement. Which action should you take?
Domain: Manage and monitor security posture (20–25%) Type: Single choice
- A. Assign the Key vaults should have soft delete enabled policy at the subscription scope.
- B. Assign the Key vaults should have deletion protection enabled policy with the Deny effect at management group scope.
- C. Increase the soft delete retention period on each existing vault to 90 days.
- D. Assign the Key vaults should have deletion protection enabled policy with an audit-only effect.
B is correct.
Explanation: The Key vaults should have deletion protection enabled policy can be set to Deny, which blocks creation of new vaults without purge protection. Assigning it at subscription or management group scope covers every team. Audit results also identify existing noncompliant vaults, and a remediation task can address them. This enforces the setting without relying on each team.
A is incorrect: The soft delete policy audits soft delete only. It does not check purge protection or block new noncompliant vaults.
C is incorrect: Retention days can only be set at creation time, so you cannot change existing vaults. It is not purge protection.
D is incorrect: Audit only identifies noncompliant vaults. It does not block creation of new vaults without purge protection, so teams can still deploy them.
Q011 - Question
Contoso wants one baseline security initiative to apply to all current subscriptions and to any subscription added later. The security engineer wants to avoid creating new assignments as the environment grows. Which scope should the engineer select for the assignment?
Domain: Manage identity, access, and governance (20–25%) Type: Single choice
- A. Each existing subscription
- B. The resource group that contains shared services
- C. The management group that contains all subscriptions
- D. One subscription, with exclusions for other workloads
C is correct.
Explanation: Policy assignments inherit through the hierarchy from management group to subscription, resource group, and resource. A management group assignment covers every subscription in that group, including new subscriptions added in the future, providing broad organization-wide baseline governance. Documented exclusions can carve out justified exceptions when needed. This scope works best for consistent tenant-level baseline controls.
A is incorrect: Assigning at subscription scope covers only that subscription, meaning new subscriptions created later are not covered automatically without manual configuration.
B is incorrect: Resource group scope is rarely used for security policies because it evaluates only one resource group, failing to protect the broader organization.
D is incorrect: Assigning at one subscription with exclusions still restricts evaluation to that single subscription, failing to provide inheritance across multiple or future subscriptions.
Q012 - Question
An organization uses the Microsoft Security DevOps Azure DevOps task to scan Bicep templates. The security team wants to evaluate templates against Azure Well-Architected Framework and Cloud Adoption Framework rules alongside Template Analyzer checks. How should the team configure the pipeline task to run these framework checks?
Domain: Manage and monitor security posture (20–25%) Type: Single choice
- A. Set the categories input to 'IaC' and 'Architecture'
- B. Add the tools input and specify PSRule for Azure
- C. Configure agentless IaC scanning on the Azure DevOps connector
- D. Add the @secure() decorator to each Bicep resource block
B is correct.
Explanation: Microsoft Security DevOps provides PSRule for Azure as a discrete analysis tool. By specifying PSRule for Azure in the pipeline task tools parameter alongside or instead of Template Analyzer, the extension validates Bicep templates against Azure Well-Architected Framework and Cloud Adoption Framework rules, providing architectural compliance checks alongside security analysis.
A is incorrect: Setting categories to 'IaC' scopes analysis to infrastructure templates, but MSDO does not have an Architecture category to enable additional framework scanning.
C is incorrect: Agentless scanning runs every 24 hours without pipeline tasks, but it does not add customizable framework checks to an existing pipeline run.
D is incorrect: The @secure() decorator is applied to parameter declarations to protect credentials from deployment history, not to resource blocks for framework evaluation.
Q013 - Question
Contoso is concerned that a compromised backup administrator account could shorten the soft delete window before deleting backup items. The requirement is that no user, including a Global Administrator, can reduce or disable the retention period on a Recovery Services vault. Which setting meets this requirement?
Domain: Secure storage, databases, and networking (25–30%) Type: Single choice
- A. Enable always-on soft delete on the vault.
- B. Enable vault immutability in the reversible Enabled state.
- C. Set soft delete retention to 180 days without always-on.
- D. Protect the vault with Multi-User Authorization.
A is correct.
Explanation: Always-on soft delete makes the retention period irreversible. After you enable it, no user, including a Global Administrator, can reduce or disable the retention period on that vault. A compromised administrator account therefore cannot shorten the window before deleting items, and deleted items stay recoverable for the full configured duration. This applies to the retention setting itself.
B is incorrect: Reversible immutability can be disabled later and does not lock the soft delete retention period itself. It protects recovery points instead.
C is incorrect: A longer period helps detect threats, but without always-on it can still be reduced by an attacker with administrator credentials.
D is incorrect: MUA requires Resource Guard owner approval to shorten retention, but approval can still be granted, so the period is not locked.
Q014 - Question
Contoso configured Multi-User Authorization for a Recovery Services vault. During testing, the vault administrator approves their own request to stop backup with data deletion. The security administrator reviews the Resource Guard access settings. What is the likely cause?
Domain: Manage identity, access, and governance (20–25%) Type: Single choice
- A. The Resource Guard is in a different subscription than the vault.
- B. The Restore operation is disabled on the Resource Guard.
- C. The vault administrator has the Reader role on the Resource Guard.
- D. The vault administrator has the Contributor role on the Resource Guard.
D is correct.
Explanation: The vault administrator must not hold Contributor, Backup MUA Admin, or Backup MUA Operator permissions on the Resource Guard. Any of these roles allows self-approval of critical operations, which defeats the two-administrator requirement. Remove the Contributor assignment and give the vault administrator Reader so they can see the Resource Guard and submit requests. Role separation is required.
A is incorrect: A separate subscription is the recommended pattern and increases separation, so it cannot cause self-approval by the vault administrator.
B is incorrect: Restore is an optional protected operation that is disabled by default. Leaving it disabled does not allow approval of other operations.
C is incorrect: Reader access lets the vault administrator see the Resource Guard and submit requests, but it does not allow approving them.
Q015 - Question
A company maintains an on-premises Windows file server and wants to centralize shares in Azure Files. The solution must automatically synchronize files bi-directionally between the server and Azure, while retaining infrequently accessed files in the cloud until requested. Which tool should you use?
Domain: Secure storage, databases, and networking (25–30%) Type: Single choice
- A. Azure File Sync
- B. AzCopy sync
- C. Azure Storage Explorer
- D. AzCopy copy
A is correct.
Explanation: Azure File Sync centralizes file shares in Azure Files while preserving a local Windows file server cache. Once installed, it automatically maintains bi-directional synchronization with Azure. It also supports cloud tiering, which keeps frequently accessed files cached locally while preserving infrequently accessed files in the cloud until requested by users.
B is incorrect: AzCopy sync provides only one-direction synchronization between a designated source and destination, and it does not support bi-directional synchronization or cloud tiering.
C is incorrect: Azure Storage Explorer is a standalone desktop GUI application that uses AzCopy for manual file management tasks rather than automated background synchronization.
D is incorrect: AzCopy copy is a command-line transfer tool designed for one-time file copying operations, lacking automated bi-directional synchronization and cloud tiering capabilities.
Q016 - Question
An organization enforces Microsoft Defender for Storage across all subscriptions by using Azure Policy with a 10,000-GB monthly malware scanning cap. One high-volume partner upload storage account routinely exceeds this cap. The security team must increase this account's cap to 25,000 GB without changing other accounts. What should the team do?
Domain: Manage and monitor security posture (20–25%) Type: Single choice
- A. Create an alert suppression rule scoped to the partner upload storage account in Defender for Cloud.
- B. Update the policy parameters at management group scope to set the monthly cap to 25,000 GB.
- C. Re-assign the Azure Policy definition to each individual storage account with the updated cap value.
- D. Apply a resource-level configuration override directly on the partner upload storage account.
D is correct.
Explanation: Resource-level enablement provides granular control and overrides subscription-level configurations for that specific account. When both subscription-level and resource-level settings exist, resource-level settings take precedence. Applying a resource-level configuration override directly on the partner upload account allows the team to increase its monthly malware scanning cap to 25,000 GB while retaining the subscription baseline elsewhere.
A is incorrect: Alert suppression rules filter out specific alert types to reduce operational noise. They do not increase scanning limits or adjust monthly caps.
B is incorrect: Modifying the Azure Policy parameters at the management group scope alters the monthly cap across all covered accounts, violating the scenario constraint.
C is incorrect: The built-in Azure Policy deployment functions at management group or subscription scopes, not as direct assignments targeted to individual storage account resources.
Q017 - Question
A team creates a private endpoint for blob storage by using Azure CLI. Clients in the virtual network still resolve mystorageaccount.blob.core.windows.net to the storage account's public IP address. What should the team do?
Domain: Secure storage, databases, and networking (25–30%) Type: Single choice
- A. Create the privatelink.blob.core.windows.net private DNS zone, add the record, and link the virtual network
- B. Add the virtual network as a virtual network rule on the storage account
- C. Enable the Microsoft.Storage service endpoint on the client subnet
- D. Create a second private endpoint for the file service
A is correct.
Explanation: Private endpoints need DNS configuration so the storage account name resolves to the private IP address. The Azure portal creates the private DNS zone automatically, but with Azure CLI, PowerShell, or Bicep you create the zone and records manually. For blob storage, use privatelink.blob.core.windows.net. Link the virtual network to the zone, as the portal does.
B is incorrect: A virtual network rule controls public endpoint access from a subnet. It does not change DNS resolution for the account name.
C is incorrect: A service endpoint uses the public IP address and DNS resolves to it. It does not provide private endpoint name resolution.
D is incorrect: Each storage service needs its own private endpoint. A file endpoint does not fix name resolution for the blob endpoint.
Q018 - Question
A security engineer enables Microsoft Defender for Storage on a production storage account that ingests external partner files. To validate that the on-upload malware scanning pipeline is actively analyzing new files without waiting for a genuine threat, what action should the engineer take?
Domain: Manage and monitor security posture (20–25%) Type: Single choice
- A. Generate a synthetic sample alert for Suspicious SAS token used in Microsoft Defender for Cloud.
- B. Navigate to Storage Center and confirm that the account displays a status of Partly protected.
- C. Upload a test file and query the blob index tags for Malware scanning scan result.
- D. Check Microsoft Defender for Cloud environment settings to confirm that email notifications are enabled.
C is correct.
Explanation: Uploading a test file and inspecting the blob metadata validates that malware scanning is actively processing content. Defender for Storage writes the blob index tag Malware scanning scan result (showing No threats found or Malicious) and a scan timestamp tag to analyzed blobs. If these tags are missing, scanning is either disabled or paused due to reaching monthly caps.
A is incorrect: Generating sample alerts validates alert delivery to email or Microsoft Sentinel, but does not verify whether uploaded blobs are actively scanned for malware.
B is incorrect: A Partly protected status in Storage Center indicates that Defender is enabled but features like malware scanning are currently disabled.
D is incorrect: Confirming email settings validates notification delivery preferences, but provides no confirmation that uploaded files undergo active file content malware analysis.
Q019 - Question
An AI service hosted in one virtual network must query an Azure SQL Managed Instance deployed in a separate virtual network. Compliance policies mandate complete network isolation with no public IP exposure. The public endpoint is disabled. Which solution provides private connectivity between the two virtual networks?
Domain: Secure storage, databases, and networking (25–30%) Type: Single choice
- A. Enable virtual network peering between the two virtual networks
- B. Enable the public endpoint on port 3342 and configure firewall rules
- C. Deploy a private endpoint for the instance and disable public network access
- D. Remove the subnet delegation to Microsoft.Sql/managedInstances on the instance subnet
A is correct.
Explanation: Azure SQL Managed Instance is natively deployed within a delegated virtual network subnet rather than using private endpoints. To enable communication from an application hosted in a separate virtual network without routing traffic over the public internet, configuring virtual network peering provides private, low-latency connectivity across the Microsoft backbone network while preserving strict network isolation.
B is incorrect: Enabling the optional public endpoint on port 3342 exposes the SQL Managed Instance to public internet traffic, violating mandatory private compliance requirements.
C is incorrect: Private endpoints are used to bring multi-tenant Azure SQL Database into a virtual network, whereas SQL Managed Instance is already virtual network-native.
D is incorrect: Subnet delegation to Microsoft.Sql/managedInstances is required for the service to manage network resources and cannot be removed to facilitate cross-network communication.
Q020 - Question
A team runs SQL Managed Instance and must send audit logs to a Log Analytics workspace. They already created a server audit with TO EXTERNAL_MONITOR and a server audit specification. Which step completes the destination configuration?
Domain: Secure storage, databases, and networking (25–30%) Type: Single choice
- A. Create a SQL credential that stores a SAS token named for the workspace
- B. Add a diagnostic setting on the instance with the SQLSecurityAuditEvents log category
- C. Create a second server audit with the TO URL clause
- D. Select Log Analytics on the portal auditing screen under Security
B is correct.
Explanation: SQL Managed Instance uses the TO EXTERNAL_MONITOR clause to direct audit records into Azure's diagnostic pipeline. Completing the routing to Log Analytics requires navigating to Monitoring, opening Diagnostic settings on the managed instance, creating a diagnostic setting that enables the SQLSecurityAuditEvents log category, and selecting the target Log Analytics workspace.
A is incorrect: A SQL credential containing a SAS token is required only for blob storage destinations using TO URL, not for Log Analytics integration.
C is incorrect: Creating an audit with TO URL routes extended event files to blob storage, failing to send telemetry to the Log Analytics workspace.
D is incorrect: The portal auditing screen for SQL Managed Instance covers storage destinations; routing to Log Analytics requires T-SQL and portal diagnostic settings.
Q021 - Question
A security engineer is configuring Transparent Data Encryption with a customer-managed key in Azure Key Vault for an Azure SQL database. The Key Vault has a firewall configured and no private endpoint. Although soft-delete and purge protection are enabled, key retrieval fails. Which setting must the engineer configure on the Key Vault?
Domain: Secure storage, databases, and networking (25–30%) Type: Single choice
- A. Enable Allow trusted Microsoft services to bypass the firewall
- B. Configure the soft-delete retention period to the 7-day minimum
- C. Replace the asymmetric RSA key with a symmetric service-managed key
- D. Set the minimum TLS version on the SQL server to version 1.3
A is correct.
Explanation: When an Azure Key Vault has a firewall enabled and does not use private endpoints, the SQL server managed identity cannot access the TDE protector key by default. Enabling Allow trusted Microsoft services to bypass the firewall grants Azure SQL the necessary network path to retrieve the customer-managed key and wrap the database encryption key successfully.
B is incorrect: Soft-delete retention governs how long deleted vaults or keys are retained before purging, but it does not resolve network firewall connectivity issues.
C is incorrect: Customer-managed TDE requires an asymmetric RSA key in Key Vault, and reverting to service-managed keys violates regulatory requirements for customer key ownership.
D is incorrect: Minimum TLS settings enforce client transport protocol versions when connecting to SQL, without affecting outbound communication between SQL and Key Vault firewalls.
Q022 - Question
A security engineer must configure Entra-only authentication on an Azure SQL server where no Microsoft Entra admin currently exists. The organization requires that future personnel changes do not require reconfiguring the SQL server settings. Which sequence of actions should the security engineer perform first?
Domain: Manage identity, access, and governance (20–25%) Type: Single choice
- A. Enable Entra-only authentication immediately, then configure an individual user as the Microsoft Entra admin
- B. Configure a Microsoft Entra group as the admin, then enable Entra-only authentication on the server
- C. Create contained database users for each engineer, then enable Entra-only authentication on the server
- D. Assign the SQL Server Contributor Azure RBAC role to the engineering team, then enable Entra-only authentication
B is correct.
Explanation: A Microsoft Entra admin must be configured on the logical SQL server before enabling Entra-only authentication mode. Using a Microsoft Entra group as the admin allows managing administrative membership directly in Microsoft Entra ID without reconfiguring the SQL server when personnel change. After this administrator group is established, the engineer can safely enable Entra-only authentication.
A is incorrect: The Microsoft Entra admin must exist before turning on Entra-only authentication, and an individual user requires server reconfiguration whenever staff changes occur.
C is incorrect: Creating contained database users does not set the required server-level administrator, and contained identities cannot be provisioned until an administrator connects.
D is incorrect: The SQL Server Contributor role manages resources but cannot configure security policies, nor does assigning RBAC establish the required Microsoft Entra administrator.
Q023 - Question
Contoso must immediately compile a remediation inventory of all Azure Storage accounts lacking private endpoint connections across multiple subscriptions, without waiting for the Azure Policy evaluation cycle to run. Which tool and method should the security engineer use to identify these noncompliant resources at scale?
Domain: Manage and monitor security posture (20–25%) Type: Single choice
- A. Run an Azure Resource Graph query filtering storage accounts where private endpoint connections are null or empty
- B. Configure a DeployIfNotExists Azure Policy assignment to trigger an on-demand evaluation scan
- C. Review the Microsoft Defender for Cloud secure score recommendations on the subscription overview page
- D. Query the Azure Monitor activity logs for storage account provisioning events that enabled public access
A is correct.
Explanation: Azure Resource Graph provides a programmatic query interface across subscriptions to filter and export resources at scale reflecting current Azure Resource Manager state. Querying storage accounts where properties.privateEndpointConnections is null or empty generates an immediate remediation list. This approach avoids waiting for the standard policy evaluation cycle and allows exporting results to CSV for resource owners.
B is incorrect: Azure Policy evaluations run on periodic cycles rather than providing instant custom inventory queries, and DeployIfNotExists applies automated remediation rather than reporting.
C is incorrect: Defender for Cloud displays security recommendations, but it does not provide an immediate, queryable inventory export that bypasses policy evaluation cycles.
D is incorrect: Activity logs record administrative management events over time, but they do not provide a consolidated snapshot of current configuration states across resources.
Q024 - Question
A branch office has 200 employees, and only 15 need Azure access. The site-to-site VPN tunnel uses IKEv2 with a custom IPsec/IKE policy. The security team reports that the over-broad access risk remains. Which statement explains why the risk persists?
Domain: Secure storage, databases, and networking (25–30%) Type: Single choice
- A. The tunnel gives the entire branch network access to the Azure virtual network, regardless of strong encryption.
- B. IKEv2 cannot support per-device authentication, so all branch devices share an uninspected network identity.
- C. Azure inspects traffic inside the branch network, so the tunnel exposes all internal branch endpoints directly.
- D. Custom IPsec/IKE policies apply only to point-to-site connections, leaving the site-to-site tunnel completely unrestricted.
A is correct.
Explanation: A site-to-site VPN tunnel connects the entire branch network to the destination Azure virtual network. Even when hardened with IKEv2 and strong IPsec policies, the tunnel operates at layer 3 and cannot distinguish between individual roles. Therefore, all 200 branch employees gain network access to Azure resources even though only 15 require it.
B is incorrect: Over-broad access is caused by network-level subnet routing rather than IKEv2 identity limitations. Protocol choice secures the tunnel negotiation but cannot restrict internal subnet reachability.
C is incorrect: Azure monitors boundary traffic crossing the tunnel rather than inspecting internal branch packets. Missing branch inspection limits visibility but does not create the broad network access.
D is incorrect: Custom IPsec/IKE policies apply specifically to site-to-site and VNet-to-VNet connections. Point-to-site connections use a different configuration model and inherit settings from the gateway SKU.
Q025 - Question
A security team is preparing to enable routing intent for private and internet traffic on a production Secured Virtual Hub. The Firewall Policy may not yet permit all legitimate traffic. Which action should the team take first?
Domain: Secure storage, databases, and networking (25–30%) Type: Single choice
- A. Enable routing intent in production immediately and add allow rules after monitoring drops
- B. Remove the Firewall Policy association from the hub before enabling routing intent
- C. Test on a nonproduction hub and verify required traffic is permitted in the Firewall Policy
- D. Enable routing intent only in the Virtual WAN portal to isolate routing changes from policy
C is correct.
Explanation: Enabling routing intent on a production hub immediately reroutes all traffic through Azure Firewall. If the associated Firewall Policy lacks necessary allow rules, legitimate production traffic is blocked instantly. Testing against a nonproduction hub allows the team to validate that all required private and internet flows are permitted before applying the configuration in production.
A is incorrect: Because routing intent immediately redirects traffic through the firewall, applying it in production before permitting traffic will disrupt critical active business communications.
B is incorrect: Removing the Firewall Policy leaves the hub firewall without inspection rules, which does not safely prepare or validate traffic for routing intent.
D is incorrect: Azure Firewall Manager and the Virtual WAN portal manage identical underlying configurations, so using the Virtual WAN portal will not isolate routing changes.
Q026 - Question
Contoso must give a manufacturing partner private access to an inventory API. Both organizations use overlapping 10.0.0.0/8 ranges, and Contoso wants no public IP address and no full network exposure. Which design meets the requirements?
Domain: Secure storage, databases, and networking (25–30%) Type: Single choice
- A. Private Link Service behind a Standard internal load balancer, with the partner using the alias to create a private endpoint
- B. Virtual network peering configured between Contoso's virtual network and the manufacturing partner's virtual network
- C. Private Link Service deployed in front of a public-facing Standard load balancer with an alias
- D. Private Link Service configured with a Basic SKU internal load balancer and a dedicated NAT subnet
A is correct.
Explanation: Azure Private Link Service uses source NAT to translate incoming client traffic into addresses from a dedicated NAT subnet, eliminating IP address conflicts between overlapping CIDR blocks. It supports unidirectional access and requires a Standard SKU internal load balancer. The consumer connects using the service alias to deploy a private endpoint, avoiding virtual network peering.
B is incorrect: Virtual network peering requires nonoverlapping IP address spaces and exposes entire networks, violating Contoso's requirement to isolate services and handle overlapping ranges.
C is incorrect: Azure Private Link Service does not support public-facing load balancers, and using a public frontend violates the requirement to avoid public IPs.
D is incorrect: Azure Private Link Service strictly requires a Standard SKU internal load balancer; Basic SKU load balancers are not supported for this architecture.
Q027 - Question
You turned on the AI workloads plan for a subscription. During alert investigations in Microsoft Defender XDR, analysts also need short, redacted snippets of the prompts that triggered the alerts. What should you configure?
Domain: Manage and monitor security posture (20–25%) Type: Single choice
- A. Turn on data security for AI interactions to integrate with Microsoft Purview
- B. Turn on suspicious prompt evidence under Monitoring coverage settings
- C. Enable Defender CSPM to provide attack path analysis for AI resources
- D. Register the Microsoft.Security resource provider for each subscription
B is correct.
Explanation: Under Monitoring coverage in AI Services settings, turning on suspicious prompt evidence captures short, redacted snippets of AI prompts that triggered security alerts. These captured prompt segments surface directly in Microsoft Defender XDR during alert investigations to provide deeper visibility. This extension is optional and provides specific evidentiary details without altering core AI workloads plan functionality.
A is incorrect: Data security for AI interactions integrates with Microsoft Purview to classify and protect prompt and response data, rather than surfacing alert snippets.
C is incorrect: Defender CSPM delivers attack path analysis and security posture recommendations for AI-related assets, but it does not capture prompt snippets for alerts.
D is incorrect: Registering the Microsoft.Security resource provider ensures subscription assessment and policy flow, but it does not enable the prompt evidence capture capability.
Q028 - Question
AI threat protection alerts appear in the Microsoft Defender portal when filtered by Microsoft Defender for Cloud as the service source. However, these alerts do not appear in the Incidents view in Microsoft Sentinel. What should the security engineer verify first?
Domain: Manage and monitor security posture (20–25%) Type: Single choice
- A. Verify that suspicious prompt evidence is enabled in Environment settings
- B. Verify that the email notification threshold is set to Low severity
- C. Verify that Data security for AI interactions is enabled
- D. Verify that the Microsoft Defender XDR data connector is active
D is correct.
Explanation: Alerts flow from Microsoft Defender XDR to Microsoft Sentinel through the Microsoft Defender XDR data connector. Because the AI alerts already appear in the Microsoft Defender portal, detection and delivery to Defender XDR are functioning properly. Confirming that the data connector is active is the necessary step to restore incident synchronization into Microsoft Sentinel.
A is incorrect: Suspicious prompt evidence adds redacted prompt and response snippets to alert details. It affects alert context during triage but does not control alert ingestion into Sentinel.
B is incorrect: Email notification settings determine recipient email addresses and severity filters for subscription notifications. They operate independently of incident forwarding to the Microsoft Sentinel workspace.
C is incorrect: Data security for AI interactions shares prompt metadata with Microsoft Purview for compliance tasks. It does not manage how Defender for Cloud alerts flow into Microsoft Sentinel.
Q029 - Question
An administrator saves a content filter named CustomerSupportFilter with input and output settings. A later review shows that the Contoso Customer Support model deployment runs without the intended guardrails. Which configuration step was missed?
Domain: Secure compute (20–25%) Type: Single choice
- A. Connect the filter to the model deployment
- B. Set Prompt Shields to annotate only
- C. Set every harm category threshold to the highest level
- D. Rename the filter to describe its purpose
A is correct.
Explanation: Linking a filter to model deployments determines where protections take effect. In this case, the deployment has no connection to the filter. Connect the filter to the existing deployment, or assign it when creating a new one. Review connections periodically so active models are not left without the intended guardrails. Then validate behavior on the Try it out tab.
B is incorrect: Prompt Shields settings specify whether detected attacks are annotated or blocked. They do not link or bind a content filter to a deployment.
C is incorrect: Higher thresholds block more aggressively, but thresholds do not connect a filter to a deployment, so the deployment stays unprotected.
D is incorrect: Descriptive names help identify configurations across projects during administrative reviews. Changing or choosing a name does not attach the filter to deployments.
Q030 - Question
A RestrictedTermsList must block internal strings such as Admin-Token 9876, where the number changes between prompts. The administrator adds the entry by using Add new term in Microsoft Foundry. Which entry configuration should the administrator select?
Domain: Secure compute (20–25%) Type: Single choice
- A. Exact match with the full string Admin-Token 9876
- B. Exact match, with the blocklist selected only under Output filter
- C. Bulk add from a CSV file with the Type set to Exact match
- D. Regex pattern that covers the token and its changing number
D is correct.
Explanation: Regex entries allow flexible pattern matching that captures variations or partial phrases. Because the number in the token changes, one Regex pattern can cover the variations, while Exact match only detects specific words or phrases exactly as they appear. After you add the entry, validate it on the Try it out page in Guardrails + controls.
A is incorrect: Exact match detects the phrase only as written, so Admin-Token 9876 would not cover other numbers that appear in later prompts.
B is incorrect: The Output filter setting controls where the blocklist applies, not how terms match. Exact match would still miss varying numeric tokens.
C is incorrect: Bulk add uploads terms by CSV, but Exact match rows still match only exact text and would miss changing numbers.
Q031 - Question
An Azure Policy compliance scan of the built-in Windows security baseline reveals noncompliant password and service configurations across several factory virtual machines. Security administrators want to automatically remediate only those specific noncompliant settings across the virtual machines. Which action should the administrators take?
Domain: Secure compute (20–25%) Type: Single choice
- A. Reassign the built-in Windows security baseline initiative using the DeployIfNotExists effect
- B. Create an Azure Policy remediation task directly against the built-in security baseline initiative
- C. Author custom Machine Configuration packages targeting those settings and assign them in enforce mode
- D. Configure the prerequisite initiative to automatically remediate noncompliant operating system settings
C is correct.
Explanation: Built-in baseline policies use the AuditIfNotExists effect by default and cannot be modified or reassigned with DeployIfNotExists. Because their effect is fixed, automated remediation requires authoring custom Machine Configuration packages that specifically target the desired settings, validating them with application owners, and assigning those custom policy definitions in enforce mode to correct configuration drift automatically.
A is incorrect: Built-in baseline initiatives have a fixed AuditIfNotExists effect that cannot be reassigned with DeployIfNotExists to enforce guest operating system configurations.
B is incorrect: Creating a remediation task fails because built-in baselines use AuditIfNotExists, which only evaluates and reports noncompliance without offering automated remediation capabilities.
D is incorrect: The prerequisites initiative only deploys the Machine Configuration extension and managed identity; it does not audit or configure guest operating system settings.
Q032 - Question
An administrator enables JIT VM access on a Windows virtual machine from the VM Configuration blade. The security team discovers that only RDP port 3389 is protected, leaving WinRM unprotected. How should the team enable JIT so that WinRM ports 5985 and 5986 are included in the default policy?
Domain: Secure compute (20–25%) Type: Single choice
- A. Enable JIT VM access from the Not configured tab in Defender for Cloud
- B. Enable JIT VM access again from the VM Configuration blade in the portal
- C. Assign the built-in Azure Policy definition for management port protection
- D. Connect to the virtual machine by using Azure Bastion from the portal
A is correct.
Explanation: Enabling JIT from the Not configured tab in Defender for Cloud applies the full default Windows policy covering RDP port 3389 and WinRM ports 5985 and 5986. Enabling JIT from the individual VM Configuration page includes only port 3389 by default, so administrators must use the Defender for Cloud interface or programmatic methods.
B is incorrect: Enabling JIT repeatedly from the VM Configuration blade continues to apply only the single-port default configuration containing port 3389 for Windows machines.
C is incorrect: Azure Policy audits virtual machines lacking JIT protection using the AuditIfNotExists effect, but it does not enable JIT or customize port policies.
D is incorrect: Azure Bastion provides browser-based administrative access to virtual machines, but it does not configure JIT policies or add default WinRM protection.
Q033 - Question
Contoso enrolled Ubuntu servers in Azure Arc and wants Azure Machine Configuration to evaluate them. The servers already have the Azure Connected Machine agent installed. Which prerequisite deployment is required before compliance evaluation can occur?
Domain: Secure compute (20–25%) Type: Single choice
- A. Deploy the extension and a new system-assigned managed identity
- B. Deploy only the Azure Machine Configuration extension
- C. Deploy the extension and an Azure Monitor agent
- D. Reinstall the Azure Connected Machine agent and deploy the extension
B is correct.
Explanation: Arc-enabled servers already have the Azure Connected Machine agent installed, which automatically provides the system-assigned managed identity prerequisite. Machine Configuration evaluation requires both the extension and a managed identity to evaluate and report guest OS settings to Azure Policy. Because the identity requirement is satisfied by the agent, the administrator only needs to deploy the Azure Machine Configuration extension to enable compliance scanning.
A is incorrect: The Azure Connected Machine agent already supplies the system-assigned managed identity for Arc-enabled servers, so deploying another managed identity is unnecessary.
C is incorrect: The required prerequisites are the Machine Configuration extension and a system-assigned managed identity; an Azure Monitor agent is not a prerequisite for evaluation.
D is incorrect: Reinstalling the Azure Connected Machine agent is unnecessary because the existing installation already provides the required managed identity for Machine Configuration reporting.
Q034 - Question
You are deploying a new VM to process proprietary formulas. The OS disk key must be bound to the vTPM. Data disks and temporary storage must also be encrypted. Which configuration should you use?
Domain: Secure compute (20–25%) Type: Single choice
- A. Create a Trusted launch VM with encryption at host, then convert it to a Confidential VM.
- B. Create a Confidential VM with DiskWithVMGuestState and encryption at host enabled.
- C. Create a Confidential VM with VMGuestStateOnly and encryption at host enabled.
- D. Create a Confidential VM with DiskWithVMGuestState and no encryption at host.
B is correct.
Explanation: DiskWithVMGuestState encrypts the OS disk with the VM Guest State blob and provides vTPM binding. Confidential disk encryption doesn't extend to data disks, so encryption at host protects data disks and temporary storage. The Confidential VM security type must be selected when you create the VM. Use a DCasv5 or ECasv5 size in a supported region.
A is incorrect: You can't convert Standard or Trusted launch VMs to Confidential VMs after deployment. Confidential VM must be selected at creation.
C is incorrect: VMGuestStateOnly protects only the VM Guest State blob. The OS disk uses standard server-side encryption, so it has no vTPM-bound confidential encryption.
D is incorrect: Confidential disk encryption applies only to the OS disk. Without encryption at host, data disks and temporary storage don't receive protection.
Q035 - Question
An App Service app stores an Azure SQL Database connection string in an app setting. Contoso wants to stop storing the credential in app settings and avoid application code changes. The secret is kept in Key Vault. Which configuration should you implement?
Domain: Manage identity, access, and governance (20–25%) Type: Single choice
- A. Enable the token store in EasyAuth and read the secret from injected HTTP request headers.
- B. Enable a system-assigned managed identity, assign Key Vault Secrets User on the vault, and use a Key Vault reference in the app setting.
- C. Enable HTTPS Only and set the minimum TLS version to 1.2 on the App Service.
- D. Configure regional VNet integration and keep the connection string in the app setting.
B is correct.
Explanation: A system-assigned managed identity gives App Service an identity in Microsoft Entra ID without stored credentials. Assigning Key Vault Secrets User on the vault lets the identity retrieve secrets. A Key Vault reference in the app setting resolves at runtime using the identity, allowing the application code to read the secret normally without code modifications.
A is incorrect: The token store manages OAuth tokens for users. It cannot retrieve Key Vault secrets or replace plaintext connection strings stored in app settings.
C is incorrect: HTTPS Only and TLS 1.2 enforce transport-level encryption for incoming requests. They do not protect or replace database credentials in configuration settings.
D is incorrect: Regional VNet integration provides private outbound connectivity. It cannot eliminate stored credentials from app settings or authenticate the application to Key Vault.
Q036 - Question
You enabled Microsoft Entra integration on an existing AKS cluster. An audit shows a former contractor still signs in by using static credentials from a kubeconfig file, and no conditional access policy applies. A Microsoft Entra admin group is already configured. What should you do?
Domain: Manage identity, access, and governance (20–25%) Type: Single choice
- A. Bind all Kubernetes RoleBindings to Microsoft Entra groups instead of individual users
- B. Run az aks update with --disable-local-accounts after you confirm a Microsoft Entra cluster admin group exists
- C. Assign the Azure Kubernetes Service Cluster User Role to the contractor's Microsoft Entra account
- D. Run az aks update with --enable-aad again and specify the admin group object ID
B is correct.
Explanation: Enabling Microsoft Entra integration does not disable local accounts, so static kubeconfig credentials still authenticate and bypass conditional access and Microsoft Entra sign-in logs. Disabling local accounts forces all access through Microsoft Entra. Confirm an Entra admin group exists first to avoid lockout. This closes the static credential path the contractor uses, and cluster access then appears in Microsoft Entra audit logs.
A is incorrect: Group-based RoleBindings simplify authorization changes, but they do not remove the local account path, so static credentials still bypass conditional access.
C is incorrect: The Cluster User Role controls who can pull the regular user kubeconfig from Azure. It does not disable local accounts.
D is incorrect: Running --enable-aad again configures Microsoft Entra integration, which is already active. Local accounts remain enabled until you run the disable command.
Q037 - Question
You are creating an Azure Container Instances deployment for a sensitive processing job. The container process must be prevented from writing to or modifying files in the container root filesystem, while still allowing writes to designated temporary storage. Which security context configuration should you apply?
Domain: Secure compute (20–25%) Type: Single choice
- A. Set readOnlyRootFilesystem to true and mount an emptyDir volume for required write paths
- B. Configure runAsUser to 0 in the security context and mount an Azure Files share
- C. Delegate the virtual network subnet to Microsoft.ContainerInstance/containerGroups
- D. Assign a system-assigned managed identity and grant the Key Vault Secrets User role
A is correct.
Explanation: Setting readOnlyRootFilesystem to true in the security context prevents the container process from writing to or modifying the root filesystem, protecting application binaries and configuration files from unauthorized tampering. When the running workload requires writing temporary files or application logs, those paths must be explicitly directed through mounted emptyDir volumes rather than the container root filesystem.
B is incorrect: Setting runAsUser to 0 runs the container process with root privileges, which increases security risk instead of locking filesystem modifications.
C is incorrect: Subnet delegation enables deploying container groups into a private virtual network, but it does not restrict host filesystem write permissions.
D is incorrect: Assigning a managed identity with Key Vault roles provides credential-free secret retrieval, but it does not control container filesystem write behavior.
Q038 - Question
A partner calls Contoso Retail's API through a corporate NAT gateway. The product uses ip-filter with action="allow" and lists the partner's internal client addresses. Callers have valid subscription keys but receive 403 Forbidden. What should you change?
Domain: Secure storage, databases, and networking (25–30%) Type: Single choice
- A. Change the ip-filter action to deny and list the internal client addresses
- B. Replace ip-filter with rate-limit-by-key that uses the caller IP address as the counter key
- C. Add the NAT gateway's egress IP range to the allow list
- D. Move the ip-filter policy to the outbound section
C is correct.
Explanation: API Management evaluates the IP address it receives. When callers reach the gateway through a NAT gateway or proxy, the service detects the egress IP rather than originating internal client addresses. Adding the NAT gateway's public egress IP range permits legitimate partner traffic, while the allow list continues blocking all unauthorized inbound addresses with 403 Forbidden.
A is incorrect: Setting action to deny blocks the listed internal addresses while allowing all other internet traffic, completely compromising the intended perimeter security.
B is incorrect: The rate-limit-by-key policy throttles excessive call volume with 429 Too Many Requests, but it cannot solve network-level IP authorization failures.
D is incorrect: The ip-filter policy must execute during inbound processing before request forwarding; moving it outbound cannot resolve inbound connection rejection.
Q039 - Question
Contoso must onboard hundreds of on-premises Windows and Linux servers to Defender for Servers Plan 2. Administrators can't sign in interactively to each machine, and the team already uses Group Policy for software deployment. Which approach should you use?
Domain: Secure compute (20–25%) Type: Single choice
- A. Create a native cloud connector for the on-premises environment in Environment settings.
- B. Install the Microsoft Monitoring Agent on each server and connect it to a Log Analytics workspace.
- C. Run the portal-generated single-server script on each machine with local administrator privileges.
- D. Create a service principal with the Azure Connected Machine Onboarding role and distribute a deployment script through Group Policy.
D is correct.
Explanation: For a fleet of on-premises servers, create a service principal in Microsoft Entra ID with the Azure Connected Machine Onboarding role. Generate a deployment script that uses service principal authentication and distribute it through Group Policy. Each machine installs the Connected Machine agent independently and registers in the target subscription and resource group, with no per-machine manual intervention.
A is incorrect: On-premises machines have no API surface that Defender for Cloud can call, so a native connector cannot onboard them. Use Azure Arc.
B is incorrect: The Microsoft Monitoring Agent retired in August 2024 and cannot be used. Azure Arc is now the required, supported onboarding path.
C is incorrect: The single-server script suits individual machines or small pilots. It requires local administrator privileges on each machine and expires quickly.
Q040 - Question
A security analyst in your tenant must view the Defender EASM inventory, dashboards, and findings. The analyst must not edit assets or discovery groups. Which access should you assign to follow the least privilege principle?
Domain: Manage identity, access, and governance (20–25%) Type: Single choice
- A. Reader on the Defender EASM resource
- B. Contributor on the Defender EASM resource
- C. Owner on the resource group containing the workspace
- D. Reader assigned through Azure Lighthouse from a managing tenant
A is correct.
Explanation: Reader lets team members view inventory, dashboards, and findings without modifying any asset or configuration. This assignment satisfies least privilege because the analyst only requires read-only visibility into security data. Assign the role directly on the Defender EASM resource, and ensure the analyst authenticates directly to the Azure tenant where the workspace was provisioned.
B is incorrect: Contributor allows users to create, edit, and delete EASM resources and inventory assets, exceeding the required read-only access level.
C is incorrect: Owner permits editing assets, managing labels, and configuring discovery groups, granting unnecessary administrative control over the entire EASM environment.
D is incorrect: Defender EASM does not support cross-tenant access, including Azure Lighthouse, requiring explicit authentication directly within the resource's hosting Azure tenant.
Q041 - Question
A security team suspects that several public web pages from an acquired company run outdated jQuery libraries with known CVEs. The team needs to review these web application vulnerabilities categorized by OWASP classification rather than standard EASM severity. Which dashboard should you select?
Domain: Manage and monitor security posture (20–25%) Type: Single choice
- A. Overview
- B. Attack surface summary
- C. Security posture
- D. OWASP Top 10
D is correct.
Explanation: The OWASP Top 10 dashboard evaluates external-facing pages and hosts against web application security risks. Its outdated components category specifically flags pages using vulnerable JavaScript libraries like older jQuery versions with CVEs. Findings on this dashboard use OWASP category classification rather than EASM's high, medium, and low severity scale, matching the team's operational requirements directly.
A is incorrect: The Overview dashboard provides high-level asset counts and overall risk priority summaries, but it does not classify vulnerabilities by OWASP categories.
B is incorrect: Attack surface summary displays asset type breakdowns, hosting providers, and sensitive services, organizing vulnerability counts by standard severity rather than OWASP.
C is incorrect: Security posture identifies CVE exposure, risky ports, SSL issues, and domain administration, but it does not categorize findings using OWASP classifications.
Q042 - Question
An AWS connector worked, then shows Has issues. Environment details reports an IAM role trust policy mismatch. An administrator recently edited the roles that the CloudFormation template created. How should you restore the connection?
Domain: Manage and monitor security posture (20–25%) Type: Single choice
- A. Rerun the CloudFormation template to restore the original trust conditions.
- B. Change the scan interval to 4 hours.
- C. Install the SSM Agent on each EC2 instance.
- D. Add the missing AWS regions to the connector.
A is correct.
Explanation: A trust policy mismatch happens when manual edits to the CloudFormation-created roles break the trust policy. Rerunning the CloudFormation template restores the original trust conditions, which lets Defender for Cloud assume the role through web identity federation again. Open Environment settings after the template runs to confirm that the Connectivity status returns to Healthy.
B is incorrect: Scan interval controls how often Defender for Cloud polls AWS APIs. It does not repair a broken IAM role trust policy.
C is incorrect: The SSM Agent is needed for Arc provisioning on EC2 instances. It does not fix the role trust policy.
D is incorrect: Adding regions extends coverage to unselected regions. It does not restore the trust conditions on the roles that were modified in IAM.
Q043 - Question
You ran the Azure Arc installation script on an on-premises Linux server and confirmed azcmagent is installed. You must now connect the server to Azure Arc. Which action should you perform next?
Domain: Manage and monitor security posture (20–25%) Type: Single choice
- A. Add the server to the Syslog Data Collection Rule before establishing connectivity.
- B. Run azcmagent connect with the required parameters as an administrative user and complete device login authentication.
- C. Install the AzureMonitorLinuxAgent extension from the Virtual Machines page in the Azure portal.
- D. Generate the Azure Arc onboarding script again and choose an alternate connectivity method.
B is correct.
Explanation: After the initial installation script successfully installs azcmagent on the non-Azure Linux server, the next required task is connecting the agent to Azure Arc. An administrative root user must execute the sudo azcmagent connect command with the necessary parameters and authenticate by opening the device login URL and providing the supplied code.
A is incorrect: Adding the server to the Syslog Data Collection Rule requires the machine to already be connected to Azure Arc, so this step cannot be performed first.
C is incorrect: Navigating to the Virtual Machines page and checking extensions applies to Azure Linux virtual machines rather than non-Azure servers connected through Azure Arc.
D is incorrect: Re-generating the onboarding script with another connectivity method is unneeded because the installation script already succeeded and azcmagent is already installed on the host.
Q044 - Question
Security analysts repeatedly run queries containing multiple extract expressions against the SyslogMessage string field in the Syslog table. You need to centralize the parsing logic so analysts can query the parsed fields without rewriting expressions each time. What should you do?
Domain: Manage and monitor security posture (20–25%) Type: Single choice
- A. Save the KQL parsing query as a Function in the Logs window, specifying a name and alias.
- B. Reconfigure the Syslog Data Collection Rule to send the incoming events to the CommonSecurityLog table.
- C. Save the KQL parsing query as a new Table in the Logs window using the Table drop-down option.
- D. Update the Linux Syslog data source configuration by adding custom extract expressions to the rule.
A is correct.
Explanation: The Syslog table stores unstructured message data inside the string field SyslogMessage. To avoid parsing fields in every query, you create a parser by writing the query in the Logs window, selecting Save, and choosing Function from the drop-down menu. Analysts can then reference the function name and alias just like any table.
B is incorrect: The CommonSecurityLog table receives events from the Common Event Format (CEF) connector, whereas standard Syslog collectors write raw events to the Syslog table.
C is incorrect: The Logs window save options do not include creating a custom table from a query; saving a reusable parser requires selecting Function from the drop-down.
D is incorrect: A Data Collection Rule specifies facilities, severities, and log destinations, but it does not support KQL string extraction expressions to parse SyslogMessage fields.
Q045 - Question
A security operations analyst must create analytics rules in Microsoft Sentinel and create and run playbooks. Playbooks are built on Azure Logic Apps as separate Azure resources. Which combination of built-in roles should be assigned to give the analyst the necessary permissions?
Domain: Manage identity, access, and governance (20–25%) Type: Single choice
- A. Microsoft Sentinel Responder and Logic App Contributor
- B. Microsoft Sentinel Contributor and Logic App Contributor
- C. Microsoft Sentinel Reader and Logic App Contributor
- D. Microsoft Sentinel Automation Contributor and Logic App Contributor
B is correct.
Explanation: The evidence supports B because Microsoft Sentinel Contributor grants permissions to create and edit analytics rules, workbooks, and other Microsoft Sentinel resources. Playbooks are separate Azure resources built on Azure Logic Apps, requiring the explicit assignment of Logic App Contributor. Together, this combination enables the analyst to create and run playbooks while managing analytics rules.
A is incorrect: Microsoft Sentinel Responder can view data and manage incidents, but it cannot create or edit analytics rules in Microsoft Sentinel.
C is incorrect: Microsoft Sentinel Reader only grants permission to view data, incidents, and workbooks, so the analyst cannot create or configure analytics rules.
D is incorrect: Microsoft Sentinel Automation Contributor is reserved for Sentinel to add playbooks to automation rules, not for assigning permissions to security team user accounts.
Q046 - Question
Contoso must handle each high-severity trading platform incident when it is created. The incident must be assigned to the trading security team and tagged. A threat intelligence service must also be queried for each IP entity, and the reputation score added as a comment. Which implementation meets the requirement?
Domain: Manage and monitor security posture (20–25%) Type: Single choice
- A. An automation rule that uses only the assign owner and add tags actions
- B. An automation rule that assigns and tags the incident, then runs a Logic Apps playbook for enrichment
- C. A Logic Apps playbook that an analyst starts manually from the incident action menu
- D. An automation rule that uses the add comment action to supply the reputation score
B is correct.
Explanation: An automation rule handles the native assignment and tagging steps immediately upon incident creation, while also triggering the Logic Apps playbook for external integration. Playbooks are required whenever the response must query external threat intelligence APIs and retrieve dynamic data at runtime. Combining both tiers coordinates immediate Sentinel-native operations with external enrichment in a single flow.
A is incorrect: Assign owner and add tags are built-in actions, but they cannot query external APIs, so the reputation score cannot be retrieved.
C is incorrect: A manually triggered playbook requires analyst intervention from the action menu, failing the requirement to process every high-severity incident automatically at creation.
D is incorrect: The add comment action only writes static text, because automation rules cannot retrieve data from external threat intelligence APIs at runtime.
Q047 - Question
A healthcare organization plans to deploy Microsoft Security Copilot for threat investigation. The compliance team mandates that sensitive security telemetry and analyst prompts submitted during sessions must never be used to train external or foundational AI models. How does Microsoft Security Copilot satisfy this organizational requirement?
Domain: Manage identity, access, and governance (20–25%) Type: Single choice
- A. It confines data access to the customer organization and prohibits using customer data to train foundation AI models
- B. It routes all prompts through public threat intelligence feeds after anonymizing sensitive organizational identifiers
- C. It pools prompt data into regional shared caches across all tenants to improve response accuracy for others
- D. It automatically deletes all prompt submissions and security responses immediately after the session terminates
A is correct.
Explanation: Microsoft Security Copilot ensures that data provided by an organization remains accessible exclusively to that organization. Customer data is safeguarded by comprehensive enterprise compliance and security controls. Crucially, Microsoft does not use customer organizational data or prompt submissions to train foundation AI models, thereby satisfying enterprise governance, regulatory compliance, and organizational data privacy requirements.
B is incorrect: Copilot integrates threat intelligence feeds to inform its models, but it never publishes customer prompts or internal telemetry to external intelligence feeds.
C is incorrect: Customer data is strictly isolated to the customer organization rather than pooled or shared across tenant caches to train models for others.
D is incorrect: While data is protected, Copilot maintains session context rather than instantly discarding data, and model protection does not require immediate session deletion.
Q048 - Question
A Security Administrator at Contoso must create a Security Copilot workspace and set capacity during creation. The administrator has no access to the Azure subscription where capacity resources are created. Which additional access is required?
Domain: Manage identity, access, and governance (20–25%) Type: Single choice
- A. Owner role in an existing Security Copilot workspace
- B. Contributor role in an existing Security Copilot workspace
- C. Azure Owner or Contributor access to the Azure subscription
- D. Microsoft Entra Compliance Administrator role
C is correct.
Explanation: Creating a workspace requires a supported Security Copilot role, and Security Administrator qualifies. Setting capacity during creation also requires Azure Owner or Contributor access to the subscription where the capacity resources are created. Adding that Azure access completes the requirements, because the Security Copilot role covers workspace creation but not the Azure capacity resources.
A is incorrect: Workspace Owner roles are workspace-specific and configure that workspace's settings, so they do not provide Azure subscription access for creating capacity resources.
B is incorrect: Contributors use features such as prompts and promptbooks and cannot configure settings, so this role does not provide Azure subscription access.
D is incorrect: Compliance Administrator is a supported role for workspace creation, like Security Administrator, but it does not provide Azure Owner or Contributor access.
Q049 - Question
A security architect must deploy an automated threat-hunting agent that utilizes Microsoft Sentinel plugins. The agent's runs must draw compute solely from the dedicated SOC capacity pool rather than sandbox resources. How should the architect set up the agent to enforce this context?
Domain: Manage and monitor security posture (20–25%) Type: Single choice
- A. Sign in to the SOC workspace before setting up the agent from the agent library.
- B. Deploy the agent in the sandbox workspace and assign it the SOC Contributor role.
- C. Set up the agent from any workspace and configure the trigger parameter to SOC.
- D. Assign an existing SOC user account to the agent during setup in the sandbox.
A is correct.
Explanation: Microsoft-built agents run within the context of the workspace you are signed into when you set them up. Agents configured in the SOC workspace consume dedicated SOC workspace capacity and have access to the plugins enabled for that workspace. Signing into the SOC workspace ensures execution occurs within that specific boundary.
B is incorrect: Deploying within the sandbox workspace forces the agent to consume sandbox capacity and limits it to sandbox plugins, regardless of role.
C is incorrect: The trigger parameter defines the event or schedule initiating the agent, not the workspace context or capacity pool consumed by runs.
D is incorrect: Assigning a user account provides execution credentials, but workspace context and capacity consumption remain bound to the workspace where setup occurred.
Q050 - Question
An engineer tested an automated triage agent in a sandbox workspace and now needs to transition it to the production SOC workspace. What should the engineer do to transition the agent, and how are existing agent memories handled?
Domain: Manage and monitor security posture (20–25%) Type: Single choice
- A. Turn off scheduled or automatic triggers first and set up the agent in the SOC workspace; memories do not carry over.
- B. Select Edit on the agent page to change the assigned workspace parameter; all historical memories transfer automatically.
- C. Pause the sandbox workspace capacity and export the memory file from the overflow menu to import into the SOC workspace.
- D. Reassign the agent identity to an existing production user account; existing memories and feedback are retained.
A is correct.
Explanation: If you switch the assigned workspace for an agent, you must turn off any scheduled or automatic triggers first. You then set up the agent again in the new workspace to continue using it. Agents do not carry feedback or memories between workspaces, so the agent begins clean in the SOC workspace.
B is incorrect: You cannot switch workspaces by simply editing agent parameters; agents must be set up again, and memories do not transfer across workspaces.
C is incorrect: Security Copilot does not provide an export or import function for agent memories, and pausing workspace capacity does not reassign agents.
D is incorrect: Changing identity credentials updates execution authorization but does not reassign workspaces, nor does it allow transferring agent memory across workspace boundaries.