Azure Security Engineer Domain 2: Secure Networking
48 free practice questions for Secure Networking in the Microsoft Azure Security Engineer Associate (AZ-500) exam. Try each question first, then open "Show answer" for the correct option and explanation.
Secure Networking practice questions
-
Question 1. An NSG has an inbound rule with priority 100 allowing TCP 3389 and a rule with priority 200 denying it. What happens to RDP traffic?
Show answer
Answer: B. It is allowed, because the lower priority number is processed first
NSG rules are processed in priority order, lowest number first, and processing stops at the first match.
-
Question 2. An NSG on a subnet has only the default rules. A VM in a peered VNet connects to a VM in the subnet on port 22. What happens?
Show answer
Answer: D. It is allowed by the default AllowVnetInBound rule
The VirtualNetwork service tag covers the VNet, peered VNets, and connected on-premises ranges, so the default rule allows it.
-
Question 3. NSG rules must allow SQL traffic only to Azure SQL in West Europe without listing IP ranges. What should be used as the destination?
Show answer
Answer: B. The Sql.WestEurope service tag
Service tags represent Microsoft-managed IP prefixes for a service, optionally per region.
-
Question 4. Web VMs and app VMs are in the same subnet. Only web VMs should reach app VMs on port 8443. What is the cleanest NSG design?
Show answer
Answer: D. Application security groups for web and app as source and destination
ASGs group NICs by role, so rules stay valid as VMs are added.
-
Question 5. An engineer needs to know whether an NSG is blocking traffic from a VM to a specific IP and port. Which tool answers quickly?
Show answer
Answer: B. Network Watcher IP flow verify
IP flow verify reports whether traffic is allowed or denied and names the NSG rule responsible.
-
Question 6. Network traffic metadata for a VNet must be collected for security analysis, including allowed and denied flows. What is the current recommended feature?
Show answer
Answer: A. VNet flow logs in Network Watcher
VNet flow logs replace NSG flow logs and capture flows at the VNet level, with Traffic Analytics for insight.
-
Question 7. Azure Firewall must filter outbound HTTPS by fully qualified domain names such as *.github.com. Which rule type fits?
Show answer
Answer: A. Application rules
Application rules filter HTTP/S and SQL traffic by FQDN, including wildcard names.
-
Question 8. Outbound traffic must be inspected for malware and intrusion signatures, including TLS inspection. Which Azure Firewall SKU is required?
Show answer
Answer: B. Azure Firewall Premium
Premium adds TLS inspection, IDPS, URL filtering, and web categories.
-
Question 9. Azure Firewall must resolve FQDNs in network rules consistently with the clients. What should be enabled?
Show answer
Answer: A. DNS proxy on the firewall, used by clients as their DNS server
DNS proxy makes the firewall and clients resolve names the same way, which FQDN network rules rely on.
-
Question 10. Rules for Azure Firewalls in several regions should be managed centrally with inheritance. What should be used?
Show answer
Answer: B. Azure Firewall Manager with parent and child firewall policies
Firewall Manager applies policies across hubs and VNets, and child policies inherit from parent policies.
-
Question 11. All internet-bound traffic from spoke VNets must go through Azure Firewall in the hub. What must be configured in the spokes?
Show answer
Answer: A. A UDR for 0.0.0.0/0 with the firewall's private IP as next hop
UDRs override system routes and send traffic to the firewall as a virtual appliance.
-
Question 12. Inbound RDP to a VM behind Azure Firewall should be published through the firewall's public IP. Which rule type is used?
Show answer
Answer: C. DNAT rules
DNAT rules translate the firewall's public IP and port to the VM's private IP and port.
-
Question 13. Azure Firewall should block traffic to known malicious IPs and domains from Microsoft threat intelligence. Which setting does this?
Show answer
Answer: D. Threat intelligence-based filtering in Alert and deny mode
Threat intelligence mode can alert only or alert and deny traffic to known bad destinations.
-
Question 14. A web app behind Application Gateway must be protected from OWASP top 10 attacks. What should be enabled?
Show answer
Answer: D. Web Application Firewall on Application Gateway with managed rules
WAF uses the Default Rule Set (or CRS) to detect and block common web attacks.
-
Question 15. A new WAF policy is causing false positives. What should be done while tuning the rules?
Show answer
Answer: A. Run in Detection mode and review logs before Prevention
Detection mode logs matches without blocking, so exclusions can be added before enforcing.
-
Question 16. A specific request header is triggering a WAF managed rule for a trusted API. What is the targeted fix?
Show answer
Answer: C. A WAF exclusion for that header on the affected rule
Exclusions skip inspection of specific request attributes, keeping the rest of the protection.
-
Question 17. Requests from a single client IP exceeding 1,000 per minute must be blocked at the edge. What should be configured in Azure Front Door WAF?
Show answer
Answer: D. A rate limit custom rule
Rate limit rules count requests per client over a window and apply an action when exceeded.
-
Question 18. A public-facing app must get cost protection and rapid response support during a large DDoS attack. Which tier is needed?
Show answer
Answer: C. Azure DDoS Network Protection or IP Protection
Paid tiers add adaptive tuning, attack analytics, and access to the DDoS Rapid Response team.
-
Question 19. Which statement about DDoS IP Protection compared with Network Protection is correct?
Show answer
Answer: A. IP Protection is billed per public IP and lacks cost protection and DRR support
IP Protection suits a few public IPs, while Network Protection covers a VNet's IPs and adds extra services.
-
Question 20. Admins need RDP and SSH to VMs without any public IPs on the VMs. What should be deployed?
Show answer
Answer: D. Azure Bastion in the VNet
Bastion provides TLS-based access through the portal or native client, and VMs keep only private IPs.
-
Question 21. Management ports on VMs should be closed and opened only on request for a limited time. What provides this?
Show answer
Answer: A. Just-in-time VM access in Defender for Servers
JIT adds temporary NSG allow rules for the requesting IP and removes them when the time ends.
-
Question 22. A storage account should accept traffic only from one subnet, using the Azure backbone, while keeping its public endpoint. What should be configured?
Show answer
Answer: C. A service endpoint on the subnet and a storage firewall VNet rule
Service endpoints identify the subnet to the service, and the storage firewall allows only that subnet.
-
Question 23. A storage account must have no public endpoint access at all and be reached on a private IP. What should be used?
Show answer
Answer: A. A private endpoint with public network access disabled
Private endpoints map the service to a private IP, and disabling public access blocks the public endpoint.
-
Question 24. Which additional resource is usually needed so clients resolve a PaaS service to its private endpoint IP?
Show answer
Answer: C. A privatelink private DNS zone linked to the VNet
The privatelink zone overrides resolution so the public name resolves to the private IP inside the VNet.
-
Question 25. Service endpoint policies are used for what purpose?
Show answer
Answer: A. Limiting which storage accounts a subnet can reach via its endpoint
Policies prevent data exfiltration to unauthorized storage accounts over the service endpoint.
-
Question 26. A site-to-site VPN must use specific IPsec encryption and integrity algorithms required by the security team. What should be configured?
Show answer
Answer: A. A custom IPsec/IKE policy on the connection
Custom policies set IKE and IPsec algorithms, DH groups, and SA lifetimes instead of the defaults.
-
Question 27. Point-to-site VPN users must authenticate with their Microsoft Entra accounts and MFA. Which authentication type fits?
Show answer
Answer: A. Microsoft Entra ID authentication with OpenVPN
Entra authentication for P2S lets Conditional Access and MFA apply to VPN sign-ins.
-
Question 28. Traffic over ExpressRoute private peering must be encrypted end to end at layer 2 between the customer's routers and Microsoft's edge. What provides this?
Show answer
Answer: C. MACsec on ExpressRoute Direct ports
MACsec encrypts traffic on the physical links of ExpressRoute Direct. IPsec over ExpressRoute is another option.
-
Question 29. Which statement about NSGs on the GatewaySubnet is correct?
Show answer
Answer: A. They aren't supported and can break VPN or ExpressRoute gateways
Microsoft doesn't support NSGs on GatewaySubnet. Filter traffic elsewhere, such as on spoke subnets or with a firewall.
-
Question 30. An App Service web app must accept inbound traffic only from Azure Front Door. What should be configured?
Show answer
Answer: C. Access restrictions with the AzureFrontDoor.Backend tag and X-Azure-FDID check
The service tag limits source IPs to Front Door, and the header check limits traffic to your own Front Door profile.
-
Question 31. An App Service app must reach a SQL database through a private endpoint. What should be enabled on the app?
Show answer
Answer: B. Regional VNet integration
VNet integration lets the app's outbound calls reach private endpoints in the VNet.
-
Question 32. An API published in API Management must accept only requests with a valid Entra ID token. Which policy should be used?
Show answer
Answer: B. validate-jwt or validate-azure-ad-token
Token validation policies check the signature, issuer, audience, and claims before forwarding the request.
-
Question 33. Which Azure service lets private connectivity to a partner's service in their tenant without VNet peering?
Show answer
Answer: C. Azure Private Link service consumed through a private endpoint
Private Link service exposes a service behind a Standard Load Balancer to consumers in other tenants.
-
Question 34. Security admin rules must be enforced across hundreds of VNets and can't be overridden by NSG owners. What should be used?
Show answer
Answer: C. Azure Virtual Network Manager security admin rules
Security admin rules are evaluated before NSG rules, and an "always allow" or "deny" can't be overridden.
-
Question 35. Which Azure Firewall feature lets rules refer to a group of IP addresses reused across many rules?
Show answer
Answer: A. IP groups
IP groups hold IP addresses and ranges that multiple firewall policies can reference.
-
Question 36. A Web Application Firewall must stop bots known for scraping and credential stuffing. Which rule set should be added?
Show answer
Answer: C. The Bot Manager rule set
The bot protection rule set uses Microsoft threat intelligence to classify good, bad, and unknown bots.
-
Question 37. A virtual network has a subnet that should have no outbound internet access by default for new VMs. What newer VNet setting helps?
Show answer
Answer: B. A private subnet (default outbound access turned off)
Private subnets turn off default outbound access, so VMs need an explicit method such as NAT gateway or a firewall.
-
Question 38. Azure Bastion must allow admins to connect using their local SSH client and upload files. Which SKU is required?
Show answer
Answer: A. Standard or Premium SKU with native client support
Native client support and file transfer need the Standard tier or higher.
-
Question 39. Bastion sessions must be recorded for audit. Which Bastion capability provides this?
Show answer
Answer: A. Session recording (Premium SKU)
Premium Bastion can record graphical sessions to a storage container.
-
Question 40. Reachability and latency from a VM to an on-premises endpoint must be tested continuously, with alerts on failures. Which Network Watcher tool fits?
Show answer
Answer: C. Connection monitor
Connection monitor runs ongoing checks between sources and destinations and reports loss and latency to Azure Monitor.
-
Question 41. A security analyst needs a full packet trace of traffic to a suspicious VM for 10 minutes. What should be used?
Show answer
Answer: B. Network Watcher packet capture
Packet capture records traffic on a VM or scale set to a storage account or local file.
-
Question 42. Which Azure Firewall Premium feature can block access to websites by category, such as gambling?
Show answer
Answer: A. Web categories
Web categories filter by site category. Premium also supports full URL filtering.
-
Question 43. Traffic from Azure Firewall to the internet must be sent to an on-premises proxy for inspection. What should be enabled?
Show answer
Answer: D. Forced tunneling with a firewall management subnet
Forced tunneling routes internet-bound traffic to an on-premises device and needs a separate management subnet.
-
Question 44. Which statement describes the order Azure Firewall policy processes rule collections?
Show answer
Answer: A. DNAT, then network, then application rules, by priority within each
Rule collection groups and collections are processed by priority, with DNAT first, then network, then application.
-
Question 45. A company wants outbound traffic from a subnet to use a fixed set of public IPs while Azure Firewall still inspects it. What can be combined with the firewall?
Show answer
Answer: D. A NAT gateway associated with the firewall subnet
A NAT gateway on AzureFirewallSubnet provides scalable SNAT with static IPs.
-
Question 46. Storage account access keys should be kept as a fallback, but rotated automatically. What helps?
Show answer
Answer: A. Key expiration policies with automated key regeneration
Key expiration policies warn about old keys, and automation can regenerate them.
-
Question 47. Which DNS security capability can block VNet queries to known malicious domains?
Show answer
Answer: B. A DNS security policy with domain lists
DNS security policies allow or block queries by domain lists and log DNS traffic.
-
Question 48. A network virtual appliance in the hub fails. Which design keeps spoke traffic flowing?
Show answer
Answer: A. Two NVAs behind an internal Standard Load Balancer with HA ports
An internal load balancer with HA ports sends all flows to healthy NVAs.
Microsoft and Azure are trademarks of the Microsoft group of companies. These questions are original study material, not questions from the real exam.