Medium1 markMultiple Choice
Domain 4.1: Managing Compute Engine resourcesCompute EngineImagesDomain 4.1

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

You want to create a custom 'golden image' from an existing Compute Engine instance to use for future deployments. Which TWO steps are recommended best practices before creating the image? (Select TWO)

Answer options:

A.

Stop the instance.

B.

Delete the boot disk.

C.

Remove any user-specific data or SSH keys from the disk.

D.

Change the machine type to a larger size.

E.

Enable preemptibility on the instance.

How to approach this question

Identify the steps required to ensure data integrity and security when creating a reusable OS image.

Full Answer

Before creating a custom image, it is a best practice to stop the instance to ensure file system consistency (no writes occurring during imaging). It is also critical to 'sysprep' or sanitize the instance by removing user-specific files, bash history, and SSH keys so they are not baked into the golden image.

Common mistakes

Creating an image while the VM is running, which can lead to corrupted file systems in the resulting image.

Practice the full GCP Associate Cloud Engineer Practice Exam 1

50 questions · hints · full answers · grading

More questions from this exam