Easy1 markMultiple Choice
Domain 4.1: Managing Compute Engine resourcesCompute EnginegcloudTroubleshooting

GCP ACE · Question 30 · Domain 4.1: Managing Compute Engine resources

A developer accidentally misconfigured a Compute Engine instance, and it is now unresponsive. You need to restart the instance using the gcloud CLI.

Which command should you use?

Answer options:

A.

gcloud compute instances restart [INSTANCE_NAME]

B.

gcloud compute instances reset [INSTANCE_NAME]

C.

gcloud compute instances stop [INSTANCE_NAME] --force

D.

gcloud compute instances reboot [INSTANCE_NAME]

How to approach this question

Know the specific verb used by gcloud to perform a hard reboot on a VM.

Full Answer

B.gcloud compute instances reset [INSTANCE_NAME]✓ Correct
To forcefully restart an unresponsive VM in GCP, you use the `gcloud compute instances reset` command. This performs a hard reset, wiping the memory contents and rebooting the OS.

Common mistakes

Guessing 'restart' or 'reboot', which are common terms but not valid gcloud commands.

Practice the full GCP Associate Cloud Engineer Practice Exam 2

50 questions · hints · full answers · grading

More questions from this exam