Easy1 markMultiple Choice
Domain 4.1: Managing Compute Engine resourcesDomain 4.1Compute EnginegcloudVM Management

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

You need to temporarily halt a Compute Engine instance named 'dev-server' to stop incurring compute charges over the weekend. You want to keep the boot disk intact so you can resume work on Monday.

Which command should you use?

Answer options:

A.

gcloud compute instances delete dev-server

B.

gcloud compute instances pause dev-server

C.

gcloud compute instances stop dev-server

D.

gcloud compute instances suspend dev-server

How to approach this question

Identify the standard command to shut down a VM without deleting its resources.

Full Answer

C.gcloud compute instances stop dev-server✓ Correct
The `gcloud compute instances stop` command performs a clean shutdown of the VM. When stopped, you no longer pay for CPU or memory, but you continue to pay for the persistent disks attached to it. You can start it again later.

Common mistakes

Choosing 'delete', which destroys the VM entirely.

Practice the full GCP Associate Cloud Engineer Practice Exam 3

50 questions · hints · full answers · grading

More questions from this exam