Google Associate Cloud Engineer exam dumps

Google Associate Cloud Engineer practice question 187 of 375

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

Google Associate Cloud Engineer Question 187

Select 2Google Cloud Platform

You are tasked with creating a custom VM image for your company's application that will be deployed across multiple regions in Google Cloud Platform. Which steps should you take to ensure the image is optimized and ready for deployment?

  1. A

    A. Use gcloud compute images create to create the image from a running VM instance.

  2. B

    B. Install and configure the necessary software and dependencies on the VM before creating the image.

  3. C

    C. Use gcloud compute instances export to create the image and store it in Cloud Storage.

  4. D

    D. Ensure that the VM does not have any application-specific data before creating the image.

  5. E

    E. Use gcloud compute snapshots create to create the image from a boot disk snapshot.

Show answer and explanation

Correct answers: B, D

Explanation

When creating a custom VM image in Google Cloud Platform, it is important to prepare the VM by installing necessary software and removing any application-specific data. This ensures the image is clean, optimized, and can be reused across different deployments and environments without unnecessary modifications.

  • A. Incorrect.

    Option A is incorrect because gcloud compute images create is not used to create an image directly from a running VM instance. Instead, you create an image from a disk snapshot or a boot disk.

  • B. Correct.

    Option B is correct because installing and configuring the necessary software and dependencies ensures the image is ready for deployment and reduces the need for additional configuration later.

  • C. Incorrect.

    Option C is incorrect because gcloud compute instances export is not the correct command for creating images; it is used for exporting VM instances.

  • D. Correct.

    Option D is correct because application-specific data should not be included in a base image if it is going to be deployed in multiple environments or regions.

  • E. Incorrect.

    Option E is incorrect because gcloud compute snapshots create is used for snapshots, not for creating VM images. You would typically create a snapshot first and then create an image from that snapshot.

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