Soru

Zorluk: OrtaCreate and Configure Virtual Networks and Subnets

You are planning the deployment of a new virtual network named `vnet-corporate` in an Azure subscription. The virtual network is configured with the address space 172.16.0.0/22172.16.0.0/22. You must create subnets within the virtual network to meet the following requirements:
- Deploy Azure Bastion to allow secure administrative access to virtual machines.
- Create a subnet named `snet-web` that supports at least 6060 usable host IP addresses.
- Create a subnet named `snet-db` that supports at least 2828 usable host IP addresses.

You need to configure the subnet names and IP address prefixes to satisfy these requirements while minimizing address waste. Which subnet configuration should you use?

  1. A
    AzureBastionSubnet: 172.16.0.0/27172.16.0.0/27; snet-web: 172.16.0.128/25172.16.0.128/25; snet-db: 172.16.1.0/26172.16.1.0/26
  2. AzureBastionSubnet: 172.16.0.0/26172.16.0.0/26; snet-web: 172.16.0.128/25172.16.0.128/25; snet-db: 172.16.1.0/26172.16.1.0/26Cevap
  3. C
    snet-bastion: 172.16.0.0/26172.16.0.0/26; snet-web: 172.16.0.128/25172.16.0.128/25; snet-db: 172.16.1.0/26172.16.1.0/26
  4. D
    AzureBastionSubnet: 172.16.0.0/26172.16.0.0/26; snet-web: 172.16.0.64/26172.16.0.64/26; snet-db: 172.16.0.128/27172.16.0.128/27

Cevap

The configuration allocating AzureBastionSubnet as 172.16.0.0/26172.16.0.0/26, snet-web as 172.16.0.128/25172.16.0.128/25, and snet-db as 172.16.1.0/26172.16.1.0/26 is correct because it satisfies the name and size requirements for Azure Bastion, accounts for the 55 reserved IP addresses in Azure subnets, and avoids subnet overlaps.
The correct configuration uses the exact name `AzureBastionSubnet` with a /26/26 prefix, satisfying Azure Bastion requirements. It allocates a /25/25 prefix for `snet-web` (providing 123123 usable IPs, which is the smallest prefix satisfying the 6060 host requirement) and a /26/26 prefix for `snet-db` (providing 5959 usable IPs, which is the smallest prefix satisfying the 2828 host requirement) without overlapping any address ranges.

Adım Adım Çözüm

1
Determine Azure Bastion subnet constraints.
The subnet must be named exactly `AzureBastionSubnet` and have a prefix of /26/26 or larger (minimum 6464 IP addresses).
Azure enforces strict naming and sizing constraints on the Bastion subnet for deployment validation.
2
Calculate the prefix size for `snet-web` to support at least 6060 usable host IPs.
A /25/25 prefix is required.
Azure reserves 55 IP addresses per subnet (the first 44 and the last 11). A /26/26 prefix provides 6464 total addresses, which leaves 645=5964 - 5 = 59 usable host IPs (insufficient). A /25/25 prefix provides 128128 total addresses, leaving 1285=123128 - 5 = 123 usable host IPs, which meets the 6060 hosts requirement.
3
Calculate the prefix size for `snet-db` to support at least 2828 usable host IPs.
A /26/26 prefix is required.
A /27/27 prefix provides 3232 total addresses, which leaves 325=2732 - 5 = 27 usable host IPs (insufficient). A /26/26 prefix provides 6464 total addresses, leaving 645=5964 - 5 = 59 usable host IPs, which meets the 2828 hosts requirement.
4
Select and lay out non-overlapping ranges within 172.16.0.0/22172.16.0.0/22.
AzureBastionSubnet at 172.16.0.0/26172.16.0.0/26, snet-web at 172.16.0.128/25172.16.0.128/25, and snet-db at 172.16.1.0/26172.16.1.0/26.
This layout fits cleanly within the virtual network's address space without overlaps (AzureBastionSubnet spans 172.16.0.0172.16.0.0 to 172.16.0.63172.16.0.63; snet-web spans 172.16.0.128172.16.0.128 to 172.16.0.255172.16.0.255; snet-db spans 172.16.1.0172.16.1.0 to 172.16.1.63172.16.1.63).

Anahtar Kavram

Azure virtual network subnets require specific planning for reserved addresses (first four and last one) and service-specific subnets (such as Azure Bastion requiring exactly AzureBastionSubnet with a minimum size of /26).
Tahmini Süre:1m 30s
Bu soruyu puanla