Skip to content

SC-500 · Domain 2: Secure storage, databases, and networking · 29% of the exam

Task 2.3: Implement security for Azure network services

NSGs and ASGs, Azure Virtual Network Manager security admin rules, Virtual WAN, VPN connections, Microsoft Entra Private Access, private endpoints and Private Link services, Azure Firewall, and Network Watcher diagnostics.

Study it

  • NSGs, ASGs and service tags

    Partly covered by: VPC: Subnets, NAT & Firewalls

  • Security admin rules in Azure Virtual Network Manager

    Lesson coming

  • Secured Virtual WAN hubs and VPN connections

    Partly covered by: Hybrid Networking & DNS

  • Microsoft Entra Private Access

    Lesson coming

  • Private endpoints and Private Link services

    Lesson coming

  • Azure Firewall policies and Premium features

    Lesson coming

  • Network Watcher diagnostics and effective security rules

    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 hub virtual network is peered with a dev spoke and connected to on-premises over VPN. The NSG on the hub's payments subnet has only an allow rule for the web tier. A penetration test shows dev VMs reaching the payments VMs on any port. On-premises admins must keep access. What should you add to the NSG?

  1. AA rule that denies the Internet service tag inbound at priority 100
  2. BAn outbound rule on the dev spoke's NSG that denies VirtualNetwork
  3. CAn inbound rule that denies the dev spoke's address range
  4. DRemoval of the AllowVnetInBound default rule
Show the answer and why
  • AA rule that denies the Internet service tag inbound at priority 100

    Incorrect

    Traffic from a peered spoke isn't Internet traffic.

  • BAn outbound rule on the dev spoke's NSG that denies VirtualNetwork

    Incorrect

    That would also block the dev VMs from their own virtual network and the hub's other services.

  • CAn inbound rule that denies the dev spoke's address range

    Correct

    AllowVnetInBound uses the VirtualNetwork tag, which includes peered networks, so the spoke needs an explicit deny.

  • DRemoval of the AllowVnetInBound default rule

    Incorrect

    Default rules can't be removed, only overridden by higher-priority rules.

The default AllowVnetInBound rule allows the VirtualNetwork service tag, which covers the virtual network's address space, peered virtual networks, connected on-premises address spaces and more. Default rules can't be deleted, so to block a peered spoke while keeping on-premises access, add an explicit deny rule for the spoke's range with a higher priority (lower number) than 65000.

Question 2 · choose 1

The central security team must guarantee that its scanning appliances in 10.99.0.0/24 can reach every VM on TCP 22 in 200 virtual networks, even where application teams' NSGs deny that traffic. Application teams keep managing their own NSGs. What should the team deploy with Azure Virtual Network Manager?

  1. AAn NSG rule with priority 100 copied into every application NSG
  2. BA security admin rule with the Allow action for the scanners' range on TCP 22
  3. CA security admin rule with the Always Allow action for the scanners' range on TCP 22
  4. DA connectivity configuration that peers the scanners' network with every virtual network
Show the answer and why
  • AAn NSG rule with priority 100 copied into every application NSG

    Incorrect

    Application teams could edit or remove the copied rules.

  • BA security admin rule with the Allow action for the scanners' range on TCP 22

    Incorrect

    An Allow admin rule is followed by NSG evaluation, so an NSG can still deny the traffic.

  • CA security admin rule with the Always Allow action for the scanners' range on TCP 22

    Correct

    Always Allow sends the traffic to the resource and stops further evaluation by NSG rules.

  • DA connectivity configuration that peers the scanners' network with every virtual network

    Incorrect

    Connectivity doesn't override NSG denies.

Security admin rules are evaluated before NSG rules. An Allow rule passes the traffic on to NSG evaluation, while Always Allow and Deny terminate evaluation: Always Allow delivers the traffic directly to the resource, preventing denial by conflicting NSG rules, and Deny drops it.

Question 3 · choose 1

An Azure Firewall Policy has an application rule collection at priority 100 that allows HTTPS only to *.contoso.com, and a network rule collection at priority 300 that allows TCP 443 to any destination for a legacy app. Spoke VMs can now browse any HTTPS site. What should you change?

  1. APut the application rule collection in its own rule collection group that has a higher priority
  2. BEnable threat intelligence in alert-only mode
  3. CAdd a deny-all application rule in a higher-priority collection
  4. DLimit the network rule to the specific addresses that app needs
Show the answer and why
  • APut the application rule collection in its own rule collection group that has a higher priority

    Incorrect

    Network rules are always processed before application rules, whatever the rule collection group priority.

  • BEnable threat intelligence in alert-only mode

    Incorrect

    Alert-only mode logs known-bad traffic but doesn't restrict destinations.

  • CAdd a deny-all application rule in a higher-priority collection

    Incorrect

    The traffic is already allowed by the network rule before application rules run.

  • DLimit the network rule to the specific addresses that app needs

    Correct

    Rules are terminating and network rules run first, so a broad network allow bypasses the FQDN filtering.

