Google Cloud Associate Cloud Engineer — Question 270

Your company uses a multi-cloud strategy that includes Google Cloud. You want to centralize application logs in a third-party software-as-a-service (SaaS) tool from all environments. You need to integrate logs originating from Cloud Logging, and you want to ensure the export occurs with the least amount of delay possible. What should you do?

Answer options

Correct answer: B

Explanation

Option B is correct because using Pub/Sub allows for real-time log export with minimal delay, enabling the SaaS tool to process logs as they arrive. Option A introduces delay due to querying BigQuery, option C relies on batch processing from Cloud Storage, which can also add latency, and option D creates unnecessary complexity and delays by querying logs through a Cloud Function.