Skip to content

SC-500 · Domain 3: Secure compute · 24% of the exam

Task 3.2: Implement security for servers and virtual machines (VMs)

Disk encryption, Azure Bastion, just-in-time VM access, Azure Arc, Defender for Servers onboarding and settings, agentless scanning, Trusted launch features, and Azure Machine Configuration.

Study it

  • Disk encryption, Trusted launch and Machine Configuration

    Lesson coming

  • Azure Bastion and just-in-time VM access

    Lesson coming

  • Azure Arc and Defender for Servers onboarding, settings and agentless scanning

    Lesson coming

Sample questions

Try each one before opening the answer. Every option is explained, with the Microsoft documentation page that proves it.

Question 1 · choose 1

A Windows VM uses Azure Disk Encryption on its OS and data disks and must move to encryption at host. After disabling ADE and confirming the volumes are fully decrypted, an engineer snapshots the disks, creates new disks from the snapshots and attaches them to a new VM with encryption at host, but the deployment rejects the disks. What should the engineer do instead?

  1. AEnable encryption at host on the original VM, which converts the disks in place
  2. BCopy the disks with the Copy option instead of snapshots
  3. CCreate new managed disks with the Upload method from the VHD data, then build the VM from them
  4. DRe-enable ADE on the new disks, then disable it again before attaching them
Show the answer and why
  • AEnable encryption at host on the original VM, which converts the disks in place

    Incorrect

    In-place conversion from ADE to encryption at host isn't supported.

  • BCopy the disks with the Copy option instead of snapshots

    Incorrect

    Disk copies keep the same ADE metadata as snapshots.

  • CCreate new managed disks with the Upload method from the VHD data, then build the VM from them

    Correct

    Uploading creates disk objects without the UDE flag that snapshots and copies carry.

  • DRe-enable ADE on the new disks, then disable it again before attaching them

    Incorrect

    Running ADE again only adds the same metadata.

Migration from Azure Disk Encryption to encryption at host needs new disks and VMs, because in-place conversion isn't supported. Disks encrypted with ADE carry a Unified Data Encryption (UDE) flag that persists after decryption and is kept by snapshots and Copy-based disk copies, so the guidance creates new managed disks with the Upload method. Linux VMs with ADE-encrypted OS disks need a new VM.

Question 2 · choose 1

Management ports on hub-protected VMs must open only on request, for an approved IP and a limited time, through Defender for Servers Plan 2 just-in-time access. The hub's Azure Firewall is managed with a Firewall Policy in Azure Firewall Manager, and JIT can't be configured for these VMs. What explains this?

  1. AJIT works only with firewalls that use classic rules
  2. BJIT requires Defender for Servers Plan 1 on each VM
  3. CJIT works only on VMs with public IP addresses and no firewall
  4. DJIT must be enabled on the firewall's subnet NSG first
Show the answer and why
  • AJIT works only with firewalls that use classic rules

    Correct

    JIT works with NSGs and with Azure Firewall configured with Rules (Classic).

  • BJIT requires Defender for Servers Plan 1 on each VM

    Incorrect

    JIT is a Plan 2 feature, which is already in place.

  • CJIT works only on VMs with public IP addresses and no firewall

    Incorrect

    JIT supports VMs protected by Azure Firewall in the same virtual network, with classic rules.

  • DJIT must be enabled on the firewall's subnet NSG first

    Incorrect

    The limitation is the Firewall Manager policy model, not a missing NSG.

Just-in-time machine access in Defender for Servers Plan 2 adds deny rules for selected ports to NSGs and Azure Firewall, and opens them for approved requests for a limited time. It doesn't support VMs protected by Azure Firewalls controlled by Azure Firewall Manager: the firewall must be configured with Rules (Classic), not Firewall Policy.

Question 3 · choose 1

