Multiple applications in your VPC connect to an on-premises database over a VPN. To avoid changing IP configuration in each application when the database IP changes, what should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a private Cloud DNS zone and have applications use the DNS name..
Why this is the answer
Creating a private Cloud DNS zone allows you to assign a stable DNS name to your on-premises database. If the database's IP address changes, you only need to update the DNS record in Cloud DNS, and all applications referencing the DNS name will automatically resolve to the new IP without requiring code changes. Configuring Cloud NAT is for managing outbound connections from your VPC and doesn't address internal IP resolution. Storing the IP in instance custom metadata would require updating metadata on every instance, which is cumbersome and less dynamic than DNS. Querying Compute Engine internal DNS is for resolving internal Google Cloud resources, not external on-premises databases.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed