Easy1 markMultiple Choice

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

A Compute Engine instance named data-cruncher has finished its processing task. You want to shut it down to stop incurring compute charges, but you need to keep its boot disk intact so you can start it again next week.

Which command should you use?

Answer options:

A.

gcloud compute instances stop data-cruncher

B.

gcloud compute instances pause data-cruncher

C.

gcloud compute instances suspend data-cruncher

D.

gcloud compute instances delete data-cruncher

How to approach this question

Identify the command that halts the VM without destroying the underlying resources.

Full Answer

A.gcloud compute instances stop data-cruncher✓ Correct
gcloud compute instances stop data-cruncher
The `gcloud compute instances stop` command sends an ACPI power-off signal to the instance. The instance transitions to a TERMINATED state. You stop paying for CPU and memory, but the persistent disks remain intact (and you continue to pay for the storage). You can later use `gcloud compute instances start` to boot it back up.

Common mistakes

Choosing 'delete', which destroys the instance entirely.

Practice the full GCP Associate Cloud Engineer Practice Exam 5

50 questions · hints · full answers · grading

More questions from this exam