Medium1 markMultiple Choice
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)
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
Q01What is the highest level of the Google Cloud resource hierarchy?EasyQ02You need to enable the Compute Engine API in a new project using the command line. Which command ...EasyQ03You are setting up a new GCP environment. You need to grant a group of developers access to view ...MediumQ04You want to receive an email notification when your GCP spending exceeds $1000 this month. What s...EasyQ05You need to analyze your GCP billing data using complex SQL queries to understand cost trends acr...Medium
Expert