Protecting Azure vs Non-Azure SQL Servers with Defender for Cloud
Short answer
For VM1, deploy only the VM extension. For Server1, deploy both the Azure Connected Machine agent and the VM extension.
Question
You have the resources shown in the following table.

You have an Azure subscription that uses Microsoft Defender for Cloud.
You need to use Defender for Cloud to protect VM1 and Server1. The solution must meet the following requirements:
• Support Advanced Threat Protection and vulnerability assessment.
• Register each SQL Server 2022 instance as a SQL virtual machine.
• Minimize implementation and administrative effort.
What should you deploy to each server? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Key Takeaways
The primary trap is applying the same agent configuration to both Azure and non-Azure servers; remember that Azure-connected machines do not need the Azure Connected Machine Agent.
Learn how to configure Microsoft Defender for Cloud for Azure VMs versus on-premises servers. The correct deployment requires only the VM extension for Azure resources, and both the Azure Connected Machine agent and VM extension for non-Azure resources.
Common mistake: Candidates often select 'Azure Connected Machine agent and VM extension' for both servers. This fails because the ACMA is redundant for native Azure VMs and increases administrative complexity without adding security value.
Expert Analysis
VM1: VM Extension Only
VM1 is an Azure virtual machine. Microsoft Defender for Cloud secures Azure resources natively through the Microsoft Defender for SQL extension. This single agent provides both Advanced Threat Protection (ATP) and vulnerability assessment for the SQL Server instance hosted on the VM. Since VM1 is already within the Azure control plane, it does not require the Azure Connected Machine Agent (ACMA). Deploying ACMA to an Azure-native resource adds unnecessary administrative overhead, violating the requirement to minimize effort.
Server1: Azure Connected Machine Agent and VM Extension
Server1 is a physical or on-premises server (non-Azure). To protect non-Azure infrastructure with Microsoft Defender for Cloud, you must first install the Azure Connected Machine Agent. This agent registers the server as a 'connected machine' in Azure, allowing Defender for Cloud to discover and manage it. Once connected, you must also deploy the Microsoft Defender for SQL extension to enable ATP and vulnerability assessment for the SQL Server 2022 instance running on Server1. Without the ACMA, Defender for Cloud cannot ingest security data from this external host.
The key distinction lies in the hosting environment: Azure-native resources use only the specific Defender extension, while external resources require both the connectivity agent (ACMA) and the specific Defender extension.
Exam Strategy
When configuring Microsoft Defender for Cloud, always check the resource location first. If the resource is Azure-native, rely solely on the specific Defender extension (e.g., Defender for SQL, Defender for App Service). If the resource is outside Azure (on-premises, other clouds), you must install the Azure Connected Machine Agent first to establish visibility, then add the relevant Defender extension.
Frequently Asked Questions
Why doesn't an Azure VM need the Azure Connected Machine Agent?
Can I use just the Azure Connected Machine Agent for SQL protection?
Discussion 3 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 3
-
JN_311 👍 6VM1 - VM Extension Server 1 - Azure Connection Manager and VM Extension
-
fa4f3ef 👍 3VM1: This is incorrect. VM1 is an Azure resource which means it does not need the ACMA. The ACMA is only needed to connect non Azure resources to Azure. The answer for VM1 is VM extension only. Server 2 is correct.
-
neogeek87 👍 11. VM1 — A VM extension only VM1 is an Azure virtual machine running SQL Server 2022. The SQL IaaS Agent extension enables SQL Server registration and management. Defender for SQL provides advanced threat protection and vulnerability assessment. The Azure Connected Machine agent is unnecessary because VM1 is already hosted in Azure. 2. Server1 — Azure Connected Machine agent and VM extension Server1 is an on-premises Windows Server 2022 machine running SQL Server 2022. The Azure Connected Machine agent connects Server1 to Azure through Azure Arc. The required extensions enable SQL Server management and Defender for SQL protection
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SC-200 Questions
Access 80 questions with complete answers and detailed explanations.
View Full SC-200 Practice Test →