Hard1 markMultiple Choice
Domain 4.5: Managing networking resourcesDomain 4.5NetworkingIP AddressesCompute Engine

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

You need to assign a permanent, public IP address to a Compute Engine instance running a legacy application. The IP address must not change even if the instance is stopped and started.

Which TWO steps are required to accomplish this? (Select TWO)

Answer options:

A.

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

B.

Reserve a static internal IP address.

C.

Edit the instance's network interface and assign the reserved static external IP.

D.

Configure Cloud NAT to map the instance to the public IP.

E.

Assign the 'Compute Network Admin' role to the VM's service account.

How to approach this question

Identify the process for assigning static public IPs to VMs.

Full Answer

By default, VMs get ephemeral external IPs that change if the VM is stopped. To get a permanent IP, you must first reserve a Static External IP address in the specific region. Then, you edit the VM's network interface configuration to use that specific reserved IP instead of an ephemeral one.

Common mistakes

Confusing internal vs external IPs, or thinking Cloud NAT provides dedicated ingress IPs.

Practice the full GCP Associate Cloud Engineer Practice Exam 4

50 questions · hints · full answers · grading

More questions from this exam