GCP Associate Cloud Engineer Practice Question 69: Metrics Scope Multi Project

Google Cloud Associate Cloud Engineer · Test 7 · question 9 of 10

Cloud Monitoringhard

A company runs four separate Google Cloud projects, one per team. The operations team already has dashboards and alerting policies built in their own project, called ops-monitoring, and wants to see the metrics and logs-based data from the other three projects on those same dashboards, without rebuilding anything in each project. The operations team has Monitoring Admin on ops-monitoring but only Viewer on the other three projects. What should they do to view all four projects from ops-monitoring with the least additional work?

Select one answer
Show answer and explanation

Answer:

  • D. Ask an owner of each of the other three projects to grant the operations team Monitoring Admin on that project, then in the Cloud Monitoring Settings of ops-monitoring, add the other three projects as monitored projects in its metrics scope.

A Cloud Monitoring metrics scope lets one scoping project chart, dashboard, and alert on the time-series data of several monitored projects at once, so existing dashboards and alerting policies in the scoping project pick up the other projects' data without being rebuilt. Adding or removing a project from a metrics scope requires the Monitoring Admin role (roles/monitoring.admin) on both the scoping project and on each project being added, so the operations team's existing Viewer role on the other three projects is not enough; they need Monitoring Admin granted there first, then they add those projects from the Metric Scope tab of the ops-monitoring project's Cloud Monitoring Settings page.

A is wrong because Shared VPC only centralizes networking (subnets, firewall rules, routes) between a host and service projects; it has no effect on which projects' metrics Cloud Monitoring can chart. B is wrong because it discards the point of a metrics scope, manually copying logs to storage and rebuilding dashboards from scratch is far more work and does not carry over metrics data or alerting policies. C is wrong because switching projects in the console still only shows one project's data at a time in that project's own dashboards; it does not combine the four projects into a single view.

Reference: Configure a metrics scope

Practice Test 7 ›

Study guides for Google Cloud Associate Cloud Engineer