Category: SC-500

Implement platform-level security configurations in Azure SQL (SC-500 Exam Prep)

This post is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.
This topic falls under these sections:
Secure storage, databases, and networking (25–30%)
   --> Implement security for databases
      --> Implement platform-level security configurations in Azure SQL


Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.

Introduction

The SC-500 exam expects you to understand how to secure Azure SQL Database and Azure SQL Managed Instance at the platform level.

Platform-level security focuses on controls that protect the database service and its connections, including:

  • Authentication
  • Authorization
  • Network isolation
  • Encryption in transit
  • Encryption at rest
  • Customer-managed keys
  • Dynamic data masking
  • Row-level security
  • Microsoft Defender for SQL
  • Auditing and monitoring

These controls should be implemented using a defense-in-depth approach. No single control protects every layer of a database workload.


1. Understand the Azure SQL Security Model

Azure SQL security can be viewed in several layers:

Security layerPrimary purposeExamples
Identity and authenticationEstablish who or what is connectingMicrosoft Entra ID, SQL authentication, managed identities
AuthorizationDetermine what the identity can doAzure RBAC, database roles, permissions
Network securityControl where connections originatePrivate endpoints, virtual network rules, firewall rules
Encryption in transitProtect data while moving between systemsTLS
Encryption at restProtect stored database files and backupsTransparent Data Encryption
Encryption in useProtect especially sensitive values while being processedAlways Encrypted
Data visibilityLimit what users can seeDynamic data masking, row-level security
Monitoring and detectionIdentify suspicious or unauthorized activityAuditing, Microsoft Defender for SQL

Azure SQL Database is a platform as a service offering. Microsoft manages many underlying platform responsibilities, such as patching, backups, and infrastructure maintenance, but customers remain responsible for configuring access, network exposure, data protection, and monitoring.


2. Configure Microsoft Entra Authentication

What Is Microsoft Entra Authentication?

Microsoft Entra authentication allows users and applications to connect to Azure SQL using identities managed by Microsoft Entra ID.

Supported identities can include:

  • Individual users
  • Microsoft Entra groups
  • Service principals
  • Managed identities
  • Applications using Microsoft Entra access tokens

Microsoft Entra authentication provides centralized identity management and can integrate with capabilities such as multifactor authentication, Conditional Access, and identity lifecycle management.

Configure a Microsoft Entra Administrator

Before Microsoft Entra identities can be used to administer an Azure SQL logical server, configure a Microsoft Entra administrator for the server.

The Microsoft Entra administrator can be:

  • A Microsoft Entra user
  • A Microsoft Entra group

Using a group is often preferable for operational continuity because membership can be managed without changing the SQL server’s configured administrator whenever an individual administrator changes roles.

The Microsoft Entra administrator is configured at the logical-server level. After the administrator is configured, that identity can connect and create database users or assign appropriate database permissions.

Create Microsoft Entra Database Users

A Microsoft Entra user or group can be created inside an Azure SQL database using T-SQL similar to:

CREATE USER [Finance Analysts]
FROM EXTERNAL PROVIDER;

The user can then be added to an appropriate database role or granted specific permissions.

For example:

ALTER ROLE db_datareader
ADD MEMBER [Finance Analysts];

However, built-in roles such as db_datareader may grant more access than necessary. A more secure design is to create custom database roles and grant only the required permissions.

Microsoft Entra-Only Authentication

Microsoft Entra-only authentication disables SQL authentication for the logical server or supported Azure SQL resource.

This can reduce the risks associated with:

  • SQL usernames and passwords
  • Password reuse
  • Password theft
  • Password storage in connection strings
  • Credential rotation
  • Brute-force password attacks

Before enabling Microsoft Entra-only authentication, verify that all applications, scripts, tools, and integration services support Microsoft Entra authentication.

An application that still depends on a SQL login and password may stop connecting after SQL authentication is disabled.


3. Use Managed Identities for Applications

Managed identities are recommended for Azure-hosted applications that need to connect to Azure SQL.

A managed identity allows an Azure resource to authenticate without storing a password, client secret, or connection-string credential in application code.

Common examples include:

  • Azure App Service
  • Azure Functions
  • Azure Virtual Machines
  • Azure Kubernetes Service
  • Azure Logic Apps
  • Azure Automation
  • Other Azure services that support managed identities

Typical Configuration Process

  1. Enable a system-assigned or user-assigned managed identity on the application.
  2. Configure a Microsoft Entra administrator for the SQL logical server.
  3. Connect to the target database as an appropriate administrator.
  4. Create a database user for the managed identity.
  5. Grant the identity only the required database permissions.
  6. Configure the application to request and use a Microsoft Entra access token.

Example:

CREATE USER [my-function-app]
FROM EXTERNAL PROVIDER;

Then grant only the permissions required by the application.

System-Assigned versus User-Assigned Managed Identity

TypeCharacteristics
System-assignedTied to the lifecycle of one Azure resource
User-assignedSeparate Azure resource that can be assigned to multiple supported resources

A system-assigned identity is useful when the identity should exist only as long as the application exists.

A user-assigned identity is useful when several applications need to share the same identity or when the identity lifecycle should be independent of a particular application.


4. Understand SQL Authentication

SQL authentication uses a SQL login and password rather than Microsoft Entra credentials.

It may still be required for:

  • Legacy applications
  • Cross-platform applications that do not support Microsoft Entra authentication
  • Migration scenarios
  • Certain administrative or automation tools

If SQL authentication must be used:

  • Use strong, unique passwords.
  • Store secrets in a secure secret-management service.
  • Avoid embedding credentials in source code.
  • Rotate passwords regularly.
  • Restrict the login’s permissions.
  • Monitor failed authentication attempts.
  • Avoid using highly privileged accounts for application connections.

SQL authentication should not be confused with Azure RBAC. Azure RBAC controls Azure resource management operations, while SQL authentication and database permissions control access inside the database.


5. Configure Network Isolation

Network security controls determine which clients can reach Azure SQL.

The primary options include:

  • Public endpoint with firewall rules
  • Virtual network rules
  • Private endpoints
  • Disabling public network access

Public Endpoint and Firewall Rules

Azure SQL Database can expose a public endpoint protected by firewall rules.

Firewall rules can be configured at:

  • Server level
  • Database level

Server-level firewall rules

A server-level firewall rule applies to all databases on the logical server.

This is useful when the same trusted source must access multiple databases.

Database-level firewall rules

A database-level firewall rule applies only to a specific database.

This provides more granular control when different databases require different network access rules.

By default, connections are rejected unless an applicable firewall rule allows them. The most secure configuration is to permit only the required IP addresses or ranges and avoid broad rules.

“Allow Azure Services and Resources to Access This Server”

This setting allows connections from Azure services and resources, including resources that may not belong to the same subscription.

Although convenient, it can create broader network exposure than intended.

Use it only when required and understand that it is not equivalent to allowing only one specific application or subnet.

Private Endpoints

A private endpoint assigns a private IP address from an Azure virtual network to the Azure SQL resource.

With a private endpoint:

  • Traffic can remain on private Azure networking.
  • The database is accessed through a private IP address.
  • Public internet exposure can be reduced.
  • Private DNS configuration is required for reliable name resolution.
  • Network access can be controlled using virtual network and subnet security controls.

For a strongly isolated design, configure a private endpoint and disable public network access when the workload does not require public connectivity.

Important Exam Distinction

A private endpoint does not automatically guarantee that every client uses it.

You must also consider:

  • DNS resolution
  • Routing
  • Network security rules
  • Whether public network access remains enabled
  • Whether clients can reach the private endpoint’s virtual network

6. Protect Data in Transit with TLS

Azure SQL encrypts connections in transit using Transport Layer Security.

Encryption in transit protects data as it travels between:

  • Applications and Azure SQL
  • Administrative tools and Azure SQL
  • Integration services and Azure SQL

TLS helps reduce the risk of:

  • Network eavesdropping
  • Credential interception
  • Data interception
  • Man-in-the-middle attacks

Client connection strings should require encryption and should not blindly trust the server certificate.

For example, application drivers should be configured to:

  • Encrypt the connection
  • Validate the server certificate
  • Avoid insecure certificate-trust settings

Azure SQL services enforce encrypted connections in transit.


7. Enable Transparent Data Encryption

What Is Transparent Data Encryption?

Transparent Data Encryption, or TDE, encrypts data at rest.

TDE protects:

  • Database files
  • Transaction log files
  • Backup files

TDE is transparent to applications. Applications do not normally need to change their SQL statements or data-access code to use TDE.

New Azure SQL databases are encrypted by default. You should still verify the configuration and understand whether the organization requires customer-managed keys instead of Microsoft-managed keys.

TDE and Customer-Managed Keys

By default, Azure SQL uses Microsoft-managed encryption keys.

For regulated workloads or organizations requiring greater control, configure a customer-managed key in Azure Key Vault.

Customer-managed keys can provide control over:

  • Key rotation
  • Key access
  • Key revocation
  • Key auditing
  • Key lifecycle management

The customer-managed key protects or wraps the database encryption key. It does not mean that every database operation directly uses the Key Vault key.

Requirements for Customer-Managed TDE

A typical implementation includes:

  1. Create or select an Azure Key Vault.
  2. Configure appropriate network and access controls for the vault.
  3. Create or import a key.
  4. Grant the Azure SQL server identity access to the key.
  5. Configure the customer-managed key for the logical server or supported database.
  6. Monitor key usage and expiration.
  7. Plan for key rotation and recovery.

If the SQL service cannot access the configured key, database availability or encryption operations may be affected. Key lifecycle management is therefore a critical operational responsibility.

TDE versus Always Encrypted

FeatureTDEAlways Encrypted
Protects data at restYesYes
Protects data in transitThrough TLSThrough TLS
Protects data from database administratorsGenerally noYes, for protected columns
Requires application changesUsually noOften yes
Protects selected columns while in useNoYes

TDE protects the database storage layer. Always Encrypted is designed for highly sensitive columns where the database engine should not have access to plaintext values.


8. Understand Dynamic Data Masking

Dynamic Data Masking, or DDM, limits the exposure of sensitive values to users who do not have permission to view the underlying data.

Examples of sensitive values include:

  • Credit card numbers
  • Telephone numbers
  • Email addresses
  • Social Security numbers
  • Personal identifiers

A masked value may appear similar to:

XXXX-XXXX-XXXX-1234

The exact masking format depends on the configured masking function.

Important Characteristics

Dynamic data masking:

  • Does not encrypt the underlying data.
  • Does not modify the stored value.
  • Is applied when data is returned to a user.
  • Helps reduce accidental exposure.
  • Is configured at the database level.
  • Is not a replacement for database permissions.

Privileged users or users with sufficient permissions may still be able to view the unmasked data.

When to Use Dynamic Data Masking

Use DDM when:

  • Support personnel need limited access to production data.
  • Developers need to troubleshoot applications without seeing sensitive values.
  • Analysts need to see data structure but not full identifiers.
  • A database contains sensitive information that should be obscured for some users.

Do not rely on DDM as the only protection for confidential data. Combine it with least-privilege permissions, encryption, auditing, and appropriate application security.


9. Implement Row-Level Security

Row-Level Security, or RLS, restricts which rows a user can access.

RLS is especially useful for:

  • Multitenant applications
  • Regional data separation
  • Department-level access
  • Customer-specific data
  • Business-unit restrictions

For example, a sales representative may be allowed to see only rows belonging to their assigned region.

How RLS Works

RLS uses a security predicate that determines whether a row can be accessed.

A common design is:

  1. Identify the current user or application identity.
  2. Compare that identity with a column in the table.
  3. Allow or deny access to each row based on the result.

RLS can restrict:

  • Reading rows
  • Inserting rows
  • Updating rows
  • Deleting rows

Example Concept

A table might contain:

CustomerId
CustomerName
TenantId

A security predicate can ensure that a user only sees rows where TenantId matches the tenant associated with the current session.

RLS versus Dynamic Data Masking

RequirementCorrect feature
Hide part of a valueDynamic Data Masking
Prevent users from seeing other tenants’ rowsRow-Level Security
Encrypt database files at restTransparent Data Encryption
Encrypt selected columns so database administrators cannot view plaintextAlways Encrypted
Restrict who can connect to the databaseFirewall or private endpoint
Detect suspicious SQL activityMicrosoft Defender for SQL

RLS controls which rows are visible. It does not encrypt the data and should not be treated as an encryption mechanism.


10. Configure Microsoft Defender for SQL

Microsoft Defender for SQL provides threat detection and security assessment capabilities for Azure SQL workloads.

It can help identify suspicious activity such as:

  • SQL injection attempts
  • Unusual access patterns
  • Potential data exfiltration
  • Brute-force activity
  • Suspicious database behavior
  • Potential exploitation attempts

Defender for SQL can also provide vulnerability assessment and security recommendations. Alerts can be investigated through Microsoft Defender for Cloud.

Defender for SQL versus Auditing

These features serve different purposes:

FeatureMain purpose
AuditingRecords database activity for investigation, compliance, and analysis
Defender for SQLDetects suspicious activity and generates security alerts
Vulnerability assessmentIdentifies potential database weaknesses
Dynamic Data MaskingObscures sensitive values from certain users
TDEEncrypts data at rest

Defender for SQL does not replace firewall rules, identity controls, encryption, or database permissions.


11. Configure SQL Auditing

SQL auditing records database events and sends them to a selected destination.

Supported destinations can include:

  • Azure Storage
  • Azure Monitor Logs
  • Event Hubs

Auditing can help with:

  • Regulatory compliance
  • Security investigations
  • Tracking privileged activity
  • Investigating failed access attempts
  • Identifying unusual database operations
  • Establishing an activity history

Audit logs should be protected from unauthorized modification and retained according to the organization’s compliance and investigation requirements.

Recommended Auditing Practices

  • Enable auditing for production databases.
  • Send logs to a centralized destination.
  • Restrict access to audit logs.
  • Configure retention appropriate to business and regulatory requirements.
  • Monitor failed logins and privileged operations.
  • Correlate audit events with identity and network logs.
  • Use Microsoft Sentinel or other monitoring workflows when centralized investigation is required.

12. Apply Least Privilege

Least privilege means granting users and applications only the permissions they require.

Apply least privilege at multiple levels:

Azure resource level

Use Azure RBAC to control who can:

  • Create SQL servers
  • Modify networking
  • Change firewall rules
  • Configure auditing
  • Configure Defender for SQL
  • Change encryption settings

Database level

Use database roles and permissions to control who can:

  • Read tables
  • Insert data
  • Update data
  • Delete data
  • Execute stored procedures
  • Alter database objects

Data level

Use:

  • Row-Level Security
  • Dynamic Data Masking
  • Column-level permissions
  • Views
  • Stored procedures

Avoid granting broad roles such as db_owner to application identities unless absolutely necessary.


13. Platform-Level Security Implementation Example

Suppose a company hosts a financial application in Azure SQL Database.

The application requirements are:

  • The application runs in Azure App Service.
  • Only the application and administrators should reach the database.
  • Developers must not see full customer payment information.
  • Database activity must be audited.
  • The organization requires control over encryption keys.

A suitable design would be:

  1. Enable a managed identity on the App Service.
  2. Create a Microsoft Entra database user for the identity.
  3. Grant only the required database permissions.
  4. Configure a private endpoint for Azure SQL.
  5. Disable public network access if public connectivity is unnecessary.
  6. Configure private DNS so the application resolves the SQL server privately.
  7. Verify TLS encryption for all connections.
  8. Enable TDE and configure a customer-managed key in Azure Key Vault.
  9. Apply dynamic data masking to selected sensitive columns.
  10. Use RLS if users must see only records associated with their tenant or business unit.
  11. Enable SQL auditing and send logs to Azure Monitor Logs or Azure Storage.
  12. Enable Microsoft Defender for SQL for threat detection and vulnerability assessment.
  13. Use Azure Policy to enforce required security configurations where supported.

This design combines identity, network isolation, encryption, data protection, and monitoring rather than relying on one security feature.


14. Common Exam Traps

Trap 1: Confusing Azure RBAC with database permissions

Azure RBAC controls Azure resource management. It does not automatically grant permission to query tables.

Trap 2: Assuming TDE protects plaintext from administrators

TDE protects data at rest. It does not prevent an authorized database administrator from querying plaintext data.

Trap 3: Confusing DDM with encryption

Dynamic Data Masking hides returned values from some users. It does not encrypt the stored data.

Trap 4: Confusing RLS with DDM

RLS restricts rows. DDM obscures values.

Trap 5: Assuming a private endpoint automatically disables public access

A private endpoint provides private connectivity, but public network access may remain enabled unless explicitly disabled.

Trap 6: Assuming Microsoft Entra authentication automatically grants database access

The identity must also exist in the database and have appropriate permissions.

Trap 7: Granting Storage-style roles to SQL users

Azure SQL database access is not granted by assigning unrelated Azure Storage roles. Use appropriate Azure RBAC roles for management operations and SQL permissions for database operations.

Trap 8: Disabling SQL authentication without checking dependencies

Legacy applications may stop working if they depend on SQL logins and passwords.

Trap 9: Assuming auditing detects and blocks attacks

Auditing records activity. Microsoft Defender for SQL provides threat detection and alerts. Neither replaces preventive access controls.

Trap 10: Assuming customer-managed keys eliminate all security responsibilities

Customer-managed keys increase control, but the organization must manage key permissions, rotation, availability, and recovery.


15. Security Checklist

Use the following checklist when implementing platform-level security for Azure SQL:

  • Configure a Microsoft Entra administrator.
  • Prefer Microsoft Entra authentication over SQL authentication.
  • Use managed identities for Azure-hosted applications.
  • Disable SQL authentication when all dependencies support Microsoft Entra authentication.
  • Assign database permissions using least privilege.
  • Use private endpoints for workloads requiring private connectivity.
  • Disable public network access when it is not required.
  • Restrict firewall rules to necessary sources.
  • Require encrypted connections.
  • Verify certificate validation in client applications.
  • Confirm that TDE is enabled.
  • Use customer-managed keys when required by compliance or organizational policy.
  • Protect encryption keys in Azure Key Vault.
  • Use Always Encrypted for especially sensitive columns.
  • Use Dynamic Data Masking to reduce accidental data exposure.
  • Use Row-Level Security for tenant- or row-specific restrictions.
  • Enable SQL auditing.
  • Enable Microsoft Defender for SQL.
  • Review vulnerability assessment recommendations.
  • Monitor privileged activity and failed authentication attempts.
  • Use Azure Policy to enforce security baselines.
  • Test application connectivity after security changes.

Practice Exam Questions

Question 1

An Azure App Service must connect to an Azure SQL database. The security team does not want database passwords or client secrets stored in application settings.

What should you implement?

A. A SQL login with a complex password
B. A public database endpoint with an IP firewall rule
C. A managed identity with a Microsoft Entra database user
D. A database-level firewall rule

Correct answer: C

Explanation: A managed identity allows the App Service to authenticate through Microsoft Entra ID without storing a password or client secret. The identity must also be created as a database user and granted the required permissions.


Question 2

A company wants to ensure that employees can connect to Azure SQL only from a private Azure virtual network. The database must not be reachable through its public endpoint.

Which configuration best meets the requirement?

A. Enable a private endpoint and disable public network access
B. Add the company’s public IP address to the server firewall
C. Enable the “Allow Azure services and resources to access this server” setting
D. Enable SQL authentication and require strong passwords

Correct answer: A

Explanation: A private endpoint provides private connectivity through a virtual network. Disabling public network access ensures that clients cannot continue using the public endpoint. DNS and routing must also be configured correctly.


Question 3

A database contains customer credit card information. Developers need to troubleshoot queries but must not see the complete credit card numbers.

Which feature is most appropriate?

A. Transparent Data Encryption
B. Dynamic Data Masking
C. Private endpoint
D. Microsoft Defender for SQL

Correct answer: B

Explanation: Dynamic Data Masking obscures sensitive values returned to users who do not have permission to view the unmasked data. TDE protects data at rest, while a private endpoint controls network connectivity.


Question 4

A multitenant application stores records for many customers in the same table. Each customer must see only records belonging to its own tenant.

Which feature should be implemented?

A. Transparent Data Encryption
B. Dynamic Data Masking
C. Row-Level Security
D. SQL auditing

Correct answer: C

Explanation: Row-Level Security restricts access to individual rows based on the user, tenant, or session context. Dynamic Data Masking hides portions of values but does not prevent users from seeing rows belonging to other tenants.


Question 5

An organization requires control over the encryption keys used to protect Azure SQL databases. The keys must be rotated and audited by the organization.

What should be configured?

A. Customer-managed keys for Transparent Data Encryption in Azure Key Vault
B. Dynamic Data Masking on all database columns
C. A server-level firewall rule
D. A stored procedure that encrypts query results

Correct answer: A

Explanation: Customer-managed keys for TDE allow the organization to control key lifecycle activities such as rotation, revocation, and auditing. The keys are stored and managed in Azure Key Vault.


Question 6

An administrator assigns a user the Contributor role on an Azure SQL logical server. The user can manage the server resource but cannot query tables in a database.

Why?

A. Azure SQL does not support database permissions
B. Contributor is a management-plane role and does not automatically grant database data access
C. The user must enable public network access
D. The user must use SQL authentication instead of Microsoft Entra authentication

Correct answer: B

Explanation: Azure RBAC management roles control Azure resource operations. Database access requires an appropriate database user, role membership, or explicit SQL permission.


Question 7

A security engineer wants to record database activity for compliance investigations. The organization needs to send the events to a centralized log-analysis platform.

Which feature should be configured?

A. Dynamic Data Masking
B. Row-Level Security
C. Transparent Data Encryption
D. SQL auditing with Azure Monitor Logs

Correct answer: D

Explanation: SQL auditing records database events and can send them to Azure Monitor Logs. Auditing supports compliance, investigation, and analysis of database activity.


Question 8

A company wants to detect SQL injection attempts and unusual database access patterns.

Which service should be enabled?

A. Azure Private Link
B. Azure Key Vault
C. Microsoft Defender for SQL
D. Dynamic Data Masking

Correct answer: C

Explanation: Microsoft Defender for SQL provides threat detection for suspicious database activity, including potential SQL injection and anomalous access patterns. It complements, but does not replace, preventive security controls.


Question 9

An organization has migrated all applications to Microsoft Entra authentication. It wants to prevent applications from using SQL usernames and passwords.

Which configuration should be used?

A. Microsoft Entra-only authentication
B. Dynamic Data Masking
C. Database-level firewall rules
D. SQL auditing

Correct answer: A

Explanation: Microsoft Entra-only authentication disables SQL authentication and requires supported connections to use Microsoft Entra authentication. Applications must be tested before the setting is enabled.


Question 10

A security team wants to protect Azure SQL data stored on disk and in database backups. Applications should not require code changes.

Which feature should be used?

A. Row-Level Security
B. Transparent Data Encryption
C. Microsoft Defender for SQL
D. Microsoft Entra Conditional Access

Correct answer: B

Explanation: Transparent Data Encryption encrypts database files, transaction logs, and backups at rest without normally requiring application changes. It does not restrict which rows users can query or detect suspicious activity.


Final Summary

For the SC-500 exam, remember the following distinctions:

  • Microsoft Entra authentication establishes identity.
  • Managed identities eliminate the need to store application credentials.
  • Database roles and permissions control what users and applications can do inside the database.
  • Private endpoints provide private connectivity.
  • Firewall rules restrict network sources.
  • TLS protects data in transit.
  • TDE protects data at rest.
  • Customer-managed keys provide additional control over encryption keys.
  • Always Encrypted protects selected sensitive values from database administrators.
  • Dynamic Data Masking obscures sensitive values.
  • Row-Level Security restricts access to rows.
  • SQL auditing records database activity.
  • Microsoft Defender for SQL detects suspicious database activity and provides security assessment capabilities.
  • Azure Policy and least privilege help enforce consistent security across the environment.

The most secure Azure SQL design combines these controls according to the workload’s identity, network, data sensitivity, compliance, and monitoring requirements.


Go to the SC-500 Exam Prep Hub main page

Configure database auditing for Azure SQL Database and Azure SQL Managed Instance (SC-500 Exam Prep)

This post is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.
This topic falls under these sections:
Secure storage, databases, and networking (25–30%)
   --> Implement security for databases
      --> Configure database auditing for Azure SQL Database and Azure SQL Managed Instance


Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.

Overview

Database auditing records database activity so that organizations can investigate security incidents, identify unauthorized access, support compliance requirements, and understand how data is being used.

For the SC-500 exam, database auditing primarily involves configuring and managing auditing for:

  • Azure SQL Database
  • Azure SQL Managed Instance
  • SQL databases hosted in Azure
  • Microsoft Entra authentication and database activity
  • Audit destinations and retention
  • Audit logs and monitoring

Auditing is different from authentication and authorization:

  • Authentication determines who or what is connecting.
  • Authorization determines what the principal is allowed to do.
  • Auditing records what happened, who performed the action, when it occurred, and other relevant details.

A user might be correctly authenticated and authorized to read a table, but auditing can record that the user actually performed the read operation.


Why Database Auditing Is Important

Database auditing supports several security and governance objectives.

Detecting suspicious activity

Audit records can help identify:

  • Repeated failed login attempts
  • Access to sensitive tables
  • Unexpected changes to database objects
  • Changes to permissions or roles
  • Unusual administrative activity
  • Attempts to access data outside normal business patterns

Supporting compliance

Many regulatory and organizational standards require organizations to maintain evidence of access to sensitive data. Audit logs can help demonstrate:

  • Who accessed data
  • Which operations were performed
  • When the operations occurred
  • Whether privileged users changed security settings
  • Whether sensitive data was accessed or modified

Investigating security incidents

When an incident occurs, audit logs can help security teams reconstruct events and determine:

  • Which account was used
  • Which database was accessed
  • Which commands were executed
  • Whether data was read, changed, or deleted
  • Whether permissions were modified
  • The approximate time sequence of activity

Establishing accountability

Auditing helps associate database activity with a user, application, service principal, or managed identity. This is especially important when multiple applications or administrators access the same database.


Azure SQL Auditing

Azure SQL auditing tracks database events and writes audit records to a configured destination.

Auditing can be configured at different scopes, depending on the service:

  • Azure SQL logical server
  • Individual Azure SQL Database
  • Azure SQL Managed Instance
  • SQL databases hosted by the managed instance

The exact configuration experience and available settings can vary between Azure SQL Database and Azure SQL Managed Instance.

For Azure SQL Database, auditing can generally be configured at the server or database level. A database-level configuration can provide more specific control for an individual database.

For Azure SQL Managed Instance, auditing is configured for the managed instance and can capture activity across the databases hosted by that instance.


Azure SQL Database Auditing

Azure SQL Database auditing records database events for databases hosted on an Azure SQL logical server.

Auditing can be enabled through the Azure portal, Azure PowerShell, Azure CLI, REST APIs, or infrastructure-as-code tools.

At a high level, configuring auditing involves:

  1. Selecting the SQL server or database.
  2. Opening the auditing configuration.
  3. Enabling auditing.
  4. Selecting an audit destination.
  5. Configuring retention and related settings.
  6. Saving the configuration.
  7. Reviewing the generated audit records.

Auditing can be configured at the server level so that databases inherit the server’s auditing configuration. A database-level configuration can be used when a particular database requires different auditing behavior.


Azure SQL Managed Instance Auditing

Azure SQL Managed Instance provides auditing for database activity across the managed instance.

Because a managed instance can host multiple databases, auditing at the managed-instance level is useful when an organization wants consistent auditing across its database environment.

Auditing can help record activity such as:

  • Database connections
  • Queries and stored procedure execution
  • Data access
  • Data changes
  • Permission changes
  • Schema changes
  • Security-related operations

The audit configuration should be reviewed carefully to ensure that the selected events meet the organization’s security and compliance requirements without generating unnecessary volumes of data.


Audit Destinations

Azure SQL auditing supports several destinations. The appropriate destination depends on the organization’s retention, analysis, and monitoring requirements.

Azure Storage

Audit logs can be written to an Azure Storage account.

Azure Storage is useful when an organization needs:

  • Long-term retention
  • Centralized storage
  • Low-cost archival
  • Integration with other data-processing tools
  • Storage-based compliance evidence

When using Azure Storage, consider:

  • Storage account security
  • Access control
  • Network restrictions
  • Encryption
  • Retention policies
  • Immutability requirements
  • Lifecycle management

Audit logs should not be stored in a location where unauthorized users can modify or delete them.

For stronger protection, organizations can use storage security features such as restricted access, role-based access control, and immutable storage where appropriate.


Log Analytics Workspace

Audit logs can be sent to a Log Analytics workspace.

This destination is useful when security teams need to:

  • Query audit records
  • Correlate database events with other Azure activity
  • Build dashboards
  • Create alerts
  • Investigate incidents
  • Use Microsoft Sentinel for security monitoring

Log Analytics is often the most useful destination for operational security monitoring because audit data can be queried using Kusto Query Language.

For example, security teams might use audit data to investigate:

  • Access to sensitive databases
  • Changes to database permissions
  • Unusual administrative activity
  • Repeated failed connections
  • Unexpected data modification

Event Hubs

Audit logs can also be sent to Azure Event Hubs.

Event Hubs is useful when audit data must be streamed to another system, such as:

  • A security information and event management platform
  • A security analytics platform
  • A custom monitoring application
  • A third-party compliance or monitoring solution

Event Hubs is designed for high-throughput event ingestion and streaming rather than long-term log storage by itself.


Choosing a Destination

RequirementSuitable destination
Long-term archivalAzure Storage
Interactive investigation and queriesLog Analytics workspace
Streaming audit data to another systemEvent Hubs
Security analytics and alertingLog Analytics and Microsoft Sentinel
Compliance retentionAzure Storage, often with additional retention controls

An organization may use more than one destination when it needs both operational monitoring and long-term retention.


Types of Activity That Can Be Audited

The exact audit events available depend on the Azure SQL service and configuration, but auditing can capture several important categories of activity.

Authentication and connection activity

Examples include:

  • Successful database connections
  • Failed connection attempts
  • Authentication-related events
  • Connection information

These events can help identify brute-force attempts, misconfigured applications, or unexpected access.

Data access

Examples include:

  • Reading data
  • Selecting data from sensitive tables
  • Executing stored procedures
  • Accessing specific database objects

Data-access auditing is particularly important for databases containing:

  • Personally identifiable information
  • Financial information
  • Healthcare information
  • Customer records
  • Confidential business data

Data changes

Examples include:

  • Insert operations
  • Update operations
  • Delete operations
  • Bulk data changes

Auditing data changes can help determine whether records were modified or removed.

Schema changes

Examples include:

  • Creating tables
  • Altering tables
  • Dropping tables
  • Creating or modifying stored procedures
  • Changing database objects

Schema auditing is useful because unauthorized schema changes can create security vulnerabilities or affect application behavior.

Permission and role changes

Examples include:

  • Granting permissions
  • Revoking permissions
  • Adding users to database roles
  • Removing users from database roles
  • Changing ownership or security-related settings

These events are important for detecting privilege escalation.

Administrative activity

Examples include:

  • Changes to auditing configuration
  • Changes to database settings
  • Changes to security configuration
  • Administrative commands

Administrative auditing helps establish accountability for privileged operations.


Auditing Versus Microsoft Defender for SQL

Azure SQL auditing and Microsoft Defender for SQL serve related but different purposes.

Azure SQL auditing

Auditing primarily records database activity for:

  • Investigation
  • Compliance
  • Accountability
  • Historical analysis
  • Security monitoring

It answers questions such as:

What activity occurred in the database?

Microsoft Defender for SQL

Microsoft Defender for SQL provides additional security capabilities, such as:

  • Threat detection
  • Security alerts
  • Vulnerability assessment
  • Security recommendations
  • Identification of suspicious database activity

It answers questions such as:

Does this activity appear suspicious or represent a security risk?

Auditing and Defender for SQL can be used together. Auditing provides detailed activity records, while Defender for SQL can identify and alert on potentially malicious behavior.


Auditing and Microsoft Sentinel

Audit logs can be integrated with Microsoft Sentinel to support centralized security monitoring.

A typical workflow is:

  1. Enable auditing on Azure SQL Database or Azure SQL Managed Instance.
  2. Send audit logs to a Log Analytics workspace.
  3. Connect the workspace to Microsoft Sentinel.
  4. Create queries and analytics rules.
  5. Configure alerts and incidents.
  6. Investigate related activity across Azure and other environments.

For example, Microsoft Sentinel could correlate:

  • A suspicious Microsoft Entra sign-in
  • A database permission change
  • Access to a sensitive table
  • Activity from an unusual IP address
  • A subsequent data export

This correlation provides more context than reviewing database logs alone.


Retention and Log Management

Audit logs should be retained according to:

  • Regulatory requirements
  • Organizational policies
  • Incident-response requirements
  • Legal and contractual obligations
  • Storage costs
  • Data sensitivity

Retention should be long enough to support investigations and compliance audits.

Important considerations include:

  • How long logs are retained
  • Whether logs can be deleted by ordinary administrators
  • Whether logs are protected from modification
  • Whether access to logs is itself audited
  • Whether archived logs can be searched or restored
  • Whether retention policies apply consistently across databases

Audit logs may contain sensitive information, so they should be protected using appropriate access controls and encryption.


Securing Audit Logs

Audit logs are security evidence and should be protected as carefully as the database itself.

Restrict access

Only authorized personnel should be able to read, export, or delete audit logs.

Use least-privilege access through Microsoft Entra ID and Azure RBAC where supported.

Protect against deletion or modification

Consider:

  • Storage immutability
  • Resource locks where appropriate
  • Restricted administrative access
  • Separate security or compliance ownership
  • Monitoring of changes to audit configuration

A log that can be easily deleted by the person being investigated provides limited forensic value.

Encrypt audit data

Audit data should be protected using encryption at rest and secure transport.

Azure services generally provide encryption at rest, but organizations must still configure access and key-management controls appropriately.

Monitor auditing configuration

Security teams should monitor changes to:

  • Whether auditing is enabled
  • Audit destinations
  • Retention settings
  • Audit policies
  • Database-level overrides
  • Permissions to audit destinations

An attacker who disables auditing may be attempting to conceal activity.


Configuring Auditing in the Azure Portal

The following is a conceptual configuration process. The exact portal labels may vary as Azure services evolve.

Azure SQL Database

  1. Open the Azure portal.
  2. Navigate to the Azure SQL logical server or database.
  3. Select Auditing under the security-related settings.
  4. Enable auditing.
  5. Choose one or more supported destinations.
  6. Configure the destination details.
  7. Configure retention or related settings.
  8. Save the configuration.
  9. Generate or perform test activity.
  10. Verify that audit records are being delivered.

When configuring auditing at the server level, review whether individual databases inherit the configuration or override it.

Azure SQL Managed Instance

  1. Open the Azure portal.
  2. Navigate to the managed instance.
  3. Select the auditing configuration.
  4. Enable auditing.
  5. Select the destination.
  6. Configure retention and related settings.
  7. Save the configuration.
  8. Verify that activity from the managed instance’s databases is being recorded.

Common Exam Considerations

Server-level versus database-level configuration

A server-level auditing configuration can provide centralized coverage, while a database-level configuration can provide more specific control.

When troubleshooting, determine whether:

  • Auditing is enabled at the server level
  • The database has its own auditing configuration
  • A database-level setting overrides the inherited configuration
  • The selected destination is correctly configured

Auditing does not grant access

Enabling auditing does not allow a user to connect to a database or read data.

Authentication and authorization must still be configured separately.

Auditing does not block activity

Auditing records activity. It does not, by itself, prevent a user from executing a query or changing data.

To prevent activity, use controls such as:

  • Microsoft Entra authentication
  • Azure RBAC
  • Database roles and permissions
  • Network access controls
  • Microsoft Defender for SQL
  • Azure Policy
  • Microsoft Purview or other data-governance controls

Auditing is not the same as diagnostic logging

Diagnostic settings are used to route platform logs and metrics to destinations such as Log Analytics, Storage, or Event Hubs.

Azure SQL auditing is a database-specific auditing capability. Diagnostic settings may be involved in routing or collecting related logs, but they do not replace the need to configure database auditing appropriately.

Do not collect more data than necessary

Auditing should be designed to meet security and compliance objectives while controlling:

  • Storage costs
  • Query volume
  • Log noise
  • Sensitive information exposure
  • Operational overhead

A useful audit policy focuses on meaningful events and protects the resulting records.


Best Practices

  1. Enable auditing for production databases.
  2. Use Log Analytics when interactive investigation and alerting are required.
  3. Use Azure Storage for long-term retention and archival.
  4. Send relevant audit data to Microsoft Sentinel for centralized security monitoring.
  5. Protect audit destinations with least-privilege access.
  6. Use retention policies that meet regulatory and organizational requirements.
  7. Protect logs against unauthorized deletion or modification.
  8. Monitor changes to auditing configuration.
  9. Review audit records regularly.
  10. Correlate audit activity with identity, network, and application logs.
  11. Use Microsoft Defender for SQL for threat detection in addition to auditing.
  12. Test auditing after configuration changes.
  13. Document which events are audited and why.
  14. Avoid relying on auditing as a substitute for authorization.
  15. Ensure that audit logs themselves are treated as sensitive data.

Practice Exam Questions

Question 1

An organization needs to record activity performed against an Azure SQL Database so that security analysts can investigate suspicious queries and create alerts. Which destination is the most appropriate?

A. Azure Key Vault
B. Azure Storage only
C. Log Analytics workspace
D. Azure Resource Graph

Correct answer: C

Explanation: A Log Analytics workspace is designed for querying and analyzing log data. It can also be used with Microsoft Sentinel to create alerts and investigate security incidents. Azure Storage is better suited to archival and long-term retention.


Question 2

A company must retain Azure SQL audit records for several years at a relatively low cost. The records must also be protected from unauthorized modification. Which approach is most appropriate?

A. Store the records only in the SQL database being audited
B. Send the records to Azure Storage and configure appropriate retention and immutability controls
C. Send the records only to Azure Event Hubs without any downstream storage
D. Disable auditing after exporting the records once per year

Correct answer: B

Explanation: Azure Storage is appropriate for long-term retention. Additional controls, such as retention policies and immutable storage, can help protect audit records from deletion or modification.


Question 3

Which statement best describes the purpose of Azure SQL auditing?

A. It records database activity for investigation, accountability, and compliance
B. It automatically grants users permission to access database objects
C. It replaces Microsoft Entra authentication
D. It prevents all unauthorized queries from executing

Correct answer: A

Explanation: Auditing records activity that occurs in the database. It does not grant permissions, replace authentication, or automatically block queries.


Question 4

An administrator enables auditing for an Azure SQL Database but users still cannot connect to the database. What is the most likely explanation?

A. Auditing can only be enabled after all users are assigned the Owner role
B. Auditing automatically blocks connections until Microsoft Sentinel is configured
C. Auditing records activity but does not provide authentication or authorization
D. Auditing requires Azure Storage to be configured before any user can connect

Correct answer: C

Explanation: Authentication and authorization are separate from auditing. A user must still have a valid authentication method and sufficient database permissions.


Question 5

A security team wants to correlate Azure SQL activity with Microsoft Entra sign-ins, virtual machine alerts, and other cloud security events. Which solution is most appropriate?

A. Azure Files
B. Microsoft Sentinel connected to a Log Analytics workspace
C. Azure DNS
D. Azure Resource Manager locks only

Correct answer: B

Explanation: Microsoft Sentinel can use Log Analytics data to correlate database audit events with identity, infrastructure, and other security events.


Question 6

An organization wants to investigate whether a privileged administrator changed database permissions. Which type of audit activity is most relevant?

A. Permission and role changes
B. Storage account replication events
C. Virtual network route changes only
D. Azure billing events only

Correct answer: A

Explanation: Permission and role changes can reveal privilege escalation or unauthorized changes to database access.


Question 7

A company configures auditing at the Azure SQL logical server level. One database has different auditing requirements and must use a separate configuration. What should the administrator investigate?

A. Whether the database can override or use a database-level auditing configuration
B. Whether auditing can only be configured at the subscription level
C. Whether the database must be moved to Azure Cosmos DB
D. Whether auditing requires a dedicated virtual machine

Correct answer: A

Explanation: Azure SQL Database auditing can be configured at the server or database level. The administrator should determine whether the database-level configuration provides the required override or separate behavior.


Question 8

Which statement correctly compares Azure SQL auditing and Microsoft Defender for SQL?

A. Auditing blocks threats, while Defender for SQL only stores logs
B. Auditing and Defender for SQL are identical features
C. Auditing records database activity, while Defender for SQL provides additional threat detection and security recommendations
D. Defender for SQL is required before auditing can be enabled

Correct answer: C

Explanation: Auditing provides activity records for investigation and compliance. Microsoft Defender for SQL adds security capabilities such as threat detection, alerts, and vulnerability-related recommendations.


Question 9

An organization sends Azure SQL audit records to Event Hubs. What is the primary reason for selecting Event Hubs?

A. To stream audit events to another monitoring or security system
B. To replace database authentication
C. To provide database table-level permissions
D. To encrypt database columns automatically

Correct answer: A

Explanation: Event Hubs is designed for high-throughput event ingestion and streaming. It can forward audit events to downstream monitoring or security systems.


Question 10

A security team notices that audit records are missing after an administrator changed the auditing configuration. Which action should be performed first?

A. Delete the database and recreate it
B. Disable Microsoft Entra authentication
C. Confirm that auditing is still enabled and verify the configured destination and delivery settings
D. Assign the Security Reader role to every database user

Correct answer: C

Explanation: The first troubleshooting step is to verify the auditing configuration, including whether auditing remains enabled and whether the destination is correctly configured. The team should also verify that the destination is receiving records and that no configuration change disabled or redirected auditing.


Final Exam Point

The key exam distinction is that auditing records database activity, while authentication, authorization, network controls, and threat-detection services determine whether activity should be allowed or considered suspicious.


Go to the SC-500 Exam Prep Hub main page

Configure Defender for Databases protection across Azure database services (SC-500 Exam Prep)

This post is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.
This topic falls under these sections:
Secure storage, databases, and networking (25–30%)
   --> Implement security for databases
      --> Configure Defender for Databases protection across Azure database services


Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.

Overview

Microsoft Defender for Databases is a set of security capabilities within Microsoft Defender for Cloud that helps protect database services from vulnerabilities, suspicious activity, and potential attacks.

The service combines database security monitoring with vulnerability assessment and security recommendations. It is designed to help security teams identify weaknesses, detect threats, investigate alerts, and improve the security posture of database workloads.

For the SC-500 exam, important concepts include:

  • Enabling Defender for Databases
  • Understanding the database-specific protection plans
  • Protecting Azure SQL databases and managed instances
  • Protecting SQL Server running on machines
  • Protecting open-source relational databases
  • Protecting Azure Cosmos DB
  • Using vulnerability assessment
  • Understanding advanced threat protection
  • Reviewing security alerts and recommendations
  • Monitoring coverage across subscriptions and resources

Microsoft Defender for Databases is managed through Microsoft Defender for Cloud.


What Defender for Databases Protects

The Defender for Databases plan contains four primary offerings:

  1. Microsoft Defender for Azure SQL Databases
  2. Microsoft Defender for SQL Servers on Machines
  3. Microsoft Defender for Open-Source Relational Databases
  4. Microsoft Defender for Azure Cosmos DB

Each offering targets different database platforms and has different capabilities. The plans are priced separately, and enabling the overall Databases plan activates the supported database protection offerings for the selected environment.


Microsoft Defender for Azure SQL Databases

Microsoft Defender for Azure SQL Databases protects supported Azure SQL workloads, including:

  • Azure SQL Database
  • Azure SQL elastic pools
  • Azure SQL Managed Instance
  • Azure Synapse Analytics dedicated SQL pools
  • Supported SQL Server workloads running on Azure virtual machines
  • Supported SQL Server workloads enabled through Azure Arc

The service helps identify database vulnerabilities and detect anomalous activity that may indicate an attack.

Examples of suspicious activity include:

  • Potential SQL injection
  • Unusual database access patterns
  • Abnormally high numbers of failed sign-in attempts
  • Brute-force attempts
  • Access from an unusual location
  • Access by an unfamiliar principal
  • Activity associated with a potentially compromised application or computer

Defender for Azure SQL Databases provides security alerts with details about the suspicious activity and guidance for investigation or mitigation.


Microsoft Defender for SQL Servers on Machines

Microsoft Defender for SQL Servers on Machines protects SQL Server installations running on:

  • Azure virtual machines
  • On-premises servers
  • Azure Arc-enabled servers
  • Other supported cloud environments, including AWS and Google Cloud

This offering is useful for hybrid and multicloud environments because it extends SQL security monitoring beyond Azure-native database services.

It provides two major capabilities:

  • Vulnerability assessment
  • Advanced threat protection

The service can identify potential SQL injection, unusual access locations, unfamiliar principals, suspicious applications, and brute-force activity. It can also provide security recommendations and detailed alerts.


Microsoft Defender for Open-Source Relational Databases

This offering provides protection for supported open-source database services, including:

  • Azure Database for PostgreSQL
  • Azure Database for MySQL
  • Supported Amazon RDS database engines, such as PostgreSQL, MySQL, MariaDB, and Aurora variants

Capabilities can include:

  • Threat detection
  • Suspicious activity alerts
  • Sensitive data discovery
  • Security posture recommendations
  • Identification of database configuration weaknesses

The exact capabilities depend on the database engine, deployment environment, and supported Defender features. Defender for Databases is not a single identical feature set across every database platform.


Microsoft Defender for Azure Cosmos DB

Microsoft Defender for Azure Cosmos DB provides protection for Azure Cosmos DB workloads.

Its primary purpose is to detect suspicious database activity and provide security alerts that can help organizations respond to potential threats.

Cosmos DB protection should be considered separately from SQL-specific protection because Cosmos DB is a NoSQL database service and does not use the same SQL vulnerability assessment and threat-detection model as Azure SQL.


Main Defender for Databases Capabilities

Vulnerability Assessment

Vulnerability assessment evaluates database configurations and security settings to identify potential weaknesses.

For supported Azure SQL services, vulnerability assessment can identify issues such as:

  • Excessive permissions
  • Insecure database configurations
  • Weak security settings
  • Unprotected sensitive data
  • Database-level security problems
  • Server-level security problems
  • Deviations from recommended security practices

The results include findings and remediation guidance.

Vulnerability assessment is intended to help organizations proactively improve security rather than waiting for an attack to occur.

Vulnerability assessment is not penetration testing

Vulnerability assessment generally evaluates configurations and known security conditions. It should not be confused with:

  • A full penetration test
  • A simulated attack
  • A replacement for secure application development
  • A replacement for access control
  • A guarantee that the database is free from vulnerabilities

It is one component of a broader database security program.


Vulnerability Assessment for Azure SQL

SQL vulnerability assessment is supported for:

  • Azure SQL Database
  • Azure SQL Managed Instance
  • Azure Synapse Analytics

The scanner uses a collection of security rules to identify vulnerabilities and deviations from recommended practices.

For supported configurations, scans are lightweight, read-only, and do not make changes to the database. Vulnerability assessment scans for SQL servers on machines occur approximately every 12 hours.

Vulnerability assessment findings

A finding typically provides:

  • The security issue
  • The affected resource
  • The severity or risk context
  • Evidence supporting the finding
  • Recommended remediation steps

Security teams can review findings through Defender for Cloud and use them to prioritize remediation.

Baselines

A baseline can be used when a finding is acceptable for a particular environment.

For example, an organization may intentionally allow a configuration because of a documented application dependency. Establishing a baseline prevents the same accepted condition from being repeatedly treated as a new failure.

Baselines should be used carefully. They should not be used to hide unresolved vulnerabilities without documented justification, ownership, and periodic review.

Express and classic configuration

SQL vulnerability assessment supports different configuration models.

Express configuration uses Microsoft-managed storage for scan results and simplifies deployment.

Classic configuration uses a customer-managed storage account and provides additional configuration control.

The available configuration model depends on the database service and current service support. Express configuration is the recommended simplified approach for supported services.


Advanced Threat Protection

Advanced threat protection continuously monitors database activity for patterns that may indicate malicious or suspicious behavior.

Examples include:

  • SQL injection attempts
  • Brute-force login activity
  • Unusual query patterns
  • Access from unfamiliar locations
  • Access by unfamiliar users or applications
  • Suspicious database activity associated with compromised systems
  • Unusual data-access behavior

Advanced threat protection is focused on detecting potentially harmful activity, whereas vulnerability assessment focuses on identifying security weaknesses and misconfigurations.

Vulnerability assessment versus threat protection

CapabilityPrimary purpose
Vulnerability assessmentIdentify weaknesses and configuration problems
Advanced threat protectionDetect suspicious or potentially malicious activity
Security recommendationsExplain how to improve security posture
Security alertsNotify responders about possible threats
Microsoft Sentinel integrationCorrelate and investigate security events across systems

Both vulnerability assessment and threat protection should be enabled when supported and appropriate for the workload.


Enabling Defender for Databases

Prerequisites

Before enabling Defender for Databases, ensure that:

  • Microsoft Defender for Cloud is available for the Azure subscription.
  • You have sufficient permissions to modify Defender for Cloud settings.
  • The relevant database resources are supported.
  • Any required agents, extensions, managed identities, or workspace dependencies are configured.
  • The organization understands the cost implications of the selected plans.

For hybrid or multicloud database protection, the relevant AWS accounts, Google Cloud projects, or non-Azure machines must be connected to Defender for Cloud as required.


Enable the Databases Plan

A typical portal-based process is:

  1. Sign in to the Azure portal.
  2. Open Microsoft Defender for Cloud.
  3. Select Environment settings.
  4. Select the relevant Azure subscription or connected cloud environment.
  5. Open the Defender plans page.
  6. Locate the Databases plan.
  7. Turn the plan on.
  8. Review and configure the individual database offerings.
  9. Save the configuration.
  10. Verify protection coverage.

Enabling the Databases plan activates the supported database protection offerings for the selected environment.


Configuring Specific Database Plans

After enabling the Databases plan, review the individual offerings.

Defender for Azure SQL Databases

Use this plan for supported Azure SQL Database, Azure SQL Managed Instance, and related SQL workloads.

Verify:

  • The correct subscription is selected.
  • Supported SQL resources are covered.
  • Threat protection is enabled.
  • Vulnerability assessment is configured.
  • Alerts are being generated and delivered as expected.

Defender for SQL Servers on Machines

Use this plan for SQL Server running on Azure virtual machines, on-premises machines, or other supported connected environments.

Verify:

  • The machines are connected to Azure through the appropriate mechanism.
  • SQL Server discovery is working.
  • Required extensions or agents are healthy.
  • Vulnerability assessment is enabled.
  • The Log Analytics workspace is configured where required.

Defender for Open-Source Relational Databases

Use this plan for supported PostgreSQL and MySQL database services.

Review the supported database engines and deployment types before enabling the plan. Do not assume that every open-source database service has identical monitoring or assessment capabilities.

Defender for Azure Cosmos DB

Use this plan for supported Azure Cosmos DB resources.

Review the protection coverage and available alerts for the specific Cosmos DB configuration.


Monitoring Protection Coverage

Defender for Cloud provides coverage information that helps administrators determine which subscriptions and resources are protected.

Coverage reviews should identify:

  • Subscriptions with the Databases plan enabled
  • Database services that are protected
  • Resources that are not covered
  • Unsupported database types
  • Resources with configuration problems
  • Workloads that require separate plan activation
  • Hybrid or multicloud environments that are not connected

Coverage should be reviewed regularly because new databases may be created after the initial security configuration.

For supported resources, enabling the relevant plan at the subscription level can protect existing resources and future supported resources created in that subscription.


Security Alerts

Defender for Databases generates alerts when activity appears suspicious or potentially harmful.

An alert may contain:

  • The affected database or server
  • The time of the activity
  • The type of suspicious behavior
  • The source or principal involved
  • Relevant evidence
  • Severity information
  • Recommended investigation or mitigation steps

Examples of alerts include:

  • Possible SQL injection
  • Brute-force database access
  • Access from an unusual location
  • Access by an unfamiliar principal
  • Suspicious query patterns
  • Activity associated with a potentially compromised application

Security alerts should be investigated rather than automatically assumed to be confirmed attacks. Some alerts may represent legitimate but unusual administrative or application activity.


Integrating with Microsoft Sentinel

Microsoft Sentinel can provide centralized investigation and correlation for Defender for Databases alerts.

A typical integration can correlate database alerts with:

  • Microsoft Entra sign-in events
  • Privileged Identity Management activity
  • Azure Activity Log events
  • Virtual machine alerts
  • Network security events
  • Application logs
  • Endpoint security events
  • Other database activity

For example, a suspicious database access alert may become more serious when it occurs shortly after:

  • A risky sign-in
  • A privilege escalation
  • A new service principal credential
  • A change to a firewall rule
  • A compromised virtual machine alert

Defender for Databases alerts can include options for continuing investigations through Microsoft Sentinel.


Roles and Permissions

Managing Defender for Databases requires appropriate Azure permissions.

The permissions needed depend on the task, such as:

  • Viewing Defender for Cloud recommendations
  • Viewing security alerts
  • Enabling Defender plans
  • Configuring vulnerability assessment
  • Viewing scan results
  • Managing storage for scan results
  • Accessing Log Analytics data
  • Managing connected machines

The ability to manage Azure resources does not necessarily mean that a user can read all database data. Similarly, the ability to view database security alerts does not automatically grant access to the underlying database.

Use least privilege when assigning administrative and monitoring roles.


Important Security Distinctions

Defender for Databases does not replace access control

Defender for Databases detects threats and vulnerabilities. It does not replace:

  • Microsoft Entra authentication
  • Database users and roles
  • Azure RBAC
  • Network security controls
  • Private endpoints
  • Firewall rules
  • Encryption
  • Application security
  • Secure coding practices

A database can have Defender protection enabled and still be insecure if users have excessive permissions or the database is exposed unnecessarily.

Defender for Databases does not guarantee prevention

Threat protection may detect suspicious activity and generate alerts, but detection is not the same as prevention.

Organizations must define response procedures, which may include:

  • Blocking a user or application
  • Revoking credentials
  • Disabling a compromised identity
  • Restricting network access
  • Isolating a virtual machine
  • Changing database permissions
  • Investigating related resources

Not every database service has identical capabilities

The term “Defender for Databases” covers multiple database protection offerings. Features differ by:

  • Database engine
  • Azure service
  • Deployment model
  • Region
  • Supported plan
  • Configuration model

Always verify the capabilities for the specific database platform being protected.


Best Practices

  1. Enable the appropriate Defender database plan for each supported database platform.
  2. Review coverage regularly across subscriptions and connected environments.
  3. Enable vulnerability assessment where supported.
  4. Review and remediate high-severity findings.
  5. Use baselines only for documented and approved exceptions.
  6. Monitor security alerts continuously.
  7. Integrate alerts with Microsoft Sentinel when centralized investigation is required.
  8. Correlate database alerts with identity, network, and endpoint events.
  9. Protect Log Analytics workspaces and scan-result storage with least privilege.
  10. Review the cost of each database protection plan.
  11. Confirm that hybrid and multicloud database resources are properly connected.
  12. Do not assume that enabling Defender automatically fixes vulnerabilities.
  13. Continue using strong authentication, authorization, encryption, and network controls.
  14. Test alert routing and incident-response procedures.
  15. Review new database resources to ensure they are included in protection coverage.

Common SC-500 Exam Traps

  • Vulnerability assessment identifies weaknesses; it does not primarily detect active attacks.
  • Advanced threat protection detects suspicious activity; it does not replace database permissions.
  • Defender for Databases is a collection of database-specific offerings, not one identical feature set.
  • Azure SQL Database and SQL Server on machines use different protection configurations.
  • Azure Cosmos DB requires its own Defender for Cosmos DB offering.
  • Enabling the Databases plan does not eliminate the need to review coverage.
  • A security recommendation is not the same as a security alert.
  • A vulnerability finding is not automatically proof that an attack is occurring.
  • A baseline should represent an approved exception, not an ignored security issue.
  • Microsoft Sentinel is used for centralized correlation and investigation, not as a prerequisite for every Defender database feature.

Practice Exam Questions

Question 1

An organization wants to identify insecure database configurations and excessive permissions in its Azure SQL databases. Which Defender for Databases capability should it use?

A. Vulnerability assessment
B. Advanced threat protection
C. Microsoft Entra Conditional Access
D. Azure Firewall

Correct answer: A

Explanation: Vulnerability assessment evaluates database configurations and security settings to identify potential weaknesses, such as excessive permissions and insecure configurations.


Question 2

A security analyst receives an alert indicating that a database was accessed from an unfamiliar location and that the activity may be suspicious. Which capability most likely generated the alert?

A. Azure Policy
B. Vulnerability assessment
C. Azure Backup
D. Advanced threat protection

Correct answer: D

Explanation: Advanced threat protection continuously monitors database activity for anomalous or potentially harmful behavior, including access from unusual locations.


Question 3

A company has Azure SQL Database, Azure SQL Managed Instance, and Azure Cosmos DB resources. Which approach provides the most appropriate protection coverage?

A. Enable only Defender for Azure SQL Databases
B. Enable the Databases plan and configure the relevant database-specific offerings
C. Enable Defender for Servers only
D. Configure Azure SQL auditing and assume all database services are protected

Correct answer: B

Explanation: Defender for Databases includes separate offerings for Azure SQL, SQL Servers on Machines, open-source relational databases, and Azure Cosmos DB. The relevant offerings must be enabled and reviewed for the database types in use.


Question 4

An organization runs SQL Server on an Azure virtual machine and on an on-premises server connected through Azure Arc. Which Defender offering is designed for these workloads?

A. Defender for Azure Cosmos DB
B. Defender for Open-Source Relational Databases
C. Defender for SQL Servers on Machines
D. Defender for Azure SQL Databases only

Correct answer: C

Explanation: Defender for SQL Servers on Machines protects supported SQL Server installations running on Azure virtual machines, on-premises servers, and other connected environments.


Question 5

A database administrator establishes a vulnerability assessment baseline for a finding that is an approved exception in the organization’s environment. What is the purpose of the baseline?

A. To permanently disable all vulnerability assessment scans
B. To treat the accepted condition as a passing result in later assessments
C. To grant the database administrator unrestricted database access
D. To convert the finding into a security alert

Correct answer: B

Explanation: A baseline records an accepted security state or finding so that it is not repeatedly reported as a failure. Baselines should be documented and reviewed periodically.


Question 6

A security team wants to correlate a suspicious database access alert with a risky Microsoft Entra sign-in and a virtual machine compromise alert. Which service is most appropriate?

A. Microsoft Sentinel
B. Azure Storage Explorer
C. Azure Resource Graph only
D. Azure Cost Management

Correct answer: A

Explanation: Microsoft Sentinel can correlate database alerts with identity, endpoint, network, and other security events to support centralized investigation.


Question 7

Which statement best describes the relationship between vulnerability assessment and advanced threat protection?

A. Vulnerability assessment detects active attacks, while advanced threat protection only checks configuration
B. Both capabilities perform exactly the same function
C. Advanced threat protection replaces the need for database permissions
D. Vulnerability assessment identifies weaknesses, while advanced threat protection detects suspicious activity

Correct answer: D

Explanation: Vulnerability assessment focuses on security weaknesses and configuration issues. Advanced threat protection monitors activity for suspicious or potentially malicious behavior.


Question 8

An organization enables Defender for Databases but discovers that several newly created database resources are not protected. What should the administrator do first?

A. Disable all database services
B. Replace Microsoft Entra authentication with SQL authentication
C. Review Defender for Cloud coverage and confirm that the relevant database plan supports those resources
D. Delete and recreate the subscription

Correct answer: C

Explanation: The administrator should review coverage, supported resource types, subscription settings, and the relevant database-specific plan. Not every database service is covered by the same offering.


Question 9

Which statement about Defender for Databases is accurate?

A. It replaces database authentication and authorization
B. It guarantees that all database attacks will be prevented
C. It provides database security capabilities such as vulnerability assessment and threat detection
D. It automatically encrypts every database column

Correct answer: C

Explanation: Defender for Databases helps identify vulnerabilities and suspicious activity. It does not replace authentication, authorization, encryption, or other security controls.


Question 10

A security team wants to protect PostgreSQL and MySQL database services in Azure. Which Defender offering should it investigate?

A. Defender for Open-Source Relational Databases
B. Defender for SQL Servers on Machines only
C. Defender for Azure Cosmos DB
D. Defender for Containers

Correct answer: A

Explanation: Defender for Open-Source Relational Databases is designed to provide protection for supported PostgreSQL and MySQL database services, along with supported related environments.


Go to the SC-500 Exam Prep Hub main page

Implement and manage network security groups (NSGs) and application security groups (ASGs) (SC-500 Exam Prep)

This post is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.
This topic falls under these sections:
Secure storage, databases, and networking (25–30%)
   --> Implement security for Azure network services
      --> Implement and manage network security groups (NSGs) and application security groups (ASGs)


Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.

Overview

Network security groups (NSGs) and application security groups (ASGs) are foundational Azure networking features used to control traffic within and between Azure virtual networks.

  • Network security groups provide traffic filtering through inbound and outbound security rules.
  • Application security groups allow administrators to organize virtual machines and network interfaces according to application roles rather than relying on individual IP addresses.

Together, NSGs and ASGs support defense in depth, network segmentation, least-privilege access, and easier security-rule management.

An NSG can be associated with:

  • A subnet
  • A network interface card (NIC)
  • Both a subnet and a NIC

When an NSG is associated with a subnet, its rules apply to the resources in that subnet. When it is associated with a NIC, its rules apply to the traffic for that network interface.


1. Understand Network Security Groups

A network security group is an Azure resource containing security rules that allow or deny network traffic.

Each rule can evaluate traffic based on:

  • Source
  • Source port
  • Destination
  • Destination port
  • Protocol
  • Direction
  • Priority
  • Action

Supported protocols include:

  • TCP
  • UDP
  • Any

The action is either:

  • Allow
  • Deny

For example, an NSG rule could allow HTTPS traffic from the Internet to a web server while denying direct inbound access to the database tier.

Example security rule

PropertyExample
NameAllow-HTTPS
DirectionInbound
Priority100
SourceInternet
Source port*
DestinationWeb server subnet
Destination port443
ProtocolTCP
ActionAllow

A lower priority number has higher precedence. For example, priority 100 is evaluated before priority 200.


2. NSG Default Rules

Every NSG contains default security rules. These rules cannot be deleted, but custom rules can override them by using a higher priority.

Common default inbound rules include:

  • Allow traffic from the VirtualNetwork service tag
  • Allow traffic from the AzureLoadBalancer service tag
  • Deny all other inbound traffic

Common default outbound rules include:

  • Allow traffic to the VirtualNetwork service tag
  • Allow traffic to the Internet
  • Deny all other outbound traffic

The default rules are evaluated after custom rules. Therefore, a custom rule with a priority lower than the default deny rule can allow traffic that would otherwise be denied.

Important exam point

NSGs are not automatically “deny all” in every direction. They include default rules that permit certain virtual-network and outbound Internet traffic. Security administrators should explicitly review and override these defaults when stricter controls are required.


3. Inbound and Outbound Rule Evaluation

NSGs filter both inbound and outbound traffic.

Inbound traffic

For a virtual machine with NSGs at both the subnet and NIC levels:

  1. Azure evaluates the subnet-level NSG.
  2. Azure evaluates the NIC-level NSG.
  3. Traffic must be allowed by both NSGs.

Outbound traffic

For outbound traffic:

  1. Azure evaluates the NIC-level NSG.
  2. Azure evaluates the subnet-level NSG.
  3. Traffic must be allowed by both NSGs.

The effective result is the combined set of applicable rules. A deny rule in either NSG can prevent traffic from flowing.

Example

Suppose:

  • The subnet NSG allows inbound TCP 443.
  • The NIC NSG denies inbound TCP 443.

The traffic is denied because both NSGs must permit the traffic.

Similarly:

  • The subnet NSG allows outbound TCP 1433.
  • The NIC NSG denies outbound TCP 1433.

The connection is denied.


4. NSG Rule Priority

Each custom NSG rule must have a unique priority number.

  • Lower numbers have higher priority.
  • Rules are evaluated in priority order.
  • Evaluation stops when a matching rule is found.
  • A later rule cannot override an earlier matching rule.

Example

PriorityRuleAction
100Allow TCP 443 from InternetAllow
110Deny all inbound trafficDeny

HTTPS traffic is allowed because the priority 100 rule is evaluated first.

If the rules were reversed:

PriorityRuleAction
100Deny all inbound trafficDeny
110Allow TCP 443 from InternetAllow

The HTTPS allow rule would never be reached for matching traffic.

Best practices

  • Reserve priority ranges for different application tiers.
  • Use descriptive rule names.
  • Avoid overlapping rules.
  • Place specific rules before broad rules.
  • Avoid using unnecessarily permissive rules such as Any for both source and destination.
  • Document why each rule exists.

5. Source and Destination Options

NSG rules can use several types of source and destination values.

Any

Matches all addresses.

Use this only when broad access is intentionally required.

IP addresses or CIDR ranges

You can specify:

  • A single IP address
  • Multiple IP addresses
  • A subnet range
  • Multiple CIDR ranges

Example:

10.10.1.0/24

Service tags

A service tag represents a group of IP address prefixes associated with an Azure service or category of traffic.

Examples include:

  • VirtualNetwork
  • Internet
  • AzureLoadBalancer
  • AzureCloud
  • Storage
  • AzureKeyVault

Microsoft maintains the IP prefixes represented by service tags and updates them as Azure addresses change. This avoids manually maintaining large lists of IP addresses.

Application security groups

An ASG can be used as the source or destination of an NSG rule. This allows rules to be based on application roles instead of IP addresses.

For example:

Source ASG: Asg-Web
Destination ASG: Asg-Database
Destination port: 1433
Protocol: TCP
Action: Allow

This rule allows members of the web application group to communicate with members of the database group over TCP port 1433.


6. Network Security Group Association

An NSG can be associated with a subnet, a NIC, or both.

Subnet-level association

A subnet-level NSG is useful when a common policy should apply to all resources in the subnet.

Examples:

  • Deny inbound Internet traffic to a private application subnet.
  • Allow communication from a shared management subnet.
  • Restrict outbound traffic from a database subnet.

NIC-level association

A NIC-level NSG is useful when a particular virtual machine requires additional controls beyond the subnet policy.

Examples:

  • A management server requires SSH access.
  • A specific application server needs an additional inbound port.
  • A sensitive VM requires stricter outbound restrictions.

Recommended design

Use subnet-level NSGs for broad segmentation and NIC-level NSGs for workload-specific restrictions. Avoid creating unnecessarily complicated combinations that are difficult to troubleshoot.


7. Understand Application Security Groups

An application security group is a logical grouping of network interfaces.

ASGs allow administrators to define security rules according to application architecture, such as:

  • Web servers
  • Application servers
  • Database servers
  • Management servers
  • Monitoring servers

Instead of creating rules based on individual IP addresses, you can create rules based on group membership.

Example application groups

Asg-Web
Asg-App
Asg-Database
Asg-Management

A rule could allow:

Asg-Web → Asg-App → TCP 8080
Asg-App → Asg-Database → TCP 1433
Asg-Management → Asg-Web → TCP 22

This design is easier to maintain when virtual machines are added, removed, or assigned new IP addresses.

ASGs are logical groupings; they do not themselves filter traffic. The filtering is performed by NSG rules that reference the ASGs.


8. ASG Constraints

Important ASG constraints include:

  • An ASG contains network interfaces, not entire virtual machines directly.
  • All NICs in an ASG must be in the same virtual network.
  • An ASG cannot contain NICs from different virtual networks.
  • If an NSG rule uses an ASG as both source and destination, the referenced ASGs must contain NICs in the same virtual network.
  • A NIC can belong to multiple ASGs.
  • An ASG does not automatically grant access; a matching NSG rule is still required.

The location and virtual-network requirements should be considered when designing application groups.


9. ASGs and Dynamic Application Membership

ASGs are especially useful when application membership changes frequently.

For example, an organization may have:

  • Three web servers today
  • Six web servers next month
  • Different private IP addresses after redeployment

If the web server NICs are members of Asg-Web, the NSG rule can remain unchanged as servers are added or removed.

The administrator only needs to update ASG membership.

Benefits

  • Reduces dependence on hard-coded IP addresses
  • Simplifies rule maintenance
  • Supports application-centric segmentation
  • Makes security intent easier to understand
  • Reduces the number of rules required
  • Helps maintain consistent policies during scaling

Microsoft recommends using ASGs and service tags where appropriate to reduce rule complexity.


10. Example Three-Tier Application Design

Consider a three-tier application:

Internet
|
v
Web tier
|
v
Application tier
|
v
Database tier

Create the following ASGs:

  • Asg-Web
  • Asg-App
  • Asg-Database

Then configure NSG rules such as:

PrioritySourceDestinationPortAction
100InternetAsg-Web443Allow
110Asg-WebAsg-App8080Allow
120Asg-AppAsg-Database1433Allow
130Asg-ManagementAsg-Web22Allow
4000AnyAnyAnyDeny

This approach prevents direct Internet access to the application and database tiers.

The database tier does not need to allow traffic from the entire virtual network. It only needs to allow traffic from the application tier on the required port.


11. Service Tags Versus ASGs

Service tags and ASGs solve different problems.

FeatureService tagsApplication security groups
RepresentsAzure service IP ranges or traffic categoriesApplication network interfaces
ExampleStorage, Internet, AzureLoadBalancerAsg-Web, Asg-Database
Main purposeSimplify access to Azure servicesSimplify application segmentation
Managed byMicrosoft-managed IP prefix updatesCustomer-managed membership
Common useAllow traffic from Azure StorageAllow web servers to access database servers

Use service tags when the source or destination is an Azure service or well-defined traffic category. Use ASGs when the source or destination is a group of application workloads.


12. Augmented Security Rules

Augmented security rules allow multiple values to be specified in a single rule.

For example, one rule can contain:

  • Multiple source IP addresses
  • Multiple destination IP addresses
  • Multiple ports
  • Port ranges

This can reduce the number of individual rules required.

Example:

Source ports: *
Destination ports: 80, 443, 8080
Protocol: TCP
Action: Allow

Augmented rules should be used carefully. Combining unrelated access requirements into one rule can make the security policy harder to understand. Where possible, use service tags and ASGs to express the security intent more clearly.


13. Managing NSGs and ASGs

NSGs and ASGs can be managed through:

  • Azure portal
  • Azure PowerShell
  • Azure CLI
  • Azure Resource Manager templates
  • Bicep
  • Terraform

Typical management tasks include:

  1. Create an NSG.
  2. Create an ASG.
  3. Associate the NSG with a subnet or NIC.
  4. Add NICs to the ASG.
  5. Create inbound and outbound rules.
  6. Test connectivity.
  7. Review effective security rules.
  8. Update or remove obsolete rules.

Azure CLI examples

Create an NSG:

az network nsg create \
--resource-group NetworkRG \
--name nsg-web

Create an ASG:

az network asg create \
--resource-group NetworkRG \
--name asg-web \
--location eastus

Create an inbound rule allowing HTTPS to the web ASG:

az network nsg rule create \
--resource-group NetworkRG \
--nsg-name nsg-web \
--name Allow-HTTPS \
--access Allow \
--protocol Tcp \
--direction Inbound \
--priority 100 \
--source-address-prefix Internet \
--source-port-range "*" \
--destination-asgs asg-web \
--destination-port-range 443

The exact command syntax can vary depending on whether the rule references IP addresses, service tags, or ASGs.


14. Troubleshooting NSG Connectivity

When traffic is unexpectedly blocked, review the following:

1. Confirm the destination port

Ensure the application is actually listening on the expected port.

2. Confirm the source address

The source may be:

  • A private IP address
  • A public IP address
  • A load balancer
  • A service tag
  • Another application group

A rule that allows the wrong source range will not match.

3. Check both NSGs

Review:

  • The subnet-level NSG
  • The NIC-level NSG

A deny rule in either NSG can block traffic.

4. Review effective security rules

Effective security rules show the aggregated rules applied to a NIC, including rules from both the subnet and NIC NSGs.

In the Azure portal, effective rules can be viewed from the VM’s networking settings. They can also be retrieved with Azure CLI:

az network nic list-effective-nsg \
--name vm-nic \
--resource-group NetworkRG

This is one of the most important troubleshooting tools for NSG-related connectivity problems.

5. Check rule priority

A broad deny rule with a higher priority can prevent a later allow rule from being evaluated.

6. Check ASG membership

If an NSG rule references an ASG, verify that the destination or source NIC is actually a member of that ASG.

7. Check other networking controls

NSGs are not the only possible cause of blocked traffic. Also consider:

  • Azure Firewall
  • Network virtual appliances
  • Route tables
  • Private endpoints
  • Application Gateway
  • Operating-system firewalls
  • Application configuration
  • Network Watcher connection troubleshooting

15. NSGs Are Not a Replacement for Azure Firewall

NSGs provide basic network traffic filtering at the subnet and NIC levels. They are not a full network firewall solution.

NSGs generally do not provide the same capabilities as Azure Firewall, such as:

  • Centralized stateful inspection
  • Advanced threat intelligence filtering
  • Intrusion detection and prevention
  • Centralized application and network rule processing
  • Advanced logging and security operations integration

A common defense-in-depth architecture uses:

  • NSGs for subnet and workload segmentation
  • Azure Firewall for centralized traffic inspection
  • Application Gateway WAF for web application protection
  • Private Link for private access to PaaS services
  • Microsoft Defender for Cloud for security posture management

16. Best Practices

Use least privilege

Allow only the required:

  • Sources
  • Destinations
  • Ports
  • Protocols
  • Directions

Prefer application-based rules

Use ASGs instead of individual IP addresses when controlling communication between application tiers.

Use service tags appropriately

Use service tags to avoid maintaining changing Azure service IP ranges manually.

Avoid unrestricted access

Avoid rules that allow:

Source: Any
Destination: Any
Port: Any
Protocol: Any
Action: Allow

unless there is a documented and justified requirement.

Separate application tiers

Use different subnets and ASGs for:

  • Web
  • Application
  • Database
  • Management

Review effective rules

Regularly inspect effective security rules to verify that the actual applied policy matches the intended design.

Use infrastructure as code

Define NSGs, ASGs, and rules in Bicep, ARM templates, or another approved infrastructure-as-code solution to improve consistency and auditability.

Remove obsolete rules

Unused rules increase complexity and may create unintended access paths.

Document security intent

Use descriptive names and descriptions such as:

Allow-App-to-Database-SQL

rather than:

Rule1

Practice Exam Questions

Question 1

A company hosts a three-tier application in Azure. Web servers must communicate with application servers over TCP port 8080. Application servers must communicate with database servers over TCP port 1433. The company wants security rules to remain valid when virtual machines are added or their private IP addresses change.

What should you implement?

A. Create ASGs for each application tier and reference them in NSG rules.
B. Create a separate NSG for every virtual machine using static IP addresses.
C. Allow all traffic between the application subnets.
D. Use public IP addresses for all application servers.

Correct answer: A

Explanation: ASGs allow NSG rules to reference application roles instead of individual IP addresses. Membership can change without requiring the security rules to be rewritten.


Question 2

An NSG associated with a subnet allows inbound TCP port 443. An NSG associated with a VM’s NIC denies inbound TCP port 443 from the same source.

What is the result?

A. The subnet NSG takes precedence, so traffic is allowed.
B. The NIC NSG takes precedence, so traffic is denied.
C. Azure randomly selects one of the rules.
D. The traffic is allowed only if the VM has a public IP address.

Correct answer: B

Explanation: Both the subnet-level and NIC-level NSGs apply. Traffic must be allowed by both. The deny rule in the NIC-level NSG blocks the connection.


Question 3

An administrator creates an NSG rule with priority 100 that denies all inbound traffic. Another rule with priority 200 allows inbound HTTPS traffic.

What happens to inbound HTTPS traffic?

A. HTTPS is allowed because it uses a secure protocol.
B. HTTPS is allowed because the allow rule is more specific.
C. HTTPS is denied because the priority 100 rule is evaluated first.
D. Azure combines the actions and allows the traffic.

Correct answer: C

Explanation: Lower priority numbers are evaluated first. The broad deny rule at priority 100 matches the traffic, so the later allow rule is not evaluated.


Question 4

A VM cannot receive traffic from another VM in the same virtual network. The NSG associated with the destination NIC allows the traffic, but the subnet-level NSG contains a deny rule.

What should the administrator do first?

A. Assign a public IP address to the destination VM.
B. Review and modify the subnet-level NSG rule.
C. Disable the destination VM’s operating-system firewall.
D. Create an Azure Firewall policy.

Correct answer: B

Explanation: Both the subnet-level and NIC-level NSGs apply. A deny rule at the subnet level can block traffic even when the NIC-level NSG allows it.


Question 5

An organization wants to allow traffic from Azure Storage without manually maintaining a list of changing Azure IP addresses.

Which feature should be used?

A. Application security group
B. User-defined route
C. Service tag
D. Public IP prefix

Correct answer: C

Explanation: Service tags represent Microsoft-managed groups of IP address prefixes for Azure services. Microsoft updates the prefixes as service addresses change.


Question 6

A security administrator creates an ASG named Asg-Database. The administrator then creates an NSG rule allowing traffic to Asg-Database on TCP port 1433.

A database VM is not receiving the traffic.

Which issue could explain the problem?

A. The VM’s NIC is not a member of Asg-Database.
B. ASGs automatically deny all traffic.
C. ASGs can contain only public IP addresses.
D. ASGs work only with Azure Firewall.

Correct answer: A

Explanation: An NSG rule referencing an ASG applies only to network interfaces that are members of that ASG. The ASG itself does not automatically include every VM in a subnet.


Question 7

Which statement about application security groups is correct?

A. An ASG directly filters traffic without an NSG.
B. An ASG can contain NICs from multiple virtual networks.
C. An ASG is a logical grouping of network interfaces used by NSG rules.
D. An ASG replaces the need for subnet-level NSGs.

Correct answer: C

Explanation: ASGs provide logical grouping. NSG rules perform the actual allow or deny operation. NICs in an ASG must be in the same virtual network.


Question 8

A VM cannot connect to a database server. The administrator wants to see the combined inbound and outbound rules applied from the subnet and NIC NSGs.

Which feature should be used?

A. Azure Advisor
B. Effective security rules
C. Microsoft Defender Vulnerability Management
D. Azure Service Health

Correct answer: B

Explanation: Effective security rules show the aggregated rules applied to a network interface and are designed to help troubleshoot NSG-related connectivity issues.


Question 9

A company wants to allow management traffic only from a management subnet to selected application servers. The application servers are distributed across several subnets in the same virtual network.

What is the most maintainable approach?

A. Add every application server’s private IP address to a separate rule.
B. Allow management traffic from the entire virtual network to every server.
C. Create an ASG for the management servers and an ASG for the target application servers, then reference them in an NSG rule.
D. Assign public IP addresses to the management servers.

Correct answer: C

Explanation: ASGs allow security policies to be expressed according to application roles. The rule can remain stable as servers are added or their IP addresses change.


Question 10

An administrator wants to create a rule that allows TCP ports 80, 443, and 8080 from a specified source range using one NSG rule.

Which NSG capability supports this configuration?

A. Augmented security rules
B. Azure Bastion
C. Application Gateway WAF
D. Private Link

Correct answer: A

Explanation: Augmented security rules allow multiple ports, addresses, and ranges to be specified in a single rule, reducing the number of individual rules required.


Final Exam Point

NSGs and ASGs are most effective when used together: NSGs enforce traffic rules, while ASGs make those rules easier to express and maintain according to application architecture.


Go to the SC-500 Exam Prep Hub main page

Implement and configure network access policies by using Azure Virtual Network Manager (SC-500 Exam Prep)

This post is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.
This topic falls under these sections:
Secure storage, databases, and networking (25–30%)
   --> Implement security for Azure network services
      --> Implement and configure network access policies by using Azure Virtual Network Manager


Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.

Overview

Azure Virtual Network Manager is a network-management service that provides centralized control over Azure virtual networks. It can organize virtual networks into groups and apply network configurations consistently across subscriptions and management groups.

For security, Azure Virtual Network Manager provides security admin rules. These rules allow a central networking or security team to enforce organization-wide network access policies across managed virtual networks.

Security admin rules complement, rather than replace, network security groups (NSGs):

  • Security admin rules provide centrally managed security guardrails.
  • NSGs provide workload- and subnet-level traffic filtering.
  • Azure Firewall provides centralized, stateful traffic inspection and advanced firewall capabilities.

AVNM can also manage connectivity and routing configurations, but security admin rules are the primary feature for centrally enforcing network access policies.


1. Why Use Azure Virtual Network Manager?

Managing NSGs independently across many subscriptions can lead to:

  • Inconsistent security policies
  • Duplicate rules
  • Accidental exposure of high-risk ports
  • Difficulty enforcing organization-wide requirements
  • Security gaps when new virtual networks or resources are created
  • Conflicts between central security requirements and application-team configurations

AVNM addresses these challenges by allowing administrators to define security policies once and apply them to groups of virtual networks.

For example, an organization could centrally enforce the following policy:

Deny inbound SSH and RDP traffic from the Internet to all managed virtual networks unless an explicitly approved exception exists.

The central security team manages the security admin configuration, while application teams can continue managing their own NSGs for more specific workload requirements.


2. Understand the Main Azure Virtual Network Manager Components

Network manager instance

The network manager instance is the primary AVNM resource. It defines:

  • The management scope
  • The regions in which configurations can be deployed
  • The features enabled for the instance

The management scope can include:

  • Selected subscriptions
  • Management groups

The network manager only manages resources within its defined scope. A virtual network outside that scope is not affected by the manager’s configurations.

Network groups

A network group is a logical collection of virtual networks to which configurations can be applied.

Membership can be:

  • Static — administrators manually select virtual networks.
  • Dynamic — Azure Policy conditions determine which virtual networks belong to the group.

Examples of network groups include:

  • Production
  • Development
  • Corporate
  • Internet-facing
  • Regulated workloads
  • High-security workloads
  • Regional network groups

Dynamic membership is useful when new virtual networks should automatically receive the appropriate security policy based on tags, subscriptions, resource groups, or other policy conditions.

Configurations

AVNM supports several configuration types, including:

  • Connectivity configurations
  • Security admin configurations
  • Routing configurations

A security admin configuration contains rule collections, and each rule collection contains security admin rules.

Deployment

Creating or modifying a configuration does not immediately apply it to the target virtual networks. The configuration must be deployed to the relevant regions.

This commit-and-deploy model allows administrators to prepare, review, and then deploy a configuration.


3. Understand Security Admin Rules

A security admin rule is a centrally defined network security rule that applies to virtual networks in targeted network groups.

A rule can specify:

  • Priority
  • Action
  • Direction
  • Protocol
  • Source
  • Destination
  • Source ports
  • Destination ports

Security admin rules support three actions:

  1. Allow
  2. Always allow
  3. Deny

The rules are applied at the virtual-network level and are evaluated before NSG rules.


4. Security Admin Rule Actions

Allow

An Allow rule permits the specified traffic to continue to NSG evaluation.

This means that an NSG can still deny the traffic.

