Google Cloud Professional Cloud Network Engineer — Question 96
You need to create the network infrastructure to deploy a highly available web application in the us-east1 and us-west1 regions. The application runs on Compute Engine instances, and it does not require the use of a database. You want to follow Google-recommended practices. What should you do?
Answer options
- A. Create one VPC with one subnet in each region. Create a regional network load balancer in each region with a static IP address. Enable Cloud CDN on the load balancers. Create an A record in Cloud DNS with both IP addresses for the load balancers.
- B. Create one VPC with one subnet in each region. Create a global load balancer with a static IP address. Enable Cloud CDN and Google Cloud Armor on the load balancer. Create an A record using the IP address of the load balancer in Cloud DNS.
- C. Create one VPC in each region, and peer both VPCs. Create a global load balancer. Enable Cloud CDN on the load balancer. Create a CNAME for the load balancer in Cloud DNS.
- D. Create one VPC with one subnet in each region. Create an HTTP(S) load balancer with a static IP address. Choose the standard tier for the network. Enable Cloud CDN on the load balancer. Create a CNAME record using the load balancer’s IP address in Cloud DNS.
Correct answer: B
Explanation
The correct answer is B because it suggests using a global load balancer, which is optimal for distributing traffic across regions, and it includes enabling Cloud CDN and Google Cloud Armor for enhanced performance and security. Option A falls short by using regional load balancers instead of a global one, while C complicates the setup with VPC peering, and D does not utilize the global load balancer which is essential for high availability across multiple regions.