Google Associate Cloud Engineer exam dumps

Google Associate Cloud Engineer practice question 185 of 375

Associate Cloud Engineer. Free level, Google Cloud. Free question with the correct answer and a full explanation.

Google Associate Cloud Engineer Question 185

Single answerGoogle Cloud Platform

You are tasked with creating a custom VM image on Google Cloud to standardize the development environment for your team. The image must include specific software and configurations. After creating a VM instance and installing the necessary software, what steps should you take to create a reusable image from this VM instance?

  1. A

    Stop the VM instance, then use the Google Cloud Console to create an image from the VM disk.

  2. B

    Take a snapshot of the VM disk while the VM is running, then create an image from the snapshot.

  3. C

    Export the VM to a .tar.gz file and import it as an image using the Google Cloud Console.

  4. D

    Create a Cloud Build pipeline to automate the creation of images from running VM instances.

Show answer and explanation

Correct answer: A

Explanation

To create a reusable image from a VM instance in Google Cloud, it is best practice to stop the instance to ensure that the disk's state is consistent. Once the instance is stopped, you can create an image from the VM's disk using the Google Cloud Console or the gcloud command-line tool. This process involves specifying the VM disk as the source for the image creation.

  • A. Correct.

    Stopping the VM ensures data consistency. You can then create an image from the disk via the Google Cloud Console or gcloud command-line tool.

  • B. Incorrect.

    A snapshot can be taken while the VM is running, but it might not capture the state consistently. It's better to stop the VM first.

  • C. Incorrect.

    Exporting to a .tar.gz file is not a standard method for creating images in Google Cloud. Images are typically created directly from disks or snapshots.

  • D. Incorrect.

    Using Cloud Build for this task is not common. Cloud Build is more suited for building and deploying applications rather than creating VM images.

Timed practice exam

Take a Google Associate Cloud Engineer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam