Medium1 markMultiple Choice
Domain 4.5: Managing networking resourcesCompute EngineNetworkingStatic IP

GCP ACE · Question 39 · Domain 4.5: Managing networking resources

You have a Compute Engine instance running a web server. It currently has an ephemeral external IP address. You want to ensure that if the instance is restarted, its public IP address does not change.

Which TWO steps must you take? (Select TWO)

Answer options:

A.

Reserve a static external IP address in the same region as the instance.

B.

Reserve a global static external IP address.

C.

Assign the reserved static IP address to the instance's network interface.

D.

Configure Cloud DNS to point to the ephemeral IP.

E.

Promote the ephemeral IP to a static IP using the gcloud compute instances update command.

How to approach this question

Understand the lifecycle of external IP addresses in GCP.

Full Answer

Reserve a static external IP address in the same region as the instance., Assign the reserved static IP address to the instance's network interface.
To give a VM a permanent public IP, you must first reserve a Regional Static External IP address. Then, you edit the VM's network interface, unassign the ephemeral IP, and assign the newly reserved static IP.

Common mistakes

Reserving a Global IP, which cannot be attached to a standard regional VM.

Practice the full GCP Associate Cloud Engineer Practice Exam 2

50 questions · hints · full answers · grading

More questions from this exam