ASSOCIATE-CLOUD-ENGINEER · Question #362
ASSOCIATE-CLOUD-ENGINEER Question #362: Real Exam Question with Answer & Explanation
The correct answer is B: Create a Cloud Logging sink and configure Pub/Sub as the destination. Configure the SaaS tool. Exporting logs via a Cloud Logging sink to a Pub/Sub topic is the best option when you need low- latency, near real-time delivery of logs. Pub/Sub is designed for streaming data and can immediately deliver logs to the third-party SaaS tool that subscribes to the topic.
Question
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?
Options
- AUse a Cloud Scheduler cron job to trigger a Cloud Function that queries Cloud Logging and
- BCreate a Cloud Logging sink and configure Pub/Sub as the destination. Configure the SaaS tool
- CCreate a Cloud Logging sink and configure Cloud Storage as the destination. Configure the SaaS
- DCreate a Cloud Logging sink and configure BigQuery as the destination. Configure the SaaS tool
Explanation
Exporting logs via a Cloud Logging sink to a Pub/Sub topic is the best option when you need low- latency, near real-time delivery of logs. Pub/Sub is designed for streaming data and can immediately deliver logs to the third-party SaaS tool that subscribes to the topic.
Community Discussion
No community discussion yet for this question.