Google Associate Cloud Engineer Question 325
Select 2Google Cloud PlatformYou are tasked with deploying Google's Managed Service for Prometheus to monitor a Kubernetes cluster running on Google Cloud. Which steps should you take to ensure the service is properly deployed and configured?
- A
Install the Google Cloud Operations suite agent on each node in the cluster.
- B
Deploy the Managed Collection mode by installing the managed collection DaemonSet in your Kubernetes cluster.
- C
Configure a Cloud Monitoring workspace to store and visualize Prometheus metrics.
- D
Enable the Prometheus API in the Google Cloud Console to allow metric collection.
- E
Set up a firewall rule to allow Prometheus traffic to the Kubernetes nodes.
Show answer and explanation
Correct answers: B, C
Explanation
To deploy Managed Service for Prometheus on Google Cloud, you need to install the managed collection DaemonSet in your Kubernetes cluster to collect metrics. Additionally, configuring a Cloud Monitoring workspace is crucial for storing and visualizing these metrics. Other steps, such as enabling APIs or setting up specific firewall rules, are not required as the managed service inherently manages these aspects.
- A. Incorrect.
Installing the Google Cloud Operations suite agent is not required for deploying Managed Service for Prometheus; instead, you use the managed collection or self-deployed mode.
- B. Correct.
Deploying the Managed Collection mode by installing the DaemonSet is the correct way to collect metrics from your Kubernetes cluster using Google's Managed Service for Prometheus.
- C. Correct.
Configuring a Cloud Monitoring workspace is necessary to store and visualize the metrics collected by Prometheus.
- D. Incorrect.
The Prometheus API does not need to be explicitly enabled in Google Cloud Console for Managed Service for Prometheus.
- E. Incorrect.
Setting up a firewall rule is not required specifically for Prometheus traffic as the managed service handles network configurations needed for metric collection.