Skip to main content

Last updated: May 2026

Practice Exam

SC-500Cloud and AI Security Engineer Associate

Test your knowledge with official exam-style questions

Questions25Passing700Exam time120 min

Questions and options are shuffled each attempt

Microsoft Certified: Cloud and AI Security Engineer Associate (beta)Practice Set 1: All Questions & Explanations

Full question text, answer options, and explanations for this practice set — a spoiler-free alternative is the interactive quiz above for scored, shuffled practice.

  1. 1. You are a security engineer at a financial services company. You need to ensure that users can only access Azure resources during business hours and only from compliant devices. Which Microsoft Entra ID feature should you configure?

    • A. Conditional Access policies(correct)
    • B. Microsoft Entra Privileged Identity Management (PIM)
    • C. Microsoft Entra External Identities
    • D. Microsoft Entra Identity Protection risk policies

    Explanation: Conditional Access policies in Microsoft Entra ID allow you to define conditions under which access is granted, including time-based restrictions and device compliance requirements. PIM manages privileged role assignments. External Identities handles guest users. Identity Protection risk policies respond to detected risks, not scheduling.

  2. 2. Your organization uses Azure resources and you need to ensure that a virtual machine can authenticate to Azure Key Vault without storing credentials in code or configuration files. Which solution should you implement?

    • A. A service principal with a client secret
    • B. A system-assigned managed identity for the virtual machine(correct)
    • C. An application registration with a certificate
    • D. A shared access signature (SAS) token stored in an environment variable

    Explanation: A system-assigned managed identity automatically creates an identity in Microsoft Entra ID tied to the VM's lifecycle. The VM can authenticate to Azure services like Key Vault without any stored credentials. Service principals require credential management. App registrations are typically for applications, not VMs. SAS tokens are for Azure Storage, not Key Vault authentication.

  3. 3. You are reviewing access assignments in your Azure subscription. You discover a service account has Owner permissions on a resource group but only needs to read storage blob data. You need to apply the principle of least privilege. What should you do?

    • A. Remove the Owner role and assign the Storage Blob Data Reader role on the specific storage account(correct)
    • B. Remove the Owner role and assign the Reader role on the subscription
    • C. Add a deny assignment to restrict the service account from write operations
    • D. Enable Privileged Identity Management for the Owner role assignment

    Explanation: Removing the Owner role and granting only the Storage Blob Data Reader role on the specific storage account applies least privilege by scoping both the permission and the resource. Assigning Reader at subscription level still grants broader access than needed. Deny assignments block actions but do not remove existing elevated permissions. PIM for the Owner role still provides elevated access on demand.

  4. 4. You are configuring Azure Key Vault to store application secrets. You need to implement security controls that restrict network access and protect against unauthorized access. Which two actions should you take? Choose 2.

    • A. Configure the Key Vault firewall to allow access only from specific virtual network subnets(correct)
    • B. Enable Key Vault soft-delete and purge protection
    • C. Deploy a private endpoint for the Key Vault and disable public network access(correct)
    • D. Store the Key Vault access policy in a configuration file in the application repository
    • E. Assign the Key Vault Contributor role to all application developers

    Explanation: Configuring the firewall to allow only specific virtual network subnets and deploying a private endpoint while disabling public network access are the two primary network security controls for Key Vault. Soft-delete and purge protection are important for data recovery but not for network access restriction. Storing access policies in a repository is a security risk. Assigning Key Vault Contributor to developers violates least privilege.

  5. 5. Your organization needs to enforce that all Azure resources are deployed only in approved regions and that all storage accounts must have HTTPS traffic only enabled. You need to implement these controls at scale using infrastructure as code. Which approach should you use?

    • A. Create a custom Azure Policy initiative and assign it using an ARM template or Bicep deployment(correct)
    • B. Create a management group and manually apply resource tags to enforce the requirements
    • C. Configure Azure Blueprints with role assignments only
    • D. Use Microsoft Defender for Cloud recommendations and manually remediate non-compliant resources

    Explanation: A custom Azure Policy initiative containing the allowed locations policy and the storage HTTPS policy, deployed via ARM template or Bicep, implements governance as code and enforces controls at scale across subscriptions. Management groups provide organizational hierarchy but not automatic enforcement. Azure Blueprints uses policies but is being deprecated. Defender for Cloud recommendations are reactive, not preventative.

  6. 6. You need to grant an application team temporary elevated access to manage Azure SQL databases for a planned maintenance window, with automatic expiration after 4 hours. Which Microsoft Entra ID feature should you use?

    • A. Microsoft Entra Privileged Identity Management (PIM) time-bound assignments(correct)
    • B. Conditional Access policy with session controls
    • C. Microsoft Entra access reviews
    • D. Microsoft Entra entitlement management

    Explanation: Microsoft Entra PIM allows just-in-time (JIT) role activation with configurable time limits, providing temporary elevated access that expires automatically. Conditional Access controls how users access resources but does not provide time-limited role elevation. Access reviews periodically review existing access. Entitlement management handles access packages for ongoing access, not temporary elevation.

  7. 7. Your organization stores sensitive documents in Azure Blob Storage. You need to ensure that data is encrypted with keys managed by your organization rather than Microsoft-managed keys. Which storage encryption option should you configure?

    • A. Azure Storage Service Encryption with Microsoft-managed keys
    • B. Customer-managed keys (CMK) stored in Azure Key Vault(correct)
    • C. Client-side encryption using a locally stored symmetric key
    • D. Shared Access Signature (SAS) tokens with encryption scope

    Explanation: Customer-managed keys (CMK) stored in Azure Key Vault allow your organization to control the encryption keys used to protect Azure Storage data. Microsoft-managed keys are handled by Microsoft without customer control. Client-side encryption is complex and requires key management outside Azure. SAS tokens control access but do not determine encryption key ownership.

  8. 8. You are a security engineer for a healthcare company. Your Azure storage account must be accessible only from a specific Azure virtual network subnet. External internet access must be blocked. Which configuration achieves this requirement?

    • A. Configure a storage firewall rule to allow the specific subnet and deny all other traffic(correct)
    • B. Assign a storage account access policy with IP range restrictions
    • C. Enable Azure Defender for Storage on the storage account
    • D. Configure the storage account to use locally redundant storage (LRS)

    Explanation: Azure Storage firewall rules allow you to restrict access to specific virtual network subnets by enabling virtual network service endpoints or private endpoints, blocking public internet access. Access policies control what operations can be performed, not where connections originate. Defender for Storage detects threats but does not block network access. LRS is a replication strategy unrelated to network access.

  9. 9. Your organization has deployed Azure SQL Database and you need to detect suspicious database activities, such as unusual access patterns and potential SQL injection attacks. Which feature should you enable?

    • A. Transparent Data Encryption (TDE)
    • B. Microsoft Defender for Azure SQL(correct)
    • C. Azure SQL Database geo-replication
    • D. Azure SQL Database long-term retention (LTR)

    Explanation: Microsoft Defender for Azure SQL provides advanced threat protection that detects anomalous activities, potential vulnerabilities, and SQL injection attacks, generating security alerts. TDE encrypts data at rest but does not detect threats. Geo-replication provides high availability. Long-term retention is for backup management, not threat detection.

  10. 10. You need to allow internal Azure virtual machines to communicate with an Azure PaaS service without traversing the public internet. The connection must use a private IP address within your virtual network. Which solution should you implement?

    • A. Azure Virtual Network peering
    • B. Azure Private Endpoint with Azure Private Link(correct)
    • C. Azure Application Gateway with WAF
    • D. Azure Virtual Network gateway with a site-to-site VPN

    Explanation: Azure Private Endpoint, powered by Azure Private Link, assigns a private IP address from your virtual network to a PaaS service, allowing traffic to flow over the Microsoft backbone without traversing the public internet. VNet peering connects virtual networks but does not create private endpoints for PaaS services. Application Gateway is for HTTP/S load balancing. VPN gateway is for connecting on-premises networks to Azure.

  11. 11. You are designing network security for a hub-and-spoke Azure architecture. You need to inspect all east-west traffic between spokes and all outbound internet traffic from spoke virtual networks. The solution must support FQDN-based filtering rules. Which Azure service should you deploy in the hub virtual network?

    • A. Azure Network Security Group (NSG) with application security groups
    • B. Azure Firewall with Premium SKU(correct)
    • C. Azure DDoS Protection Standard
    • D. Azure Front Door with WAF policy

    Explanation: Azure Firewall Premium deployed in the hub virtual network provides centralized inspection of east-west and outbound traffic, with support for FQDN-based application rules and TLS inspection. NSGs filter traffic at the subnet/NIC level but do not support FQDN filtering or cross-VNet east-west inspection at scale. DDoS Protection defends against volumetric attacks. Azure Front Door is a global load balancer for internet-facing applications.

  12. 12. You are configuring security for an Azure SQL Database that stores personally identifiable information (PII). You need to protect data at rest and enable auditing of all database access. Which two actions should you take? Choose 2.

    • A. Enable Transparent Data Encryption (TDE) with customer-managed keys(correct)
    • B. Configure Azure SQL Database auditing to write logs to an Azure Storage account(correct)
    • C. Enable Azure SQL Database geo-replication to a secondary region
    • D. Configure a read-only replica for reporting workloads
    • E. Enable SQL Server Authentication instead of Azure Active Directory authentication

    Explanation: TDE with customer-managed keys encrypts the database at rest using keys you control, satisfying data protection requirements. Configuring auditing to log to Azure Storage captures all database access events for compliance and forensic purposes. Geo-replication provides disaster recovery but does not protect PII. Read-only replicas support performance, not security. SQL Server Authentication is less secure than Microsoft Entra ID authentication.

  13. 13. You need to verify whether effective NSG rules are blocking legitimate traffic between two virtual machines in your Azure environment. You want to diagnose the issue without making any configuration changes. Which tool should you use?

    • A. Azure Monitor Metrics for the NSG
    • B. Azure Network Watcher IP flow verify(correct)
    • C. Microsoft Defender for Cloud network recommendations
    • D. Azure Advisor security recommendations

    Explanation: Azure Network Watcher IP flow verify evaluates effective NSG rules for a specific traffic flow (source IP, destination IP, port, protocol) and tells you exactly which NSG rule is allowing or blocking the traffic. Azure Monitor Metrics show aggregate statistics but not specific rule evaluation. Defender for Cloud recommendations identify security misconfigurations but do not diagnose specific blocked flows. Azure Advisor provides general guidance, not real-time diagnostics.

  14. 14. Your organization has deployed Azure Kubernetes Service (AKS) to run containerized applications. A security audit reveals that pods can communicate with the Azure Instance Metadata Service (IMDS) endpoint and potentially access node-level tokens. You need to restrict pod access to sensitive cluster resources while maintaining application functionality. Which control should you implement?

    • A. Enable the AKS HTTP application routing add-on
    • B. Configure Kubernetes network policies to block pod access to the IMDS endpoint(correct)
    • C. Upgrade the AKS cluster to use Azure CNI networking
    • D. Enable AKS cluster auto-scaler

    Explanation: Kubernetes network policies can be used to block pod egress traffic to the Azure Instance Metadata Service endpoint (169.254.169.254), preventing pods from accessing node-level managed identity tokens or sensitive instance metadata. HTTP application routing is for ingress, not security. Upgrading to Azure CNI changes the network model but does not inherently block IMDS. Auto-scaler manages compute capacity, not security.

  15. 15. You need to provide secure administrative access to Azure virtual machines that do not have public IP addresses, without opening inbound RDP or SSH ports through firewalls. Which Azure service should you use?

    • A. Azure Bastion(correct)
    • B. Azure VPN Gateway
    • C. Azure Load Balancer with NAT rules
    • D. Azure Application Gateway

    Explanation: Azure Bastion provides secure and seamless RDP/SSH connectivity to VMs directly through the Azure portal over TLS, without requiring public IP addresses or open inbound RDP/SSH ports on the VM. VPN Gateway provides site-to-site connectivity but still requires RDP/SSH ports. Load Balancer NAT rules expose ports to the internet. Application Gateway is an HTTP/S load balancer, not a VM access solution.

  16. 16. Your organization runs workloads on Azure virtual machines. You need to ensure that VMs are only accessible via RDP during maintenance windows, reducing the persistent attack surface. Which Defender for Cloud feature should you enable?

    • A. Adaptive application controls
    • B. Just-in-time (JIT) VM access(correct)
    • C. File integrity monitoring
    • D. Adaptive network hardening

    Explanation: Just-in-time VM access in Microsoft Defender for Cloud locks down inbound traffic to VMs by default and opens RDP/SSH ports only when access is explicitly requested and approved, for a limited time window. Adaptive application controls manage which applications are allowed to run. File integrity monitoring detects changes to critical files. Adaptive network hardening recommends NSG rule improvements but does not provide time-limited access.

  17. 17. You are implementing security for AI workloads in your organization. Your developers are using Microsoft Copilot Studio to build agents that access sensitive internal data. You need to ensure that runtime inputs and outputs of these agents are monitored for harmful content and data exfiltration. Which control should you configure?

    • A. Enable real-time protection for Microsoft Copilot Studio agents in Microsoft Defender XDR(correct)
    • B. Configure Microsoft Entra Conditional Access policies for Copilot Studio users
    • C. Assign the AI Builder Contributor role to all agent developers
    • D. Enable Microsoft Purview Information Protection labels on agent outputs

    Explanation: Enabling real-time protection for Microsoft Copilot Studio agents in Microsoft Defender XDR monitors agent runtime behaviors including inputs and outputs, detects harmful content generation, and alerts on potential data exfiltration. Conditional Access controls user authentication but not agent runtime behavior. AI Builder Contributor is a role assignment, not a monitoring control. Purview labels protect data classification but do not provide runtime monitoring of agent behavior.

  18. 18. You are securing Azure App Service web applications for your organization. You need to enforce HTTPS-only access and restrict the application to receive traffic only from Azure Front Door. Which two configurations should you implement? Choose 2.

    • A. Enable the HTTPS Only setting on the App Service(correct)
    • B. Configure App Service access restrictions to allow only the Azure Front Door service tag(correct)
    • C. Enable App Service auto-scaling
    • D. Configure a custom domain with a self-signed SSL certificate
    • E. Enable App Service deployment slots

    Explanation: Enabling HTTPS Only ensures all HTTP traffic is redirected to HTTPS, enforcing encrypted connections. Configuring access restrictions to allow only the AzureFrontDoor.Backend service tag ensures that only Azure Front Door can send traffic to the App Service, blocking direct internet access. Auto-scaling manages capacity. Self-signed certificates are not trusted. Deployment slots are for staging deployments.

  19. 19. You need to scan Azure container images for vulnerabilities before they are deployed to production. The scanning results should be integrated into Microsoft Defender for Cloud recommendations. Which Defender for Cloud capability provides this functionality?

    • A. Defender for Servers vulnerability assessment
    • B. Defender for Containers with vulnerability assessment for container registries(correct)
    • C. Defender for App Service
    • D. Microsoft Defender External Attack Surface Management (EASM)

    Explanation: Microsoft Defender for Containers includes vulnerability assessment that scans images in Azure Container Registry and running containers in AKS, surfacing findings directly in Defender for Cloud recommendations. Defender for Servers scans VMs, not containers. Defender for App Service protects web applications. Defender EASM discovers external-facing assets, not container images.

  20. 20. Your organization has Azure resources deployed in multiple Azure subscriptions and also uses Amazon Web Services (AWS). The security team needs a unified view of security posture and compliance across all environments. Which Microsoft solution provides this capability?

    • A. Microsoft Sentinel with multi-workspace deployment
    • B. Microsoft Defender for Cloud with multi-cloud connectors for AWS and GCP(correct)
    • C. Azure Monitor with cross-subscription Log Analytics workspaces
    • D. Microsoft Purview with multi-tenant data governance

    Explanation: Microsoft Defender for Cloud natively supports multi-cloud environments by connecting AWS and GCP accounts alongside Azure subscriptions, providing unified security posture management, compliance assessment against the Microsoft Cloud Security Benchmark, and workload protection across all clouds. Microsoft Sentinel is a SIEM/SOAR tool, not a posture management solution. Azure Monitor focuses on observability, not security posture. Microsoft Purview handles data governance.

  21. 21. You need to configure Microsoft Sentinel to collect Windows Security Event logs from Azure virtual machines using an agent-based approach that supports centralized rule management. Which data collection mechanism should you use?

    • A. Azure Monitor Agent with Data Collection Rules (DCRs)(correct)
    • B. Log Analytics agent (MMA) without configuration
    • C. Syslog forwarding from Windows VMs
    • D. Microsoft Sentinel built-in connector with no additional configuration

    Explanation: Azure Monitor Agent with Data Collection Rules (DCRs) is the current recommended approach for collecting Windows Security Events in Microsoft Sentinel. DCRs allow centralized, scalable configuration of what events to collect from multiple machines. The legacy Log Analytics agent (MMA) is being deprecated. Syslog is for Linux-based log forwarding. Sentinel does not collect events without a configured data connector or collection rule.

  22. 22. Your security team has deployed Microsoft Sentinel and needs to automatically respond to a specific incident type by isolating a compromised virtual machine in Microsoft Defender for Endpoint. Which Sentinel feature enables this automated response?

    • A. Analytics rules with scheduled queries
    • B. Automation rules triggering a Playbook(correct)
    • C. Workbooks with interactive dashboards
    • D. Watchlists with threat intelligence indicators

    Explanation: Microsoft Sentinel automation rules can trigger Playbooks (Azure Logic Apps) in response to incidents. A Playbook can call the Microsoft Defender for Endpoint API to isolate the compromised VM automatically. Analytics rules detect threats and create incidents but do not perform response actions themselves. Workbooks are for visualization. Watchlists enrich queries with additional data, not automate responses.

  23. 23. Your organization needs to implement Microsoft Security Copilot for the security operations team. You are configuring the workspace for first use. Which two resources must you provision during initial Security Copilot setup?

    • A. A Security Compute Unit (SCU) capacity in an Azure subscription and a Microsoft Entra tenant(correct)
    • B. A Log Analytics workspace and a Microsoft Sentinel workspace
    • C. An Azure OpenAI resource and an Azure Cognitive Services account
    • D. A Microsoft Defender XDR workspace and an Azure Key Vault instance

    Explanation: Microsoft Security Copilot requires provisioning Security Compute Units (SCUs) as capacity in an Azure subscription, along with a Microsoft Entra tenant for identity management. SCUs determine the processing capacity available to the service. Log Analytics and Sentinel are integrated plugins but not required for initial provisioning. Security Copilot uses its own AI infrastructure, not Azure OpenAI resources directly provisioned by customers. Defender XDR is a data source plugin, not a provisioning requirement.

  24. 24. You are onboarding an on-premises Windows Server to Microsoft Defender for Cloud using Azure Arc. You need to enable threat detection and vulnerability assessment on the server. Which two steps are required? Choose 2.

    • A. Install the Azure Connected Machine agent to register the server with Azure Arc(correct)
    • B. Enable the Defender for Servers plan in Defender for Cloud for the Azure Arc-enabled server(correct)
    • C. Migrate the server workload to an Azure Virtual Machine
    • D. Configure Azure ExpressRoute connectivity between on-premises and Azure
    • E. Register the server in Microsoft Intune as a co-managed device

    Explanation: Installing the Azure Connected Machine agent onboards the on-premises server to Azure Arc, making it an Arc-enabled server. Enabling the Defender for Servers plan on the Arc-enabled server then provides threat detection, vulnerability assessment, and EDR capabilities. Migrating to a VM is not required; Arc extends protection to non-Azure machines. ExpressRoute provides network connectivity but is not required for Defender for Cloud Arc onboarding. Intune is for device management, not Defender for Cloud onboarding.

  25. 25. Your organization's Defender for Cloud secure score has decreased significantly. The Defender CSPM plan is enabled. You investigate and find multiple attack path findings that indicate a storage account with public access is reachable from an internet-exposed VM that has a managed identity with Storage Blob Data Contributor permissions. Which Defender CSPM feature surfaces this chained risk finding?

    • A. Microsoft Defender for Cloud security recommendations
    • B. Microsoft Defender External Attack Surface Management (EASM)
    • C. Defender CSPM attack path analysis(correct)
    • D. Microsoft Sentinel threat hunting queries

    Explanation: Defender CSPM attack path analysis identifies multi-step attack paths that chain together misconfigurations and excessive permissions, such as an internet-exposed VM with a privileged managed identity that can access a storage account with public access. Standard Defender for Cloud recommendations flag individual issues but do not chain them into attack paths. EASM discovers external attack surface but does not model internal lateral movement paths. Microsoft Sentinel is a SIEM used for threat detection and investigation, not posture attack paths.