PROFESSIONAL-CLOUD-DEVELOPER · Question #218
Your company uses Cloud Logging to manage large volumes of log data. You need to build a real-time log analysis architecture that pushes logs to a third-party application for processing. What should…
The correct answer is A. Create a Cloud Logging log export to Pub/Sub. Cloud Logging log sinks allow you to route log entries to external destinations. Pub/Sub is the correct destination for real-time streaming use cases because it acts as a durable, low-latency message bus that any third-party application can subscribe to and consume in near real…
Question
Your company uses Cloud Logging to manage large volumes of log data. You need to build a real-time log analysis architecture that pushes logs to a third-party application for processing. What should you do?
Options
- ACreate a Cloud Logging log export to Pub/Sub.
- BCreate a Cloud Logging log export to BigQuery.
- CCreate a Cloud Logging log export to Cloud Storage.
- DCreate a Cloud Function to read Cloud Logging log entries and send them to the third-party
How the community answered
(33 responses)- A85% (28)
- B3% (1)
- C9% (3)
- D3% (1)
Explanation
Cloud Logging log sinks allow you to route log entries to external destinations. Pub/Sub is the correct destination for real-time streaming use cases because it acts as a durable, low-latency message bus that any third-party application can subscribe to and consume in near real time. Option B (BigQuery) is suited for batch analytics on historical logs, not real-time streaming to external systems. Option C (Cloud Storage) buffers log files in GCS objects, which introduces significant latency - not suitable for real-time processing. Option D (Cloud Function reading logs) requires polling or event-driven invocation and is not a scalable or direct approach; it adds unnecessary complexity compared to a native log sink.
Topics
Community Discussion
No community discussion yet for this question.