Soru

Zorluk: ZorMonitoring and Logging

An organization operates three separate Google Cloud projects (`proj-services-prod`, `proj-data-prod`, and `proj-auth-prod`) hosting microservice workloads. The Operations team needs a single, centralized Cloud Monitoring dashboard and alerting view to monitor compute infrastructure metrics across all three projects simultaneously without moving the workloads. They create a central administrative project named `proj-monitoring-central`. Which step should the Cloud Engineer perform to achieve this unified observability setup?

  1. Add `proj-services-prod`, `proj-data-prod`, and `proj-auth-prod` as monitored projects within the Metrics Scope of `proj-monitoring-central`.Cevap
  2. B
    Grant the primitive Owner role (`roles/owner`) on `proj-monitoring-central` to the default Compute Engine service accounts of all three production projects.
  3. C
    Install the legacy Stackdriver Monitoring agent on all virtual machines and hardcode the project ID `proj-monitoring-central` in the legacy agent configuration file.
  4. D
    Configure Organization Policies at the root organization node to force telemetry data inheritance down to `proj-monitoring-central`.

Cevap

Add `proj-services-prod`, `proj-data-prod`, and `proj-auth-prod` as monitored projects within the Metrics Scope of `proj-monitoring-central`.
Google Cloud Monitoring uses Metrics Scopes to consolidate observability across multiple projects. By designating `proj-monitoring-central` as the scoping project and adding `proj-services-prod`, `proj-data-prod`, and `proj-auth-prod` as monitored projects within its Metrics Scope, operations teams can view unified dashboards, query combined metrics, and set up centralized alerts across the entire fleet without modifying individual workloads.

Adım Adım Çözüm

1
Identify the multi-project monitoring requirement.
Recognize that observing metrics from multiple GCP projects in a single interface requires a Cloud Monitoring Metrics Scope.
Cloud Monitoring uses a Scoping Project to host dashboards, alerting policies, and uptime checks for multiple Monitored Projects.
2
Configure the scoping relationship.
Link `proj-services-prod`, `proj-data-prod`, and `proj-auth-prod` as monitored projects inside `proj-monitoring-central`.
This allows `proj-monitoring-central` to query and display metrics originating from all linked workload projects.

Anahtar Kavram

Cloud Monitoring Metrics Scope (Multi-Project Monitoring)
Tahmini Süre:2m 0s
Bu soruyu puanla