Google Associate Cloud Engineer Question 329
Select 3Google Cloud PlatformYou are tasked with deploying Google Cloud Managed Service for Prometheus to monitor your application running on Google Kubernetes Engine (GKE). Which steps should you take to correctly set up and start collecting metrics?
- A
Enable the Managed Service for Prometheus API in your Google Cloud project.
- B
Install the Prometheus Operator on your GKE cluster.
- C
Configure your workloads to expose metrics using the OpenMetrics format.
- D
Create a Service Account with the Monitoring Viewer role and use it in your Prometheus deployment.
- E
Deploy the Managed Collection using the Google Cloud Console.
Show answer and explanation
Correct answers: A, C, E
Explanation
To deploy Google Cloud Managed Service for Prometheus, you need to enable the appropriate API, ensure your applications expose metrics in a compatible format like OpenMetrics, and utilize the Google Cloud Console to deploy the Managed Collection. These steps allow you to set up monitoring for your applications on GKE without the need for self-hosting Prometheus or managing its components.
- A. Correct.
Enabling the Managed Service for Prometheus API is necessary to begin using the service and collecting metrics.
- B. Incorrect.
Installing the Prometheus Operator is not required when using Managed Service for Prometheus, as Google Cloud provides a managed solution.
- C. Correct.
Configuring workloads to expose metrics in OpenMetrics format ensures compatibility with Managed Service for Prometheus.
- D. Incorrect.
Creating a Service Account with the Monitoring Viewer role is not necessary for the basic setup of Managed Service for Prometheus.
- E. Correct.
Deploying the Managed Collection using the Google Cloud Console is the correct way to start using Managed Service for Prometheus.