Google Cloud Professional Cloud Network Engineer — Question 227
Your organization mandates that all internal IP addresses used by all database VMs must be statically allocated. While analyzing your VPC IP address allocations, you observed that the database VMs do not have static IP addresses. You need to configure the VPC to follow your organization's mandate without causing any disruption to current operations. What should you do?
Answer options
- A. Promote the internal IP addresses to static assignments for all database VMs.
- B. Create a firewall rule to allow only traffic to the IP addresses allocated to your database VMs.
- C. Define a maintenance window to shut down the database VMs one at a time, promote the internal IP address to a static assignment, and restart the VM.
- D. Define an organization policy to allow only statically allocated IP addresses for VMs. Ensure the prefix matches your database VMs.
Correct answer: A
Explanation
Option A is correct because it directly addresses the requirement to change the internal IP addresses of the database VMs to static assignments without any downtime. Option B does not solve the issue of dynamic IP addresses, while C involves unnecessary downtime and complexity. Option D sets a policy but does not immediately resolve the current non-compliance of the database VMs.