Arc-enabled on-premises servers run regulated workloads. Security wants it to be impossible for anyone, including subscription Owners in Azure, to run Custom Script or Run Command extensions on them, while the Azure Monitor Agent stays allowed. What should you configure?

  1. AAn Azure Policy deny assignment for the extension resource types on the Arc resources
  2. BA custom Azure role that excludes Microsoft.HybridCompute/machines/extensions/write
  3. CA resource lock on each Arc-enabled server resource
  4. DA local extension block list set with azcmagent on each server
Show the answer and why
  • AAn Azure Policy deny assignment for the extension resource types on the Arc resources

    Incorrect

    A subscription Owner can exempt or remove the assignment from Azure.

  • BA custom Azure role that excludes Microsoft.HybridCompute/machines/extensions/write

    Incorrect

    Owners and other administrators can still assign themselves broader roles.

  • CA resource lock on each Arc-enabled server resource

    Incorrect

    Owners can remove locks, and locks don't block extension installation by type.

  • DA local extension block list set with azcmagent on each server

    Correct

    Local allow and block lists can't be overridden from Azure, even by Owner or Global Administrator.

Extensions on Arc-enabled servers are managed from Azure, and Custom Script Extension or Run Command run with Local System or root rights. Allow lists and block lists are configured locally on each server with azcmagent config, so nobody in Azure, not even a user with Owner or Global Administrator permissions, can install a blocked extension.

Question 4 · choose 1

A subscription runs Defender for Servers Plan 2. To cut cost, its 300 development VMs, all tagged env=dev, should drop to Plan 1 and keep endpoint detection and response, while production VMs keep Plan 2. No VM may move to another subscription. What should you do?

  1. ADisable Defender for Servers on each development VM
  2. BDowngrade the env=dev machines to Plan 1 with the script or a policy assignment
  3. CSwitch the subscription to Plan 1, then enable Plan 2 on each production VM
  4. DMove the development VMs to a subscription that runs Plan 1
Show the answer and why
  • ADisable Defender for Servers on each development VM

    Incorrect

    Disabling the plan per resource removes protection, including the Defender for Endpoint EDR that Plan 1 keeps.

  • BDowngrade the env=dev machines to Plan 1 with the script or a policy assignment

    Correct

    In a Plan 2 subscription, a script or policy can downgrade a group of machines, selected by tag or resource group, to Plan 1.

  • CSwitch the subscription to Plan 1, then enable Plan 2 on each production VM

    Incorrect

    Plan 2 can't be enabled at the resource level, so production would lose Plan 2.

  • DMove the development VMs to a subscription that runs Plan 1

    Incorrect

    It would work, but the requirement rules out moving VMs between subscriptions.

Microsoft recommends enabling Defender for Servers at subscription level and allows resource-level changes for granularity. Plan 1, which focuses on EDR through the Defender for Endpoint integration, can be enabled and disabled per resource. Plan 2 can be disabled per resource but not enabled per resource. If Plan 2 is on in a subscription, a script or policy assignment can downgrade a group of machines to Plan 1, selecting them by a resource tag or a resource group.

Question 5 · choose 1

Bastion Premium has session recording configured, but auditors find no recordings of sessions that admins opened from their PCs with az network bastion rdp. Browser sessions from the portal are recorded. Why?

  1. ARecording needs a second storage container for native sessions
  2. BThe SAS URL on the container expired for native sessions only
  3. CSession recording isn't available for native client connections
  4. DNative client sessions are recorded in the VM's own event log
Show the answer and why
  • ARecording needs a second storage container for native sessions

    Incorrect

    Recording supports one container or storage account at a time.

  • BThe SAS URL on the container expired for native sessions only

    Incorrect

    A shared SAS problem would affect browser sessions too.

  • CSession recording isn't available for native client connections

    Correct

    Only sessions through the portal experience are recorded today.

  • DNative client sessions are recorded in the VM's own event log

    Incorrect

    Recordings are stored in the configured blob container, and native sessions aren't recorded.

