Medium1 markMultiple Choice
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)
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
Q01Your company is migrating to Google Cloud and needs to establish a resource hierarchy. You have t...EasyQ02You are managing access to a GCP project. You need to grant 15 developers the ability to view Com...MediumQ03You have created a new GCP project using the Cloud Console. You want to deploy a Cloud Function u...EasyQ04Your startup has a strict monthly cloud budget of $500. You want to be notified immediately if yo...EasyQ05Your finance team wants to perform complex SQL analysis on your GCP billing data to understand co...Medium
Expert