Medium1 markMultiple Choice

GCP ACE · Question 20 · Domain 3.1: Deploying and implementing Compute Engine resources

You need to ensure that a specific Compute Engine instance always restarts automatically if it crashes or is terminated by a system event (like hardware failure). What should you do?

Answer options:

A.

Create a cron job on the instance to check its status.

B.

Place the instance in an unmanaged instance group.

C.

Ensure the automatic restart policy is set to 'On' (which is the default).

D.

Use Cloud Monitoring to trigger a Cloud Function to restart it.

How to approach this question

Identify the native Compute Engine feature that handles hardware failures.

Full Answer

C.Ensure the automatic restart policy is set to 'On' (which is the default).✓ Correct
Ensure the automatic restart policy is set to 'On' (which is the default).
By default, Compute Engine instances are configured to automatically restart if they are terminated due to a system event, such as a hardware failure or maintenance event. This is controlled by the 'Automatic restart' availability policy on the instance.

Common mistakes

Thinking you need a complex monitoring setup to achieve basic VM restarts.

Practice the full GCP Associate Cloud Engineer Practice Exam 1

50 questions · hints · full answers · grading

More questions from this exam