Medium1 markMultiple Choice
GCP ACE · Question 40 · Domain 4.5: Managing networking resources
You are deploying a legacy application on a Compute Engine instance. The application requires a fixed, unchanging external IP address because external partners whitelist this IP in their firewalls.
Which TWO steps must you take to configure this? (Select TWO)
You are deploying a legacy application on a Compute Engine instance. The application requires a fixed, unchanging external IP address because external partners whitelist this IP in their firewalls.
Which TWO steps must you take to configure this? (Select TWO)
Answer options:
A.
Reserve a static external IP address in the region where the VM will reside.
B.
Reserve a static internal IP address in the VPC subnet.
C.
Assign the reserved IP address to the VM's network interface.
D.
Configure Cloud NAT to map the VM's internal IP to the static external IP.
E.
Assign the IP address directly within the guest operating system's network configuration files.
How to approach this question
Understand the process of getting a permanent public IP in GCP: first reserve it, then attach it.
Full Answer
Reserve a static external IP address in the region where the VM will reside, and assign the reserved IP address to the VM's network interface.
To provide a Compute Engine instance with a fixed external IP address, you must perform two steps. First, you reserve a static external IP address in the same region as your VM. This ensures the IP is allocated to your project and will not change. Second, you assign this reserved IP address to the network interface of the VM (either during creation or by editing an existing VM). Note that in GCP, the external IP is handled by the VPC's transparent NAT; the guest OS itself is only aware of its internal IP address.
Common mistakes
Trying to configure the external IP inside the Linux/Windows OS network settings, which will break connectivity in GCP.
Practice the full GCP Associate Cloud Engineer Practice Exam 6
50 questions · hints · full answers · grading
More questions from this exam
Q01What is the primary purpose of a Google Cloud project?EasyQ02Your development team needs to manage Compute Engine instances in a specific project. They need t...MediumQ03You are automating the setup of a new Google Cloud project using a bash script. You need to enabl...EasyQ04Your startup has a strict monthly cloud budget of $500. You want to be notified immediately if yo...MediumQ05Your finance team wants to perform granular analysis of your Google Cloud spending using SQL. The...Hard
Expert