Google Associate Cloud Engineer exam dumps

Google Associate Cloud Engineer practice question 328 of 375

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

Google Associate Cloud Engineer Question 328

Select 3Google Cloud Platform

You are tasked with setting up Google Cloud Managed Service for Prometheus to monitor your Kubernetes cluster on Google Kubernetes Engine (GKE). Which of the following steps must you perform to ensure that metrics are scraped and stored successfully in Google Cloud?

  1. A

    Configure a Kubernetes Pod to run the Prometheus server.

  2. B

    Install the Managed Prometheus agent on your GKE cluster nodes.

  3. C

    Enable the Cloud Monitoring API in your Google Cloud project.

  4. D

    Create a Service Account with the required permissions for Prometheus.

  5. E

    Add a Prometheus scrape configuration to your GKE cluster.

Show answer and explanation

Correct answers: B, C, E

Explanation

To deploy Managed Service for Prometheus on Google Kubernetes Engine, you need to ensure that your cluster is configured to scrape metrics using the Managed Prometheus agent. Enabling the Cloud Monitoring API allows the collected metrics to be stored and visualized within Google Cloud's monitoring tools. Configuring Prometheus scrape configurations is necessary to specify which endpoints should be monitored. Running a Prometheus server is not needed, as this is a managed service by Google Cloud.

  • A. Incorrect.

    This option is incorrect because Managed Service for Prometheus does not require you to run a Prometheus server. Instead, it uses a managed solution that integrates directly with Google Cloud services.

  • B. Correct.

    This option is correct because installing the Managed Prometheus agent on your GKE cluster nodes is necessary for collecting metrics from your workloads.

  • C. Correct.

    This option is correct because enabling the Cloud Monitoring API is necessary for Managed Service for Prometheus to integrate with Google Cloud's monitoring stack.

  • D. Incorrect.

    This option is incorrect because while service accounts may be needed for various GCP services, Managed Service for Prometheus does not require a new service account with specific permissions for basic setup.

  • E. Correct.

    This option is correct because adding a Prometheus scrape configuration to your GKE cluster ensures that the necessary endpoints are being monitored and the metrics are collected.

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