Easy1 markMultiple Choice
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?
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
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