Google Cloud Professional Cloud DevOps Engineer — Question 88
You are creating Cloud Logging sinks to export log entries from Cloud Logging to BigQuery for future analysis. Your organization has a Google Cloud folder named Dev that contains development projects and a folder named Prod that contains production projects. Log entries for development projects must be exported to dev_dataset, and log entries for production projects must be exported to prod_dataset. You need to minimize the number of log sinks created, and you want to ensure that the log sinks apply to future projects. What should you do?
Answer options
- A. Create a single aggregated log sink at the organization level.
- B. Create a log sink in each project.
- C. Create two aggregated log sinks at the organization level, and filter by project ID.
- D. Create an aggregated log sink in the Dev and Prod folders.
Correct answer: D
Explanation
The correct answer is D because creating an aggregated log sink in both the Dev and Prod folders allows for efficient management of log entries while ensuring future projects within those folders are also covered. Option A is incorrect as a single sink would not differentiate between dev and prod logs, while B would create unnecessary complexity and multiple sinks. Option C, while it provides filtering, is more complicated than needed for the existing folder structure.