
Answer-first summary for fast verification
Answer: Create a Cloud Logging log export to Pub/Sub.
The question requires a real-time log analysis architecture that pushes logs to a third-party application. Cloud Logging exports to Pub/Sub (Option A) is the best approach because Pub/Sub is designed for real-time streaming and can handle large volumes of data efficiently. The third-party application can subscribe to the Pub/Sub topic to receive logs in real-time. Option D (Cloud Function) might seem viable, but triggering a function for every log entry is less scalable for high volumes compared to Pub/Sub. Options B (BigQuery) and C (Cloud Storage) are suited for batch processing or analytics, not real-time streaming.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can you design a real-time log analysis architecture using Cloud Logging to stream logs to a third-party application for processing?
A
Create a Cloud Logging log export to Pub/Sub.
B
Create a Cloud Logging log export to BigQuery.
C
Create a Cloud Logging log export to Cloud Storage.
D
Create a Cloud Function to read Cloud Logging log entries and send them to the third-party application.
No comments yet.