CertSafari

    Free Microsoft Certified: Azure Security Engineer Associate (AZ-500) Sample Questions

    35 free sample questions from our bank of 359+, covering every exam domain, with answers and detailed explanations. Updated August 2026.

    Domain 1: Secure identity and access

    1.1 Manage security controls for identity and access

    1.You have an Azure subscription containing a key vault named KV1. You have a virtual machine named VM1. You need to enable VM1 to authenticate to KV1 to retrieve secrets without storing credentials in the code running on VM1. What should you do first?

    1. A.Enable a system-assigned managed identity on VM1.
    2. B.Create a service principal in Microsoft Entra ID for VM1.
    3. C.Create an access policy in KV1 for the VM1 local administrator.
    4. D.Store the tenant ID and client secret in the VM1 environment variables.
    Show answer & explanation

    Correct answer: AEnable a system-assigned managed identity on VM1.

    • A. Correct. Enabling a system-assigned managed identity gives the VM an identity within Microsoft Entra ID (formerly Azure AD). This identity can be used to authenticate to Azure Key Vault and other services without needing to manage or store credentials (like client secrets) in your code or configuration files.
    • B. Incorrect. While a service principal is an identity used by applications, creating one manually typically requires generating and managing a Client ID and Secret (or certificate). Using these would require storing credentials in the application or environment, which violates the scenario's requirement.
    • C. Incorrect. Azure Key Vault access policies are granted to Microsoft Entra ID identities (users, groups, service principals, or managed identities). Local administrator accounts exist only on the VM's operating system and are not recognized by the Key Vault control plane for access policies.
    • D. Incorrect. Storing tenant IDs and client secrets in environment variables is a form of credential storage. The requirement explicitly asks to avoid storing credentials. Managed identities eliminate the need for this entirely.

    1.1 Manage security controls for identity and access

    2.You are implementing Access Reviews in PIM. You want to ensure that any user who does not respond to the review within 7 days loses their role assignment automatically. Which setting should you configure in the Access Review creation?

    1. A.Upon completion settings > Auto apply results to resource.
    2. B.Upon completion settings > If reviewers don't respond > Remove access.
    3. C.Reviewers > Select users to review their own access.
    4. D.Advanced settings > Disable email notifications.
    Show answer & explanation

    Correct answer: BUpon completion settings > If reviewers don't respond > Remove access.

    • A. Incorrect. 'Auto apply results to resource' ensures that the decisions reached during the review are enforced automatically when the review completes. However, it does not define the fallback decision for when a reviewer fails to respond. Without configuring the specific behavior for non-responses, the system does not know to remove the access.
    • B. Correct. To meet the requirement that users lose access if they do not respond, you must specifically configure the 'If reviewers don't respond' setting to 'Remove access'. While enabling 'Auto apply' is also necessary for the removal to happen without manual intervention, this setting is the critical configuration that translates a lack of response into a denial of access.
    • C. Incorrect. This setting determines who performs the review (specifically enabling self-review), but it does not control the outcome or logic applied when the designated reviewer fails to complete the review within the specified timeframe.
    • D. Incorrect. Disabling email notifications simply prevents the system from sending emails; it has no impact on the decision logic or the automatic removal of permissions for non-responsive users.

    1.1 Manage security controls for identity and access

    3.You need to prevent users from using legacy authentication protocols (like POP3, IMAP) to access Exchange Online. Solution: You configure the 'Users can use the combined security information registration experience' setting in Microsoft Entra ID. Does this meet the goal?

    1. A.True
    2. B.False
    Show answer & explanation

    Correct answer: BFalse

    • A. The solution does not meet the goal because the combined security information registration experience only consolidates the registration process for Multi-Factor Authentication (MFA) and Self-Service Password Reset (SSPR). It does not provide controls to block or manage legacy authentication protocols.
    • B. The solution does not meet the goal. To effectively prevent users from using legacy authentication protocols like POP3 and IMAP, you must implement Conditional Access policies configured to block legacy authentication clients, enable Security Defaults, or disable basic authentication directly within Exchange Online settings.

    1.2 Manage Microsoft Entra application access and managed identities

    4.You have an automation script that runs nightly on an on-premises server to sync data to Azure. The script needs to authenticate to Microsoft Entra ID non-interactively. You create an App Registration for this script. Which credential type offers the highest level of security for this scenario?

    1. A.Client Secret
    2. B.Certificate
    3. C.Username and Password
    4. D.Redirect URI
    Show answer & explanation

    Correct answer: BCertificate

    • A. Incorrect. A client secret is a symmetric key (essentially a password string). While commonly used, it is considered less secure than a certificate because secrets are often stored in plain text configuration files, have limited management capabilities, and are easier to expose or leak accidentally.
    • B. Correct. Certificates utilize asymmetric cryptography (public/private key pair). The private key can be stored securely (e.g., in the local Certificate Store or a Hardware Security Module) and is significantly harder to compromise than a shared secret string. Microsoft explicitly recommends using certificates over secrets for daemon applications and automated services in production.
    • C. Incorrect. Username and password credentials imply the use of a user identity or the Resource Owner Password Credentials (ROPC) flow, which is insecure, discouraged by Microsoft, and typically incompatible with modern security baselines like Multi-Factor Authentication (MFA).
    • D. Incorrect. A Redirect URI is a configuration parameter used during interactive authentication flows to determine where to send the authentication response. It is not a credential used to authenticate the application itself.

    1.2 Manage Microsoft Entra application access and managed identities

    5.You have an Azure Logic App that uses a system-assigned managed identity. You need to grant this Logic App access to query an Azure SQL Database. What is the correct way to grant this access within the SQL Database?

    1. A.Create a login from the Logic App's App ID and a user from that login.
    2. B.Create a contained user in the database using the Managed Identity name.
    3. C.Configure the firewall to allow the Logic App IP address.
    4. D.Share the SQL admin credentials with the Logic App.
    Show answer & explanation

    Correct answer: BCreate a contained user in the database using the Managed Identity name.

    • A. Incorrect. While server-level logins can be created for Azure AD principals in some configurations (like Managed Instance), the standard best practice for granting an application access to a specific Azure SQL Database is to use a contained database user. Additionally, this method creates unnecessary dependency on server-level permissions.
    • B. Correct. To authorize a Managed Identity in Azure SQL Database, you connect to the database (usually as the Azure Active Directory Admin) and run the command `CREATE USER [<IdentityName>] FROM EXTERNAL PROVIDER`. This creates a contained user mapped to the Managed Identity, allowing you to assign specific database roles (e.g., db_datareader).
    • C. Incorrect. Configuring the firewall controls network connectivity, ensuring the traffic can reach the server. However, it does not handle authentication or authorization within the database itself. The identity still requires a user object in the database to authenticate.
    • D. Incorrect. Sharing credentials defeats the primary security benefit of Managed Identities, which is to allow authentication without managing or storing secrets in the application code or configuration.

    1.2 Manage Microsoft Entra application access and managed identities

    6.Developers in your organization need to register applications in Microsoft Entra ID for testing purposes. You want to limit this capability to a specific group of developers rather than allowing all users. Which two configurations could achieve this?(Select 2)

    1. A.Set 'Users can register applications' to No in User settings.
    2. B.Assign the 'Application Developer' or 'Cloud Application Administrator' role to the specific developers.
    3. C.Assign the 'Global Reader' role to the developers.
    4. D.Enable the Admin Consent Workflow.
    5. E.Set 'Users can register applications' to Yes.
    Show answer & explanation

    Correct answers: A, BSet 'Users can register applications' to No in User settings.; Assign the 'Application Developer' or 'Cloud Application Administrator' role to the specific developers.

    • A. Correct. By default, the 'Users can register applications' setting is often set to 'Yes', allowing all users to register applications. To limit this capability to a specific group, you must first disable this general permission by setting it to 'No'.
    • B. Correct. When the general 'Users can register applications' setting is set to 'No', only users with specific administrative roles can register applications. Assigning the 'Application Developer' or 'Cloud Application Administrator' role to the specific developers grants them the necessary permissions to register applications while keeping the restriction in place for all other users.
    • C. Incorrect. The 'Global Reader' role provides read-only access to administrative features and does not grant permissions to register or manage applications.
    • D. Incorrect. The Admin Consent Workflow manages how users request consent for applications that require administrative approval; it does not control the ability to create new application registrations.
    • E. Incorrect. Setting 'Users can register applications' to 'Yes' allows every user in the directory to register applications, which contradicts the requirement to limit the capability to a specific group.

    Domain 2: Secure networking

    2.1 Plan and implement security for virtual networks

    7.You need to securely manage Azure Virtual Machines without exposing public IP addresses on the VMs. You want to use the RDP and SSH protocols directly from the Azure Portal over TLS. Which resource should you deploy?

    1. A.Azure Firewall
    2. B.Azure Bastion
    3. C.Application Gateway
    4. D.NAT Gateway
    Show answer & explanation

    Correct answer: BAzure Bastion

    • A. Incorrect. Azure Firewall is a managed, cloud-based network security service that protects your Azure Virtual Network resources by filtering traffic. It is not designed to facilitate interactive RDP or SSH sessions directly from the Azure Portal.
    • B. Correct. Azure Bastion is a fully managed PaaS service that provides secure and seamless RDP and SSH connectivity to your virtual machines directly through the Azure Portal over TLS (port 443). When using Azure Bastion, your VMs do not require a public IP address.
    • C. Incorrect. Application Gateway is a web traffic load balancer (Layer 7) that enables you to manage traffic to your web applications. It is not used for administrative access via RDP or SSH.
    • D. Incorrect. NAT Gateway is a managed service used to provide outbound internet connectivity for resources in a virtual network. It does not support inbound RDP or SSH connections for management purposes.

    2.1 Plan and implement security for virtual networks

    8.You are securing a subnet that hosts a database cluster. You need to ensure that the effective security rules allow traffic on port 1433 only from the 'AppSubnet'. You inspect the 'Effective security rules' blade for the VM's network interface. Which two sources contribute to these effective rules?(Select 2)

    1. A.Network Security Group (NSG) attached to the NIC
    2. B.Network Security Group (NSG) attached to the Subnet
    3. C.Application Security Group (ASG) attached to the Subnet
    4. D.Azure Firewall Policy
    5. E.Azure AD Conditional Access Policy
    Show answer & explanation

    Correct answers: A, BNetwork Security Group (NSG) attached to the NIC; Network Security Group (NSG) attached to the Subnet

    • A. Correct. A Network Security Group (NSG) attached directly to the network interface (NIC) is a primary source of security rules. These rules are evaluated combined with subnet-level rules to determine the effective access.
    • B. Correct. A Network Security Group (NSG) attached to the subnet applies to all resources within that subnet. Azure merges the rules from the subnet NSG with those from the NIC NSG to create the final list of effective security rules visible in the blade.
    • C. Incorrect. Application Security Groups (ASGs) are used within NSG rules to group virtual machines for easier management (as sources or destinations), but they are not independent sources of rules themselves. Additionally, ASGs are associated with NICs, not directly attached to subnets as a rule container.
    • D. Incorrect. Azure Firewall Policies manage traffic at the Azure Firewall resource level. While they impact traffic flow, they do not appear in the 'Effective security rules' blade of a VM's NIC, which specifically displays NSG and platform default rules.
    • E. Incorrect. Azure AD Conditional Access policies operate at the identity layer for authentication and authorization. They do not define network-layer packet filtering rules and are not part of the NIC's effective security configuration.

    2.1 Plan and implement security for virtual networks

    9.Your security team requires that all Virtual Networks in the 'Production' management group automatically have a set of security rules applied that cannot be removed by subscription owners. You propose using Azure Virtual Network Manager (AVNM) with a Security Admin Configuration. Does this solution meet the goal?

    1. A.True
    2. B.False
    Show answer & explanation

    Correct answer: ATrue

    • A. The statement is true because Azure Virtual Network Manager (AVNM) Security Admin Configurations allow you to define centralized security rules that are applied to network groups (which can be scoped to the 'Production' management group). These admin rules are evaluated before Network Security Groups (NSGs) and cannot be modified or removed by subscription owners, effectively enforcing the required security posture.
    • B. The statement is false because AVNM Security Admin Configurations are specifically designed to provide a governance layer above standard NSGs. Unlike standard NSGs, which subscription owners can edit, security admin rules are managed centrally and enforce immutable baseline security policies across the targeted virtual networks.

    2.2 Plan and implement security for private access to Azure resources

    10.You plan to use Azure Private Link to access a partner's service. The partner has provided the Alias of their Private Link Service. Which resource do you need to create in your subscription to connect to their service?

    1. A.Private Link Service
    2. B.Private Endpoint
    3. C.Service Endpoint
    4. D.Virtual Network Gateway
    Show answer & explanation

    Correct answer: BPrivate Endpoint

    • A. Incorrect. A Private Link Service is the provider-side resource created by the partner to expose their application. As a consumer, you do not create the Private Link Service; you connect to it.
    • B. Correct. To connect to a partner's service using Azure Private Link, you must create a Private Endpoint in your subscription. This endpoint projects the service into your virtual network using a private IP address, and you configure it using the Alias provided by the partner.
    • C. Incorrect. A Service Endpoint allows you to secure Azure service resources to your virtual network, but traffic still uses the public endpoint of the PaaS service. It is not used to establish a private connection to a specific Private Link Service alias.
    • D. Incorrect. A Virtual Network Gateway is used for encrypted traffic between an Azure virtual network and an on-premises location (VPN) or another virtual network. It is not the resource used for Private Link connectivity.

    2.2 Plan and implement security for private access to Azure resources

    11.You are configuring network security for a new Azure SQL Managed Instance. You have created a dedicated subnet. When attempting to associate a Route Table with the subnet, you receive an error. What is the most likely reason?

    1. A.The Route Table does not contain a route to the Internet.
    2. B.The subnet contains other resources.
    3. C.SQL Managed Instance subnets require the 'Microsoft.Sql/managedInstances' delegation to apply specific policies.
    4. D.The Route Table has 'BGP Route Propagation' disabled.
    Show answer & explanation

    Correct answer: DThe Route Table has 'BGP Route Propagation' disabled.

    • A. Incorrect. While a route to the Internet (0.0.0.0/0) is typically required for the proper functioning of a SQL Managed Instance, missing this specific route generally affects connectivity or deployment health rather than generating an immediate error during the association of the Route Table object itself.
    • B. Incorrect. While SQL Managed Instance requires a dedicated subnet, the presence of other resources (like VMs) would prevent the *delegation* of the subnet or the *deployment* of the Instance. However, standard Azure networking allows associating a Route Table to a subnet containing resources. The specific error described in the scenario usually stems from a policy conflict.
    • C. Incorrect. This is a factual statement: SQL Managed Instance subnets do require delegation to 'Microsoft.Sql/managedInstances', which in turn applies Network Intent Policies. However, this option describes the architectural requirement rather than the specific misconfiguration causing the error.
    • D. Correct. When a subnet is delegated to 'Microsoft.Sql/managedInstances', a Network Intent Policy is applied to ensure the network configuration supports the management of the instance. This policy strictly requires that 'Virtual network gateway route propagation' (BGP Route Propagation) is Enabled on the associated Route Table. If you attempt to associate a Route Table with this setting disabled, the operation is blocked with an error.

    2.2 Plan and implement security for private access to Azure resources

    12.You are planning security for Azure SQL Managed Instance. A colleague proposes using Service Endpoints to secure the connection between the Managed Instance and a Storage Account in the same region. Does this solution work for SQL Managed Instance?

    1. A.True
    2. B.False
    Show answer & explanation

    Correct answer: BFalse

    • A. The statement is false. The proposed solution to use Service Endpoints will not work. While Service Endpoints do provide secure connectivity to Azure PaaS services, they are not supported for traffic originating from an Azure SQL Managed Instance.
    • B. The statement is true. The proposed solution will not work because Azure SQL Managed Instance is deployed into a dedicated, delegated subnet within a virtual network. Due to this specific architecture, traffic from the Managed Instance does not carry the virtual network identity required for Service Endpoint rules on the target Storage Account to function. The correct and recommended method for securing this connection is to use a Private Endpoint for the Storage Account.

    2.3 Plan and implement security for public access to Azure resources

    13.You need to configure an Azure Application Gateway to host three different websites using the same public IP address. Each website has a unique domain name (site1.com, site2.com, site3.com). Which listener configuration is required?

    1. A.Multi-site listeners
    2. B.Basic listeners
    3. C.Wildcard listeners
    4. D.Private listeners
    Show answer & explanation

    Correct answer: AMulti-site listeners

    • A. Correct. Multi-site listeners allow you to configure multiple distinct host names (domains) on the same public IP address and port. The Application Gateway relies on the HTTP 1.1 Host header to route traffic to the correct backend pool and listener based on the requested domain name.
    • B. Incorrect. Basic listeners are designed for a single site configuration. They listen for all traffic on a specific IP address and port combination without distinguishing between different host headers, making them unsuitable for hosting multiple unique domains on the same IP/port.
    • C. Incorrect. While Application Gateway supports wildcard host names (e.g., *.contoso.com), this is configured within a Multi-site listener. 'Wildcard listener' is not a distinct listener configuration type in Azure; the correct configuration mode is Multi-site.
    • D. Incorrect. 'Private listeners' refers to using a private IP address for the frontend configuration (internal load balancing). While you can host internal sites, the requirement specifically addresses hosting multiple websites on a single IP using domain names, which is a function of the Multi-site listener type regardless of whether the IP is public or private.

    2.3 Plan and implement security for public access to Azure resources

    14.You are managing an Azure Application Gateway with WAF v2. You need to protect your web application against the latest OWASP Top 10 vulnerabilities. Which two actions should you take regarding the WAF configuration?(Select 2)

    1. A.Enable the OWASP 3.2 rule set.
    2. B.Set the WAF to Prevention mode.
    3. C.Create a custom rule to allow all traffic.
    4. D.Disable the request body inspection.
    5. E.Configure a rewrite set.
    Show answer & explanation

    Correct answers: A, BEnable the OWASP 3.2 rule set.; Set the WAF to Prevention mode.

    • A. Correct. Azure Web Application Firewall (WAF) v2 on Application Gateway uses Core Rule Sets (CRS) to detect common vulnerabilities. Enabling the OWASP 3.2 rule set (or the latest available version) applies the specific signatures and rules required to mitigate the OWASP Top 10 threats, such as SQL injection and Cross-Site Scripting (XSS).
    • B. Correct. WAF policies operate in either Detection or Prevention mode. Detection mode only logs suspicious activity, whereas Prevention mode actively blocks requests that trigger the enabled rules. To effectively protect the application, the WAF must be set to Prevention mode.
    • C. Incorrect. Creating a custom rule to allow all traffic would bypass the managed rules and effectively disable the security protections provided by the WAF, leaving the application vulnerable.
    • D. Incorrect. Disabling request body inspection prevents the WAF from analyzing the data sent in the body of HTTP requests (e.g., POST data). Since many attacks (like SQL injection) are delivered via the request body, disabling inspection weakens security.
    • E. Incorrect. Rewrite sets are used to modify HTTP request/response headers or URLs for routing or compatibility purposes. While they can add security headers, they do not provide the signature-based inspection necessary to block OWASP Top 10 attacks.

    2.3 Plan and implement security for public access to Azure resources

    15.You are configuring traffic routing for an Azure Front Door profile. You have backends in three different regions. You want to direct user traffic to the closest available backend based on network latency. If the closest backend is unavailable, traffic should route to the next closest. Which two components are involved in this configuration? (Select two)(Select 2)

    1. A.Origin Group with Latency load balancing preference
    2. B.Health Probes
    3. C.Weighted routing method
    4. D.Priority routing method
    5. E.Session Affinity
    Show answer & explanation

    Correct answers: A, BOrigin Group with Latency load balancing preference; Health Probes

    • A. Correct. An Origin Group is the collection of backends (origins) to which traffic is routed. Configuring it with a latency-based load balancing preference (or relying on the default lowest-latency behavior in Front Door) ensures that traffic is directed to the backend with the lowest network latency relative to the client.
    • B. Correct. Health Probes are essential for determining the availability of each backend. If the closest backend fails health checks, the health probe status triggers Front Door to route traffic to the next closest healthy backend, fulfilling the failover requirement.
    • C. Incorrect. The Weighted routing method distributes traffic across backends based on administrator-assigned percentages or weights, rather than dynamically selecting the backend with the lowest network latency.
    • D. Incorrect. The Priority routing method is typically used for active-passive scenarios (primary/secondary) where traffic is sent to a specific backend based on priority order, regardless of latency, until that backend becomes unavailable.
    • E. Incorrect. Session Affinity ensures requests from the same client are sent to the same backend for the duration of a session, but it is not the mechanism used to initially determine the closest backend or handle failover based on latency.

    Domain 3: Secure compute, storage, and databases

    3.1 Plan and implement advanced security for compute

    16.You need to deploy Azure Bastion to provide secure RDP and SSH access to VMs in a virtual network named VNet1. You create a dedicated subnet for Bastion. What must the name of this subnet be?

    1. A.BastionSubnet
    2. B.AzureBastionSubnet
    3. C.GatewaySubnet
    4. D.ManagementSubnet
    Show answer & explanation

    Correct answer: BAzureBastionSubnet

    • A. Incorrect. While 'BastionSubnet' is a valid name for a generic subnet, Azure Bastion specifically requires the subnet to be named 'AzureBastionSubnet' to function. Custom names are not recognized by the service deployment.
    • B. Correct. Azure Bastion requires a dedicated subnet named exactly 'AzureBastionSubnet'. This is a strict naming convention required by the Azure platform. Additionally, the subnet must be at least /26 in size and contain no other resources.
    • C. Incorrect. 'GatewaySubnet' is a reserved subnet name used specifically for Azure Virtual Network Gateways (VPN Gateway or ExpressRoute), not for Azure Bastion.
    • D. Incorrect. 'ManagementSubnet' is not a reserved name required by Azure Bastion. Deploying the service into a subnet with this name will fail.

    3.3 Plan and implement security for Azure SQL Database and Azure SQL Managed Instance

    17.You need to configure auditing for an Azure SQL Database to meet a regulatory requirement. The audit logs must be retained for 7 years. Which audit log destination is most cost-effective for this long-term retention?

    1. A.Azure Log Analytics workspace
    2. B.Azure Event Hubs
    3. C.Azure Storage Account
    4. D.Azure SQL Database table
    Show answer & explanation

    Correct answer: CAzure Storage Account

    • A. Incorrect. While Azure Log Analytics is excellent for querying and monitoring, it is significantly more expensive for long-term data retention (7 years) compared to storage accounts. It is best suited for active analysis and shorter retention periods.
    • B. Incorrect. Azure Event Hubs is a streaming platform designed to ingest data and route it to other systems (like a SIEM). It has very short data retention periods (typically days) and is not a storage solution for long-term archival.
    • C. Correct. An Azure Storage Account is the most cost-effective destination for long-term retention. It supports writing audit logs directly and allows for the use of lifecycle management policies to move older logs to Cool or Archive access tiers, drastically reducing storage costs over the 7-year period.
    • D. Incorrect. Storing audit logs in an Azure SQL Database table is deprecated for modern auditing and is highly cost-prohibitive. It consumes expensive database storage and compute resources, making it unsuitable for multi-year archival.

    3.3 Plan and implement security for Azure SQL Database and Azure SQL Managed Instance

    18.You are configuring Dynamic Data Masking for the 'Salary' column in an Employee database. You want to ensure that members of the 'HR_Managers' database role can view the unmasked salary values. What should you do?

    1. A.Grant the UNMASK permission to the 'HR_Managers' role
    2. B.Add the 'HR_Managers' role to the db_owner role
    3. C.Configure a Column Encryption Key for the 'HR_Managers' role
    4. D.Create a Row-Level Security policy for the 'HR_Managers' role
    Show answer & explanation

    Correct answer: AGrant the UNMASK permission to the 'HR_Managers' role

    • A. Correct. Granting the UNMASK permission is the specific, granular permission designed to allow users or roles to bypass Dynamic Data Masking rules and view actual data. This adheres to the principle of least privilege.
    • B. Incorrect. While members of the db_owner role can view unmasked data by default, adding the 'HR_Managers' role to db_owner grants excessive administrative privileges over the entire database, violating the principle of least privilege.
    • C. Incorrect. Column Encryption Keys are used for the Always Encrypted feature, which provides strong encryption for data at rest and in transit. This is distinct from Dynamic Data Masking, which obfuscates data at the presentation layer.
    • D. Incorrect. Row-Level Security (RLS) is used to filter which rows a user can see based on logic (e.g., user department), but it does not control whether the data within those rows is masked or unmasked.

    3.3 Plan and implement security for Azure SQL Database and Azure SQL Managed Instance

    19.You have configured Always Encrypted for the 'MedicalRecords' table. A developer reports that they cannot decrypt the data when running queries from their local machine using SQL Server Management Studio (SSMS), even though they have SELECT permissions. What is the most likely cause?

    1. A.The developer does not have access to the Column Master Key (CMK) in the key store
    2. B.The developer does not have the UNMASK permission
    3. C.Transparent Data Encryption is not enabled on the database
    4. D.The developer is not using the encrypted connection string parameter
    Show answer & explanation

    Correct answer: AThe developer does not have access to the Column Master Key (CMK) in the key store

    • A. Correct. Always Encrypted relies on client-side decryption. The client driver (SSMS) needs to access the Column Master Key (CMK) residing in an external key store (such as Azure Key Vault or the Windows Certificate Store) to unwrap the Column Encryption Key (CEK). Even with SQL SELECT permissions, if the developer's identity lacks the specific access policies or permissions for the CMK in the key store, decryption will fail.
    • B. Incorrect. The UNMASK permission is specific to Dynamic Data Masking (DDM), which is a feature that obfuscates data presentation but does not encrypt the underlying data storage. Always Encrypted uses cryptographic keys, not the UNMASK permission.
    • C. Incorrect. Transparent Data Encryption (TDE) encrypts the database files at rest (physical storage) and is transparent to the client application. It operates independently of Always Encrypted and does not affect client-side column decryption logic.
    • D. Incorrect. While the parameter `Column Encryption Setting=Enabled` is required in the connection string for SSMS to attempt decryption, the phrasing 'encrypted connection string parameter' usually refers to transport layer encryption (`Encrypt=True`). Furthermore, in a security context, the lack of access rights to the key (CMK) is the primary permission-based reason for decryption failure.

    3.1 Plan and implement advanced security for compute

    20.You need to secure the connectivity between an Azure API Management instance and a backend Azure App Service. You want to ensure that the App Service only accepts traffic from the API Management instance. Which two actions should you perform?(Select 2)

    1. A.Configure the API Management instance with a Public IP and whitelist it in the App Service.
    2. B.Use a Virtual Network Integration for API Management and Private Endpoint for the App Service.
    3. C.Enable Mutual Certificate Authentication between APIM and the App Service.
    4. D.Configure CORS on the App Service.
    5. E.Enable Anonymous authentication on the App Service.
    Show answer & explanation

    Correct answers: B, CUse a Virtual Network Integration for API Management and Private Endpoint for the App Service.; Enable Mutual Certificate Authentication between APIM and the App Service.

    • A. Incorrect. While whitelisting the Public IP of the API Management instance is a possible configuration for Basic, Standard, or Premium tiers (which have static IPs), it is less secure than network isolation or mutual authentication. It relies on the public endpoint of the App Service remaining exposed, and IP-based restrictions can be more brittle than cryptographic or physical network isolation. Additionally, the Consumption tier of APIM does not have a dedicated static IP, making this solution invalid for all scenarios.
    • B. Correct. Using Virtual Network Integration (or VNet Injection) for API Management allows it to communicate within a private network. Configuring a Private Endpoint for the App Service exposes the app on a private IP within that network and disables public internet access. This ensures that traffic remains entirely on the Microsoft backbone and the App Service is only accessible by resources within the VNet, such as the APIM instance.
    • C. Correct. Enabling Mutual Certificate Authentication (client certificate authentication) provides strong, application-level security. By configuring the App Service to require a client certificate and configuring APIM to present a specific certificate during the handshake, you ensure that the App Service rejects any request that does not possess the correct credential, effectively restricting access to only the API Management instance.
    • D. Incorrect. Cross-Origin Resource Sharing (CORS) is a browser security feature that restricts web applications running in a browser from making requests to a different domain. It does not restrict server-to-server traffic, such as requests coming from API Management to the App Service.
    • E. Incorrect. Enabling Anonymous authentication turns off authentication requirements, allowing unauthenticated access to the App Service. This is the opposite of securing the connectivity.

    3.1 Plan and implement advanced security for compute

    21.Scenario: You need to securely manage the keys used for Azure Disk Encryption. You enable the 'Soft Delete' and 'Purge Protection' features on the Azure Key Vault. Does this solution meet the goal of ensuring keys cannot be accidentally and permanently lost before the retention period expires?

    1. A.True
    2. B.False
    Show answer & explanation

    Correct answer: ATrue

    • A. The statement is true because Soft Delete ensures that deleted keys are held in a recoverable state for a specified retention period rather than being immediately removed. Purge Protection enforces this retention by preventing the permanent deletion (purging) of soft-deleted keys until the retention period has fully elapsed. Together, these features prevent accidental or malicious permanent loss of encryption keys.
    • B. The statement is false because the combination of Soft Delete and Purge Protection specifically addresses the requirement to prevent permanent loss. Without Purge Protection, a soft-deleted key could still be manually purged (permanently deleted) by an administrator before the retention period ends, which would fail to meet the goal.

    3.2 Plan and implement security for storage

    22.You are configuring network security for an Azure Storage account. You need to ensure that only traffic from a specific subnet in an Azure Virtual Network can access the storage account via the Microsoft backbone network. Which two actions should you perform?(Select 2)

    1. A.Enable a Service Endpoint for Microsoft.Storage on the subnet.
    2. B.Configure a Network Security Group (NSG) rule to allow port 443.
    3. C.Add a Virtual Network rule in the Storage Account firewall settings allowing the specific subnet.
    4. D.Configure a Private Endpoint for the Storage Account.
    5. E.Enable 'Allow trusted Microsoft services to access this storage account'.
    Show answer & explanation

    Correct answers: A, CEnable a Service Endpoint for Microsoft.Storage on the subnet.; Add a Virtual Network rule in the Storage Account firewall settings allowing the specific subnet.

    • A. Correct. Enabling a Service Endpoint for Microsoft.Storage on the subnet is a prerequisite. It routes traffic from the subnet to the storage service over the Azure backbone network and allows the storage service to identify the traffic coming from that specific subnet.
    • B. Incorrect. An NSG rule controls traffic flow at the subnet level (outbound/inbound) but does not restrict the storage account itself to accept connections only from a specific subnet. The storage account requires its own firewall configuration.
    • C. Correct. Adding a Virtual Network rule in the Storage Account firewall settings is required to explicitly allow traffic from the specific subnet. This works in conjunction with the Service Endpoint to restrict access to only that authorized subnet.
    • D. Incorrect. While a Private Endpoint does provide connectivity via a private IP on the backbone, the specific requirement to allow traffic from a subnet via the backbone is most directly accomplished via Service Endpoints and firewall rules. Private Endpoints are a different connectivity model often used to disable public endpoints entirely.
    • E. Incorrect. This setting allows specific trusted Azure platform services (like Azure Backup or Site Recovery) to bypass network rules. It does not grant access to a general-purpose subnet within a Virtual Network.

    3.2 Plan and implement security for storage

    23.You need to secure an Azure File share. The share will be accessed by a legacy application running on-premises that only supports SMB 2.1. The connection must occur over the public internet. What is the security implication?

    1. A.The connection will work securely because Azure Files enforces encryption by default.
    2. B.The connection will fail because Azure Files requires SMB 3.0 or later with encryption for access from outside the Azure region.
    3. C.The connection will work, but data will be transferred in clear text.
    4. D.You must configure a VPN to allow SMB 2.1 traffic.
    Show answer & explanation

    Correct answer: BThe connection will fail because Azure Files requires SMB 3.0 or later with encryption for access from outside the Azure region.

    • A. Incorrect. While Azure Files does enforce encryption by default (Secure Transfer Required), SMB 2.1 does not support the required encryption protocols. Therefore, the connection will not work securely; it will be rejected.
    • B. Correct. Azure Files requires SMB 3.0 or later to support encryption in transit. For connections originating from outside the Azure region (such as on-premises over the public internet), Azure denies unencrypted traffic. Since SMB 2.1 does not support encryption, the connection attempt will fail.
    • C. Incorrect. Azure Files blocks connections from outside the datacenter if encryption is not used. Since SMB 2.1 cannot encrypt the traffic, Azure will not establish the connection, preventing clear text transfer over the public internet.
    • D. Incorrect. While configuring a VPN is a valid remediation to enable SMB 2.1 access by tunneling traffic, the question asks for the security implication of the scenario where the connection occurs over the public internet. The immediate implication is that the connection fails.

    Domain 4: Secure Azure using Microsoft Defender for Cloud and Microsoft Sentinel

    4.3 Configure and manage threat protection by using Microsoft Defender for Cloud

    24.You manage an Azure subscription with 50 virtual machines running Windows Server 2019. You need to implement a solution to monitor changes to critical system files and registry entries to detect tampering. What should you do?

    1. A.Enable Microsoft Defender for Servers Plan 1 and configure Adaptive Network Hardening
    2. B.Enable Microsoft Defender for Servers Plan 2 and configure File Integrity Monitoring (FIM)
    3. C.Enable Microsoft Defender for Servers Plan 1 and configure Just-In-Time (JIT) VM Access
    4. D.Enable Microsoft Defender for Servers Plan 2 and configure Adaptive Application Control
    Show answer & explanation

    Correct answer: BEnable Microsoft Defender for Servers Plan 2 and configure File Integrity Monitoring (FIM)

    • A. Incorrect. Adaptive Network Hardening is designed to secure network traffic by hardening Network Security Groups (NSGs), not to monitor system files or registry entries. Additionally, File Integrity Monitoring (FIM) is not available in Microsoft Defender for Servers Plan 1.
    • B. Correct. File Integrity Monitoring (FIM) is specifically designed to examine operating system files and registry keys for changes that might indicate an attack. This feature is available only in Microsoft Defender for Servers Plan 2.
    • C. Incorrect. Just-In-Time (JIT) VM Access is used to secure management ports (RDP/SSH) by opening them only when needed, which does not address file or registry tampering. Furthermore, FIM requires Plan 2.
    • D. Incorrect. Adaptive Application Control helps control which applications can run on your VMs by creating allowlists. While it is a feature of Plan 2, it does not monitor changes to system files or registry entries like FIM does.

    4.3 Configure and manage threat protection by using Microsoft Defender for Cloud

    25.You need to scan your Azure virtual machines for vulnerabilities. The solution must not require the installation of any agents on the virtual machines and should not impact the machine's performance during the scan. Which feature should you enable?

    1. A.Microsoft Defender Vulnerability Management with the Azure Monitor Agent
    2. B.Agentless scanning in Microsoft Defender for Servers
    3. C.Qualys vulnerability scanner extension
    4. D.Adaptive Application Control
    Show answer & explanation

    Correct answer: BAgentless scanning in Microsoft Defender for Servers

    • A. Incorrect. This method requires the installation of the Azure Monitor Agent on the virtual machines to function, which violates the requirement for an agent-free solution.
    • B. Correct. Agentless scanning in Microsoft Defender for Servers assesses vulnerabilities by creating and analyzing disk snapshots of the virtual machine. This process occurs outside the running VM environment, ensuring no agents are required and there is no performance impact on the machine's workload.
    • C. Incorrect. The built-in Qualys vulnerability scanner requires the deployment of an extension (agent) onto the virtual machine to execute the scans, failing the no-agent requirement.
    • D. Incorrect. Adaptive Application Control is a security feature designed to control which applications are allowed to run on your VMs (application allow-listing); it is not a vulnerability scanning tool.

    4.3 Configure and manage threat protection by using Microsoft Defender for Cloud

    26.You are configuring Just-In-Time (JIT) VM Access in Microsoft Defender for Cloud. You want to ensure that users requesting access must provide a justification. Where do you configure this setting?

    1. A.In the Azure Firewall policy
    2. B.In the JIT VM access configuration window for the specific VM
    3. C.In the Network Security Group (NSG) associated with the VM
    4. D.In the Conditional Access policy in Microsoft Entra ID
    Show answer & explanation

    Correct answer: BIn the JIT VM access configuration window for the specific VM

    • A. Incorrect. Azure Firewall policies allow you to define rules for network traffic filtering across subscriptions and virtual networks, but they do not manage the Just-In-Time access workflow or its request parameters.
    • B. Correct. The JIT VM access configuration window (or the JIT policy definition in Defender for Cloud) is where you define the parameters for access, such as ports, protocol, allowed source IPs, and maximum request duration. The requirement to provide a justification is part of the JIT request workflow managed and configured within this interface.
    • C. Incorrect. Network Security Groups (NSGs) are the mechanism JIT uses to enforce access (by creating temporary allow rules), but the NSG itself does not store the configuration for the JIT policy, request logic, or justification requirements.
    • D. Incorrect. Conditional Access policies in Microsoft Entra ID are used to enforce access controls based on signals like user identity, device compliance, or location (e.g., requiring MFA). They do not configure the internal settings of the Defender for Cloud JIT feature, such as requiring a text justification for VM access.

    4.1 Implement and manage enforcement of cloud governance policies

    27.You have a policy assignment that denies the creation of Public IPs. However, a specific resource group 'rg-dmz' requires Public IPs for a load balancer. You need to allow this without removing the policy for the rest of the subscription. What should you do?

    1. A.Remove the 'Deny' policy and replace it with 'Audit'.
    2. B.Create a Policy Exemption for the 'rg-dmz' resource group.
    3. C.Assign the 'Owner' role to the administrator of 'rg-dmz'.
    4. D.Use a Management Group to separate the resources.
    Show answer & explanation

    Correct answer: BCreate a Policy Exemption for the 'rg-dmz' resource group.

    • A. Incorrect. Changing the policy effect to 'Audit' would stop blocking Public IP creation across the entire subscription, only logging non-compliance. This fails the requirement to maintain the 'Deny' policy for the rest of the subscription.
    • B. Correct. A Policy Exemption is the specific feature designed for this scenario. It allows you to exempt a specific scope (such as the 'rg-dmz' resource group) from a policy assignment without modifying or removing the assignment for the rest of the subscription.
    • C. Incorrect. Azure Policy controls resource properties and compliance independently of Role-Based Access Control (RBAC). Assigning the 'Owner' role grants permissions to perform actions, but it does not bypass a 'Deny' policy assignment; the deployment would still fail.
    • D. Incorrect. While Management Groups are used to organize resources and scopes for policy assignments, restructuring the hierarchy is an unnecessary and disruptive administrative overhead for a single exception. Policy Exemptions are the intended method for handling exceptions at a granular level.

    4.1 Implement and manage enforcement of cloud governance policies

    28.You are designing an access control strategy for Azure Key Vault. You need to decide between using Vault Access Policies and Azure RBAC. You have a requirement to manage access permissions on individual keys rather than the entire vault. Which model should you choose and why?

    1. A.Vault Access Policies, because they support granular object-level permissions.
    2. B.Vault Access Policies, because they integrate with PIM.
    3. C.Azure RBAC, because it supports scope assignment at the individual Key/Secret level.
    4. D.Azure RBAC, because it is the only model that supports Managed Identities.
    Show answer & explanation

    Correct answer: CAzure RBAC, because it supports scope assignment at the individual Key/Secret level.

    • A. Incorrect. Vault Access Policies function at the vault scope. If you grant a permission (e.g., 'Get Key') via an access policy, that user receives that permission for every key within the vault. They do not support granular object-level permissions.
    • B. Incorrect. This does not address the requirement for individual key permissions. Furthermore, PIM is designed to manage Azure AD and Azure Resource RBAC roles; it does not natively manage legacy Vault Access Policy entries directly.
    • C. Correct. Azure RBAC for Key Vault data plane allows you to assign roles (such as Key Vault Crypto User) at the specific scope of an individual Key, Secret, or Certificate, enabling the required granular access control.
    • D. Incorrect. Both Vault Access Policies and Azure RBAC support Managed Identities. The distinguishing factor for the requirement is the ability to scope permissions to individual resources, which only RBAC provides.

    4.1 Implement and manage enforcement of cloud governance policies

    29.Scenario: You have deleted a Key Vault named 'kv-finance' that had Soft Delete enabled. You need to recover the vault and its contents. Solution: You run the command `Undo-AzKeyVaultRemoval -VaultName kv-finance` (or equivalent Azure CLI `az keyvault recover`). Does this meet the goal?

    1. A.Yes
    2. B.No
    Show answer & explanation

    Correct answer: AYes

    • A. The statement is true because the `Undo-AzKeyVaultRemoval` cmdlet in Azure PowerShell, or its Azure CLI equivalent `az keyvault recover`, is the designated method for recovering a deleted Key Vault that had Soft Delete enabled. This action restores the vault and all its contents, including keys, secrets, and certificates, provided the recovery is attempted within the configured retention period.
    • B. The statement is false because the proposed solution is the correct procedure for the given scenario. The `Undo-AzKeyVaultRemoval` command is specifically designed to recover a soft-deleted Key Vault and its contents, thereby successfully meeting the stated goal.

    4.2 Manage security posture by using Microsoft Defender for Cloud

    30.You have a proprietary security requirement that mandates all Virtual Machines must have a specific tag 'CostCenter'. You want to track compliance with this requirement using Microsoft Defender for Cloud. What should you do?

    1. A.Create a custom Policy definition and add it to a new Policy Initiative, then assign the Initiative in Defender for Cloud
    2. B.Create a custom Rule in Microsoft Sentinel
    3. C.Edit the 'Azure Security Benchmark' initiative to include the tag requirement
    4. D.Use the Inventory filter to search for missing tags manually
    Show answer & explanation

    Correct answer: ACreate a custom Policy definition and add it to a new Policy Initiative, then assign the Initiative in Defender for Cloud

    • A. Correct. Microsoft Defender for Cloud's Regulatory Compliance dashboard is built on top of Azure Policy. To track a custom requirement (like a proprietary tag), you must create a custom Policy definition, wrap it in a custom Policy Initiative, and then add/assign that custom initiative within the Defender for Cloud 'Security Policy' settings. This ensures the requirement is continuously assessed and reported alongside other compliance standards.
    • B. Incorrect. Microsoft Sentinel is a SIEM (Security Information and Event Management) and SOAR solution used for log analytics, threat detection, and incident response. It is not the primary tool for managing resource configuration compliance or cloud security posture (CSPM).
    • C. Incorrect. The 'Azure Security Benchmark' (now the Microsoft Cloud Security Benchmark) is a built-in initiative managed by Microsoft. Built-in initiatives are read-only and cannot be directly edited to add new policy definitions. You must create a new custom initiative to include your specific requirements.
    • D. Incorrect. While you can use the Inventory filter to find resources missing tags at a specific moment, this is a manual, ad-hoc process. It does not provide continuous compliance monitoring, scoring, or integration into the Regulatory Compliance dashboard.

    4.2 Manage security posture by using Microsoft Defender for Cloud

    31.You are using Microsoft Defender External Attack Surface Management (EASM). You need to start the discovery process for your organization's external assets. Which of the following can be used as a 'Seed' for discovery? (Select two)(Select 2)

    1. A.Internal Private IP ranges
    2. B.Active Directory User Principal Names
    3. C.Public Domains
    4. D.IP Blocks (CIDR)
    5. E.Azure Resource Manager IDs
    Show answer & explanation

    Correct answers: C, DPublic Domains; IP Blocks (CIDR)

    • A. Incorrect. Internal Private IP ranges (e.g., RFC1918 addresses) are not routable on the public internet and cannot be used for external attack surface discovery, which focuses on public-facing assets.
    • B. Incorrect. Active Directory User Principal Names (UPNs) are identity objects used for authentication and are not valid network seeds for discovering external infrastructure assets.
    • C. Correct. Public Domains are a primary seed type in Defender EASM. Providing a domain allows the service to discover associated subdomains, hosts, and services exposed to the internet.
    • D. Correct. IP Blocks provided in CIDR notation are supported seeds. EASM uses these public IP ranges to scan and identify active assets belonging to the organization within those blocks.
    • E. Incorrect. Azure Resource Manager IDs represent specific internal Azure resources and are not used as seeds for the external discovery engine, which relies on public internet identifiers like domains, IPs, and ASNs.

    4.2 Manage security posture by using Microsoft Defender for Cloud

    32.You are reviewing the Inventory blade in Microsoft Defender for Cloud. You need to generate a list of all resources that have the 'High' severity vulnerability 'SQL encryption should be enabled'. What is the most efficient way to achieve this?

    1. A.Export the entire log to Event Hub and query with Splunk
    2. B.Use the 'Add Filter' option in the Inventory blade to filter by Recommendation status and name
    3. C.Click on every resource manually to check its status
    4. D.Use Azure Resource Graph Explorer to query the 'SecurityResources' table
    Show answer & explanation

    Correct answer: BUse the 'Add Filter' option in the Inventory blade to filter by Recommendation status and name

    • A. Incorrect. Exporting logs to Event Hub to query in a third-party tool like Splunk requires significant configuration, additional cost, and time. It is an overly complex solution for a task that can be handled natively within the Azure portal.
    • B. Correct. The Inventory blade in Microsoft Defender for Cloud provides an 'Add Filter' capability. You can specifically filter by 'Recommendations' to select the 'SQL encryption should be enabled' recommendation. This instantly filters the view to show only the affected resources, making it the most efficient method.
    • C. Incorrect. Manually checking every resource is inefficient, time-consuming, and prone to error, especially in environments with a large number of resources.
    • D. Incorrect. While Azure Resource Graph (ARG) is powerful and can query this data, writing and executing a custom KQL query is less efficient than using the built-in visual filters provided directly in the Inventory blade where you are already working.

    4.4 Configure and manage security monitoring and automation solutions

    33.You have deployed Microsoft Sentinel. You need to configure a data connector to collect Common Event Format (CEF) logs from on-premises Linux firewalls. Which three actions should you perform in sequence? (Select three).(Select 3)

    1. A.Install the Azure Monitor Agent (AMA) on a Linux log forwarder.
    2. B.Configure the firewall to send logs to the log forwarder via Syslog.
    3. C.Create a Data Collection Rule (DCR) in Azure Monitor.
    4. D.Install the Log Analytics agent on the firewall device itself.
    5. E.Configure the firewall to write logs to an Azure Storage Account.
    Show answer & explanation

    Correct answers: A, B, CInstall the Azure Monitor Agent (AMA) on a Linux log forwarder.; Configure the firewall to send logs to the log forwarder via Syslog.; Create a Data Collection Rule (DCR) in Azure Monitor.

    • A. Correct. Installing the Azure Monitor Agent (AMA) on a dedicated Linux log forwarder is the current standard method for ingesting CEF/Syslog data into Sentinel. The forwarder acts as an intermediary between the appliance and Azure.
    • B. Correct. You must configure the source firewall to send its Syslog/CEF messages to the IP address or hostname of the Linux log forwarder so the agent can capture them.
    • C. Correct. When using the Azure Monitor Agent (AMA), creating a Data Collection Rule (DCR) is mandatory. The DCR defines which log facilities and severities to collect and routes them to the Sentinel Log Analytics workspace.
    • D. Incorrect. Installing an agent directly on a firewall appliance is typically not supported or recommended. The standard architecture uses a separate log forwarder server.
    • E. Incorrect. Writing logs to a Storage Account is an archiving method, not the standard real-time ingestion path for analyzing CEF logs in Microsoft Sentinel.

    4.4 Configure and manage security monitoring and automation solutions

    34.You need to connect Threat Intelligence data to Microsoft Sentinel using the TAXII protocol. Which information is required to configure the Taxii connector?

    1. A.The Root URL and Collection ID.
    2. B.The Shared Access Signature (SAS) token.
    3. C.The Azure AD Tenant ID.
    4. D.The Workspace Key and ID.
    Show answer & explanation

    Correct answer: AThe Root URL and Collection ID.

    • A. Correct. To configure the Threat Intelligence - TAXII data connector in Microsoft Sentinel, you must provide the API Root URL (to locate the TAXII server) and the Collection ID (to identify the specific set of threat intelligence data to pull).
    • B. Incorrect. A Shared Access Signature (SAS) token is typically used to grant limited access to Azure Storage resources, not for authentication or configuration of the TAXII protocol.
    • C. Incorrect. The Azure AD Tenant ID is not a required field for the standard TAXII connector configuration. TAXII servers usually require an API Root, Collection ID, and specific credentials (such as username/password or API key), rather than Azure AD context.
    • D. Incorrect. The Workspace Key and ID are required when connecting agents (like the Azure Monitor Agent or Log Analytics Agent) to a workspace, but they are not used within the configuration blade for the TAXII data connector in Sentinel.

    4.4 Configure and manage security monitoring and automation solutions

    35.You are using Microsoft Defender for Cloud. You want to simulate a specific alert to test your Workflow Automation configuration. For example, you want to simulate a 'VM Vulnerability' alert. What is the recommended method?

    1. A.Download a virus sample to a production VM.
    2. B.Use the 'Create sample alerts' feature in the Defender for Cloud portal.
    3. C.Run a PowerShell script that modifies the registry on a VM.
    4. D.Wait for a real vulnerability scan to complete.
    Show answer & explanation

    Correct answer: BUse the 'Create sample alerts' feature in the Defender for Cloud portal.

    • A. Incorrect. Downloading actual virus samples to a production VM is highly unsafe, violates security best practices, and risks compromising your environment. Testing should always be done safely without introducing real malware.
    • B. Correct. The 'Create sample alerts' feature within the Defender for Cloud portal is the supported and recommended method to validate configurations. It allows you to generate specific synthetic alerts immediately to test SIEM integrations, email notifications, and Workflow Automation without putting resources at risk.
    • C. Incorrect. While running scripts to modify the registry might trigger certain behavioral alerts, it is risky, could destabilize the VM, and is not the standard method for testing Workflow Automation. The built-in sample alert feature is safer and more precise.
    • D. Incorrect. Waiting for a real scan is passive and non-deterministic. It does not allow for immediate or controlled testing of your automation logic.

    Want the full experience?

    These are just samples. Practice the full Microsoft Certified: Azure Security Engineer Associate (AZ-500) question bank in quiz mode — free, no signup, with domain practice and exam simulation.