A company is using Cloud NAT for outbound internet access. They want to ensure that traffic from certain VMs always uses a specific set of NAT IPs for auditing purposes. Which three steps are necessary to achieve this? (Choose THREE.)
Trap 1: Ensure the VMs have a default route (0.0.0.0/0) with next hop set…
Incorrect. The default route (0.0.0.0/0) must point to the internet gateway, not to the Cloud NAT gateway's subnet. Cloud NAT does not require a route to the NAT subnet.
Trap 2: Configure IAM conditions on the Cloud NAT resource to restrict…
Incorrect. Cloud NAT does not use IAM conditions to restrict which VMs can use it; it relies on subnet or tag associations.
- A
Ensure the VMs have a default route (0.0.0.0/0) with next hop set to the Cloud NAT gateway's subnet
Why wrong: Incorrect. The default route (0.0.0.0/0) must point to the internet gateway, not to the Cloud NAT gateway's subnet. Cloud NAT does not require a route to the NAT subnet.
- B
Configure IAM conditions on the Cloud NAT resource to restrict which VMs can use it
Why wrong: Incorrect. Cloud NAT does not use IAM conditions to restrict which VMs can use it; it relies on subnet or tag associations.
- C
Enable VPC Flow Logs on the subnet to monitor which NAT IPs are used
Correct. Enabling VPC Flow Logs on the subnet allows you to monitor and audit which NAT IPs are used by the VMs.
- D
Create a separate Cloud NAT gateway with the desired IPs and associate it with the VMs via a subnet or tags
Correct. Creating a separate Cloud NAT gateway with the desired IPs and associating it with the VMs (via subnet or tags) ensures they use specific IPs.
- E
Configure VPC firewall rules to allow egress from the VMs to the internet
Correct. Without a firewall rule allowing egress to the internet, outbound traffic from the VMs would be blocked, and NAT would not function.