PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice question 25 of 25

[Building and implementing service monitoring strategies] You want to share a Cloud Monitoring custom dashboard with a partner team What should you do?

Full set: 205 questions
Answer options
A: Provide the partner team with the dashboard URL to enable the partner team to create a copy of the dashboard
B: Export the metrics to BigQuery Use Looker Studio to create a dashboard, and share the dashboard with the partner team
C: Copy the Monitoring Query Language (MQL) query from the dashboard; and send the MQL query to the partner team
D: Download the JSON definition of the dashboard, and send the JSON file to the partner team Correct answer
Correct Answer:
D. Download the JSON definition of the dashboard, and send the JSON file to the partner team
Explanation

The standard and most effective way to share a Cloud Monitoring dashboard's complete configuration is by exporting its definition to a JSON file. This file encapsulates the entire dashboard layout, including all charts, metrics, queries (MQL/PromQL), and filters. The partner team can then use this JSON file to create an identical copy of the dashboard in their own Google Cloud project using the gcloud command-line tool or the Cloud Console API, ensuring a perfect replication.

Why Incorrect

A. A dashboard URL is specific to a project and user permissions. The partner team, likely in a different project, would not have access to view or copy it.
B. Exporting metrics to BigQuery and using Looker Studio is an overly complex workaround that involves a different tool and recreating the dashboard from scratch, not sharing the existing one.
C. A dashboard typically contains multiple charts and queries. Sending a single MQL query is insufficient to replicate the entire dashboard's structure and content.

References

1. Google Cloud Documentation, "Create and manage custom dashboards". Under the section "Share dashboards", it states: "To share a custom dashboard, you can generate a JSON representation of it. You can then share the JSON file with other users, who can import the file into their Google Cloud projects."

2. Google Cloud Documentation, gcloud monitoring dashboards create. The command documentation shows how to create a dashboard from a file: gcloud monitoring dashboards create --config-from-file=FILEPATH. This confirms that using a JSON definition file is the intended mechanism.

Scroll to Top