
Answer-first summary for fast verification
Answer: 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.
The question involves setting up a highly available web application across two regions using Google-recommended practices. Key considerations include using a global load balancer for cross-region traffic distribution, a single VPC with subnets in each region (avoiding unnecessary VPC peering), and proper DNS configuration. Option B is correct because it uses a global HTTP(S) load balancer (ideal for Layer 7 web traffic) with a static IP, enabling Cloud CDN (for caching) and Google Cloud Armor (for security), and creates an A record in Cloud DNS pointing to the load balancer's IP. This setup ensures high availability, efficient traffic routing, and adherence to best practices. Other options fail due to using regional load balancers (A), unnecessary VPC peering (C), or incorrect DNS configuration (D).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
How should you design the network infrastructure for a highly available web application running on Compute Engine instances across the us-east1 and us-west1 regions, without a database, while adhering to Google-recommended practices?
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.