
Answer-first summary for fast verification
Answer: Use service accounts
Service accounts are the recommended authentication method for most use cases involving Cloud Pub/Sub. While Google Workspace Identity is suited for human users, service accounts are designed for applications. Custom roles and basic roles pertain to authorization rather than authentication. For more details, refer to [Google's documentation on service accounts](https://cloud.google.com/iam/docs/service-accounts).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In a data pipeline that utilizes Cloud Pub/Sub for data ingestion, where data is stored in topics and processed by a Dataflow workflow before being written to BigQuery, what is the recommended authentication method for reading data from Cloud Pub/Sub?
A
Google Workspace Identity
B
Basic role
C
Use service accounts
D
Custom role
No comments yet.