Subdomain 1.1: Setting up cloud projects and accounts
1.You need to find all Cloud Storage buckets across your entire Google Cloud Organization that are publicly accessible. You want to do this programmatically and efficiently without writing custom scripts to iterate through every project. Which service should you use?
- A.Cloud Logging
- B.Cloud Asset Inventory
- C.Security Command Center
- D.Cloud Monitoring
Show answer & explanation
Correct answer: B — Cloud Asset Inventory
- A. Cloud Logging is designed for storing, searching, and analyzing log data and events. While it tracks access events, it is not an inventory or policy analysis tool and cannot efficiently query the current state of all resources across an organization to find public buckets.
- B. Cloud Asset Inventory is the correct choice because it provides organization-wide visibility into resources and IAM policies. It supports programmatic APIs such as searchAllResources and AnalyzeIamPolicy, which allow you to efficiently identify resources accessible to 'allUsers' or 'allAuthenticatedUsers' across all projects without iterating through them individually.
- C. Security Command Center (SCC) provides security insights and posture management, and while it may flag public buckets as security findings, Cloud Asset Inventory is the fundamental service for performing programmatic, organization-wide inventory and IAM policy analysis.
- D. Cloud Monitoring focuses on performance metrics, health checks, and uptime monitoring. It does not have the capability to audit IAM policies or enumerate the accessibility status of storage buckets.