Google Associate Cloud Engineer exam dumps

Google Associate Cloud Engineer practice question 288 of 375

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

Google Associate Cloud Engineer Question 288

Select 2Google Cloud Platform

You are a Google Cloud Associate Cloud Engineer tasked with monitoring a custom application running on multiple Compute Engine instances. You need to create and ingest custom metrics to track the number of active connections and the CPU usage of the application. Which of the following steps should you take to achieve this?

  1. A

    A. Define a custom metric descriptor using the Cloud Monitoring API.

  2. B

    B. Use the 'gcloud' command-line tool to automatically create custom metrics.

  3. C

    C. Send time-series data to the custom metric using a monitoring agent.

  4. D

    D. Use Stackdriver Logging to directly create custom metrics from log entries.

  5. E

    E. Configure alerts in Cloud Monitoring for the custom metrics.

Show answer and explanation

Correct answers: A, C

Explanation

To create and ingest custom metrics in Cloud Monitoring, you must first define a custom metric descriptor using the Cloud Monitoring API, specifying the metric's properties. After defining the metric, you need to send time-series data representing the metric to Cloud Monitoring using an agent or API calls. This process involves steps A and C. Steps like configuring alerts are additional actions that can be performed after the metrics are established.

  • A. Correct.

    A. Correct. You need to define a custom metric descriptor in Cloud Monitoring to specify the name, type, and labels of the metric you want to track.

  • B. Incorrect.

    B. Incorrect. The 'gcloud' command-line tool does not automatically create custom metrics; metrics must be created using the Cloud Monitoring API.

  • C. Correct.

    C. Correct. Once the custom metric descriptor is defined, you need to send time-series data to it using a monitoring agent or API calls.

  • D. Incorrect.

    D. Incorrect. While Stackdriver Logging can be used to create log-based metrics, this scenario requires creating custom metrics directly in Cloud Monitoring.

  • E. Incorrect.

    E. Incorrect. Configuring alerts is a subsequent step after creating and ingesting the metrics, not part of the creation process itself.

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