Azure Firewall processes DNAT rules, then network rules, then application rules, regardless of rule collection group or collection priority. Rules are terminating, so a network rule that allows TCP 443 to any address matches web traffic before any application rule is evaluated. Narrow the network rule to what the legacy app needs.

Question 4 · choose 1

A VPN gateway serves point-to-site users with the IKEv2 and SSTP tunnel types and certificate authentication. Security wants users to sign in with Microsoft Entra ID so that Conditional Access and MFA apply. What must change besides adding Microsoft Entra ID authentication?

  1. AUpgrade the gateway to a zone-redundant SKU
  2. BSwitch to OpenVPN, with users on the Azure VPN Client
  3. CKeep IKEv2 and SSTP and add a RADIUS server that forwards to Microsoft Entra ID
  4. DIssue user certificates from Microsoft Entra ID
Show the answer and why
  • AUpgrade the gateway to a zone-redundant SKU

    Incorrect

    The gateway SKU isn't what Entra authentication depends on here.

  • BSwitch to OpenVPN, with users on the Azure VPN Client

    Correct

    Microsoft Entra ID authentication is supported only for OpenVPN, and clients must use the Azure VPN Client.

  • CKeep IKEv2 and SSTP and add a RADIUS server that forwards to Microsoft Entra ID

    Incorrect

    RADIUS is a separate authentication type, not native Entra sign-in with Conditional Access.

  • DIssue user certificates from Microsoft Entra ID

    Incorrect

    Entra authentication replaces certificates; it doesn't issue them.

Point-to-site VPN can authenticate users with Microsoft Entra ID, which brings Conditional Access and MFA to VPN sign-in. Microsoft Entra ID authentication is supported only for the OpenVPN protocol, and clients must use the Azure VPN Client. IKEv2 and SSTP work with certificate or RADIUS authentication.

Question 5 · choose 2

Spoke VMs reach a storage account and a SQL database through private endpoints in a hub, and traffic to the endpoints must pass through Azure Firewall in the hub. Which two statements about this design are true? (Choose TWO.)

  1. AApplication rules are preferred, because the firewall always SNATs traffic they process
  2. BIf network rules are used, SNAT must be configured to keep the flows symmetric
  3. CNSG rules on the private endpoint subnet filter this traffic without any extra setting
  4. DPrivate endpoints need a public IP address for the firewall to inspect their traffic
  5. EThe firewall must use FQDN application rules for the SQL traffic in redirect mode
Show the answer and why
  • AApplication rules are preferred, because the firewall always SNATs traffic they process

    Correct

    SNAT keeps the return path symmetric through the firewall.

  • BIf network rules are used, SNAT must be configured to keep the flows symmetric

    Correct

    Network rules don't SNAT private destinations by default.

  • CNSG rules on the private endpoint subnet filter this traffic without any extra setting

    Incorrect

    Network policies are disabled for private endpoint subnets by default, so NSGs are bypassed unless you enable them.

  • DPrivate endpoints need a public IP address for the firewall to inspect their traffic

    Incorrect

    Private endpoints use private IPs; inspection doesn't need public addresses.

  • EThe firewall must use FQDN application rules for the SQL traffic in redirect mode

    Incorrect

    SQL FQDN filtering in application rules works in proxy mode only; redirect mode uses network rules.

To inspect traffic to private endpoints, Microsoft recommends application rules, because Azure Firewall always SNATs traffic with application rules and so keeps flows symmetric. If network rules or an NVA are used, configure SNAT. NSG and UDR support on the private endpoint subnet needs network policies enabled. SQL FQDN filtering in application rules requires proxy mode.

Question 6 · choose 1

An engineer created a security admin configuration in Azure Virtual Network Manager with a rule that denies inbound RDP from the internet, and targeted a network group of 40 virtual networks. A day later, RDP from the internet still works. The network group membership is correct. What was missed?

  1. AAssociating an NSG with each subnet so that the configuration has something to attach to
  2. BWaiting for Azure Policy to evaluate the network group
  3. CDeploying the configuration to the regions of those virtual networks
  4. DAssigning Network Contributor to the network manager on each virtual network
Show the answer and why
  • AAssociating an NSG with each subnet so that the configuration has something to attach to

    Incorrect

    Security admin rules apply to virtual networks without NSGs.

  • BWaiting for Azure Policy to evaluate the network group

    Incorrect

    The network group is already correct.

  • CDeploying the configuration to the regions of those virtual networks

    Correct

    Configurations don't take effect until they're deployed to the selected regions.

  • DAssigning Network Contributor to the network manager on each virtual network

    Incorrect

    Applying configurations within the manager's scope doesn't need per-network role assignments.

Azure Virtual Network Manager applies configurations through deployments: a configuration doesn't take effect until it's deployed, and you choose the regions when you commit. Only one security admin configuration per network manager can be deployed to a region at a time, so put several rule sets into rule collections of that configuration.

Question 7 · choose 1

In what order does Azure Firewall process rule collections of the same rule type?

  1. AFrom the lowest priority number (100) to the highest (65,000)
  2. BAlphabetically by rule collection name
  3. CIn the order they were created
  4. DFrom the highest priority number to the lowest
Show the answer and why
  • AFrom the lowest priority number (100) to the highest (65,000)

    Correct

    Rule collections are processed in priority order by rule type, lower numbers first.

  • BAlphabetically by rule collection name

    Incorrect

    Names don't decide order.

  • CIn the order they were created

    Incorrect

    Creation time doesn't decide order.

  • DFrom the highest priority number to the lowest

    Incorrect

    Lower numbers are processed first.

Azure Firewall denies all traffic until rules allow it. It processes rule collections in priority order by rule type, from lower numbers to higher (100 to 65,000), and rules are terminating: processing stops at the first match.

Question 8 · choose 1

Which load balancer can a Private Link service reference?

  1. AA Basic internal load balancer
  2. BA Standard Load Balancer in the same region
  3. CAzure Application Gateway in any region
  4. DAzure Traffic Manager
Show the answer and why
  • AA Basic internal load balancer

    Incorrect

    Basic Load Balancer isn't supported.

  • BA Standard Load Balancer in the same region

    Correct

    Private Link service is tied to a Standard Load Balancer frontend.

  • CAzure Application Gateway in any region

    Incorrect

    A Private Link service references a Standard Load Balancer.

  • DAzure Traffic Manager

    Incorrect

    Traffic Manager is DNS-based and can't back a Private Link service.

A Private Link service references the frontend IP configuration of an Azure Standard Load Balancer; Basic Load Balancer isn't supported. The service must be in the same region as its virtual network and load balancer.

Question 9 · choose 1

Which two tiers does Azure DDoS Protection offer?

  1. ADDoS Network Protection and DDoS IP Protection
  2. BDDoS Basic Protection and DDoS Premium Protection
  3. CDDoS Standard and DDoS Enterprise
  4. DDDoS Edge and DDoS Origin
Show the answer and why
  • ADDoS Network Protection and DDoS IP Protection

    Correct

    Network Protection covers resources in a virtual network; IP Protection is per protected IP.

  • BDDoS Basic Protection and DDoS Premium Protection

    Incorrect

    Those aren't the current tier names.

  • CDDoS Standard and DDoS Enterprise

    Incorrect

    Those aren't the current tier names.

  • DDDoS Edge and DDoS Origin

    Incorrect

    Those aren't Azure DDoS Protection tiers.

Azure DDoS Protection has two tiers: DDoS Network Protection, tuned to resources in a virtual network and including DDoS rapid response, cost protection and WAF discounts, and DDoS IP Protection, a pay-per-protected-IP model with the same core mitigation.

Question 10 · choose 1

Remote staff connect through point-to-site VPN with certificate authentication, and each laptop has its own client certificate generated from one trusted root certificate. One laptop was stolen. Everyone else must keep connecting without new certificates. What should you do on the VPN gateway?

  1. ARemove the trusted root certificate from the point-to-site configuration
  2. BDisable the laptop owner's account in Microsoft Entra ID
  3. CAdd the stolen laptop's client certificate thumbprint under Revoked certificates
  4. DReset the VPN gateway to drop the laptop's current connection
Show the answer and why
  • ARemove the trusted root certificate from the point-to-site configuration

    Incorrect

    That revokes every client certificate generated from the root, so all users lose access.

  • BDisable the laptop owner's account in Microsoft Entra ID

    Incorrect

    Certificate authentication checks the client certificate, not the user's Entra account.

  • CAdd the stolen laptop's client certificate thumbprint under Revoked certificates

    Correct

    The revocation list denies P2S connections for individual client certificates while the others keep working.

  • DReset the VPN gateway to drop the laptop's current connection

    Incorrect

    A reset reboots the gateway and reapplies its configuration; the certificate stays valid, so the laptop can connect again.

Removing a trusted root certificate revokes access for every client certificate it signed. To block one client, add the thumbprint of its client certificate to the revocation list on the gateway's Point-to-site configuration page; other certificates from the same root stay valid. That's why unique client certificates per client are recommended: a shared one would have to be replaced on every client that uses it.

Practice domain 2 →Practice all domains →