Bird
0
0

You created a sink to export audit logs to a Pub/Sub topic but logs are not appearing. What is the most likely cause?

medium📝 Troubleshoot Q14 of 15
GCP - Cloud IAM Advanced
You created a sink to export audit logs to a Pub/Sub topic but logs are not appearing. What is the most likely cause?
AThe sink lacks permission to publish to the Pub/Sub topic
BThe sink filter is too broad and excludes all logs
CAudit logging is disabled in the project
DThe Pub/Sub topic name is misspelled in the sink
Step-by-Step Solution
Solution:
  1. Step 1: Check sink permissions

    Sinks need permission to write to destinations like Pub/Sub topics.
  2. Step 2: Identify common permission issue

    If logs do not appear, the sink likely lacks the pubsub.publisher role on the topic.
  3. Final Answer:

    The sink lacks permission to publish to the Pub/Sub topic -> Option A
  4. Quick Check:

    Missing sink permissions = The sink lacks permission to publish to the Pub/Sub topic [OK]
Quick Trick: Check sink destination permissions first when logs missing [OK]
Common Mistakes:
  • Assuming audit logging is off without checking
  • Blaming filter without verifying permissions
  • Ignoring typo in topic name

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes