Google Cloud Professional Cloud Security Engineer — Question 34

An application running on a Compute Engine instance needs to read data from a Cloud Storage bucket. Your team does not allow Cloud Storage buckets to be globally readable and wants to ensure the principle of least privilege.
Which option meets the requirement of your team?

Answer options

Correct answer: C

Explanation

Option C is correct because it uses a service account with the principle of least privilege by retrieving credentials from the instance metadata, ensuring secure access without exposing credentials. Option A is incorrect as it relies on IP address access, which does not adhere to least privilege principles. Option B stores credentials in the application config, which is less secure, and Option D involves encryption but does not address the specific access requirement to read data from the bucket.