For example:

  • A security admin rule allows inbound TCP 443.
  • The subnet NSG denies inbound TCP 443.

The traffic is ultimately denied by the NSG.

Use Allow when central governance wants to permit a category of traffic but still wants workload owners to apply additional restrictions.

Always allow

An Always allow rule allows the traffic and prevents subsequent NSG rules from denying it.

Use this action only when central governance must guarantee that a particular flow is permitted.

For example, an organization might use an Always allow rule for a required management or monitoring flow.

Because Always allow bypasses subsequent NSG evaluation for the matching traffic, it should be used carefully.

Deny

A Deny rule blocks the traffic immediately.

NSG rules are not evaluated for traffic that matches the security admin deny rule.

This is useful for centrally blocking:

  • Internet-based SSH
  • Internet-based RDP
  • Known high-risk ports
  • Unauthorized network segments
  • Traffic to sensitive workloads

The difference between the three actions is important for the exam:

ActionResult
AllowPermits traffic to continue to NSG evaluation
Always allowPermits traffic and prevents NSGs from denying it
DenyBlocks traffic immediately before NSG evaluation

5. Security Admin Rule Priority

Security admin rules use priorities from 1 through 4,096.

  • Lower numbers have higher priority.
  • A rule with priority 10 is evaluated before a rule with priority 100.
  • A matching higher-priority rule can prevent a lower-priority rule from being evaluated.

Example

Suppose an organization has these rules:

PriorityTarget groupTrafficAction
10Approved-Admin-NetworksInbound TCP 22Allow
100All-Managed-NetworksInbound TCP 22 from InternetDeny

The approved administration networks receive the higher-priority allow rule. Other managed networks are subject to the deny rule.

However, if the priority 10 rule uses Allow, the traffic still proceeds to NSG evaluation. If the rule must bypass a conflicting NSG deny rule, the administrator would need to use Always allow, assuming that action is appropriate for the requirement.


6. Security Admin Rules Versus NSGs

Security admin rules and NSGs have different scopes and purposes.

CharacteristicSecurity admin rulesNSGs
Main audienceCentral network/security administratorsApplication and workload teams
Applied toManaged virtual networksSubnets and network interfaces
ScopeOrganization-wide or group-wideWorkload- or subnet-specific
ActionsAllow, Always allow, DenyAllow, Deny
EvaluationBefore NSGsAfter security admin rules
Central enforcementYesUsually managed at workload level
Can block traffic before NSG evaluation?Yes, with DenyNo
Can bypass NSG denial?Yes, with Always allowNo

A security admin rule does not eliminate the need for NSGs. A common design is:

  1. AVNM enforces organization-wide security requirements.
  2. NSGs enforce application-specific access.
  3. Azure Firewall provides centralized inspection where required.

7. Example: Centrally Blocking High-Risk Ports

An organization wants to prevent Internet-based access to:

  • TCP 22 — SSH
  • TCP 3389 — RDP

The security team creates a network group containing all managed virtual networks.

A security admin configuration contains rules such as:

PriorityDirectionSourceDestinationPortAction
100InboundInternetAny22Deny
110InboundInternetAny3389Deny

After deployment, the rules apply to resources in the targeted virtual networks.

This approach is more reliable than asking every application team to create and maintain equivalent NSG deny rules independently.


8. Example: Allowing Approved Exceptions

Suppose an organization blocks inbound SSH from the Internet but has a small set of approved administration networks.

Create two network groups:

  • All-Networks
  • Approved-Admin-Networks

Then create security admin rules:

PriorityNetwork groupSourceDestinationPortAction
10Approved-Admin-NetworksApproved admin rangeAny22Allow
100All-NetworksInternetAny22Deny

The more specific exception is evaluated first because it has the lower priority.

If the approved traffic must not be blocked by a workload NSG, use Always allow instead of Allow, subject to the organization’s security design.

The important principle is that exceptions should be narrowly scoped and have a higher priority than the broad deny rule.


9. Create a Network Manager Instance

The general implementation process is:

  1. Create an Azure Virtual Network Manager instance.
  2. Define its management scope.
  3. Enable the Security admin feature.
  4. Create network groups.
  5. Add virtual networks to the groups.
  6. Create a security admin configuration.
  7. Add rule collections and rules.
  8. Associate rule collections with network groups.
  9. Deploy the configuration to the required regions.
  10. Verify the resulting policy and connectivity.

The manager’s scope should be designed carefully. A manager scoped to a management group can govern virtual networks across multiple subscriptions within that scope.


10. Configure Network Group Membership

Static membership

With static membership, an administrator manually adds virtual networks to a network group.

This provides precise control but requires ongoing maintenance.

Use static membership when:

  • The number of virtual networks is small.
  • Membership changes are infrequent.
  • The organization needs explicit approval for every member.

Dynamic membership

With dynamic membership, Azure Policy determines which virtual networks belong to the group.

For example, a policy could include virtual networks that:

  • Have a specific tag
  • Belong to a particular subscription
  • Exist in a particular resource group
  • Match a defined naming convention

Dynamic membership is useful in large environments because new qualifying virtual networks can be added automatically.

However, membership updates and configuration application are not necessarily instantaneous. Administrators should account for deployment and policy-evaluation delays.


11. Create a Security Admin Configuration

A security admin configuration contains one or more rule collections.

A rule collection generally defines:

  • A collection name
  • A set of security admin rules
  • The network groups to which the collection applies

A rule should be designed around a clearly stated security requirement.

For example:

Block inbound RDP from the Internet to all production virtual networks.

The corresponding rule could specify:

  • Direction: Inbound
  • Protocol: TCP
  • Source: Internet
  • Destination: Any
  • Destination port: 3389
  • Action: Deny
  • Priority: 100

The configuration is then associated with the appropriate production network group and deployed to the required regions.


12. Deployment and Eventual Consistency

AVNM configurations do not take effect merely because they have been created.

Administrators must deploy the configuration to the regions containing the target virtual networks.

There may also be a delay when:

  • A configuration is first deployed
  • A network group’s membership changes
  • New resources are added to a managed virtual network
  • A security admin rule is modified

Microsoft describes this as an eventual consistency model. A newly created resource may not receive the security admin rules immediately.

Exam consideration

If a rule appears not to be working immediately:

  1. Confirm that the configuration was deployed.
  2. Confirm that the deployment targeted the correct region.
  3. Confirm that the virtual network belongs to the expected network group.
  4. Allow time for membership and configuration propagation.
  5. Verify whether the resource or subnet is exempt from security admin rules.

13. Important Exceptions and Limitations

Security admin rules do not apply universally.

Private endpoints in managed virtual networks

Security admin rules do not apply to private endpoints that fall under the scope of a managed virtual network.

Service-specific subnets

Certain service subnets are exempt because the services require specific network behavior.

Examples include subnets used by:

  • Azure Application Gateway
  • Azure Bastion
  • Azure Firewall
  • Azure Route Server
  • Azure VPN Gateway
  • Azure Virtual WAN
  • Azure ExpressRoute Gateway

Azure SQL Managed Instance and Azure Databricks

By default, security admin rules are not applied to virtual networks containing certain services, including:

  • Azure SQL Managed Instance
  • Azure Databricks

These services can have network intent policies that conflict with security admin rules.

For supported scenarios, administrators can configure the security configuration to apply Allow rules only to such virtual networks. This does not mean that Deny rules are applied; the setting is specifically intended to avoid conflicts with service-required network policies.


14. Network Groups as Sources and Destinations

AVNM can use network groups to define the source and destination of security admin rules.

For example:

Source: Web-Networks
Destination: Database-Networks
Protocol: TCP
Destination port: 1433
Action: Allow

This expresses the intended relationship between groups of virtual networks rather than relying only on individual IP addresses.

However, the use of network groups as source and destination in security admin rules is identified in Microsoft documentation as a public-preview capability. Preview features may have limitations and should not automatically be assumed to be suitable for production workloads.


15. AVNM and Connectivity Configurations

Although this topic focuses on network access policies, AVNM also supports connectivity configurations.

Connectivity configurations can establish:

  • Hub-and-spoke connectivity
  • Mesh connectivity
  • Regional mesh connectivity
  • Global mesh connectivity

Security admin rules and connectivity configurations solve different problems:

  • Connectivity configurations determine how virtual networks connect.
  • Security admin configurations determine which traffic is permitted or denied.

A network can be connected but still have traffic blocked by security admin rules or NSGs.

AVNM’s configurations are additive in some scenarios, and multiple connectivity configurations can exist in a region. However, only one security admin configuration can be deployed to a region for a given network manager instance; multiple security rule collections can be placed within that configuration.


16. AVNM and Azure Firewall

Azure Virtual Network Manager security admin rules are not a replacement for Azure Firewall.

Use security admin rules for:

  • Organization-wide allow or deny policies
  • Blocking high-risk ports
  • Enforcing network segmentation
  • Applying consistent guardrails across many virtual networks
  • Preventing workload NSGs from bypassing central deny rules

Use Azure Firewall for:

  • Stateful traffic inspection
  • Centralized network and application rules
  • Threat intelligence filtering
  • Centralized logging
  • Advanced firewall policy management
  • Traffic inspection between network segments

A defense-in-depth design may use AVNM security admin rules, NSGs, Azure Firewall, private endpoints, and application-layer controls together.


17. Best Practices

Define a clear management scope

Use a management group or carefully selected subscriptions that contain the virtual networks requiring centralized governance.

Separate central and workload responsibilities

Central security teams should manage organization-wide guardrails. Application teams should manage workload-specific NSGs.

Use deny-by-default principles

Block unnecessary traffic and permit only the flows required by the business or application.

Use specific priorities

Reserve priority ranges for:

  • Emergency blocks
  • Approved exceptions
  • Standard organization-wide denies
  • General allow rules

Use network groups strategically

Group virtual networks by meaningful characteristics such as:

  • Environment
  • Business unit
  • Data sensitivity
  • Regulatory requirements
  • Internet exposure
  • Application role

Use dynamic membership where appropriate

Dynamic membership reduces manual administration but requires careful Azure Policy design and awareness of propagation delays.

Test exceptions

Verify that approved exceptions work without unintentionally allowing broader access.

Avoid unnecessary Always allow rules

Always allow bypasses NSG denial for matching traffic. Use it only when central governance must guarantee the flow.

Document exclusions

Record why certain service subnets or virtual networks are exempt from security admin rules.

Verify after deployment

Confirm:

  • The configuration is deployed
  • The deployment succeeded
  • The expected network groups contain the correct virtual networks
  • The rules have the intended priorities
  • Connectivity behaves as designed

Practice Exam Questions

Question 1

A company wants to centrally block inbound RDP traffic from the Internet across all production virtual networks. Individual application teams currently manage their own NSGs.

Which solution best meets the requirement?

A. Create a security admin Deny rule in Azure Virtual Network Manager and apply it to a production network group.
B. Create a separate NSG on every VM and configure an RDP deny rule.
C. Configure Azure DNS to block RDP traffic.
D. Add a route for TCP port 3389 to each subnet.

Correct answer: A

Explanation: Security admin rules provide centralized enforcement across managed virtual networks. A Deny rule blocks matching traffic before NSG evaluation.


Question 2

A security administrator creates an AVNM security admin rule with the action Allow for inbound TCP port 443. A subnet-level NSG denies the same traffic.

What happens?

A. The security admin Allow rule always overrides the NSG.
B. The traffic is allowed because security admin rules bypass NSGs.
C. The traffic is denied by the NSG.
D. The traffic is routed through Azure Firewall automatically.

Correct answer: C

Explanation: An Allow security admin rule permits traffic to continue to NSG evaluation. The NSG can still deny the traffic.


Question 3

An organization needs to guarantee that approved monitoring traffic is not blocked by workload-level NSGs.

Which security admin action should be considered?

A. Allow
B. Deny
C. Audit
D. Always allow

Correct answer: D

Explanation: Always allow permits the matching traffic and prevents subsequent NSG rules from denying it. It should be used carefully because it bypasses NSG denial for that flow.


Question 4

Which priority has the highest precedence in an Azure Virtual Network Manager security admin configuration?

A. 4,096
B. 2,000
C. 100
D. 10

Correct answer: D

Explanation: Lower priority numbers are evaluated first. Priority 10 has higher precedence than priorities 100, 2,000, and 4,096.


Question 5

An organization wants new virtual networks with the tag Environment=Production to automatically receive a centralized security policy.

What should the administrator use?

A. Static network group membership
B. Dynamic network group membership based on Azure Policy
C. A public IP prefix
D. An NSG attached to one production VM

Correct answer: B

Explanation: Dynamic network group membership uses policy-based conditions to determine which virtual networks belong to a group.


Question 6

An administrator creates a security admin configuration but traffic is still permitted through a virtual network that should be protected.

What should be checked first?

A. Whether the configuration was deployed to the correct region
B. Whether the VM has a larger SKU
C. Whether the virtual network has a DNS server
D. Whether the VM has an availability set

Correct answer: A

Explanation: AVNM configurations do not take effect until they are deployed to the relevant regions. Incorrect or missing deployment is a common cause of unexpected behavior.


Question 7

Which statement correctly describes the relationship between security admin rules and NSGs?

A. NSGs are evaluated before security admin rules.
B. Security admin rules and NSGs cannot be used together.
C. Security admin rules are evaluated before NSGs.
D. Security admin rules apply only to public IP addresses.

Correct answer: C

Explanation: Security admin rules provide centralized network-level enforcement and are evaluated before NSG rules.


Question 8

A virtual network contains Azure SQL Managed Instance. The administrator notices that the expected security admin Deny rules are not being applied.

What is the most likely explanation?

A. SQL Managed Instance supports only public IP addresses.
B. Security admin rules are never applied to production networks.
C. NSGs automatically disable AVNM.
D. Certain service network intent requirements can cause security admin rules to be skipped by default.

Correct answer: D

Explanation: Azure SQL Managed Instance and certain other services have network intent policies that can conflict with security admin rules. Such virtual networks may be exempt by default, with supported Allow-rules-only behavior available for applicable scenarios.


Question 9

A company wants to centrally deny Internet-based SSH traffic but permit SSH from an approved administration network. Which design is most appropriate?

A. Create a lower-priority allow exception for the approved network and a broader higher-numbered deny rule for all managed networks.
B. Create only an allow rule for the Internet.
C. Create a deny rule for the approved administration network.
D. Remove all NSGs from the virtual networks.

Correct answer: A

Explanation: The approved exception should have a lower priority number than the broad deny rule. If the exception must bypass NSG denial, the administrator should evaluate whether Always allow is appropriate.


Question 10

Which statement about Azure Virtual Network Manager security admin rules is correct?

A. They replace Azure Firewall for stateful traffic inspection.
B. They directly modify the operating-system firewall on each VM.
C. They can enforce centralized network policies across virtual networks in targeted network groups.
D. They apply automatically to every virtual network in every Azure tenant.

Correct answer: C

Explanation: AVNM applies centralized security admin rules to virtual networks in network groups within the manager’s defined scope. It does not replace Azure Firewall, modify guest operating-system firewalls, or automatically govern resources outside its scope.


Go to the SC-500 Exam Prep Hub main page

Configure security for an Azure Virtual WAN (SC-500 Exam Prep)

This post is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.
This topic falls under these sections:
Secure storage, databases, and networking (25–30%)
   --> Implement security for Azure network services
      --> Configure security for an Azure Virtual WAN


Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.

Overview

Azure Virtual WAN is a Microsoft-managed networking service that provides centralized connectivity between Azure virtual networks, branch offices, remote users, and other connected environments. It combines networking, routing, VPN, ExpressRoute, and security capabilities through a unified operational model.

For the SC-500 exam, the important security concept is that Azure Virtual WAN should not be viewed only as a connectivity service. It can also provide a centralized inspection and enforcement point for traffic flowing between:

  • Azure virtual networks
  • On-premises branch offices
  • Remote users
  • Other Virtual WAN hubs
  • The internet
  • Azure platform services and private resources

A common secure design is to use a secured virtual hub, Azure Firewall, Firewall Manager, and Virtual WAN routing capabilities to ensure that traffic is inspected before reaching protected destinations.


What Is Azure Virtual WAN?

Azure Virtual WAN consists of several major components:

Virtual WAN resource

The Virtual WAN resource is the top-level container for one or more virtual hubs. It provides a centralized management and configuration boundary.

Virtual hub

A virtual hub is a Microsoft-managed network infrastructure component deployed in an Azure region. It provides connectivity and routing services for connected networks and gateways.

A virtual hub can contain or provide access to:

  • Site-to-site VPN gateways
  • Point-to-site user VPN gateways
  • ExpressRoute gateways
  • The Virtual WAN hub router
  • Azure Firewall
  • Supported network virtual appliances
  • Connections to Azure virtual networks
  • Connections to branch sites

Unlike a customer-managed hub VNet, a Virtual WAN hub is operated by Microsoft. You do not directly deploy or manage the underlying hub virtual network in the same way that you manage a normal Azure VNet.

Virtual network connections

Azure VNets connect to a Virtual WAN hub through virtual network connections. These connections allow workloads in the VNets to communicate with other connected networks according to the hub’s routing configuration.

VPN and ExpressRoute connections

Branch offices and on-premises networks can connect to Virtual WAN through:

  • Site-to-site VPN
  • ExpressRoute
  • Point-to-site user VPN

The connection type depends on the organization’s requirements for connectivity, performance, availability, and authentication.


Basic and Standard Virtual WAN

Azure Virtual WAN is available in two primary types:

CapabilityBasic Virtual WANStandard Virtual WAN
Site-to-site VPNSupportedSupported
ExpressRouteNot supportedSupported
Point-to-site user VPNNot supportedSupported
Inter-hub transitNot supportedSupported
VNet-to-VNet transitNot supportedSupported
Azure FirewallNot supportedSupported
Network virtual appliances in Virtual WANNot supportedSupported

For most enterprise security scenarios, Standard Virtual WAN is required because secured hubs, Azure Firewall, advanced transit, and additional gateway capabilities depend on Standard functionality.

A Basic Virtual WAN can be upgraded to Standard, but it cannot be downgraded from Standard back to Basic.


What Is a Secured Virtual Hub?

A secured virtual hub is an Azure Virtual WAN hub with an integrated Azure Firewall.

Azure Firewall provides centralized traffic inspection and policy enforcement for traffic moving through the Virtual WAN environment. A secured hub can inspect traffic destined for:

  • Private IP addresses
  • Azure virtual networks
  • Other connected networks
  • The internet
  • Azure platform services, depending on the routing and security design

Azure Firewall can inspect traffic between different network locations, including:

  • North-south traffic: traffic between on-premises networks and Azure
  • East-west traffic: traffic between Azure networks or workloads
  • Internet-bound traffic: traffic from Azure workloads to the internet

This approach centralizes security enforcement rather than requiring every workload or spoke network to independently deploy a firewall.

Why use a secured virtual hub?

A secured virtual hub can provide:

  • Centralized traffic inspection
  • Consistent firewall policies
  • Reduced need for manually configured routes
  • Centralized security management across multiple hubs
  • Protection for Azure and branch connectivity
  • A more consistent Zero Trust architecture
  • Easier enforcement of organization-wide security requirements

For example, an organization might connect several regional VNets and branch offices to Virtual WAN. Instead of deploying and maintaining separate firewalls in every location, the organization can use Azure Firewall in secured hubs and apply consistent policies.


Azure Firewall Manager

Azure Firewall Manager provides centralized management for firewall policies and secured virtual hubs.

It can be used to:

  • Create secured virtual hubs
  • Manage Azure Firewall policies
  • Apply consistent security rules across multiple hubs
  • Configure routing-related security settings
  • Manage security for multiple regions
  • Separate centralized security administration from individual workload administration

Firewall Manager is particularly useful when an organization has multiple Virtual WAN hubs in different Azure regions.

For example:

  • A global company has hubs in North America, Europe, and Asia.
  • Each hub connects regional VNets and branch offices.
  • Security administrators manage common firewall policies centrally.
  • Regional teams manage their workloads without independently designing the entire network security architecture.

Firewall Manager supports centralized rule management across secured hubs.


Routing Intent

One of the most important security features in Azure Virtual WAN is routing intent.

Routing intent allows you to define how traffic should be routed through a security solution, such as Azure Firewall or a supported network virtual appliance.

Common routing intent patterns include:

Internet traffic inspection

Internet-bound traffic from connected VNets or branches is routed through the security solution before reaching the internet.

This helps enforce policies such as:

  • Blocking malicious destinations
  • Restricting outbound access
  • Inspecting internet-bound traffic
  • Applying centralized filtering
  • Logging traffic for investigation

Private traffic inspection

Private traffic between connected networks is routed through the security solution.

For example:

  • VNet A communicates with VNet B.
  • A branch office communicates with an Azure workload.
  • One regional hub communicates with another regional hub.

Routing intent can be used to steer this private traffic through the firewall for inspection.

Why routing intent matters

Without centralized routing, administrators may need to create and maintain multiple user-defined routes. Incorrect or incomplete routes can allow traffic to bypass inspection.

Routing intent helps simplify this process by automatically steering specified traffic categories through the security solution. The Virtual WAN architecture is designed to reduce the need for manually maintained routing configurations.


Traffic Flow Through a Secured Virtual Hub

A simplified secure traffic flow might look like this:

Branch Office
|
| Site-to-site VPN or ExpressRoute
|
Virtual WAN Hub
|
Azure Firewall
|
+--------------------+
| |
Private Azure VNet Internet

For traffic between two Azure VNets:

VNet A
|
| Virtual WAN connection
|
Virtual WAN Hub
|
Azure Firewall
|
Virtual WAN Hub
|
| Virtual WAN connection
|
VNet B

The exact traffic path depends on the hub configuration, routing intent, firewall policy, connection settings, and whether the traffic is classified as private or internet-bound.

The important exam concept is:

A connection to Virtual WAN does not automatically mean that all traffic is inspected by Azure Firewall. The routing and security configuration must direct the traffic through the security solution.


Azure Firewall Policy in a Secured Virtual Hub

Azure Firewall policies define the traffic that is allowed, denied, or inspected.

Depending on the Azure Firewall tier and configuration, policies can include:

  • Network rules
  • Application rules
  • NAT rules
  • Threat intelligence filtering
  • DNS-related security controls
  • TLS inspection capabilities, where supported and configured
  • IDPS capabilities with Azure Firewall Premium

Network rules

Network rules control traffic based on characteristics such as:

  • Source address
  • Destination address
  • Protocol
  • Destination port

Examples include:

  • Allow TCP 443 from a corporate network to an application subnet
  • Deny TCP 22 from untrusted networks
  • Allow DNS traffic to an approved DNS service
  • Block traffic to a known prohibited network range

Application rules

Application rules can control supported application-layer traffic, such as HTTP and HTTPS, based on:

  • Fully qualified domain names
  • Web categories
  • Application characteristics

For example, an organization might allow servers to access only approved software repositories.

NAT rules

NAT rules can publish selected internal services through a public IP address. NAT should be configured carefully because it can expose internal resources to external traffic.

Security considerations include:

  • Restricting source addresses
  • Limiting exposed ports
  • Avoiding unnecessary public exposure
  • Applying least privilege
  • Monitoring inbound connections
  • Using private connectivity whenever possible

Virtual WAN Network Virtual Appliances

Azure Virtual WAN can also support supported network virtual appliances, depending on the Virtual WAN type and deployment architecture.

A network virtual appliance might provide specialized capabilities such as:

  • Third-party firewall functionality
  • Intrusion prevention
  • Secure web gateway features
  • Specialized network inspection
  • Vendor-specific security controls

However, an NVA is not automatically equivalent to Azure Firewall. Before selecting an NVA, verify:

  • Supported Virtual WAN integration
  • Routing behavior
  • High availability
  • Scaling model
  • Inspection capabilities
  • Logging and monitoring
  • TLS inspection support
  • Compatibility with required traffic patterns
  • Whether the appliance supports the organization’s security requirements

Microsoft documentation specifically notes that NVAs deployed in a Virtual WAN hub can have different capabilities from Azure Firewall.


Virtual WAN Hub Address Space

When creating a Virtual WAN hub, you must specify a hub address space.

Important considerations include:

  • The minimum hub address space is /24.
  • Microsoft recommends using /23 or larger when future growth is expected.
  • If Azure Firewall is used in the Virtual WAN hub, a minimum /22 address space is required to provide sufficient IP address capacity for firewall scaling.
  • The hub address space cannot be changed after the hub is created.
  • The hub address space must not overlap with connected VNets, on-premises networks, or other Virtual WAN hub address spaces.

The address space is used internally by the hub and its services, including the hub router, VPN gateways, ExpressRoute, Azure Firewall, and supported NVAs.

Exam warning

Do not select a hub address range that overlaps with:

  • An on-premises network
  • A connected VNet
  • Another Virtual WAN hub
  • A future planned network

Address-space overlap can cause routing conflicts and connectivity failures.


Virtual WAN Connectivity Security

Site-to-site VPN

Site-to-site VPN provides encrypted connectivity between an on-premises VPN device and a Virtual WAN hub.

The on-premises device generally requires:

  • An externally reachable public IP address
  • IPsec/IKE compatibility
  • Correct VPN configuration
  • Matching authentication and encryption settings
  • Appropriate routing configuration

Virtual WAN supports IPsec/IKE VPN connectivity, including IKEv1 and IKEv2 scenarios.

Security best practices include:

  • Use strong pre-shared keys or supported authentication methods.
  • Store sensitive VPN secrets securely.
  • Rotate credentials according to organizational policy.
  • Avoid exposing management interfaces on the public internet.
  • Monitor VPN connection status and gateway logs.
  • Use redundant connections for critical sites.
  • Validate learned and advertised routes.

Point-to-site user VPN

Point-to-site VPN allows individual users to connect to a Virtual WAN hub.

Authentication can be integrated with Microsoft Entra ID. This enables centralized identity-based access and can support organizational authentication requirements.

Security controls may include:

  • Microsoft Entra authentication
  • Multifactor authentication
  • Conditional Access
  • Group-based authorization
  • Device compliance requirements
  • Restricted user access
  • Short-lived or controlled access
  • Monitoring of user VPN activity

The key distinction is that site-to-site VPN connects networks, while point-to-site VPN connects individual users or devices.

ExpressRoute

ExpressRoute provides private connectivity between on-premises infrastructure and Azure.

ExpressRoute traffic does not traverse the public internet in the same way as ordinary internet-based connectivity. Virtual WAN can provide transit connectivity and routing between connected networks.

Security considerations include:

  • Controlling which routes are advertised
  • Avoiding unintended transit
  • Applying private traffic inspection where required
  • Monitoring route propagation
  • Using encryption requirements appropriate to the organization
  • Understanding that private connectivity does not automatically eliminate the need for authorization and inspection

Route Tables and Route Propagation

Virtual WAN uses hub routing and route tables to determine how traffic is forwarded between connected networks.

A route table can define:

  • Which routes a connection learns
  • Which routes are propagated to a connection
  • Which networks can communicate
  • Whether a connection receives default routes
  • Whether traffic is directed toward a firewall or NVA

Route association

A connection is associated with a Virtual WAN route table. The association determines which route table is used for forwarding decisions.

Route propagation

Route propagation determines which routes are advertised to a connection.

For example, a connection might receive routes for:

  • Other VNets
  • Branch networks
  • Other Virtual WAN hubs
  • The internet default route
  • Specific private address ranges

Security importance

Route propagation can affect whether traffic:

  • Reaches a protected network
  • Can communicate with another spoke
  • Is routed through a firewall
  • Can access the internet
  • Can bypass an inspection point

A secure configuration should advertise only the routes that are necessary.


Internet Security and the Default Route

The default route is:

0.0.0.0/0

When internet security is enabled and routing is configured to send internet traffic through a firewall or NVA, the default route can be advertised to connected VNets.

This causes internet-bound traffic from those VNets to use the centralized security solution.

However, administrators must understand the operational impact:

  • Internet access may be blocked unless firewall rules allow it.
  • DNS resolution may be affected by routing and firewall policies.
  • Application dependencies may fail if required endpoints are not allowed.
  • The firewall must be configured to permit legitimate outbound traffic.
  • Route propagation must be validated after changes.

The security objective is to prevent workloads from bypassing the organization’s inspection and filtering controls.


Private Traffic Inspection

Private traffic inspection is used when traffic between private networks must pass through a security solution.

Examples include:

  • VNet-to-VNet communication
  • Branch-to-VNet communication
  • Hub-to-hub communication
  • Traffic between application tiers
  • Traffic between production and shared services

Private traffic inspection is especially important in Zero Trust architectures because private IP addressing alone does not prove that traffic is trustworthy.

A workload in one VNet should not automatically be trusted merely because it is connected to the same Virtual WAN environment.

Security policies should consider:

  • Source network
  • Destination network
  • Application role
  • Protocol
  • Port
  • Identity and workload context
  • Required business relationship
  • Logging and monitoring requirements

Branch-to-Branch and Hub-to-Hub Connectivity

Virtual WAN can provide transit connectivity between connected branch sites and hubs.

This can simplify global network architecture, but it also creates security considerations.

For example, if branch-to-branch traffic is enabled, one branch may be able to communicate with another branch through Virtual WAN. This may be useful, but it could also create an unintended trust relationship.

Before enabling branch-to-branch connectivity, determine:

  • Which branches should communicate
  • Whether branch traffic must be inspected
  • Whether segmentation is required
  • Whether the firewall can inspect the traffic
  • Whether route propagation exposes unnecessary networks
  • Whether the connectivity requirement is temporary or permanent

The principle is:

Enable only the transit connectivity that is required by the business and security architecture.


Azure Virtual WAN and Zero Trust

A Zero Trust design assumes that no network location is inherently trusted.

For Virtual WAN, this means:

  • Do not trust traffic solely because it originates from a connected VNet.
  • Do not assume private traffic is safe.
  • Inspect traffic where required.
  • Use least-privilege routing.
  • Restrict internet access.
  • Authenticate remote users.
  • Apply consistent firewall policies.
  • Monitor traffic and configuration changes.
  • Segment workloads and branches.
  • Avoid unnecessary route propagation.

A secured Virtual WAN hub can support Zero Trust by centralizing inspection and reducing opportunities for traffic to bypass security controls.


Logging and Monitoring

Virtual WAN and related resources can produce resource logs that can be sent to:

  • Log Analytics workspaces
  • Event Hubs
  • Storage accounts

Logging can support:

  • Security investigations
  • VPN troubleshooting
  • Route analysis
  • Firewall monitoring
  • Compliance evidence
  • Detection of configuration changes
  • Investigation of unexpected connectivity

Resource logs are not necessarily enabled automatically. The organization must configure diagnostic settings and select the appropriate destination.

A recommended design is to send security-relevant logs to a centralized Log Analytics workspace and integrate them with Microsoft Sentinel when broader security analytics and incident response are required.

Monitor these areas

Monitor:

  • Virtual hub health
  • Hub router status
  • VPN connection state
  • ExpressRoute connectivity
  • Learned routes
  • Advertised routes
  • Firewall health
  • Firewall rule hits
  • Denied connections
  • Unexpected internet access
  • Configuration changes
  • Resource deployment failures

Hub Router Status

A Virtual WAN hub router can have statuses such as:

  • Provisioned
  • Provisioning
  • Failed
  • None

A Failed status may indicate a problem during router instantiation.

A None status may occur when the router was not provisioned, including scenarios involving Basic Virtual WAN or older hub deployments.

The hub router is important because it provides the routing infrastructure for transit connectivity. If the router is not functioning correctly, connected networks may experience routing or connectivity problems.


Security Best Practices

1. Use Standard Virtual WAN for enterprise security scenarios

Standard Virtual WAN supports the capabilities generally required for secured hubs, advanced transit, ExpressRoute, point-to-site VPN, Azure Firewall, and supported NVAs.

2. Use secured virtual hubs for centralized inspection

Deploy Azure Firewall in the Virtual WAN hub when traffic from multiple networks must be inspected consistently.

3. Use Firewall Manager for centralized policy management

Use centralized firewall policies to reduce inconsistent regional configurations.

4. Configure routing intent deliberately

Ensure private and internet-bound traffic is routed through the appropriate security solution.

5. Avoid overlapping address spaces

Plan hub, VNet, branch, and on-premises address spaces before deployment.

6. Use least-privilege route propagation

Advertise only the routes that each connection needs.

7. Do not assume connected networks are trusted

Apply inspection and access controls based on the required communication paths.

8. Protect VPN credentials

Store VPN secrets securely and rotate them according to policy.

9. Monitor logs centrally

Enable diagnostic settings and send relevant logs to a centralized monitoring destination.

10. Validate changes before production deployment

Test:

  • Route propagation
  • Firewall inspection
  • VPN connectivity
  • Internet access
  • Private network access
  • DNS resolution
  • Failover behavior
  • Logging and alerting

Common Exam Traps

Trap 1: “A VNet connected to Virtual WAN automatically uses Azure Firewall.”

Not necessarily. Traffic must be routed through the firewall using the appropriate security and routing configuration.

Trap 2: “Basic Virtual WAN supports Azure Firewall.”

Basic Virtual WAN does not support Azure Firewall. Standard Virtual WAN is required.

Trap 3: “A private connection is automatically secure.”

Private connectivity reduces exposure to the public internet, but it does not replace authorization, segmentation, inspection, or monitoring.

Trap 4: “Routing intent is only for internet traffic.”

Routing intent can be used for internet-bound traffic and private traffic inspection.

Trap 5: “The Virtual WAN hub address space can be changed later.”

The hub address space cannot be modified after the hub is created.

Trap 6: “An NVA and Azure Firewall always have identical capabilities.”

They do not. Validate the NVA’s supported features and Virtual WAN integration.

Trap 7: “Enabling branch-to-branch connectivity is always desirable.”

It can create additional trust paths and should be enabled only when required.


Practice Exam Questions

Question 1

An organization has several Azure VNets and branch offices connected through Azure Virtual WAN. The security team requires all internet-bound traffic from the VNets to pass through a centralized Azure Firewall.

What should the organization configure?

A. A network security group on every subnet
B. Routing intent that directs internet traffic through Azure Firewall
C. A point-to-site VPN connection for every workload
D. A separate public IP address for every VNet

Correct answer: B

Explanation: Routing intent can direct internet-bound traffic through Azure Firewall in a secured virtual hub. NSGs do not provide centralized internet traffic inspection across Virtual WAN.


Question 2

Which Virtual WAN type is required for an architecture that uses Azure Firewall, ExpressRoute, and inter-hub transit?

A. Basic Virtual WAN
B. Standard Virtual WAN
C. Basic virtual hub with a route table
D. Any Virtual WAN type

Correct answer: B

Explanation: Standard Virtual WAN supports Azure Firewall, ExpressRoute, inter-hub transit, point-to-site VPN, and other advanced capabilities. Basic Virtual WAN is limited primarily to site-to-site VPN connectivity.


Question 3

A company wants to centrally manage Azure Firewall policies across secured Virtual WAN hubs deployed in multiple regions.

Which service should it use?

A. Azure Network Watcher
B. Azure Bastion
C. Azure Firewall Manager
D. Azure DNS Private Resolver

Correct answer: C

Explanation: Azure Firewall Manager provides centralized management of firewall policies and secured virtual hubs across regions.


Question 4

An administrator is creating a Virtual WAN hub that will use Azure Firewall. Which address-space decision is appropriate?

A. Use an address space that overlaps with the largest connected VNet
B. Use a minimum /30 address space
C. Use a minimum /22 address space for a hub with Azure Firewall
D. Use the same address space as the on-premises network

Correct answer: C

Explanation: A Virtual WAN hub using Azure Firewall requires a minimum /22 address space to provide sufficient capacity for firewall scaling. The address space must also avoid overlap with connected networks.


Question 5

An organization wants to inspect traffic between two Azure VNets connected to the same Virtual WAN environment.

Which capability is most relevant?

A. Private traffic inspection through routing intent
B. Azure Storage firewall rules
C. Point-to-site VPN authentication
D. Azure Resource Locks

Correct answer: A

Explanation: Private traffic inspection allows traffic between connected private networks to be directed through a firewall or supported NVA.


Question 6

A security engineer enables branch-to-branch connectivity in Virtual WAN. What is the primary security concern?

A. Branches will no longer be able to use VPN
B. Branch-to-branch connectivity may create unintended trust paths
C. Azure Firewall will be automatically deleted
D. ExpressRoute will be converted to a public connection

Correct answer: B

Explanation: Branch-to-branch connectivity can allow one branch to communicate with another. It should be enabled only when required and should be evaluated against segmentation and inspection requirements.


Question 7

Which statement about the Virtual WAN hub address space is correct?

A. It can be changed at any time after hub deployment
B. It must overlap with the connected VNets
C. It cannot overlap with connected or on-premises address spaces
D. It is used only for point-to-site VPN clients

Correct answer: C

Explanation: The hub address space cannot be changed after creation and must not overlap with other Virtual WAN hubs, connected VNets, or on-premises networks.


Question 8

A company wants to connect individual employees to a Virtual WAN hub and authenticate them using Microsoft Entra ID.

Which connectivity option should it use?

A. Site-to-site VPN
B. Point-to-site user VPN
C. ExpressRoute Direct
D. VNet peering

Correct answer: B

Explanation: Point-to-site user VPN connects individual users or devices and can be configured with Microsoft Entra ID authentication.


Question 9

An administrator configures routing intent but users report that internet access is failing from a connected VNet. What should the administrator check first?

A. Whether the firewall policy allows the required outbound traffic
B. Whether every VM has a public IP address
C. Whether the VNet has a storage account
D. Whether Azure Bastion is deployed

Correct answer: A

Explanation: Routing internet traffic through Azure Firewall does not automatically allow it. The firewall policy must permit the required destinations, protocols, and ports.


Question 10

A security team needs to investigate unexpected VPN disconnects and routing changes in Virtual WAN.

What should it configure?

A. Azure Resource Locks only
B. Diagnostic settings that send Virtual WAN resource logs to a monitoring destination
C. A public IP address on every connected subnet
D. A separate Virtual WAN for every VPN connection

Correct answer: B

Explanation: Virtual WAN and related resources can produce resource logs that can be sent to Log Analytics, Event Hubs, or a storage account. These logs support troubleshooting, auditing, and security investigations.


Key Takeaways

For the SC-500 exam, remember these core points:

  • Standard Virtual WAN is required for advanced enterprise capabilities.
  • A secured virtual hub integrates Azure Firewall with a Virtual WAN hub.
  • Azure Firewall Manager centralizes firewall policy management.
  • Routing intent directs private or internet-bound traffic through a security solution.
  • Connected networks are not automatically trusted.
  • Plan Virtual WAN hub address spaces carefully because they cannot be changed after creation.
  • Avoid address-space overlap.
  • Use least-privilege route propagation.
  • Secure site-to-site and point-to-site connectivity.
  • Monitor Virtual WAN resource logs, routes, gateways, and firewall activity.
  • Validate that traffic actually passes through the intended inspection point.

Go to the SC-500 Exam Prep Hub main page

SC-500 Practice Exam #2

This practice exam is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.

Implementing End-to-End Security Controls for Cloud and AI Workloads


Section 1: Manage Identity, Access, and Governance


Question 1 — Privileged Identity Management

A company uses Microsoft Entra Privileged Identity Management (PIM) to control access to privileged roles. A security administrator must ensure that administrators cannot retain permanent active assignments to a highly privileged role. Administrators must request access when needed, provide justification, and activate the role for a limited period.

Which configuration best meets these requirements?

A. Assign the role permanently as active and require multifactor authentication at every sign-in.

B. Create eligible assignments, configure activation requirements, and set a maximum activation duration.

C. Assign the role through an Azure Policy initiative and configure a resource lock.

D. Create a Conditional Access policy that blocks all users outside the corporate network.

Answer: B

Explanation: Eligible assignments allow users to activate a role when required rather than having permanent active privileges. PIM can require justification, multifactor authentication, approval, and a limited activation duration, depending on the role and configuration.

Conditional Access can add authentication and access restrictions, but it does not replace PIM’s eligible-assignment and activation workflow. Azure Policy and resource locks govern Azure resources, not Microsoft Entra privileged-role activation.


Question 2 — Authentication Methods

A company wants employees to sign in using phishing-resistant authentication. The security team wants to prioritize a method that does not rely on a password and is designed to resist credential phishing.

Which option is the best fit?

A. SMS one-time passcodes

B. Email one-time passcodes

C. Security questions

D. Passkeys using FIDO2 security keys

Answer: D

Explanation: FIDO2 security keys and supported passkey implementations provide phishing-resistant authentication. Authentication is cryptographically bound to the legitimate relying party, helping prevent credentials from being reused on a fraudulent website.

SMS and email codes can be vulnerable to phishing or interception, and security questions are not a strong authentication method.

Exam tip: Distinguish between merely adding another authentication step and using a phishing-resistant authentication method.


Question 3 — Azure RBAC and Least Privilege

A developer must restart virtual machines in a specific resource group. The developer must not be able to create virtual machines, modify network security groups, or assign roles to other users.

Which approach best follows least privilege?

A. Assign Owner at the subscription scope.

B. Assign Contributor at the subscription scope.

C. Assign a suitable narrowly scoped role that permits the required VM restart operation at the resource group or resource scope.

D. Assign User Access Administrator at the resource group scope.

Answer: C

Explanation: Azure RBAC assignments should grant only the required actions at the narrowest practical scope. A suitable built-in role or custom role can permit VM restart operations without granting broad resource-management or role-assignment permissions.

Owner and Contributor are too broad for this requirement. User Access Administrator focuses on managing access assignments rather than restarting VMs.


Question 4 — Scenario: Azure Policy and Resource Locks

A production resource group contains a critical Azure resource. The organization wants to accomplish two things:

  1. Prevent accidental deletion of the resource.
  2. Require newly deployed storage accounts to use secure transfer.

Which combination of controls should be used?

A. A CanNotDelete resource lock and an Azure Policy definition enforcing secure transfer.

B. A ReadOnly resource lock and a Microsoft Sentinel automation rule.

C. A PIM eligible assignment and a Key Vault certificate.

D. A Defender for Cloud recommendation and a network security group.

Answer: A

Explanation: A CanNotDelete lock prevents deletion while allowing permitted modifications. Azure Policy can audit or deny storage-account configurations that do not meet the secure-transfer requirement.

A ReadOnly lock is more restrictive and can prevent many write operations. Sentinel automation rules and PIM do not directly enforce these two resource requirements.

Important distinction: Resource locks protect resources from certain management operations. Azure Policy evaluates and enforces resource configuration requirements.


Question 5 — Fill in the Blank: Azure Resource Access

An application hosted on an Azure resource must access Azure Key Vault without embedding a client secret in its code. The application should authenticate using an identity managed by Azure.

The capability to configure is a __________ identity.

A. guest

B. managed

C. consumer

D. shared

Answer: B. managed

Explanation: Managed identities provide Azure resources with identities that can authenticate to supported services. Azure manages the credentials, reducing the need to store and rotate application secrets.

Authentication alone does not grant access to Key Vault. The managed identity must also receive the appropriate authorization, such as a suitable Key Vault data-plane role when using Azure RBAC authorization.


Question 6 — Multiple Answer: Azure Backup Security

An organization wants to strengthen the security of its Azure Backup recovery points against accidental or malicious deletion.

Which two controls should the security team consider?

A. Configure Azure Bastion for all backup vaults.

B. Enable Microsoft Sentinel syslog collection.

C. Use Azure Backup security features such as soft delete and, where supported, immutability.

D. Configure Multi-User Authorization (MUA) for supported critical backup operations.

Answer: C and D

Explanation: Azure Backup provides several layers of protection for recovery points and critical operations.

  • Soft delete helps protect backup data from accidental or malicious deletion by retaining deleted backup data for a configured or service-defined period.
  • Immutability, where supported and appropriately configured, helps prevent protected backup data from being modified or deleted.
  • Multi-User Authorization (MUA) adds an approval layer for supported critical operations, reducing the risk of a single compromised administrator destroying backups.

Bastion is for secure VM administration. Syslog collection supports monitoring but does not itself protect recovery points.


Question 7 — Scenario: Securing an API Plugin


A developer is building an API plugin for a declarative agent. The API accesses confidential business data and must verify the identity of the caller. The team wants delegated access so that the API can act within the signed-in user’s permitted access.

Which authentication approach most directly supports this requirement?

A. Publish the API without authentication and rely on network restrictions.

B. Embed a shared administrator password in the plugin definition.

C. Use a managed identity for the API and assume it automatically represents every user’s delegated permissions.

D. Configure an appropriate Microsoft identity platform OAuth authentication flow with delegated permissions and consent.

Answer: D

Explanation: OAuth-based authentication with delegated permissions allows an application to access an API on behalf of a signed-in user, within the granted permissions and consent framework.

A managed identity can authenticate an Azure-hosted workload as itself, but it does not automatically represent the user’s delegated permissions. Network restrictions are useful defense in depth, not a replacement for API authentication and authorization.


Section 2: Secure Storage, Databases, and Networking


Question 8 — Scenario: Azure Storage Network Restrictions

A company stores confidential files in an Azure Storage account. Only clients on approved corporate networks should be able to connect to the storage service. The security team also wants to retain identity-based authorization for users accessing blobs.

Which configuration best meets these requirements?

A. Enable anonymous blob access and use Azure Policy to audit downloads.

B. Assign Storage Blob Data Contributor to all employees and rely on storage-account keys for network restrictions.

C. Configure the storage firewall to allow approved network paths and use Microsoft Entra ID-based authorization with appropriate data-plane permissions.

D. Enable Microsoft Defender for Storage and leave the storage account’s network access unrestricted.

Answer: C

Explanation: The storage firewall or network access settings restrict which network paths can reach the storage account. Microsoft Entra ID-based authorization and appropriate data-plane roles control what an authenticated identity can do with blob data.

Defender for Storage provides additional threat protection, but it does not replace network restrictions or authorization.


Question 9 — Multiple Answer: Azure SQL Security

A financial application uses Azure SQL Database. Auditors require a record of database activity, and the security team wants to detect suspicious database behavior and potential threats.

Which two capabilities should be configured?

A. Azure SQL auditing

B. Azure Bastion

C. Microsoft Defender for Databases

D. Azure Firewall Manager only

Answer: A and C

Explanation:

  • Azure SQL auditing records database events to support investigation, accountability, and compliance.
  • Microsoft Defender for Databases adds database threat-protection capabilities and can surface suspicious activities and security recommendations.

Bastion provides secure administrative access to VMs. Azure Firewall Manager manages firewall deployments and policies, not SQL auditing.


Question 10 — Scenario: Network Security Groups

An application has a web tier and a database tier in separate subnets. The database must accept connections from the web tier on TCP port 1433 but must not accept direct connections from the internet.

Which design is most appropriate?

A. Assign a public IP address to the database and use a broad outbound NSG rule.

B. Use an NSG rule to allow the required database traffic from the web tier, with other inbound traffic denied by the applicable rules.

C. Configure Azure Bastion to forward all application traffic to the database.

D. Enable Microsoft Defender for SQL and remove the database subnet’s network controls.

Answer: B

Explanation: Network security groups filter inbound and outbound traffic using rules that specify source, destination, port, protocol, and priority. An appropriately scoped rule can allow the web tier to connect to the database while blocking other unwanted connections.

NSGs are stateful, and their rules are evaluated by priority. Ensure that the effective rules and network architecture actually prevent direct internet access; simply adding an allow rule is not enough.


Question 11 — Matching: Private Connectivity

Match each Azure networking capability to its primary purpose.

CapabilityPurpose
1. Azure Private EndpointA. Encrypted connectivity between networks over a VPN
2. Azure VPN GatewayB. Filter traffic using network security rules at a subnet or network interface
3. Network Security GroupC. Provide a private IP-based connection to a supported service
4. Azure FirewallD. Centralized network traffic inspection and filtering

Answer

  • 1 → C
  • 2 → A
  • 3 → B
  • 4 → D

Explanation: A private endpoint maps a supported service to a private IP address in a virtual network. VPN Gateway provides VPN connectivity. NSGs filter network traffic at subnet or network-interface scope. Azure Firewall provides centralized network traffic filtering and inspection.

Exam trap: Private Link, VPN Gateway, NSGs, and Azure Firewall are complementary controls, not interchangeable services.


Question 12 — Scenario: Azure Key Vault Authorization

An application can successfully authenticate to Azure Key Vault using its managed identity, but it receives an authorization error when attempting to retrieve a secret. The vault uses Azure role-based access control for its data plane.

What should the administrator do?

A. Assign the managed identity an appropriate Key Vault data-plane role, such as Key Vault Secrets User, at the appropriate scope.

B. Assign the managed identity Reader at the subscription scope.

C. Enable Azure Bastion on the Key Vault.

D. Create a Sentinel playbook that retries the secret request.

Answer: A

Explanation: Authentication establishes the identity; authorization determines what that identity can access. With the Azure RBAC permission model, retrieving secrets requires an appropriate data-plane role, such as Key Vault Secrets User, at a suitable scope.

The Reader role generally provides control-plane read access to Azure resources; it does not grant permission to read secret values. A playbook cannot correct a missing authorization assignment.


Question 13 — Multiple Answer: Azure SQL Data Protection

A company wants to protect sensitive information in Azure SQL Database. Its requirements include encrypting stored database data and maintaining an audit trail of database activity.

Which two features best address these requirements?

A. Azure Bastion and JIT VM access

B. Azure Private Link and NSGs only

C. Microsoft Sentinel automation rules and Azure Policy only

D. Transparent Data Encryption (TDE) and Azure SQL auditing

Answer: D

Explanation: TDE encrypts database files and associated data at rest. Azure SQL auditing records selected database events for security investigation and compliance.

These controls address different objectives: encryption protects data at rest, while auditing supports accountability and investigation. Neither feature alone replaces identity controls, network security, or other data-protection measures.


Question 14 — Fill in the Blank: Azure Network Diagnostics

An administrator wants to determine which network security rules apply to a network interface and investigate why traffic is being allowed or denied.

The administrator should use Azure Network Watcher __________ security rules.

A. export

B. effective

C. privileged

D. delegated

Answer: B. effective

Explanation: Azure Network Watcher provides tools for examining effective security rules on a network interface. These help administrators understand the combined effect of applicable NSG rules and troubleshoot connectivity.

This is particularly useful when subnet-level and network-interface-level rules interact.


Question 15 — Scenario: Azure Private Link

An organization hosts a database service that supports Azure Private Link. The company wants clients in a virtual network to connect using a private IP address and wants to disable public network access where the service supports that configuration.

Which approach is most appropriate?

A. Create a public IP address and restrict access using a password.

B. Configure an NSG without creating a private connection to the service.

C. Create a private endpoint, configure the required name resolution, and disable public network access if supported and required.

D. Enable Microsoft Defender for Databases and assume the service no longer has a public endpoint.

Answer: C

Explanation: A private endpoint provides private IP-based connectivity to a supported service. Correct DNS configuration is important so that clients resolve the service name to the intended private endpoint. Where supported, disabling public network access provides an additional control.

A private endpoint does not automatically mean the public endpoint is disabled; that must be configured separately when the service supports it.


Section 3: Secure Compute


Question 16 — Scenario: Trusted Launch and Disk Encryption

A company is deploying a new Azure VM for a sensitive workload. The security team requires protection against boot-level attacks and encryption of data stored on the VM’s disks.

Which combination most directly addresses both requirements?

A. Azure Bastion and Microsoft Sentinel

B. Trusted Launch and an appropriate VM disk-encryption configuration

C. Azure Policy and Microsoft Entra PIM only

D. A network security group and a public IP address

Answer: B

Explanation: Trusted Launch provides VM security features such as Secure Boot and virtual TPM. Disk encryption protects data stored on supported VM disks.

These controls protect different layers. Trusted Launch does not, by itself, mean that all disk-encryption requirements have been met.


Question 17 — Multiple Answer: Azure Kubernetes Service

A security team is reviewing an Azure Kubernetes Service (AKS) deployment. It wants to reduce workload exposure and improve container security.

Which two actions are appropriate?

A. Review and apply AKS network and workload-isolation controls.

B. Enable Microsoft Defender for Containers for relevant protection and security insights.

C. Give every workload cluster Owner permissions on the subscription.

D. Make all container images publicly accessible to simplify deployment.

Answer: A and B

Explanation: AKS security is layered. Network policies and appropriate isolation controls help restrict workload communication, while Defender for Containers provides security capabilities for containerized environments.

Broad subscription permissions and publicly exposing container images increase risk rather than reducing it.


Question 18 — Scenario: Just-in-Time VM Access

Administrators need occasional RDP access to a group of Azure VMs. Security policy requires that management ports not remain unnecessarily exposed and that access requests be time-limited.

Which capability best meets this requirement?

A. Azure Storage firewall rules

B. Microsoft Purview DSPM

C. Azure SQL auditing

D. Just-in-time (JIT) VM access

Answer: D

Explanation: JIT VM access reduces persistent exposure of management ports by allowing access to be requested for a limited time under configured conditions. It is commonly used to reduce exposure of ports such as RDP and SSH.

JIT is not a replacement for identity authorization, network controls, or monitoring, but it directly addresses the requirement for time-limited management-port access.


Question 19 — Scenario: Azure App Service and Web Traffic

A company hosts a public web application on Azure App Service. The security team wants to protect the application from common web attacks, including malicious HTTP requests that match known attack patterns.

Which option is the best fit when the design calls for a Web Application Firewall (WAF)?

A. Azure Machine Configuration

B. Azure Backup soft delete

C. A supported WAF deployment, such as Azure Application Gateway WAF or Azure Front Door WAF, positioned to inspect the application’s web traffic

D. Microsoft Entra PIM

Answer: C

Explanation: A WAF can inspect HTTP(S) traffic and help protect web applications against common web exploits. The appropriate WAF product and deployment pattern depend on the application’s ingress architecture and requirements.

PIM controls privileged identity access, Azure Machine Configuration assesses or enforces machine configuration, and Backup soft delete protects backup data.


Question 20 — Matching: Application and Container Security

Match each technology or capability with its primary purpose.

TechnologyPurpose
1. Microsoft Defender for ContainersA. Secure API access, traffic policies, and backend integration
2. Azure API ManagementB. Assess or enforce supported machine configuration settings
3. Azure Machine ConfigurationC. Detect container-related risks and provide container security capabilities
4. Azure BastionD. Secure administrative access to Azure VMs

Answer

  • 1 → C
  • 2 → A
  • 3 → B
  • 4 → D

Explanation: Defender for Containers supports container security. API Management helps secure and govern APIs and their backend access. Azure Machine Configuration helps assess and enforce supported configuration settings on machines. Bastion provides secure RDP/SSH access to VMs.


Question 21 — Scenario: AI Guardrails

A company deploys an AI application using Microsoft Foundry. Testing reveals that the model sometimes returns harmful content and can be manipulated by adversarial prompts. The company wants to apply configurable controls to evaluate prompts and responses.

Which approach is most appropriate?

A. Enable Azure Bastion and restrict RDP access.

B. Configure and test appropriate Foundry guardrails, including relevant content filters and Prompt Shields.

C. Enable Azure SQL auditing.

D. Assign the AI application the Contributor role at the subscription scope.

Answer: B

Explanation: Microsoft Foundry guardrails can evaluate model interactions and apply controls such as content filters, blocklists, and Prompt Shields. The appropriate controls should be configured and validated against the application’s risk profile.

Guardrails help mitigate unsafe interactions and prompt-injection risks, but they do not eliminate all AI risks. Identity, data access, monitoring, and application-layer controls remain necessary.


Question 22 — Multiple Answer: AI Identity and Data Security

