GCP Professional Cloud Security Engineer Practice Question

Your organization enforces Public Access Prevention and uniform bucket-level access on every Cloud Storage bucket. A nightly Dataflow pipeline runs with the service account "[email protected]" and must download objects whose names start with "exports/" in the bucket "corp-fin-raw". The job must not be able to list objects outside that prefix or view bucket metadata, and no other identities should gain new permissions. Which IAM binding applied on the bucket provides the required access with the principle of least privilege?

  • Grant roles/storage.objectViewer to the service account at the project level so it inherits download rights to all buckets in the project.

  • Add a bucket-level IAM binding that grants the service account roles/storage.objectViewer with a condition: resource.name.startsWith("projects/_/buckets/corp-fin-raw/objects/exports/").

  • Use object ACLs to grant the service account roles/storage.legacyObjectReader on every object inside the "exports/" prefix.

  • Grant roles/storage.objectAdmin on the bucket with a condition limiting resource.name to the "exports/" prefix.

GCP Professional Cloud Security Engineer
Ensuring data protection
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot