Google Associate Cloud Engineer exam dumps

Google Associate Cloud Engineer practice question 179 of 375

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

Google Associate Cloud Engineer Question 179

Select 3Google Cloud Platform

You are a Google Cloud Associate Cloud Engineer tasked with viewing the current running VM instances in your project. Which of the following methods can you use to achieve this?

  1. A

    Use the Google Cloud Console and navigate to the Compute Engine section under 'VM instances'.

  2. B

    Execute the command 'gcloud compute instances list' in the Cloud Shell.

  3. C

    Use the Google Cloud Console to navigate to the IAM & Admin section and filter for VM instances.

  4. D

    Write a Python script that uses the Google Cloud Client Libraries to list VM instances using the compute.instances.list API method.

  5. E

    Run the command 'gcloud projects list' to view the current running VM instances.

Show answer and explanation

Correct answers: A, B, D

Explanation

To view current running VM instances in Google Cloud, you can use the Google Cloud Console's Compute Engine section, the 'gcloud compute instances list' command in Cloud Shell, or programmatically access the Compute Engine API using client libraries. These methods allow you to efficiently manage and monitor your virtual machines.

  • A. Correct.

    This is a valid method as the Google Cloud Console provides a graphical interface to view all VM instances in the Compute Engine section.

  • B. Correct.

    This is a correct method. The 'gcloud compute instances list' command shows all VM instances in the project.

  • C. Incorrect.

    This is incorrect. The IAM & Admin section is used for managing identities and permissions, not for listing VM instances.

  • D. Correct.

    This is a valid method. The Google Cloud Client Libraries can be used to interact with the Compute Engine API programmatically.

  • E. Incorrect.

    This is incorrect. The 'gcloud projects list' command lists projects, not VM instances.

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