Professional Cloud DevOps Engineer free question 1 / 10 · Domain 1: Establishing and bootstrapping foundational infrastructure and organizational governance
An SRE team wants one set of dashboards and alerting policies that covers the staging and production projects. Which project should host the metrics scope?
- No dedicated project, as the default metrics scope of a project already includes the other projects in its folder
- Either of the two projects, as a metrics scope is hosted by one of the projects it monitors
- A new project that contains no resources, with staging and production added as monitored projects
- The production project, the one that already holds the larger volume of time-series data
Show the answer and explanation
Answer: C
Why this is correct
A metrics scope defines the set of resource containers whose time series a project can chart and monitor, and the scoping project that hosts it stores the dashboards and alerting policies. Google recommends a new project, or one without resources, as the scoping project because it stores no time series of its own. Every chart and alert then covers exactly the monitored projects without extra filters.
Why the other options are wrong
"The production project, the one that already holds the larger volume of time-series data" … A scoping project that holds its own resources forces filters to exclude their time series when you chart only the monitored projects. That makes charts and alerting policies more complex and more likely to be misconfigured.
"Either of the two projects, as a metrics scope is hosted by one of the projects it monitors" … A scoping project hosts a metrics scope, and every project is a scoping project. The scope can include other projects without being one of them.
"No dedicated project, as the default metrics scope of a project already includes the other projects in its folder" … By default, the metrics scope of a project only includes that project. Charting several projects needs explicit configuration.
Key points
Treat the scoping project as a pure observability project. Add the projects to watch to its metrics scope and keep workloads out of it.