GCP Associate Cloud Engineer Practice Question

Your GKE Standard cluster (version 1.25) runs several microservices that expose Prometheus-formatted metrics on the /metrics path. The SRE team wants to use Google Cloud Managed Service for Prometheus to query these metrics with PromQL in Cloud Monitoring, but they do not want to deploy or manage a Prometheus server in the cluster. What should you do to meet the requirement?

  • Create a PodMonitoring (or ServiceMonitoring) resource that defines the scrape configuration for the /metrics endpoint; managed collection, enabled by default on your cluster, will handle the scraping and export.

  • Run gcloud container clusters update CLUSTER_NAME --managed-prometheus to enable managed collection, then add a PodMonitoring resource for the /metrics endpoint.

  • Install the Google Ops Agent on each node VM and configure it to forward Prometheus metrics to Cloud Monitoring.

  • Deploy the kube-prometheus-stack Helm chart to install Prometheus and Grafana in the cluster, and configure PrometheusRule CRDs for scrapes.

GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot