Google Cloud Associate Cloud Engineer — Question 290

You are deploying an application to Google Kubernetes Engine (GKE) that needs to call an external third-party API. You need to provide the external API vendor with a list of IP addresses for their firewall to allow traffic from your application. You want to follow Google-recommended practices and avoid any risk of interrupting traffic to the API due to IP address changes. What should you do?

Answer options

Correct answer: B

Explanation

The correct answer, B, is the best approach because it utilizes private nodes and a Cloud NAT instance with static IP addresses, ensuring that the IPs provided to the vendor will remain constant. Option A risks service interruption due to autoscaler changes, while option C may lead to dynamic IP address changes, creating potential access issues. Option D is inefficient and could result in the vendor not having a reliable IP list due to daily changes.