Google Cloud Professional Cloud Developer — Question 145
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?
Answer options
- 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.
Correct answer: A
Explanation
The correct answer is A, as exporting logs to Pub/Sub allows for real-time streaming of log data to a third-party application. Option B, exporting to BigQuery, is more suited for analysis rather than real-time processing. Option C, sending logs to Cloud Storage, provides storage but lacks real-time capabilities. Option D, while it could work, introduces unnecessary complexity compared to directly exporting to Pub/Sub.