An organization has deployed AI agents that can access Microsoft 365 data and Azure resources. Security wants to assess risks caused by excessive agent permissions and overexposed organizational data.

Which two actions are appropriate?

A. Use Microsoft Defender XDR to investigate AI agent identities and assess potential blast radius.

B. Enable anonymous access to SharePoint so that agents do not need authorization.

C. Use Microsoft Purview Data Security Posture Management to identify relevant AI data risks and overexposure.

D. Replace all agent identities with a single shared administrator account.

Answer: A and C

Explanation: Microsoft Defender XDR can help discover AI agents and analyze identity-related risks and attack paths. Microsoft Purview DSPM helps identify data security risks associated with AI usage and data exposure.

Shared administrator accounts and anonymous access undermine least privilege and make it harder to establish accountability. Microsoft’s current AI security learning path covers both Entra Agent ID risk analysis and Purview DSPM for AI data risks.


Question 23 — Fill in the Blank: AI Traffic Security

An organization wants to apply centralized security and governance controls to model traffic for AI applications built with Microsoft Foundry. The relevant capability in the SC-500 learning path is AI Gateway in Azure __________ Management.

A. Identity

B. Storage

C. Firewall

D. API

Answer: D. API

Explanation: The SC-500 AI security learning path covers configuring AI Gateway in Azure API Management for Microsoft Foundry. The gateway can provide a centralized point for applying access restrictions, governance, and monitoring to AI model traffic.

AI Gateway complements other controls, including agent identity security, Foundry guardrails, and Defender for Cloud workload protection.


Section 4: Manage and Monitor Security Posture


Question 24 — Scenario: Prioritizing Cloud Security Risks

A security team uses Microsoft Defender for Cloud to assess hundreds of security recommendations. The team wants to identify issues that could contribute to a realistic attack path to a critical database, rather than simply fixing recommendations in alphabetical order.

Which capability is most appropriate?

A. Azure Backup soft delete

B. Microsoft Entra password protection

C. Defender CSPM attack path analysis

D. Microsoft Sentinel workspace retention

Answer: C

Explanation: Defender CSPM attack path analysis helps identify chains of security issues that could expose important resources to attack. It provides context for prioritizing risks based on potential attack paths rather than treating every recommendation as equally urgent.

For example, an internet-exposed workload with excessive permissions and access to a sensitive database may deserve higher priority than an isolated configuration issue. Attack path analysis and Cloud Security Explorer are covered in Microsoft’s Defender for Cloud learning path.


Question 25 — Multiple Answer: Microsoft Sentinel Data Collection

A company is onboarding network security appliances and Windows servers to Microsoft Sentinel. The appliances can send Common Event Format (CEF) messages, while Windows servers use Windows Event Forwarding (WEF).

Which two statements are correct?

A. CEF collection and Windows Security event collection using DCRs are distinct ingestion configurations.

B. Enabling a Sentinel automation rule automatically configures every appliance to send logs.

C. WEF eliminates the need to configure the appropriate data collection path into Azure Monitor and Sentinel.

D. A Sentinel playbook must be used to parse every CEF message before it can be ingested.

Answer: A

Explanation: CEF and Windows Security events use different collection configurations. For Windows Security events, DCRs can define which events are collected, including scenarios involving WEF. CEF collection requires the appropriate forwarding and ingestion setup for the source appliance.

Automation rules and playbooks help automate security operations; they do not automatically configure log sources or replace ingestion pipelines.

Important: This is a multiple-answer-style question, but only A is correct as written. In a live exam, always follow the number of answers requested and evaluate each option independently.


Question 26 — Scenario: Defender for Cloud Multicloud Coverage

An organization has workloads in Azure and AWS. The security team can see Azure recommendations in Defender for Cloud but does not have the expected security posture visibility for its AWS environment.

What should the team do first?

A. Deploy Azure Bastion in the AWS account.

B. Configure the appropriate AWS connector and required integration settings in Defender for Cloud, then verify the connected resources and enabled capabilities.

C. Create an Azure Policy assignment directly on the AWS resources.

D. Enable Microsoft Sentinel’s Windows Security Events connector.

Answer: B

Explanation: Defender for Cloud can integrate with AWS to provide security posture visibility and, depending on the configured plans and integration, workload protection. The security team should configure the appropriate connector, authentication, scope, and required plans, then verify that the intended resources are covered.

Azure Policy does not directly govern AWS resources in the same way it governs Azure resources. A Sentinel Windows event connector does not establish Defender for Cloud’s AWS integration.


Question 27 — Matching: Security Posture Tools

Match each capability with the task it most directly supports.

CapabilityTask
1. Defender CSPMA. Assess compliance against regulatory frameworks and identify control gaps.
2. Defender for Cloud regulatory complianceB. Discover and investigate external attack-surface exposure
3. Microsoft Defender EASMC. Assess cloud posture and prioritize security risks
4. Microsoft Defender for Servers vulnerability assessmentD. Identify vulnerabilities on covered servers and VMs

Answer

  • 1 → C
  • 2 → A
  • 3 → B
  • 4 → D

Explanation: These tools support related but different security outcomes:

  • Defender CSPM identifies posture issues and helps prioritize risk.
  • Regulatory compliance evaluates the environment against selected security standards and frameworks.
  • Defender EASM discovers and assesses externally visible assets.
  • Defender for Servers vulnerability assessment identifies vulnerabilities on covered servers and VMs.

Question 28 — Scenario: Security Copilot Agent Permissions

A company wants to deploy a partner-built agent from Microsoft Security Store. During setup, the agent requests permissions to access Microsoft security product data. The agent cannot be fully configured until the required permissions are approved.

Which action should the organization expect to take?

A. Grant the agent unrestricted subscription Owner access without reviewing its requested permissions.

B. Disable all Microsoft Entra authentication requirements for the agent.

C. Remove all plugins and assume the agent will retain its original capabilities.

D. Have an appropriately authorized Global Administrator review and approve the required Microsoft product permissions, then complete the remaining setup using an authorized Security Copilot role.

Answer: D

Explanation: Partner-built Security Copilot agents that require access to Microsoft product data can require Global Administrator approval of their requested permissions. The administrator should review the requested permissions and approve only as appropriate. An authorized Security Copilot Owner or Contributor can then complete the remaining setup steps.

The key principle is to review and approve permissions deliberately rather than granting broad access by default. Acquiring a partner agent and configuring its operational permissions are related but distinct steps.


Question 29 — Fill in the Blank: Defender for Cloud AI Protection

A company wants to secure AI workloads through Microsoft Defender for Cloud. The team wants to review AI-related security posture insights, detect runtime threats, and investigate security alerts.

The Microsoft Defender for Cloud dashboard specifically associated with these AI-related posture insights is the Data & __________ security dashboard.

A. Identity

B. Network

C. AI

D. Backup

Answer: C

Explanation: The dashboard is called the Data & AI security dashboard. It helps teams review insights related to AI security posture.

Defender for Cloud AI workload protection also involves enabling the appropriate AI protection plan, assessing posture through CSPM, detecting runtime threats through workload protection, and investigating incidents in Microsoft Defender XDR.


Question 30 — Scenario: Investigating a Suspicious AI Agent

An organization detects an AI agent that appears to have access to more resources than it needs. The security team wants to understand which resources could be affected if the agent’s identity were compromised and whether the agent has risky paths to sensitive data.

Which approach is most appropriate?

A. Use Microsoft Defender XDR to discover the agent and investigate its identity-related risks and potential blast radius.

B. Use Azure Storage lifecycle management to delete old files.

C. Use Azure Bastion to rotate the agent’s permissions.

D. Use Azure SQL auditing as the sole tool for analyzing all agent identity relationships.

Answer: A

Explanation: Microsoft Defender XDR can help security teams discover AI agents and investigate identity-related risks, including potential blast radius and attack paths. This helps determine which resources or data might be exposed if an agent identity is compromised.

The investigation should be followed by remediation, such as reducing excessive permissions, correcting access assignments, and reviewing the agent’s identity lifecycle. Microsoft’s current AI security learning path specifically covers discovering AI agents and assessing their blast radius.


What to review after this exam

Focus especially on the distinctions that commonly drive scenario questions:

  • Authentication vs. authorization: successful sign-in does not automatically grant access to Key Vault or other resources.
  • Azure Policy vs. resource locks: configuration governance is different from protection against resource deletion or modification.
  • Private endpoints vs. public access: creating a private endpoint does not necessarily disable a service’s public endpoint.
  • Trusted Launch vs. disk encryption: boot integrity and encryption at rest solve different problems.
  • Defender CSPM vs. workload protection: posture management identifies and prioritizes weaknesses; workload protection detects threats to supported workloads.
  • Sentinel ingestion vs. automation: connectors and collection configurations bring logs into the workspace; automation rules and playbooks support response workflows.
  • AI guardrails vs. AI identity controls: guardrails evaluate model interactions, while identity and access controls govern which resources an agent can reach.

Go to the SC-500 Exam Prep Hub main page

SC-500 Practice Exam #3

This practice exam is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.

Implementing End-to-End Security Controls for Cloud and AI Workloads


Section 1 — Manage identity, access, and governance


Question 1 — Privileged Identity Management (PIM)

A security administrator has a standing Owner role assignment at the subscription level. The organization wants to reduce standing privileges while allowing the administrator to perform emergency configuration changes when necessary. The administrator should provide justification, complete multifactor authentication, and have the activation approved by another administrator.

Which configuration best meets these requirements?

A. Assign the Contributor role permanently and use an Azure Policy exemption for emergency changes.

B. Create a custom Azure role and assign it permanently at the management group scope.

C. Convert the Owner assignment to an eligible PIM assignment and configure approval, justification, and MFA requirements for activation.

D. Create a resource lock and configure an alert to notify the security team whenever the administrator changes a resource.

Correct answer: C

Explanation: Microsoft Entra Privileged Identity Management (PIM) supports eligible role assignments that users activate only when needed. Activation requirements can include justification, MFA, and approval. This reduces standing privileged access while retaining a controlled emergency-access process. A resource lock or policy exemption does not replace privileged access management.


Question 2 — Azure Key Vault protection

A company stores encryption keys and application secrets in Azure Key Vault. Its security policy requires that deleted secrets and keys cannot be permanently purged by an administrator before the configured retention period expires, even if the administrator has elevated permissions.

Which setting most directly enforces this requirement?

A. Enable purge protection.

B. Enable diagnostic settings and send audit logs to Log Analytics.

C. Configure a private endpoint for the vault.

D. Assign the Key Vault Reader role to all administrators.

Correct answer: A

Explanation: Purge protection prevents a deleted vault object from being permanently purged during its retention period. Soft delete retains deleted objects for recovery; purge protection prevents early permanent deletion. Diagnostic logging, private endpoints, and reader permissions serve different security purposes.


Question 3 — Conditional Access for AI agent identities

An organization deploys dozens of autonomous AI agents using Microsoft Entra Agent ID. All agents created from a particular agent identity blueprint must be blocked from accessing corporate APIs if they are identified as high risk. New agents created from that blueprint must automatically receive the same protection.

What should the security engineer configure?

A. A Conditional Access policy targeting all human users and requiring MFA.

B. An Azure Policy definition that audits agent registrations.

C. An access review that periodically checks the agents’ API permissions.

D. A Conditional Access policy targeting the relevant agent identity blueprint, with a control that blocks access when the configured risk condition is met.

Correct answer: D

Explanation: Conditional Access can target agent identities and agent identity blueprints. A policy applied to a blueprint covers agent identities derived from it, including future agents. Risk-based controls can block access when the applicable risk condition is met. The policy must target the correct identity type; a policy targeting human users does not automatically cover agent identities.


Question 4 — Azure Policy versus resource locks

A team manages production resources in Azure. Security requirements state that storage accounts must have secure transfer enabled and that a specific production database must not be deleted accidentally.

Which combination best addresses both requirements?

A. Assign the Reader role to the application team and enable diagnostic logging on the database.

B. Use Azure Policy to enforce or audit the secure-transfer configuration, and apply a CanNotDelete resource lock to the database.

C. Apply a ReadOnly lock to the subscription and use a management group to enable secure transfer.

D. Use Microsoft Defender for Cloud recommendations to block storage configuration changes and assign the database the Contributor role.

Correct answer: B

Explanation: Azure Policy evaluates resource configurations against defined rules and can audit, deny, or remediate supported configurations. A CanNotDelete lock prevents deletion while allowing authorized modifications. A ReadOnly lock is more restrictive and can prevent updates. Defender for Cloud provides posture recommendations, but recommendations alone do not enforce these controls.


Question 5 — Least-privilege access to Azure resources

A deployment operator needs to start and stop virtual machines in one resource group. The operator must not create virtual machines, change their networking, modify role assignments, or access other resource groups.

Which TWO approaches best support least privilege?

A. Assign Owner at the subscription scope and use activity logs to detect excess permissions.

B. Assign Contributor at the resource-group scope and ask the operator not to modify networking.

C. Create or use a role that includes the required virtual machine start/stop actions, and assign it at the narrowest suitable scope.

D. Assign a suitable built-in virtual machine operator role at the target resource-group scope, after verifying that its permitted actions meet the requirements.

Correct answers: C and D

Explanation: Least privilege means granting only the permissions needed at the narrowest appropriate scope. A custom role can precisely define allowed actions, while a suitable built-in role may already provide the required permissions. The role’s actual actions and any applicable data-plane permissions should be checked before assignment. Owner and Contributor are broader than the stated requirement.


Question 6 — OAuth permissions and consent

A developer registers an application that calls Microsoft Graph on behalf of signed-in employees. The application requests delegated permissions that allow it to read users’ files. The security team wants to minimize the risk of excessive access being granted during application consent.

Which action is most appropriate?

A. Review the requested delegated permissions and configure consent policies so that only approved permissions and appropriate consent workflows are allowed.

B. Assign the application the Global Administrator role so it can request consent without interruption.

C. Enable public network access for the application registration.

D. Create a resource lock on the application registration and assume that this prevents overprivileged consent.

Correct answer: A

Explanation: Delegated permissions allow an application to act on behalf of a signed-in user within the permissions granted to it and the user. Reviewing requested permissions and controlling user and administrator consent helps prevent excessive access. Global Administrator is not an appropriate default application permission, and resource locks do not control OAuth consent.


Question 7 — Protecting backup data

A company is concerned that an attacker who compromises an administrator account could delete recovery points and then encrypt the production environment. The company wants to strengthen the resilience of its Azure Backup data against destructive administrative actions.

Which approach is most appropriate?

A. Store backup logs in the same production virtual machine that is being protected.

B. Give all backup operators the Backup Contributor and Owner roles at the subscription level.

C. Rely exclusively on Azure Policy to prevent all possible backup deletions, without reviewing the backup configuration.

D. Configure the applicable Azure Backup security features, including immutable vault protection where supported, and restrict privileged backup operations using least-privilege access and appropriate safeguards.

Correct answer: D

Explanation: Backup resilience depends on multiple layers: restricting privileged operations, protecting backup configuration, and enabling supported immutability and deletion safeguards. Exact capabilities vary by workload and vault configuration, so verify which protections are supported for the protected data source. Broad administrative roles and co-locating logs with production workloads do not adequately protect recovery points.


Section 2 — Secure storage, databases, and networking


Question 8 — Eliminate public exposure of Azure Storage

A storage account contains confidential documents used by an application hosted in an Azure virtual network. The application must continue to access the storage account, but the company wants to eliminate access through the storage account’s public network endpoint.

Which configuration best meets the requirement?

A. Allow all public IP addresses in the storage firewall and require HTTPS.

B. Configure a private endpoint, ensure the application resolves the storage account name to the private endpoint IP address, and disable public network access after validating the private connectivity.

C. Create an NSG rule that blocks inbound traffic to the storage account’s public endpoint.

D. Enable Microsoft Defender for Storage and leave the public network endpoint enabled.

Correct answer: B

Explanation: Azure Private Link provides private connectivity to supported Azure services through a private endpoint in a virtual network. Correct DNS configuration is essential so the application resolves the service name to the private IP address. Disabling public network access removes the public access path; Defender for Storage detects threats but does not itself remove public exposure.


Question 9 — Secure access to Azure Storage

A data-processing application needs temporary access to blobs in an Azure Storage account. The organization wants to avoid distributing the storage account key and wants to issue a time-limited token using Microsoft Entra credentials.

Which option is the best fit?

A. Embed the storage account access key in the application’s source code and rotate it every month.

B. Assign the application the Owner role at the subscription level.

C. Make the container public and rely on application-level authentication.

D. Use a user delegation SAS, generated using Microsoft Entra credentials, and restrict its permissions and validity period to the required operations.

Correct answer: D

Explanation: A user delegation SAS is signed using a user delegation key obtained through Microsoft Entra authorization rather than a storage account key. The SAS should have only the necessary permissions and a limited validity period. It remains a bearer token, so it must be protected against disclosure. Public containers and embedded account keys increase exposure.


Question 10 — Detect threats against Azure Storage

A company uses Azure Blob Storage to receive files from external partners. The security team wants threat detection that can identify suspicious storage activity and malware in uploaded files, using Microsoft Defender’s storage protections where supported.

What should the team implement?

A. Enable Microsoft Defender for Storage and configure the relevant malware-scanning and threat-detection capabilities for the storage environment.

B. Enable Azure SQL auditing on the storage account.

C. Assign the Storage Blob Data Reader role to every external partner.

D. Configure a ReadOnly resource lock on the storage account.

Correct answer: A

Explanation: Microsoft Defender for Storage provides security monitoring and threat detection for supported storage workloads. Its capabilities include identifying suspicious activities and, where configured and supported, scanning uploaded blobs for malware. SQL auditing applies to SQL services, while RBAC and resource locks do not provide malware detection.


Question 11 — Azure SQL auditing

A security operations team needs to investigate who accessed an Azure SQL Database, what database activities occurred, and when suspicious operations took place. The team wants to query the audit records centrally alongside other security events.

Which configuration best meets the requirement?

A. Enable Transparent Data Encryption (TDE) and use its encryption status as an audit trail.

B. Enable a database resource lock and review Azure Resource Health.

C. Configure Azure SQL auditing to send audit events to a suitable destination, such as Log Analytics, and query the collected records.

D. Enable SQL authentication for every user and rely on application logs alone.

Correct answer: C

Explanation: Azure SQL auditing records selected database events and can send audit data to supported destinations, including Log Analytics. Central collection enables investigation and correlation with other security information. TDE protects data at rest; it does not replace activity auditing.


Question 12 — Troubleshoot network security rules

A virtual machine cannot receive traffic from an approved application subnet. The network team believes an NSG rule allows the traffic, but the connection still fails. The team wants to determine which network security rules are effectively applied to the VM’s network interface.

Which tool should the team use first?

A. Microsoft Defender External Attack Surface Management.

B. Azure Network Watcher IP flow verify or effective security rules, selecting the appropriate feature to test the traffic or inspect the applied rules.

C. Azure Key Vault diagnostic settings.

D. Microsoft Purview Data Security Posture Management.

Correct answer: B

Explanation: Network Watcher provides diagnostic tools for Azure network connectivity. IP flow verify can determine whether a particular traffic flow is allowed or denied and identify the relevant rule. Effective security rules show the aggregate rules applied to a network interface. The choice depends on whether the team needs a specific flow decision or a complete view of applied rules.


Question 13 — Centralized outbound traffic inspection

An organization has several application subnets. It must centrally inspect outbound traffic and restrict access to specified fully qualified domain names (FQDNs), including when applications use changing destination IP addresses. The solution should reduce duplicated outbound filtering rules across subnets.

Which service is the most appropriate?

A. Azure Network Security Groups alone.

B. Azure Private Link.

C. Azure Bastion.

D. Azure Firewall with suitable application rules and a routing design that directs the relevant outbound traffic through the firewall.

Correct answer: D

Explanation: Azure Firewall supports centralized traffic filtering, including application rules based on FQDNs, when the relevant traffic is routed through it. NSGs filter traffic using network-layer attributes such as IP addresses, ports, and protocols; they do not provide equivalent centralized FQDN-based application filtering. Private Link and Bastion solve different problems.


Question 14 — Private endpoint DNS

An application connects to an Azure SQL logical server through a private endpoint. The private endpoint has been created successfully, and the application can reach other resources in its virtual network. However, the SQL hostname still resolves to a public IP address.

What should the engineer investigate first?

A. Whether the appropriate Private DNS zone is configured, linked to the virtual network, and contains the expected private endpoint DNS records.

B. Whether the application has the Azure Owner role.

C. Whether Microsoft Defender for Servers is enabled.

D. Whether the SQL database has Transparent Data Encryption enabled.

Correct answer: A

Explanation: Private endpoint connectivity typically relies on DNS resolution to map the service hostname to the private endpoint’s IP address. A correctly configured private DNS zone and virtual network link are common requirements. Database encryption and VM security settings do not fix an incorrect DNS resolution path.


Question 15 — Azure SQL vulnerability assessment

A security engineer must identify potential database misconfigurations and vulnerabilities, review findings against security baselines, and track recommendations for remediation. The organization also wants to detect suspicious database activities.

Which approach best addresses both needs?

A. Use TDE for vulnerability discovery and NSGs for SQL auditing.

B. Use Azure resource locks to identify database vulnerabilities and Azure Policy to record each query.

C. Use Microsoft Defender for Databases for supported database threat protection and vulnerability-assessment capabilities, configuring the relevant settings and reviewing findings.

D. Enable public access to the database so that the security scanner can reach it from anywhere.

Correct answer: C

Explanation: Microsoft Defender for Databases provides supported database security capabilities, including threat detection and vulnerability-assessment functionality, depending on the database type and configuration. Findings help identify weaknesses and prioritize remediation. TDE protects data at rest, while resource locks and NSGs are not substitutes for database security assessment.


Section 3 — Secure compute


Question 16 — Azure VM Trusted Launch

A company wants to strengthen the boot integrity of supported Azure virtual machines. Its requirements include protection against bootkits and verification of the boot chain, together with a virtualized hardware root of trust for supported security scenarios.

Which configuration is the best fit?

A. Enable Trusted Launch with Secure Boot and virtual TPM (vTPM), after verifying that the VM size, image, and operating system support it.

B. Enable Azure Bastion and disable the VM’s operating system updates.

C. Enable Azure Disk Encryption and assume that it prevents bootkits.

D. Assign the VM a managed identity and remove all network security groups.

Correct answer: A

Explanation: Trusted Launch adds security features such as Secure Boot and vTPM for supported Azure VMs. Secure Boot helps prevent unauthorized boot components from loading, while vTPM provides a protected virtualized hardware trust capability. Disk encryption protects data at rest but does not provide the same boot-integrity controls.


Question 17 — Secure workload identity in AKS

An application running in Azure Kubernetes Service (AKS) must access a specific Azure Key Vault. The security team wants to avoid storing long-lived service principal credentials in Kubernetes secrets and wants the workload to obtain Microsoft Entra tokens using a federated identity configuration.

Which approach should the team use?

A. Place a subscription Owner credential in a Kubernetes secret and mount it into the pod.

B. Enable anonymous access to Key Vault and filter requests in application code.

C. Configure Microsoft Entra Workload ID for AKS, use the appropriate federated identity credential and Kubernetes service account, and grant the workload identity only the necessary Key Vault permissions.

D. Give every node in the cluster the same permanent client secret.

Correct answer: C

Explanation: Microsoft Entra Workload ID for AKS uses workload identity federation so Kubernetes workloads can authenticate to Microsoft Entra ID without managing long-lived application secrets. The federated credential links the Kubernetes service account identity to the Entra application or managed identity. Least-privilege permissions should then be granted to the identity for the required Key Vault operations.


Question 18 — Just-in-time VM access

A security review finds that administrators can connect to Azure virtual machines over RDP from broad source IP ranges at all times. The company wants to reduce exposure by opening management ports only when an authorized administrator requests access, for a limited duration and from an approved source.

Which control most directly meets this requirement?

A. Assign the VM the Security Reader role.

B. Enable a ReadOnly resource lock.

C. Configure an NSG rule that permanently allows RDP from the corporate network.

D. Enable and configure just-in-time (JIT) VM access through Microsoft Defender for Cloud, setting approved ports, source IP restrictions, and permitted access duration.

Correct answer: D

Explanation: JIT VM access reduces the time that management ports are exposed. A request can temporarily open the required port according to configured rules and duration limits. A permanently allowed NSG rule does not provide the same time-bound access model. JIT requirements and supported VM configurations should be verified before deployment.


Question 19 — Web Application Firewall (WAF)

A company hosts a public web application behind a supported Azure application delivery service. The security team wants to inspect incoming HTTP(S) requests and detect or block common web attacks, such as SQL injection and cross-site scripting, using managed rule sets.

Which control should the team configure?

A. An NSG that allows only TCP port 443.

B. A Web Application Firewall policy with an appropriate managed rule set, initially validating detection and false positives before enforcing blocking as appropriate.

C. Azure Disk Encryption on the web server’s operating system disk.

D. A private endpoint for the public-facing website that allows every internet client to connect privately.

Correct answer: B

Explanation: A WAF evaluates HTTP(S) traffic and can detect or block common web application attacks using managed rules and custom rules. An NSG filters network traffic but does not inspect requests for application-layer attack patterns in the same way. A staged rollout helps reduce false positives while establishing effective protection.


Question 20 — Secure API backends with Azure API Management

An organization publishes an API through Azure API Management (APIM). Clients must present Microsoft Entra access tokens, and APIM must reject requests when the token’s issuer, audience, or signature is invalid. The backend should receive only requests that pass the gateway’s validation policy.

Which approach is most appropriate?

A. Configure APIM policy-based JWT validation, such as validate-jwt or the applicable Entra-aware validation policy, with the expected issuer, audience, and signing-key configuration.

B. Place the token in a URL query string and let the backend decide whether to inspect it.

C. Enable anonymous access at APIM and use a network security group to validate token claims.

D. Assign all API callers the API Management service’s Contributor role.

Correct answer: A

Explanation: APIM policies can validate JWTs before forwarding requests to the backend. Validation should enforce the expected issuer and audience and verify the token using trusted signing keys. Tokens should be sent in the authorization header rather than exposed in URLs. Azure RBAC roles for managing APIM resources do not authenticate API consumers.


Question 21 — Enforce VM security configuration

A company needs to assess and enforce supported operating-system security settings on Azure VMs and Arc-enabled servers, such as required configuration values. The team wants configuration compliance and remediation capabilities rather than only network-level filtering.

Complete the statement:

Azure __________ can be used to audit and enforce supported machine configuration settings on applicable Azure and Arc-enabled machines.

A. Private Link

B. Network Watcher

C. Machine Configuration

D. Application Gateway

Correct answer: C — Machine Configuration

Explanation: Azure Machine Configuration provides capabilities to audit and enforce supported configuration settings on applicable machines, including Azure VMs and Arc-enabled servers. It can help assess compliance against configuration requirements and remediate supported deviations. Network Watcher and Private Link serve networking purposes, while Application Gateway provides application delivery capabilities.


Question 22 — Container security in Azure

An organization runs containerized applications in AKS. The security team wants to identify container-related risks, monitor supported runtime threats, and receive security recommendations through Microsoft’s cloud security platform.

Which solution is the most appropriate starting point?

A. Use Azure SQL auditing for all container events.

B. Enable the applicable Microsoft Defender for Containers plan in Microsoft Defender for Cloud and configure the required components and data collection for the desired protections.

C. Use Azure Policy alone as a replacement for container threat detection.

D. Enable a resource lock on the AKS cluster and assume that the lock prevents malicious activity inside containers.

Correct answer: B

Explanation: Microsoft Defender for Containers provides supported security capabilities for container environments, including recommendations and threat detection features. The exact coverage depends on the environment and configuration, so required components and data collection should be verified. Azure Policy can enforce supported configurations, but it does not replace runtime threat detection.


Question 23 — AI workload protection

