GCP Associate Cloud Engineer Practice Question

Your team runs a Java microservice on several Compute Engine VMs. The service already emits application-specific metrics (for example, processed_orders, queue_depth) to a local OTLP gRPC endpoint on port 4317. You need these metrics to appear in Cloud Monitoring dashboards without changing the application code or libraries. Which approach satisfies the requirement with the least operational effort?

  • Create a Cloud Monitoring dashboard with custom charts and use gcloud monitoring dashboards import to pull data from the OTLP endpoint.

  • Install the OpenTelemetry Collector for Google Cloud (or enable the Ops Agent collector) on each VM, configure an OTLP receiver for localhost:4317, and use the Google Cloud exporter to send the metrics to Cloud Monitoring.

  • Deploy a Pub/Sub sidecar that subscribes to the OTLP port and republishes the data; configure a log sink to forward the messages to Cloud Monitoring.

  • Enable the Cloud Trace API for the project; OTLP metrics will automatically be imported and shown in Cloud Monitoring.

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