You have an Azure subscription that includes a virtual network named VNet1. A virtual machine named VM1 is connected to VNet1. You plan to deploy an Azure NAT gateway named NAT1 by using an ARM template. VM1 must be able to connect to the internet by using NAT1.
What should you do before you can implement NAT1?
Select only one answer.
A. Associate a route table to the subnet of VNet1.
B. Associate an IPv6 address space to the subnet of VNet1.
C. Create a public IP address that is set to the Standard SKU.
D. Create a virtual network gateway in VNet1.
C
技巧:排除明顯錯(cuò)誤選項(xiàng),在沒有明顯錯(cuò)誤的選項(xiàng)中選擇最合理的選項(xiàng)。
A. 不正確。沒有直接關(guān)聯(lián)。將路由表關(guān)聯(lián)到 VNet1 的子網(wǎng)是一種常見的網(wǎng)絡(luò)做法,但并非 進(jìn)行NAT 網(wǎng)關(guān)部署的必須條件。路由表用于控制流量在虛擬網(wǎng)絡(luò)中的路由方式,但 NAT 網(wǎng)關(guān)單獨(dú)處理出站 Internet 連接。NAT 網(wǎng)關(guān)自動(dòng)處理所有出站流量,無(wú)需任何客戶配置。 不需要指定用戶定義的路由。 NAT 優(yōu)先于其他出站方案,可替代子網(wǎng)的默認(rèn) Internet 目標(biāo)。
B. 不正確。明顯錯(cuò)誤。將 IPv6 地址空間關(guān)聯(lián)到 VNet1 的子網(wǎng)可為該子網(wǎng)中的資源啟用 IPv6 連接,但這不是部署 NAT1 的先決條件。NAT1 主要處理 IPv4 出站 Internet 連接。
C. 正確。Azure NAT 網(wǎng)關(guān)需要標(biāo)準(zhǔn) SKU 公共 IP 地址才能運(yùn)行。此公共 IP 地址用作來(lái)自部署 NAT 網(wǎng)關(guān)的虛擬網(wǎng)絡(luò)的所有出站連接的源 IP 地址。通過(guò)創(chuàng)建標(biāo)準(zhǔn) SKU 公共 IP 地址,可以確保 NAT1 可以正確配置并由 VM1 用于連接到 Internet。
D. 不正確。沒有直接關(guān)聯(lián)。NAT網(wǎng)關(guān)和虛擬網(wǎng)絡(luò)網(wǎng)關(guān)可以獨(dú)立創(chuàng)建。