Skip to main content

Associate Cloud Engineer practice question · Configuring access and security

A data analyst needs to read objects in one Cloud Storage bucket, reports-bucket.

A data analyst needs to read objects in one Cloud Storage bucket, reports-bucket. The project contains several other buckets with sensitive data. Following Google's recommendation to apply the principle of least privilege, which grant should you make?

  • AGrant Storage Object Viewer (roles/storage.objectViewer) on reports-bucket
  • BGrant Storage Object Viewer (roles/storage.objectViewer) on the project
  • CGrant the basic Viewer role (roles/viewer) on the project
  • DGrant Storage Admin (roles/storage.admin) on reports-bucket
Show the answer and explanation

Correct answer: A) Grant Storage Object Viewer (roles/storage.objectViewer) on reports-bucket

Least privilege means choosing both the narrowest role and the narrowest scope that meet the need. Here that is Storage Object Viewer granted on the single bucket, not a project-wide, basic or admin role.

Why each option is right or wrong

  • A) Correct. This predefined role allows reading objects only, and granting it on the bucket limits access to that one bucket. It gives the analyst exactly what they need and nothing more.
  • B) Incorrect. The role is right, but the scope is too broad. A project-level grant is inherited by every bucket in the project, including the sensitive ones.
  • C) Incorrect. Basic roles contain thousands of permissions across all Google Cloud services. Google advises against them in production and recommends the most limited predefined or custom role instead.
  • D) Incorrect. The scope is right, but Storage Admin also allows creating, overwriting and deleting objects and changing bucket IAM. That is far more than read access.
Exam domain
Configuring access and security · ~20% of Associate Cloud Engineer
Question type
Multiple choice (one answer)

Practise the full Associate Cloud Engineer exam

This question is one of a small free sample from the CertRidge Associate Cloud Engineer bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with Google Cloud; never copied from the real exam.