How to Stream Google Cloud Logs to an On-Premises SIEM
Short answer
B Route logs to a Pub/Sub topic via a logging sink and process them with a primary Dataflow pipeline while configuring a secondary pipeline to replay failed messages.
Question
Key Takeaways
Tests knowledge of managed streaming services versus manual or polling approaches, with the trap being options that suggest single VMs, scheduled pulls, or direct network queries instead of scalable message queues and stream processors.
This question tests the optimal architecture for securely and reliably streaming Google Cloud logs to an on-premises SIEM in near real-time. The correct solution leverages Pub/Sub and Dataflow to ensure fault tolerance, auto-scaling, and automatic retry capabilities.
Common mistake: Option C is frequently selected by candidates who overlook the explicit requirement for auto-scaling, failing to realize that a single Compute Engine instance creates a bottleneck and lacks the necessary resilience.
Expert Analysis
Why the Answer Is Correct
Option B correctly implements a push-based, near real-time architecture by routing logs through a Pub/Sub topic, which acts as a durable, auto-scaling buffer. A Dataflow pipeline then consumes these messages and streams them to the on-premises SIEM, providing built-in auto-scaling and managed error handling. By configuring a secondary pipeline or dead-letter queue to replay failed messages, the solution satisfies the strict fault tolerance and retry requirements without manual intervention. This pattern aligns perfectly with Google Cloud’s official guidance for integrating cloud telemetry with enterprise SIEMs.
Why the Other Options Are Wrong
Option A relies on a scheduled pull mechanism running twice daily, which directly contradicts the near real-time and push-based requirements. Option C provisions a single Compute Engine instance, creating a single point of failure and eliminating the required auto-scaling capability for handling variable log volumes. Option D suggests opening firewall rules for direct querying, which bypasses the controlled export pipeline, introduces significant security risks, and does not implement a reliable push-based delivery mechanism with automatic retries.
Community Comment Notes
Candidates consistently validated this approach by referencing Google’s official architecture documentation for streaming logs to third-party platforms like Splunk. Several learners noted that the polling schedule in option A explicitly disqualifies it for real-time use cases. Others emphasized that leveraging Pub/Sub as an intermediate buffer is the standard practice for decoupling log generation from downstream processing. As one contributor highlighted, relying on message queues prevents custom code bottlenecks during traffic spikes.
Official Reference
- https://cloud.google.com/architecture/stream-logs-from-google-cloud-to-splunk
- https://cloud.google.com/dataflow/docs/concepts/streaming-pipelines
These links open the official vendor documentation in a new tab.
Exam Strategy
When designing cloud-to-on-premises data pipelines, always prioritize managed, fully hosted services like Pub/Sub and Dataflow over custom scripts or single VMs. Verify that every architectural choice explicitly maps to non-functional requirements such as near real-time latency, auto-scaling, and automated retry mechanisms before selecting an option.
Frequently Asked Questions
Why is a single Compute Engine instance unsuitable for log forwarding?
Can Cloud Functions replace Dataflow for this log export task?
Community Votes
100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 5 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 5
-
KLei 👍 1 Answered Buse pub/sub. A is wrong as it says that "periodically pull logs" - Not near real-time and need programing works.
-
Zek 👍 1 Answered BB - https://cloud.google.com/architecture/stream-logs-from-google-cloud-to-splunk
-
BondleB 👍 1 Answered Bhttps://cloud.google.com/architecture/stream-logs-from-google-cloud-to-splunk
-
yokoyan 👍 1 Answered BI think it's B.
-
MoAk 👍 1 Answered BB 100%.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.