0
0
Azurecloud~20 mins

Subnets within a VNet in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Subnet Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Subnet IP Range Overlap in Azure VNet

You create a Virtual Network (VNet) with address space 10.0.0.0/16. You then add two subnets:

  • Subnet A: 10.0.1.0/24
  • Subnet B: 10.0.1.128/25

What will happen when you try to deploy this configuration?

ADeployment succeeds; both subnets coexist without issues.
BDeployment fails due to overlapping IP address ranges between subnets.
CDeployment succeeds but Subnet B will be automatically resized to avoid overlap.
DDeployment succeeds but Subnet A will be deleted automatically.
Attempts:
2 left
💡 Hint

Think about whether subnet IP ranges can overlap inside a VNet.

service_behavior
intermediate
2:00remaining
Subnet Delegation Impact on Resource Deployment

You create a subnet within a VNet and delegate it to Microsoft.Web/serverFarms (App Service). What is the effect of this delegation?

AThe subnet is reserved for the delegated service and cannot host other resources.
BThe subnet automatically scales based on the delegated service's needs.
CDelegation has no effect on resource deployment in the subnet.
DThe subnet can only host virtual machines after delegation.
Attempts:
2 left
💡 Hint

Consider what subnet delegation means for resource placement.

security
advanced
2:00remaining
Network Security Group (NSG) Application Scope

You associate a Network Security Group (NSG) with a subnet inside a VNet. Which of the following statements is true about the NSG's effect?

AThe NSG rules apply only to virtual machines directly attached to the subnet.
BThe NSG rules apply only to inbound traffic at the subnet boundary, not outbound traffic.
CThe NSG rules apply to all network interfaces within the subnet, including VMs and PaaS resources.
DThe NSG rules apply only if the subnet has delegation enabled.
Attempts:
2 left
💡 Hint

Think about what resources are affected by NSG rules when applied to a subnet.

Configuration
advanced
2:00remaining
Azure CLI Command to Create a Subnet

Which Azure CLI command correctly creates a subnet named 'backend' with address prefix 10.0.2.0/24 inside an existing VNet 'myVNet' in resource group 'myRG'?

Aaz network vnet subnet create --resource-group myRG --vnet-name myVNet --name backend --address-prefix 10.0.2.0/24
Baz network vnet create --resource-group myRG --name backend --address-prefix 10.0.2.0/24 --vnet-name myVNet
Caz network subnet create --resource-group myRG --vnet myVNet --name backend --address 10.0.2.0/24
Daz subnet create --resource-group myRG --vnet-name myVNet --name backend --address-prefix 10.0.2.0/24
Attempts:
2 left
💡 Hint

Recall the Azure CLI command structure for subnet creation.

Best Practice
expert
3:00remaining
Designing Subnets for High Availability and Security

You are designing a VNet with multiple subnets for a multi-tier application. Which subnet design best follows Azure best practices for high availability and security?

  1. One subnet for all resources.
  2. Separate subnets for web, application, and database tiers with NSGs applied per subnet.
  3. Separate subnets for each VM with no NSGs.
  4. One subnet per region with all tiers mixed inside.
AOption 4: One subnet per region with all tiers mixed inside.
BOption 1: One subnet for all resources.
COption 3: Separate subnets for each VM with no NSGs.
DOption 2: Separate subnets for web, application, and database tiers with NSGs applied per subnet.
Attempts:
2 left
💡 Hint

Think about isolation and control of traffic between tiers.