
Answer-first summary for fast verification
Answer: Create a private zone on Cloud DNS, and configure the applications with the DNS name.
The correct answer is B. Creating a private zone on Cloud DNS and configuring the applications with the DNS name allows you to handle IP changes of the on-premises database server without needing to reconfigure all applications. This setup ensures that applications always query the DNS name, which will resolve to the correct IP address of the database, even if it changes.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company operates under a hybrid cloud strategy, deploying some applications on Google Cloud while maintaining a connection to an on-premises network using a Virtual Private Network (VPN) tunnel. In this setup, multiple applications hosted in your Google Cloud Virtual Private Cloud (VPC) need to communicate with a database server located on-premises. You aim to avoid modifying the IP configuration across all your applications whenever there is a change in the database server's IP address. What approach should you take to address this requirement?
A
Configure Cloud NAT for all subnets of your VPC to be used when egressing from the VM instances.
B
Create a private zone on Cloud DNS, and configure the applications with the DNS name.
C
Configure the IP of the database as custom metadata for each instance, and query the metadata server.
D
Query the Compute Engine internal DNS from the applications to retrieve the IP of the database.
No comments yet.