A team deploys an AI application using Microsoft Foundry. The application must reduce the risk of unsafe model outputs and prompt-based attacks, and the security team wants to apply configurable safeguards to model interactions. The team also wants centralized security visibility for the AI workload.

Which approach best meets the requirements?

A. Use an NSG as the only AI safety control and allow all model requests.

B. Store all prompts and API keys in source code so that developers can debug issues quickly.

C. Enable Azure Backup and rely on recovery points to prevent unsafe AI responses.

D. Configure appropriate Microsoft Foundry guardrails and content-safety controls, and use the relevant Microsoft Defender for Cloud AI workload protection capabilities for security visibility and threat detection.

Correct answer: D

Explanation: Foundry guardrails and content-safety controls help mitigate specified risks in model inputs and outputs, depending on the model, configuration, and supported features. Microsoft Defender for Cloud’s AI security capabilities provide additional workload protection and visibility. No single guardrail guarantees that all harmful or adversarial interactions will be prevented, so controls should be tested and layered.


Section 4 — Manage and monitor security posture


Question 24 — Defender for Cloud attack path analysis

Microsoft Defender for Cloud identifies a public-facing virtual machine with a vulnerability. The VM has a managed identity with access to a storage account containing sensitive data. The security team wants to understand whether the exposed VM could provide a path to the sensitive storage resource and prioritize remediation based on the potential impact.

Which capability is most appropriate?

A. Microsoft Sentinel’s data retention settings.

B. Azure SQL auditing.

C. Defender for Cloud’s attack path analysis and related cloud security posture management tools.

D. Azure Resource Manager deployment history alone.

Correct answer: C

Explanation: Defender for Cloud’s cloud security posture management capabilities can help identify attack paths that connect exposures, misconfigurations, identities, and sensitive resources. Attack path analysis supports prioritization based on potential risk and reachable assets. It complements, rather than replaces, vulnerability remediation and identity-permission reviews.


Question 25 — Ingest Common Event Format logs into Microsoft Sentinel

A company has a network security appliance that exports security events in Common Event Format (CEF). The SOC wants those events available in Microsoft Sentinel for analytics rules and incident investigation.

Which approach is most appropriate?

A. Configure the supported CEF ingestion architecture, including the required Linux-based log forwarder and Azure Monitor Agent setup, and enable the applicable Microsoft Sentinel data connector.

B. Install the Windows Event Forwarding collector on the network appliance and assume it can ingest CEF directly.

C. Enable Azure SQL auditing on the Sentinel workspace.

D. Create an Azure Policy assignment that converts CEF messages into Sentinel incidents.

Correct answer: A

Explanation: Microsoft Sentinel supports CEF ingestion using a supported log-forwarding architecture. The appropriate connector and agent configuration must be implemented so the appliance’s CEF events reach the workspace and can be queried. Windows Event Forwarding serves Windows event collection scenarios, while Azure Policy does not perform log ingestion or event conversion.


Question 26 — Collect Windows security events

An organization needs to collect Windows security events from servers into Microsoft Sentinel. The team wants to control which Windows events are collected and manage the collection configuration centrally through Azure Monitor.

Which approach is the best fit?

A. Use a private endpoint for each Windows event log.

B. Enable Microsoft Defender for Storage on every server.

C. Configure an Azure Firewall application rule to forward Windows events directly into Sentinel.

D. Configure the appropriate Azure Monitor Agent deployment and a Data Collection Rule (DCR) that specifies the Windows event channels or event selection required for collection.

Correct answer: D

Explanation: Azure Monitor Agent and Data Collection Rules are used to define and manage supported log collection. For Windows security events, the DCR specifies the event selection and destination configuration appropriate to the chosen collection method. Azure Firewall and Defender for Storage do not configure Windows event ingestion into Sentinel.


Question 27 — Automate incident handling in Microsoft Sentinel

Match each Microsoft Sentinel capability to its primary purpose.

CapabilityPrimary purpose
1. Analytics ruleA. Perform response actions through an automation workflow, such as notifying a team or invoking a supported remediation action
2. Automation ruleB. Detect suspicious patterns in collected data and generate alerts or incidents according to the rule configuration
3. PlaybookC. Apply incident-handling logic, such as assigning an incident, changing its status, or triggering a playbook based on configured conditions

Choose the correct mapping.

A. 1-C, 2-B, 3-A

B. 1-B, 2-C, 3-A

C. 1-A, 2-C, 3-B

D. 1-B, 2-A, 3-C

Correct answer: B

Explanation: Analytics rules identify suspicious activity and can generate alerts or incidents. Automation rules apply incident-management logic and can trigger playbooks. Playbooks are workflows, commonly built with Azure Logic Apps, that carry out response or integration actions. Together, these capabilities help automate detection and incident handling.


Question 28 — Discover external attack surface exposure

A company suspects that teams have deployed internet-facing assets outside the approved cloud inventory. The security team needs to discover externally visible assets associated with the organization, including assets that might not be registered in its current Azure resource inventory.

Which service is designed for this purpose?

A. Azure Network Watcher.

B. Microsoft Defender for Storage.

C. Microsoft Defender External Attack Surface Management (Defender EASM).

D. Microsoft Entra Privileged Identity Management.

Correct answer: C

Explanation: Microsoft Defender EASM helps discover and inventory an organization’s externally exposed digital assets and identify potential external exposure and vulnerabilities. It can help uncover assets that are not evident from the organization’s known cloud resource inventory. Network Watcher focuses on Azure network diagnostics, and PIM manages privileged access.


Question 29 — Microsoft Security Copilot access control

A security team is deploying Microsoft Security Copilot. Analysts should be able to use the capabilities and data sources appropriate to their assigned responsibilities, but they must not automatically receive administrative control over the workspace, all plugins, or all agents.

What is the best administrative approach?

A. Configure Security Copilot workspace access and roles using least privilege, and review the permissions and enablement of plugins and agents before making them available.

B. Give every analyst the same highest-privilege administrative role to simplify support.

C. Share a single administrator account among the analysts.

D. Disable all role-based access controls and rely on the analysts’ job titles.

Correct answer: A

Explanation: Security Copilot access should be governed through the applicable workspace roles, permissions, and controls for plugins and agents. Least privilege helps ensure that analysts can perform their assigned tasks without automatically receiving broad administrative capabilities. Shared accounts and blanket administrative access undermine accountability and increase risk.


Question 30 — Identify AI-related data exposure risks

A company is rolling out AI assistants that can search organizational content. The security team is concerned that sensitive information may be overexposed through existing permissions, shared content, or AI-enabled access paths. The team wants to identify and assess AI-related data security risks across supported data sources.

Which solution is most appropriate?

A. Use Azure Bastion to identify overshared documents.

B. Use Microsoft Purview Data Security Posture Management (DSPM) for AI to assess relevant AI-related data risks and help identify oversharing or sensitive-data exposure in supported environments.

C. Use an Azure SQL resource lock to prevent AI assistants from reading documents.

D. Use Microsoft Defender External Attack Surface Management to inspect all internal document permissions.

Correct answer: B

Explanation: Microsoft Purview DSPM for AI helps organizations assess data security risks associated with AI usage, including relevant sensitive-data exposure and oversharing risks in supported environments. Findings should guide remediation of permissions, data controls, and AI access paths. Bastion provides secure VM connectivity, while EASM focuses on external attack surface discovery.


Exam 3 — Final review

Use your results to identify the topics that need more practice before attempting Exam 4.

Skill domainQuestionsMain areas tested
Identity, access, and governance1–7PIM, Key Vault, agent identity, Conditional Access, Azure Policy, RBAC, OAuth consent, backup protection
Storage, databases, and networking8–15Private Link, SAS, Defender for Storage, SQL auditing, Network Watcher, Azure Firewall, private DNS, database protection
Secure compute16–23Trusted Launch, AKS workload identity, JIT access, WAF, API security, Machine Configuration, container security, AI guardrails
Security posture and monitoring24–30Attack path analysis, Sentinel ingestion, Windows event collection, automation, EASM, Security Copilot, Purview DSPM for AI

Suggested review strategy: For any question you missed, focus on the difference between controls that prevent access, controls that detect risk, and tools that investigate or remediate issues. Many certification questions test whether you can select the right control for a specific requirement rather than simply recognize a product name.


Go to the SC-500 Exam Prep Hub main page

SC-500 Practice Exam #4

This practice exam is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.

Implementing End-to-End Security Controls for Cloud and AI Workloads


Section 1 — Manage identity, access, and governance


Question 1 — PIM activation and emergency access

A company has two requirements for subscription-level administrators:

  • Routine administration must use just-in-time privileged access with approval.
  • Emergency access must remain possible if the normal approval process is unavailable.

Which design best balances these requirements?

A. Assign every administrator permanent Owner access and monitor activity with Azure Activity Logs.

B. Use eligible PIM assignments with configured activation controls, and maintain separately governed emergency-access accounts with carefully restricted, monitored credentials and procedures.

C. Replace all privileged assignments with Reader access and grant Owner access manually when needed.

D. Use Azure Policy to require approval before each Azure Resource Manager operation.

Correct answer: B

Explanation: PIM reduces standing privilege by making eligible roles activatable under defined conditions. Emergency-access arrangements should be designed separately so that an outage or unavailable approver does not prevent recovery. Those accounts require strict protection, monitoring, and periodic validation. Azure Policy does not provide per-operation approval for every management-plane action.


Question 2 — Key Vault network and authorization controls

An application hosted in a virtual network must retrieve a secret from Azure Key Vault. The company requires that:

  • The vault is not reachable through its public network endpoint.
  • Only the application identity can read the required secret.
  • Administrators can audit vault access.

Which design best satisfies all three requirements?

A. Enable public network access, allow all Azure services through the firewall, and give the application Contributor access.

B. Use a Key Vault resource lock and store the secret in the application’s configuration file.

C. Assign the Key Vault Administrator role to the application and disable diagnostic logging.

D. Configure a private endpoint and private DNS, disable public network access after validating connectivity, grant the application identity the required secret-read permission, and enable diagnostic logging to a suitable destination.

Correct answer: D

Explanation: These are separate control layers. Private Link and DNS provide private connectivity; disabling public network access removes the public access path. Key Vault data-plane permissions restrict which identity can read secrets, while diagnostic settings support audit and investigation. A resource lock does not provide these controls.


Question 3 — Infrastructure as code security

A development team deploys Azure infrastructure through Bicep templates and a CI/CD pipeline. Security requirements state that templates containing known security issues should be identified before deployment, and that noncompliant resource configurations must be blocked from production.

Which approach best meets these requirements?

A. Integrate supported infrastructure-as-code scanning into the development pipeline and enforce applicable Azure Policy controls during deployment.

B. Enable Microsoft Defender for Servers after all resources have been deployed.

C. Assign the deployment identity the Owner role and rely on developers to review templates manually.

D. Apply a CanNotDelete lock to the resource group before each deployment.

Correct answer: A

Explanation: Scanning templates in the development pipeline can identify security problems before resources are deployed. Azure Policy can enforce applicable resource requirements at deployment time, depending on the policy definition and effect. These controls complement each other: template scanning identifies issues early, while policy enforcement helps prevent noncompliant deployments.


Question 4 — OAuth application permissions

A background application needs to read files from a designated SharePoint site without a signed-in user. The application currently requests broad Microsoft Graph application permissions. The security team wants to minimize the data the application can access.

What should the team do?

A. Convert all application permissions to delegated permissions, even though no user will be signed in.

B. Assign the application Global Administrator so it can access only the intended site.

C. Review the required application permissions and implement a supported site-scoped authorization approach, such as appropriately configured selected-site permissions, granting access only to the required site.

D. Enable user consent for all application permissions and allow the application to choose its own access scope.

Correct answer: C

Explanation: Application permissions allow an application to act without a signed-in user and can be broad if not restricted. For supported SharePoint and Microsoft Graph scenarios, selected-site permissions can restrict an application’s access to designated sites, subject to the relevant permission model and setup. Granting tenant-wide administrative access would violate least privilege.


Question 5 — Microsoft Entra agent identity security

An organization uses autonomous AI agents that obtain Microsoft Entra tokens to access internal APIs. The security team wants to block high-risk agent identities and ensure that new agents in an approved category receive the same policy automatically.

Which TWO actions best support these requirements?

A. Configure an applicable Conditional Access policy to block agent identities identified as high risk.

B. Create an Azure resource lock on each API and use it as the agent access policy.

C. Use supported custom security attributes to categorize agent identities and target the appropriate Conditional Access policy so matching future identities are covered.

D. Create a policy targeting all human users and assume it automatically includes every agent identity and agent user account.

Correct answers: A and C

Explanation: Conditional Access can block risky agent identities where the relevant capabilities and licensing are available. Supported custom security attributes can help target policies by agent category, including matching future identities. Agent identities and agent user accounts are distinct identity types, so a policy targeting one should not be assumed to cover the other. Conditional Access also does not replace authorization checks on the target API.


Question 6 — Managed identity and Key Vault access

A Function App needs to retrieve a database password from Azure Key Vault. The organization prohibits storing credentials in application settings and source code. The Function App should have no permission to create or delete secrets.

Which configuration is most appropriate?

A. Create a service principal with a client secret and store the secret in an encrypted application setting.

B. Assign the Function App the Key Vault Administrator role and rotate the database password monthly.

C. Use the Function App’s system-assigned managed identity and assign it Owner at the subscription scope.

D. Enable a managed identity for the Function App and grant it only the required Key Vault secret-read permission through the supported authorization model.

Correct answer: D

Explanation: Managed identities allow supported Azure resources to authenticate to Microsoft Entra-protected services without managing application credentials. A narrowly scoped secret-read permission meets the stated need while avoiding unnecessary create and delete permissions. Subscription-level Owner and Key Vault Administrator are excessive for this scenario.


Question 7 — Regulatory compliance versus security enforcement

A company must evaluate its Azure environment against a regulatory compliance standard and identify which security controls are not satisfied. It also needs to prevent newly deployed storage accounts from violating a mandatory configuration requirement.

Which combination is most appropriate?

A. Use Azure Activity Logs to generate regulatory compliance assessments and resource locks to enforce all storage configuration rules.

B. Use Microsoft Defender for Cloud’s regulatory compliance capabilities to assess control status, and Azure Policy to enforce the applicable storage configuration requirement.

C. Use Microsoft Sentinel analytics rules to configure storage account properties and Defender EASM to block deployments.

D. Use Azure Backup reports to assess every regulatory control and PIM to enforce storage encryption.

Correct answer: B

Explanation: Defender for Cloud’s regulatory compliance dashboard helps assess security posture against supported standards and track control status. Azure Policy can audit, deny, or remediate supported resource configurations depending on the policy effect and resource provider support. Compliance assessment and configuration enforcement are related but distinct functions.


Section 2 — Secure storage, databases, and networking


Question 8 — Storage access for an external partner

A company must allow an external partner to upload files to one Azure Blob Storage container for the next two hours. The partner must not read existing blobs, list other containers, or access the storage account key.

Which approach best meets the requirement?

A. Assign the partner Storage Account Contributor at the subscription scope.

B. Enable anonymous read/write access on the storage account and disable it after two hours.

C. Issue a short-lived SAS restricted to the required container and create/write operations, with an appropriate validity period and secure distribution; use a user delegation SAS where supported and appropriate.

D. Give the partner the storage account key and request that it be deleted after the transfer.

Correct answer: C

Explanation: A narrowly scoped, short-lived SAS can grant only the required operations on the specified resource. A user delegation SAS uses Microsoft Entra credentials to obtain a user delegation key rather than relying on the storage account key. Because SAS tokens are bearer credentials, they must be protected and their validity and permissions kept as limited as practical.


Question 9 — Azure SQL private connectivity

An Azure SQL Database has a private endpoint. A workload in a connected on-premises network still resolves the SQL server hostname to a public IP address. The private endpoint itself reports as approved.

Which action is the best next step?

A. Verify the private DNS zone records and configure the appropriate DNS forwarding or resolution path so the on-premises workload resolves the SQL hostname to the private endpoint address.

B. Enable Transparent Data Encryption on the database.

C. Assign the on-premises server the SQL Server Contributor role.

D. Disable SQL auditing to prevent DNS conflicts.

Correct answer: A

Explanation: A private endpoint does not automatically ensure that every connected network resolves the service hostname to its private IP address. The DNS architecture must be configured for the client environment, including appropriate private DNS records and forwarding or resolver configuration. TDE and auditing do not resolve network names.


Question 10 — Azure Firewall versus NSGs

A company needs to enforce outbound access to approved internet FQDNs from multiple Azure subnets. It also needs centralized inspection and consistent policy management rather than separate FQDN rules on each subnet.

Which solution is most appropriate?

A. Configure a separate NSG on every subnet with rules for the domain names.

B. Use Azure Bastion and allow all outbound traffic from each VM.

C. Configure a private endpoint for every internet destination.

D. Route relevant outbound traffic through Azure Firewall and configure suitable application rules for the approved FQDNs, with a routing design that ensures traffic traverses the firewall.

Correct answer: D

Explanation: Azure Firewall provides centralized network traffic filtering, including FQDN-based application rules for supported protocols and configurations. Routing is essential: traffic that bypasses the firewall will not be inspected by it. NSGs primarily filter based on network attributes such as source and destination IP addresses, ports, and protocols.


Question 11 — Azure SQL security at rest and in use

Match each Azure SQL security control to its primary purpose.

ControlPrimary purpose
1. Transparent Data Encryption (TDE)A. Records selected database events for auditing and investigation
2. SQL auditingB. Helps identify potential database vulnerabilities and insecure configurations
3. Microsoft Defender for Databases vulnerability assessmentC. Encrypts supported database data at rest
4. Microsoft Entra authenticationD. Authenticates users or applications using Microsoft Entra identity

Choose the correct mapping.

A. 1-A, 2-C, 3-D, 4-B

B. 1-C, 2-A, 3-B, 4-D

C. 1-D, 2-B, 3-A, 4-C

D. 1-C, 2-D, 3-B, 4-A

Correct answer: B

Explanation: TDE protects database data at rest. SQL auditing records configured database events. Defender for Databases vulnerability assessment helps identify potential weaknesses and misconfigurations. Microsoft Entra authentication provides an identity-based authentication mechanism. These controls are complementary, not interchangeable.


Question 12 — Network security group troubleshooting

A virtual machine can connect to an application server, but connections to a database subnet fail. An NSG is associated with both a subnet and a network interface. The team needs to determine whether the intended source-to-destination flow is denied by an effective rule.

Which action should the engineer take first?

A. Enable Defender for Storage on the database subnet.

B. Create a ReadOnly lock on the virtual network.

C. Use Azure Network Watcher’s IP flow verify for the relevant source, destination, protocol, and port, then inspect effective security rules if further analysis is needed.

D. Enable SQL auditing and use it to identify the NSG rule that blocked the packet.

Correct answer: C

Explanation: IP flow verify tests a specified flow and reports whether it is allowed or denied and which security rule determines the result. Effective security rules provide a broader view of rules applied to the network interface. SQL auditing records database activity; it does not identify an NSG rule that prevented a connection.


Question 13 — Protect storage from suspicious file uploads

A storage account receives files from multiple external partners. The security team wants to detect suspicious storage activity and scan uploaded blobs for malware where supported. The team does not want to expose the files publicly.

Which approach is best?

A. Enable anonymous access so Defender can inspect every file.

B. Assign every partner the Storage Blob Data Owner role.

C. Configure an Azure resource lock and assume it will detect malicious files.

D. Configure Microsoft Defender for Storage’s applicable threat detection and malware-scanning capabilities, while separately enforcing appropriate storage authorization and network restrictions.

Correct answer: D

Explanation: Defender for Storage offers security monitoring and, where supported and configured, malware scanning for uploaded blobs. Storage authorization and network controls still determine who can access the data and from where. Malware scanning does not require making blobs public, and a resource lock does not detect malicious content.


Question 14 — Azure VPN Gateway and Microsoft Entra Private Access

A company has two different connectivity requirements:

  • Connect an on-premises network to an Azure virtual network using a site-to-site network tunnel.
  • Allow individual remote employees to access specific private enterprise applications without giving them broad network access.

Which mapping is most appropriate?

A. Use Azure VPN Gateway for the site-to-site connection, and Microsoft Entra Private Access for identity-aware access to supported private applications.

B. Use Azure Bastion for the site-to-site tunnel, and an NSG for user identity verification.

C. Use Azure Private Link for the site-to-site tunnel, and Azure Firewall for all employee authentication.

D. Use Microsoft Entra Private Access for the virtual network gateway, and Azure Policy to authenticate employees.

Correct answer: A

Explanation: Azure VPN Gateway provides VPN connectivity, including site-to-site connectivity between networks. Microsoft Entra Private Access supports identity-aware access to supported private resources and applications. Bastion is designed for secure VM management connectivity, while NSGs and Azure Policy do not replace identity-aware application access.


Question 15 — Key Vault secret detection and remediation

A security engineer discovers that a developer accidentally committed a production credential to a source repository. The company wants to identify exposed secrets across supported cloud resources and reduce the chance that discovered credentials can be abused.

Which response is most appropriate?

A. Apply a CanNotDelete lock to the repository’s resource group.

B. Use Defender CSPM’s supported secret-scanning capabilities to identify relevant exposures, then rotate or revoke the exposed credential and remediate its storage location.

C. Enable TDE on all SQL databases and consider the incident resolved.

D. Disable all Key Vault diagnostic logs to prevent the secret from appearing in monitoring systems.

Correct answer: B

Explanation: Supported secret-scanning capabilities in Defender CSPM can help identify exposed credentials in applicable environments. Detection is only the first step: a leaked credential should be treated as compromised, rotated or revoked, and removed from inappropriate locations. Resource locks and database encryption do not invalidate an exposed secret.


Section 3 — Secure compute


Question 16 — Protecting a virtual machine’s boot chain

A security baseline requires supported Azure VMs to verify boot components and provide a virtualized hardware root of trust. The baseline also requires the organization to validate whether a VM image and size support these features before rollout.

Which approach best meets the requirement?

A. Enable JIT VM access and treat it as a replacement for boot integrity.

B. Enable Azure Disk Encryption alone.

C. Deploy supported VMs with Trusted Launch, enable Secure Boot and vTPM as appropriate, and validate compatibility before deployment.

D. Assign the VM a managed identity and enable a resource lock.

Correct answer: C

Explanation: Trusted Launch provides supported VM security features such as Secure Boot and vTPM. Secure Boot helps prevent unauthorized boot components from loading, while vTPM supports virtualized hardware-root-of-trust scenarios. Disk encryption and JIT access protect different parts of the VM security posture.


Question 17 — Disk encryption and key management

A company must protect data stored on supported VM disks and maintain control over the keys used for the selected encryption design. The security team also requires access to keys to be restricted and audited.

What should the engineer do?

A. Select an appropriate supported VM disk-encryption design, configure the required key management through the supported service, and apply least-privilege access and monitoring to the keys.

B. Enable a network security group and assume that all disk data is encrypted.

C. Give all VM administrators unrestricted Key Vault access to simplify recovery.

D. Disable encryption and rely on storage-account firewall rules.

Correct answer: A

Explanation: Disk encryption protects data at rest, while the selected encryption method determines how keys are managed. Key access should be restricted to required identities and monitored. The exact configuration depends on the VM, operating system, disk type, and supported encryption method; an NSG is not a disk-encryption control.


Question 18 — Secure access to Azure VMs

A security policy prohibits public IP addresses on management VMs. Administrators must connect to Windows and Linux VMs over RDP or SSH through the Azure portal or supported client workflows without exposing those management ports directly to the internet.

Which solution is most appropriate?

A. Allow inbound RDP and SSH from all IP addresses but require strong passwords.

B. Assign all administrators permanent Contributor access to the subscription.

C. Enable public IP addresses on every VM and use Azure Policy to record connections.

D. Deploy Azure Bastion in the appropriate virtual network design and restrict direct inbound management access to the VMs.

Correct answer: D

Explanation: Azure Bastion provides secure RDP and SSH connectivity to supported VMs without requiring a public IP address on each target VM. Direct inbound management ports should be restricted so the Bastion path is the intended access route. Bastion does not replace identity governance or OS-level security.


Question 19 — Azure Machine Configuration

A security team wants to assess supported operating-system settings on Azure VMs and Arc-enabled servers against required configurations. It also wants to enforce supported settings and track compliance.

Complete the statement:

Azure __________ can audit and enforce supported machine configuration settings.

A. Network Watcher

B. Machine Configuration

C. Private Link

D. Azure Firewall Manager

Correct answer: B — Machine Configuration

Explanation: Azure Machine Configuration supports auditing and enforcement of supported machine settings on applicable Azure and Arc-enabled machines. It can help detect configuration drift and maintain compliance with defined requirements. The other services focus on network diagnostics, private connectivity, or firewall management.


Question 20 — AI Gateway governance

A company has several AI applications calling models in Microsoft Foundry. It wants to centralize governance of model traffic, apply supported access restrictions, and monitor usage for signs of misuse rather than implementing separate gateway controls in every application.

Which approach is most appropriate?

A. Place a resource lock on every model deployment.

B. Configure only Microsoft Purview retention policies and assume they enforce runtime model access.

C. Configure the applicable AI Gateway in Microsoft Foundry, apply its supported access controls and monitoring, and ensure the applications route model traffic through the governed gateway.

D. Allow direct model access from every application and rely exclusively on Azure Activity Logs.

Correct answer: C

Explanation: AI Gateway provides a centralized approach to governing and monitoring AI model traffic. Its supported access restrictions and monitoring help apply consistent controls. Applications that bypass the gateway will not receive gateway-level enforcement, so the architecture must direct relevant traffic through it.


Question 21 — Copilot Studio agent protection

An organization deploys Copilot Studio agents that can interact with users and organizational data. The security team wants supported real-time protection to identify potentially risky interactions and help prevent harmful or malicious content from being processed.

Which approach is most appropriate?

A. Disable all authentication for the agents so that the protection service can inspect every request.

B. Use an Azure resource lock on the agent environment and assume it blocks prompt injection.

C. Use SQL auditing as the primary control for agent conversations.

D. Configure the applicable Microsoft Defender protection for Copilot Studio agents and validate the supported real-time protection settings, alongside appropriate identity and data-access controls.

Correct answer: D

Explanation: The relevant Defender capabilities can provide supported real-time protection for Copilot Studio agents. The available protection depends on the environment, configuration, and supported features. Identity permissions and data controls remain important because content inspection alone cannot eliminate all agent risks.


Question 22 — Managed identity in Azure Functions

An Azure Function must retrieve a secret from Key Vault and write results to a specific blob container. The organization wants to avoid credentials in code and minimize the blast radius if the Function is compromised.

Which design is best?

A. Use one shared service principal with subscription-level Owner access for both services.

B. Use a managed identity for the Function and grant only the required Key Vault secret-read and container-scoped storage data permissions, where supported.

C. Store the storage account key and Key Vault secret in the same environment variable.

D. Make the container public and remove the Function’s identity.

Correct answer: B

Explanation: Managed identities avoid storing application credentials. Separate, narrowly scoped permissions for Key Vault and Blob Storage reduce the impact of compromise. The identity should receive only the required data-plane permissions, not broad subscription management rights.


Question 23 — AI guardrails and data security

A team is deploying a generative AI application. It must reduce unsafe model responses and limit the risk that the model exposes sensitive organizational data. The team also wants visibility into AI-related security risks.

Which TWO measures address distinct parts of this requirement?

A. Configure appropriate model guardrails and content-safety controls for supported input and output risks.

B. Give the model identity broad read access to every SharePoint site so it can answer more questions.

C. Use a resource lock as the sole control for prompt injection and data leakage.

D. Use Microsoft Purview DSPM for AI and applicable Defender for Cloud AI security capabilities to identify and assess relevant data exposure and AI workload risks.

Correct answers: A and D

