Soru

Zorluk: OrtaCreate and Configure Virtual Networks and Subnets

An enterprise architecture team is deploying a new workload in Azure. Within a virtual network named `vnet-hr-payroll` (10.200.0.0/2210.200.0.0/22), you must create two subnets to meet the following requirements:

* A subnet named `AzureBastionSubnet` to support the deployment of an Azure Bastion host.
* A subnet named `snet-payroll-vms` to host exactly 6060 virtual machines that require private IP addresses.

You need to minimize the number of IP addresses allocated to each subnet while meeting the technical requirements.

Which subnet prefixes should you assign to meet the requirements?

  1. A
    `snet-payroll-vms` with /26/26; `AzureBastionSubnet` with /26/26
  2. B
    `snet-payroll-vms` with /25/25; `AzureBastionSubnet` with /29/29
  3. `snet-payroll-vms` with /25/25; `AzureBastionSubnet` with /26/26Cevap
  4. D
    `snet-payroll-vms` with /26/26; `AzureBastionSubnet` with /27/27

Cevap

The subnet `snet-payroll-vms` should use a /25/25 prefix, and the subnet `AzureBastionSubnet` should use a /26/26 prefix.
The correct configuration uses a /25/25 subnet prefix for `snet-payroll-vms` and a /26/26 subnet prefix for `AzureBastionSubnet`. This minimizes allocated addresses: the virtual machine subnet requires at least 6565 IPs (6060 for hosts + 55 reserved by Azure), which is accommodated by the 128128 IPs of a /25/25 block (whereas a /26/26 block only offers 6464 total IPs and 5959 usable IPs). Azure Bastion requires a minimum prefix of /26/26 to successfully deploy.

Adım Adım Çözüm

1
Calculate the total number of IP addresses required for the virtual machines subnet.
60 VMs+5 Azure reserved IPs=65 IP addresses60 \text{ VMs} + 5 \text{ Azure reserved IPs} = 65 \text{ IP addresses}
Azure reserves the first four IP addresses and the last IP address in each subnet for system use.
2
Determine the smallest subnet size (CIDR) that can host the required IP addresses for the virtual machines.
/25/25 subnet prefix
A /26/26 prefix provides 26=642^6 = 64 total IPs (only 5959 usable), which is insufficient. A /25/25 prefix provides 27=1282^7 = 128 total IPs (with 123123 usable), which satisfies the requirement of at least 6565 IPs.
3
Determine the minimum subnet size requirement for the Azure Bastion subnet.
/26/26 subnet prefix
Azure Bastion requires the subnet to be named exactly `AzureBastionSubnet` and must have a prefix size of /26/26 or larger.

Anahtar Kavram

Azure Virtual Network subnet sizing constraints, including the 5 reserved IP addresses per subnet and specific service requirements like Azure Bastion.
Tahmini Süre:1m 30s
Bu soruyu puanla