Bastion graphical session recording, a Premium SKU feature, records RDP and SSH sessions made through the bastion host and stores them in a blob container. It isn't available through the native client, supports one container at a time, and can't yet be combined with Microsoft Entra ID authentication for RDP sessions in the portal.

Question 6 · choose 1

When is Azure Disk Encryption scheduled for retirement?

  1. AMarch 31, 2026
  2. BSeptember 30, 2027
  3. CSeptember 15, 2028
  4. DIt isn't being retired
Show the answer and why
  • AMarch 31, 2026

    Incorrect

    The retirement date is later.

  • BSeptember 30, 2027

    Incorrect

    The retirement date is later.

  • CSeptember 15, 2028

    Correct

    After that date, ADE-encrypted disks fail to unlock after VM reboots.

  • DIt isn't being retired

    Incorrect

    Microsoft has scheduled its retirement.

Azure Disk Encryption is scheduled for retirement on September 15, 2028. ADE-enabled workloads keep running until then, but after that date encrypted disks fail to unlock after reboots, so all ADE-enabled VMs, including backups, must migrate to encryption at host.

Question 7 · choose 1

When you enable just-in-time access with the default settings, what's the maximum time a single request can open a port?

  1. A3 hours
  2. B30 minutes
  3. C24 hours
  4. DUntil the user closes the connection
Show the answer and why
  • A3 hours

    Correct

    The default maximum allowed access is 3 hours.

  • B30 minutes

    Incorrect

    The default allows longer.

  • C24 hours

    Incorrect

    The default is shorter.

  • DUntil the user closes the connection

    Incorrect

    Access always ends after the approved period.

Just-in-time access opens the selected ports only for the requested time; with default settings, the maximum allowed access per request is 3 hours, after which Defender for Cloud restores the rules.

Question 8 · choose 1

Defender for Servers Plan 2 includes 500 MB of free data ingestion per machine each day for eligible security data. How is that allowance applied?

  1. APer machine, with each machine's own excess billed
  2. BAs a daily total of machines times 500 MB, across the subscription
  3. COnce per Log Analytics workspace, whatever the number of machines
  4. DAs a monthly pool of 15 GB per machine
Show the answer and why
  • APer machine, with each machine's own excess billed

    Incorrect

    The allowance isn't enforced per machine; one machine can exceed 500 MB without a charge.

  • BAs a daily total of machines times 500 MB, across the subscription

    Correct

    The total is calculated for all machines in the subscription, so ingestion is free while their combined data stays within it.

  • COnce per Log Analytics workspace, whatever the number of machines

    Incorrect

    The allowance grows with the number of machines.

  • DAs a monthly pool of 15 GB per machine

    Incorrect

    The allowance is calculated daily, not monthly.

With Defender for Servers Plan 2, the daily allowance equals the number of machines times 500 MB. It's calculated for all machines in a subscription, not enforced per machine, so there's no charge while the combined eligible data stays within it. It applies at the Log Analytics workspace level when Plan 2 is enabled on the workspace the machines report to, for security data types such as SecurityEvent and SecurityAlert.

Question 9 · choose 1

Which Machine Configuration assignment type applies settings once and then reports drift without fixing it automatically?

  1. AAudit
  2. BApplyAndAutoCorrect
  3. CDeployIfNotExists
  4. DApplyAndMonitor
Show the answer and why
  • AAudit

    Incorrect

    Audit only reports; it doesn't apply settings.

  • BApplyAndAutoCorrect

    Incorrect

    That re-applies settings when they drift.

  • CDeployIfNotExists

    Incorrect

    That's an Azure Policy effect, not an assignment type.

  • DApplyAndMonitor

    Correct

    It applies the configuration once and then monitors for drift.

Machine Configuration has three assignment types: Audit reports compliance, ApplyAndMonitor applies the configuration once and reports drift without correcting it, and ApplyAndAutoCorrect re-applies the configuration at the next evaluation when it drifts.

Practice domain 3 →Practice all domains →