
Answer-first summary for fast verification
Answer: The service account associated with the Logging sink lacks permissions to access the Pub/Sub topic.
Option A is incorrect because Cloud Logging and Pub/Sub are global services, making regional differences irrelevant. Option B is correct as the Logging sink requires explicit permissions to write to the Pub/Sub topic. Option C is incorrect since firewall rules do not affect traffic between Logging and Pub/Sub. Option D is incorrect because a misconfigured logging filter would still allow some logs to reach Pub/Sub. For more details, refer to Google Cloud's documentation on exporting Stackdriver logs to Elasticsearch and configuring log exports to Cloud Pub/Sub.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A company utilizes a GCP organization with applications running across various GCP projects. These applications send logs to Cloud Logging. The company aims to analyze these logs using third-party software like Elasticsearch. After setting up a Logs sink to direct logs to a Pub/Sub topic, no logs appear in Elasticsearch. What could be the underlying issue?
A
The Pub/Sub topic is located in a different region than the Logging Sink configuration.
B
The service account associated with the Logging sink lacks permissions to access the Pub/Sub topic.
C
A firewall rule is blocking egress traffic to the third-party software.
D
The logging filter was incorrectly configured.
No comments yet.