Intrigued by the art of cloud architecture? Discover how to design, develop, and manage robust, secure, scalable, and dynamic solutions on Google Cloud as you prepare for the Professional Cloud Architect exam!
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
An enterprise is modernizing a distributed e-commerce application running across multiple Google Cloud projects. The operations and compliance teams have established the following observability and data governance requirements:
Which architecture should the cloud architect recommend to satisfy these requirements?
Create a log sink in Cloud Logging with an export destination of BigQuery filtered on compliance events, and define a logs-based counter metric to extract transaction failure codes into Cloud Monitoring.
Stream all application logs to a Pub/Sub topic, process the stream with a Cloud Functions trigger to insert metrics via the Cloud Monitoring API, and write compliance records into BigQuery.
Enable Error Reporting notifications linked to a Cloud Monitoring alerting policy and retain logs exclusively within the default Cloud Logging bucket for compliance queries.
Configure an OpenTelemetry collector sidecar to bypass Cloud Logging, streaming audit records directly to BigQuery and sending custom metrics to Cloud Monitoring.
Create a log sink in Cloud Logging with an export destination of BigQuery filtered on compliance events, and define a logs-based counter metric to extract transaction failure codes into Cloud Monitoring.
Cloud Logging sinks and logs-based metrics are native Google Cloud Operations features designed to route log data efficiently and bridge log event data into Cloud Monitoring telemetry without requiring code modifications.
jsonPayload fields and log labels.This architecture achieves real-time metric tracking and regulatory data routing using fully managed, out-of-the-box Google Cloud Operations services, avoiding the architectural complexity, latency, and operational burden of custom streaming pipelines.
Stream all application logs to a Pub/Sub topic, process the stream with a Cloud Functions trigger to insert metrics via the Cloud Monitoring API, and write compliance records into BigQuery.
Enable Error Reporting notifications linked to a Cloud Monitoring alerting policy and retain logs exclusively within the default Cloud Logging bucket for compliance queries.
Configure an OpenTelemetry collector sidecar to bypass Cloud Logging, streaming audit records directly to BigQuery and sending custom metrics to Cloud Monitoring.