A new engineer is unsure how Cloud Logging and Cloud Monitoring divide responsibilities within Google Cloud Observability. Which statement correctly distinguishes the two services?
- ACloud Monitoring stores raw log text for querying, while Cloud Logging charts numeric metrics and manages notification channels.
- BBoth services store metrics only, and log data must instead be exported to an external system for retention and search.
- CCloud Logging stores and queries log entries, while Cloud Monitoring collects metrics and evaluates alerting policies on them. Correct
- DCloud Logging generates metric time series directly, while Cloud Monitoring merely renders those series on dashboards without alerting.
Why A is wrong: This reverses the two roles; storing and querying logs belongs to Cloud Logging, and charting metrics with notification channels belongs to Cloud Monitoring.
Why B is wrong: It is tempting because sinks can export logs, but Cloud Logging retains and searches log data natively, so external export is optional rather than required.
Why C is correct: This correctly splits the suite: Cloud Logging handles ingestion, storage, and querying of log entries, while Cloud Monitoring gathers metric time series and runs alerting policies over them.
Why D is wrong: Cloud Logging can derive log-based metrics, but describing it as the primary metrics engine and stripping alerting from Cloud Monitoring misstates each service's core role.