Explanation: Guardrails and content-safety controls can help mitigate specified unsafe input and output patterns. Purview DSPM for AI and Defender for Cloud’s applicable AI security capabilities provide complementary visibility into data exposure and AI workload risks. Neither makes broad data permissions safe, and no single safeguard guarantees prevention of all prompt-injection or data-leakage scenarios.


Section 4 — Manage and monitor security posture


Question 24 — Microsoft Sentinel data collection architecture

Match each collection method to the most appropriate description.

Collection methodDescription
1. Windows event collection with Azure Monitor AgentA. Ingest supported appliance logs formatted in a common security-event format using the supported forwarding architecture
2. CEF ingestionB. Collect selected Windows event channels or events using configured data collection
3. Syslog ingestionC. Collect supported syslog messages from configured Linux-based log sources or forwarders

Choose the correct mapping.

A. 1-A, 2-C, 3-B

B. 1-C, 2-B, 3-A

C. 1-B, 2-A, 3-C

D. 1-B, 2-C, 3-A

Correct answer: C

Explanation: Azure Monitor Agent and Data Collection Rules support Windows event collection and other supported collection scenarios. CEF and syslog ingestion use supported forwarding architectures, often involving a Linux-based log forwarder and the relevant Sentinel connector configuration. The data source’s format and collection requirements determine the correct setup.


Question 25 — Microsoft Defender for Cloud multicloud posture

An organization uses Azure and another cloud provider. Its security team wants a consolidated view of security posture, applicable recommendations, and supported workload protection across environments.

Which approach is most appropriate?

A. Connect the supported multicloud environment to Microsoft Defender for Cloud using the appropriate cloud connector and configuration, then enable the relevant posture and workload-protection capabilities.

B. Install Azure Bastion in the other cloud and assume it imports all security findings.

C. Create a single Azure Policy assignment and assume it governs resources in every cloud provider without a connector or supported integration.

D. Export only Azure Activity Logs and treat them as a complete view of all cloud posture risks.

Correct answer: A

Explanation: Defender for Cloud supports multicloud security posture and workload protection through supported connectors and configuration. Coverage depends on the cloud provider, plan, and enabled capabilities. Azure Policy alone does not automatically govern all resources in another cloud provider, and activity logs do not provide a complete security posture assessment.


Question 26 — Microsoft Defender Vulnerability Management

A security team needs to identify vulnerable software on supported Azure VMs, prioritize findings, and track remediation. The team does not simply need to confirm that the VMs are reachable or that network rules are configured.

Which solution is the best fit?

A. Azure Network Watcher.

B. Azure Resource Health.

C. Azure Private DNS.

D. Configure the applicable Microsoft Defender for Servers and Defender Vulnerability Management capabilities, then review supported vulnerability findings and remediation recommendations.

Correct answer: D

Explanation: Defender for Servers and the applicable vulnerability-management capabilities help identify software vulnerabilities and prioritize remediation on supported machines. Network Watcher diagnoses network behavior, Resource Health reports service and resource availability, and Private DNS provides name resolution.


Question 27 — Sentinel automation and playbooks

A SOC wants to automatically assign newly generated incidents to the correct team based on incident properties. For incidents matching a high-priority condition, it also wants to invoke a workflow that notifies responders and performs supported response actions.

Which configuration is most appropriate?

A. Use an Azure Policy assignment to assign Sentinel incidents and configure a resource lock to execute the workflow.

B. Configure a Sentinel automation rule for the incident-handling logic and use a playbook for the required workflow actions.

C. Use a Data Collection Rule to assign incidents and an NSG to send notifications.

D. Use Defender EASM to classify every Sentinel incident and directly run Azure Backup.

Correct answer: B

Explanation: Sentinel automation rules can apply incident-management logic, such as assignment and status changes, based on configured conditions. Playbooks, commonly implemented using Azure Logic Apps, execute workflows such as notifications or supported response actions. The automation rule and playbook complement each other.


Question 28 — Attack path versus individual recommendation

Defender for Cloud reports several findings:

  • A virtual machine is publicly accessible.
  • The VM has a vulnerable software package.
  • Its managed identity can access a sensitive storage resource.

The security team needs to understand how these conditions might combine into a path to a sensitive resource, rather than treating every finding independently.

Which capability should the team use?

A. Microsoft Sentinel workspace retention settings.

B. Azure Resource Health.

C. Defender for Cloud attack path analysis and related cloud security posture management tools.

D. Azure Key Vault certificate renewal.

Correct answer: C

Explanation: Attack path analysis helps connect exposures, vulnerabilities, identity permissions, and reachable resources to reveal potentially significant risk chains. It helps prioritize remediation based on the relationships between findings. Individual recommendations remain useful, but they may not show the combined path to a sensitive asset.


Question 29 — Security Copilot plugins and workspace permissions

A company allows security analysts to use Microsoft Security Copilot to investigate incidents. Some plugins can access sensitive security data or perform actions in connected services. The security team wants to ensure analysts receive only the capabilities required for their responsibilities.

Which approach is best?

A. Give every analyst unrestricted access to all plugins and agents so that investigations are never delayed.

B. Share one Global Administrator account for all Security Copilot investigations.

C. Disable audit logging and use the analysts’ team membership as the only security control.

D. Configure workspace roles and access according to least privilege, and review plugin and agent permissions and enablement before making capabilities available.

Correct answer: D

Explanation: Security Copilot governance requires appropriate workspace access controls and review of connected plugins and agents. The permissions available to a plugin or agent affect what it can access or do, so these capabilities should be enabled and assigned deliberately. Shared privileged accounts and unrestricted access weaken accountability and increase risk.


Question 30 — Data retention and audit investigation

An organization uses Microsoft Sentinel and Log Analytics to investigate security incidents. A policy requires selected security logs to be retained for an extended period, while keeping the cost of frequently queried data under control. Investigators must still be able to retrieve retained records when necessary.

Which approach is most appropriate?

A. Delete all records after seven days and rely on incident summaries.

B. Configure appropriate table-level retention and, where suitable and supported, long-term retention or archive settings for the relevant data, validating the retrieval and query limitations.

C. Apply a ReadOnly lock to the Log Analytics workspace and assume the lock enforces retention.

D. Turn off data collection after an incident so that the existing records remain available indefinitely.

Correct answer: B

Explanation: Retention should be configured according to the applicable policy, data table, and supported Log Analytics retention options. Long-term retention or archive options can help reduce the cost of keeping data that is accessed less frequently, but retrieval and query behavior may differ from interactive analytics. Resource locks do not define log retention, and stopping collection does not guarantee indefinite retention.


Final preparation advice:

Across all four exams and exam topics, prioritize understanding why a control is appropriate and what it does not do. For example, encryption does not replace authorization, a security recommendation does not necessarily enforce a configuration, and a detection tool does not automatically remediate the underlying issue.


Go to the SC-500 Exam Prep Hub main page

SC-500 Practice Exam #1

This practice exam is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.

Implementing End-to-End Security Controls for Cloud and AI Workloads


Question 1 — Single Answer

Skill area: Manage identity, access, and governance

A company wants administrators to have access to privileged Azure roles only when they actually need them. Administrators should activate their privileges for a limited period and provide an appropriate justification.

Which Microsoft Entra capability should you implement?

A. Privileged Identity Management (PIM)
B. Microsoft Entra Password Protection
C. Microsoft Entra Domain Services
D. Application Proxy

Answer: A. Privileged Identity Management (PIM)

Explanation:
Microsoft Entra Privileged Identity Management (PIM) is designed to manage, control, and monitor access to important resources. It supports just-in-time access, activation requirements, time-limited privileged access, and auditing of privileged role usage.

The other options address different identity scenarios. Password Protection helps prevent weak passwords, Domain Services provides managed domain services, and Application Proxy provides access to on-premises applications.

PIM is specifically identified in the SC-500 study guide as a required capability.


Question 2 — Multiple Answer

Skill area: Manage identity, access, and governance

You are securing access to an Azure Key Vault.

Which two actions can help restrict access to the Key Vault?

A. Configure Key Vault networking/firewall settings
B. Assign appropriate permissions to users, groups, or managed identities
C. Enable Azure Bastion
D. Create a Microsoft Sentinel playbook

Answer: A and B

Explanation:
Key Vault security uses multiple layers.

  • A is correct: Key Vault firewall and networking controls can restrict which networks can reach the vault.
  • B is correct: Access to keys, secrets, and certificates must be controlled through appropriate authorization.
  • C is incorrect: Azure Bastion provides secure administrative access to VMs; it does not control Key Vault authorization.
  • D is incorrect: A Sentinel playbook can automate security operations but isn’t a Key Vault access-control mechanism.

The SC-500 study guide specifically includes deploying Key Vault, configuring access, firewall settings, and managing keys, secrets, and certificates.


Question 3 — Scenario — Single Answer

Skill area: Manage identity, access, and governance

A development team deploys Azure resources through infrastructure-as-code pipelines. Security requires that all storage accounts must use secure transfer and that resources must comply with organizational security requirements.

You want Azure to evaluate resources against these requirements and prevent noncompliant deployments where appropriate.

Which service should you use?

A. Microsoft Sentinel
B. Azure Policy
C. Azure Bastion
D. Microsoft Defender External Attack Surface Management

Answer: B. Azure Policy

Explanation:
Azure Policy allows organizations to define and enforce organizational standards for Azure resources. Policies can audit resources, deny noncompliant configurations, and support remediation.

This makes Azure Policy appropriate for enforcing governance requirements during infrastructure deployment.

Microsoft specifically includes Azure Policy and resource locks in the SC-500 governance objectives.


Question 4 — Fill in the Blank

Skill area: Manage identity, access, and governance

A developer needs an Azure application to access an Azure resource without storing a password, client secret, or certificate in application code.

The recommended identity capability is an Azure __________ identity.

A. guest
B. managed
C. external
D. federated

Answer: B. managed

Explanation:
Azure managed identities allow Azure resources to authenticate to supported services without developers having to manage credentials such as passwords or client secrets.

The SC-500 study guide specifically identifies implementation and configuration of managed identities for Azure resources as an exam objective.


Question 5 — Matching

Skill area: Manage identity, access, and governance

Match each security capability with its primary purpose.

CapabilityPurpose
1. PIMA. Authenticate applications without storing credentials
2. Managed identityB. Manage temporary privileged access
3. Conditional AccessC. Apply access decisions based on conditions
4. Azure PolicyD. Enforce organizational resource configuration standards

Answer

  • 1 → B
  • 2 → A
  • 3 → C
  • 4 → D

Explanation:

  • PIM controls privileged access and supports just-in-time activation.
  • Managed identities provide Azure resources with identities that can authenticate without application-managed secrets.
  • Conditional Access evaluates conditions such as user, device, location, risk, and application before granting access.
  • Azure Policy governs resource configurations and compliance.

These capabilities belong to different security layers, so understanding their boundaries is important for SC-500 scenario questions.


Question 6 — Scenario — Single Answer

Skill area: Manage identity, access, and governance

A company has a production Key Vault containing encryption keys and application secrets. Security wants applications to access the vault, but the vault should not be broadly reachable from the public internet.

Which control most directly addresses the network exposure requirement?

A. Azure Policy
B. Microsoft Entra PIM
C. Key Vault firewall/networking configuration
D. Microsoft Sentinel automation rules

Answer: C. Key Vault firewall/networking configuration

Explanation:
Authorization controls determine who can access Key Vault. Network controls determine where requests can originate from.

The requirement in this scenario specifically concerns network exposure, so Key Vault’s networking and firewall configuration is the appropriate control.


Secure Storage, Databases, and Networking

Question 7 — Single Answer

Skill area: Secure storage, databases, and networking

An organization wants to prevent anonymous access to data stored in Azure Blob Storage.

Which control should be reviewed first?

A. Azure Bastion
B. Storage account access configuration
C. Microsoft Sentinel automation rules
D. Azure Firewall Premium

Answer: B. Storage account access configuration

Explanation:
Azure Storage security includes configuring storage-account access settings and authorization mechanisms.

The SC-500 storage objectives include implementing security and managing access for Azure Storage.

Azure Firewall and Bastion solve different networking and administrative-access problems.


Question 8 — Multiple Answer

Skill area: Secure storage, databases, and networking

A security engineer wants to reduce public network exposure for an Azure PaaS service.

Which two technologies can be used to provide private connectivity?

A. Azure Bastion
B. Azure Private Link
C. Private endpoints
D. Microsoft Entra PIM

Answer: B and C

Explanation:
Azure Private Link provides private connectivity to Azure PaaS services through private endpoints.

A private endpoint provides a private IP address in a virtual network that maps to the supported service.

Bastion is intended for secure RDP/SSH access to VMs, while PIM manages privileged identity access.

The SC-500 networking objectives explicitly include eliminating public network exposure of Azure PaaS services using Private Link.


Question 9 — Scenario — Single Answer

Skill area: Secure storage, databases, and networking

An organization has several Azure VNets containing application, database, and management workloads. The security team wants to isolate traffic between workload tiers and control which network flows are allowed.

Which capability should form part of the network segmentation design?

A. Microsoft Purview Audit
B. Azure Key Vault certificates
C. Network security groups (NSGs)
D. Microsoft Defender Vulnerability Management

Answer: C. Network security groups (NSGs)

Explanation:
NSGs provide network traffic filtering for Azure resources and subnets. They can be used as part of a segmentation strategy to control allowed inbound and outbound traffic.

The SC-500 networking objectives include segmenting and isolating Azure workloads using network security controls.


Question 10 — Multiple Answer

Skill area: Secure storage, databases, and networking

Which two capabilities are directly associated with securing Azure SQL databases?

A. Auditing
B. Microsoft Defender External Attack Surface Management
C. Azure Bastion
D. Microsoft Defender for Databases

Answer: A and D

Explanation:
Azure SQL security includes auditing capabilities and Microsoft Defender for Databases.

Auditing provides records of database activity for security and compliance analysis. Defender for Databases provides additional security monitoring and threat protection capabilities.

The SC-500 study guide explicitly includes platform-level Azure SQL security, auditing for Azure SQL Database and SQL Managed Instance, and Defender for Databases.


Question 11 — Scenario — Single Answer

A company needs centralized inspection and enforcement of network traffic across several Azure networks.

Which Azure service is specifically designed to provide centralized network traffic inspection and filtering?

A. Azure Storage
B. Azure Key Vault
C. Azure Firewall
D. Microsoft Entra ID

Answer: C. Azure Firewall

Explanation:
Azure Firewall is a managed, centralized network security service that can inspect and control network traffic.

This is different from an NSG, which provides network traffic filtering at the subnet or network-interface level.

The SC-500 networking learning path specifically covers centralizing and enforcing traffic inspection using Azure Firewall.


Question 12 — Matching

Skill area: Secure storage, databases, and networking

Match each technology with the scenario it most directly addresses.

TechnologyScenario
1. Azure FirewallA. Private connectivity to a PaaS resource
2. Private LinkB. Centralized network traffic inspection
3. VPN GatewayC. Encrypted connectivity between networks
4. Azure BastionD. Browser-based secure administration of Azure VMs

Answer

  • 1 → B
  • 2 → A
  • 3 → C
  • 4 → D

Explanation:
These services are frequently confused because they all participate in Azure security architectures.

  • Azure Firewall → centralized network traffic inspection
  • Private Link → private access to supported Azure services
  • VPN Gateway → encrypted VPN connectivity
  • Azure Bastion → secure RDP/SSH connectivity to VMs without exposing those VMs directly to the public internet

Question 13 — Scenario — Multiple Answer

A company stores sensitive business files in Azure Storage. Security wants to strengthen protection against malware and suspicious activity involving the storage environment.

Which two actions are appropriate?

A. Enable Microsoft Defender for Storage
B. Configure appropriate storage access controls
C. Deploy Azure Bastion into the storage account
D. Replace the storage account with Azure SQL Database

Answer: A and B

Explanation:
Security should be layered.

  • Microsoft Defender for Storage provides additional security monitoring and threat protection for Azure Storage.
  • Storage access controls limit who and what can access the data.

Bastion isn’t a storage-security mechanism, and moving the workload to SQL Database is not inherently a security control.


Question 14 — Fill in the Blank

Skill area: Secure storage, databases, and networking

To eliminate public network exposure for a supported Azure PaaS resource while allowing access from a virtual network, configure an Azure __________ endpoint.

A. service
B. public
C. private
D. management

Answer: C. private

Explanation:
A private endpoint provides a private IP address in an Azure virtual network for supported Azure services. This enables private connectivity rather than requiring clients to access the service through its public endpoint.

Private Link and private endpoints are specifically included in the SC-500 networking objectives.


Secure Compute

Question 15 — Scenario — Single Answer

Skill area: Secure compute

A company runs Azure VMs containing sensitive workloads. Security wants protection against boot-level attacks and wants the VM to use a virtual Trusted Platform Module.

Which capability should you configure?

A. Microsoft Sentinel
B. Azure Policy only
C. Azure Bastion
D. Trusted Launch

Answer: D. Trusted Launch

Explanation:
Azure Trusted Launch provides enhanced VM security features including Secure Boot and vTPM, along with integrity monitoring capabilities.

The SC-500 study guide specifically identifies secure boot, vTPM, integrity monitoring, and VM security type as VM security objectives.


Question 16 — Multiple Answer

Skill area: Secure compute

Which two capabilities are associated with securing Azure virtual machines?

A. Just-in-time VM access
B. Disk encryption
C. Microsoft Purview DSPM
D. Azure Storage lifecycle management

Answer: A and B

Explanation:
Both capabilities directly protect Azure VMs:

  • JIT VM access restricts management-port exposure and provides access only when required.
  • Disk encryption protects data stored on VM disks.

The SC-500 VM objectives specifically include disk encryption and JIT VM access.


Question 17 — Scenario — Single Answer

A security administrator wants to allow administrators to connect to Azure VMs through RDP and SSH without assigning public IP addresses directly to the VMs.

Which service should be implemented?

A. Azure Firewall
B. Azure Bastion
C. Azure Private Link
D. Microsoft Sentinel

Answer: B. Azure Bastion

Explanation:
Azure Bastion provides secure RDP and SSH connectivity to Azure VMs over the Azure portal without requiring public IP addresses on the VMs.

Bastion is specifically included in the SC-500 secure-compute objectives.


Question 18 — Scenario — Multiple Answer

A company operates AI workloads and wants to identify security risks associated with AI identities and AI data.

Which two capabilities are relevant?

A. Azure Bastion
B. Azure Storage lifecycle policies
C. Microsoft Purview Data Security Posture Management (DSPM)
D. Microsoft Defender XDR analysis of Entra Agent ID risks

Answer: C and D

Explanation:
The SC-500 AI-security objectives include:

  • identifying AI data risks using Microsoft Purview DSPM
  • analyzing security risks and blast radius associated with Microsoft Entra Agent ID using Microsoft Defender XDR

These address different layers of AI security: data risk and identity-related risk.


Question 19 — Scenario — Single Answer

A company deploys generative AI applications using Microsoft Foundry. Security wants a centralized gateway through which AI model traffic can be inspected and controlled.

Which capability should be configured?

A. Azure Bastion
B. Microsoft Defender for Storage
C. AI Gateway in Azure API Management
D. Azure VPN Gateway

Answer: C. AI Gateway in Azure API Management

Explanation:
The SC-500 AI security objectives include configuring and deploying AI Gateway in Azure API Management for Microsoft Foundry.

The AI Gateway is intended to provide governance and security controls around AI traffic and interactions.


Question 20 — Matching

Skill area: Secure compute

Match the security control to its primary purpose.

ControlPurpose
1. Trusted LaunchA. Secure administrative access to VMs
2. Azure BastionB. Protect VM disks
3. JIT VM accessC. Protect VM boot process and establish hardware-backed trust
4. Disk encryptionD. Limit management-port exposure

Answer

  • 1 → C
  • 2 → A
  • 3 → D
  • 4 → B

Explanation:
Understanding these distinctions is important because SC-500 scenario questions may provide several controls that appear applicable.

Trusted Launch protects the VM boot chain and provides security capabilities such as Secure Boot and vTPM. Bastion provides administrative connectivity. JIT controls management-port exposure. Disk encryption protects data stored on disks.


Question 21 — Scenario — Single Answer

An organization runs containers in Azure Kubernetes Service. The security team wants to identify container vulnerabilities, misconfigurations, and runtime security risks.

Which service should be used?

A. Microsoft Defender for Containers
B. Azure Key Vault
C. Microsoft Defender EASM
D. Microsoft Purview Audit

Answer: A. Microsoft Defender for Containers

Explanation:
Microsoft Defender for Containers provides security capabilities for containerized workloads, including Kubernetes environments.

The SC-500 application-platform objectives specifically include detecting container risks using Defender for Containers and implementing security controls for AKS.


Manage and Monitor Security Posture

Question 22 — Single Answer

Skill area: Manage and monitor security posture

A security team wants to identify and prioritize security risks across Azure resources using posture information, recommendations, attack paths, and risk-based analysis.

Which Defender for Cloud capability should they primarily use?

A. Cloud Security Posture Management (CSPM)
B. Microsoft Sentinel playbooks
C. Azure Bastion
D. Microsoft Purview Audit

Answer: A. Cloud Security Posture Management (CSPM)

Explanation:
Defender CSPM provides posture visibility and capabilities for identifying and prioritizing cloud security risks. Current Microsoft training describes capabilities including Secure Score, attack-path analysis, and Cloud Security Explorer.


Question 23 — Scenario — Single Answer

A company has Azure, AWS, and GCP resources. The security team wants centralized security visibility across these environments through Microsoft Defender for Cloud.

What should the security team configure?

A. Microsoft Sentinel CEF collection only
B. Defender for Cloud multicloud connectors
C. Azure Private Link for every workload
D. Azure Bastion for every server

Answer: B. Defender for Cloud multicloud connectors

Explanation:
Microsoft Defender for Cloud supports connecting hybrid and multicloud environments, including AWS and GCP, to provide unified security visibility.

Microsoft’s current training specifically covers native AWS and GCP connectors and Azure Arc for hybrid servers.


Question 24 — Multiple Answer

Which two capabilities are associated with Microsoft Defender for Cloud’s Cloud Security Posture Management functionality?

A. Attack path analysis
B. Cloud Security Explorer
C. RDP access through Azure Bastion
D. Azure Storage lifecycle management

Answer: A and B

Explanation:
Current Microsoft Defender for Cloud CSPM training includes:

  • risk-prioritized security recommendations
  • attack-path analysis
  • Cloud Security Explorer
  • Secure Score-related posture capabilities

These help security teams identify and investigate cloud security risks.


Question 25 — Scenario — Single Answer

A security team wants to discover unknown internet-facing assets belonging to its organization, including assets that may not have been previously inventoried.

Which Microsoft security capability should they use?

A. Azure Machine Configuration
B. Microsoft Defender for Storage
C. Microsoft Entra PIM
D. Microsoft Defender External Attack Surface Management (EASM)

Answer: D. Microsoft Defender External Attack Surface Management (EASM)

Explanation:
Microsoft Defender EASM provides outside-in discovery of an organization’s external attack surface. Microsoft describes its recursive discovery capabilities as a way to find unknown internet-facing assets and surface vulnerabilities and security hygiene risks.


Question 26 — Scenario — Multiple Answer

A security operations team is implementing Microsoft Sentinel.

Which two activities are explicitly part of the SC-500 Sentinel objectives?

A. Configure syslog and CEF event collection
B. Configure Azure Bastion
C. Implement automation rules and playbooks
D. Configure Key Vault certificates

Answer: A and C

Explanation:
The SC-500 study guide specifically includes:

  • implementing and configuring syslog and CEF event collection
  • implementing automation rules and playbooks

Other Sentinel objectives include workspaces, Microsoft data connectors, Windows Security events using DCRs/WEF, custom log tables, retention, and querying Microsoft Purview Audit in Defender XDR.


Question 27 — Scenario — Single Answer

A Windows server sends security events to Microsoft Sentinel through Windows Event Forwarding (WEF). The organization wants to define which events are collected using centralized configuration.

Which Azure capability should be used?

A. Azure Firewall policy
B. Azure Machine Configuration
C. Data Collection Rules (DCRs)
D. Azure Policy initiatives

Answer: C. Data Collection Rules (DCRs)

Explanation:
Microsoft Sentinel supports collecting Windows Security events using Data Collection Rules, including scenarios involving Windows Event Forwarding.

The SC-500 study guide explicitly identifies collection of Windows Security events using DCRs, including WEF, as an exam objective.


Question 28 — Scenario — Multiple Answer

An organization is configuring Microsoft Security Copilot.

Which two areas are specifically included in the SC-500 Security Copilot objectives?

A. Configure Security Copilot workspaces
B. Manage permissions and roles in Security Copilot
C. Configure Azure Storage lifecycle management
D. Configure VM disk encryption

Answer: A and B

Explanation:
The SC-500 study guide identifies the following Security Copilot objectives:

  • configure workspaces
  • manage permissions and roles
  • enable and configure plugins
  • enable and configure Microsoft agents and Security Store agents

The Microsoft Security Copilot learning path also covers workspace segmentation, SCU capacity, workspace roles, plugins, and the lifecycle of Microsoft-built and partner-built agents.


Question 29 — Scenario — Single Answer

A security administrator wants to acquire a partner-built security agent for Microsoft Security Copilot. The organization has identified the agent in the Security Store and wants to complete the acquisition process.

Where are the partner agent’s purchase or subscription activities handled?

A. Only in Microsoft Sentinel
B. Only in Azure Policy
C. Microsoft Security Store
D. Only in Microsoft Entra ID

Answer: C. Microsoft Security Store

Explanation:
Microsoft Security Store is the security-focused storefront for discovering, acquiring, and deploying Microsoft and partner-built security solutions and agents.

For Security Copilot, Microsoft distinguishes between acquiring/subscribing to partner agents through Security Store and configuring/operating the agent through Security Copilot. Microsoft also notes that Security Copilot SCU consumption is separate from any partner-agent subscription fees.


Question 30 — Scenario — Multiple Answer

A company wants to improve its overall security posture for AI workloads in Defender for Cloud.

Which three capabilities are relevant to this goal?

A. Enable the AI workloads protection plan
B. Review insights in the Data & AI security dashboard
C. Assess AI posture using Cloud Security Posture Management
D. Use Azure Bastion to provide RDP access to the AI model

Answer: A, B, and C

Explanation:
Microsoft Defender for Cloud provides multiple layers of AI security. Current Microsoft training describes:

  • enabling the AI workloads plan
  • reviewing the Data & AI security dashboard
  • assessing AI security posture through CSPM
  • detecting runtime threats through Cloud Workload Protection
  • investigating incidents through Microsoft Defender XDR

Azure Bastion is unrelated to AI workload posture management and is primarily a secure administrative-access service for Azure VMs.


Key exam concepts reinforced in Practice Exam 1

A useful way to mentally organize the material is:

Identity → Data → Network → Compute → AI → Posture → Detection/Response

  • Identity: Entra ID, PIM, Conditional Access, managed identities
  • Secrets: Key Vault
  • Governance: Azure Policy, RBAC, resource locks
  • Data: Storage and Azure SQL security
  • Network: NSGs, Firewall, VPN, Private Link
  • Compute: VMs, Trusted Launch, disk encryption, Bastion, JIT
  • Application platform: AKS, containers, App Services, Functions, Logic Apps, API Management
  • AI: Agent ID, AI Gateway, Foundry guardrails, Purview DSPM, Defender for AI
  • Posture: Defender CSPM, Secure Score, attack paths, EASM
  • Security operations: Sentinel, DCRs, WEF, CEF, syslog, automation
  • Security Copilot: workspaces, roles, plugins, Microsoft agents, Security Store agents

Microsoft’s current training describes Defender for Cloud as providing posture management, attack-path analysis, Cloud Security Explorer, external attack-surface discovery, compliance assessment, workload protection, and vulnerability-management capabilities, making these particularly important concepts to distinguish from one another on scenario questions.


Go to the SC-500 Exam Prep Hub main page