Courseiva

PCSE Practice Question: Configuring Access Within a Cloud Solution Environment

A developer is troubleshooting a Cloud Run service that needs to read from a Cloud Storage bucket. The service runs as the compute engine default service account. The service account has been granted the Storage Object Viewer role at the project level, but the service still gets permission denied errors. What is the most likely cause?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The Cloud Run service is using a different service account than the one modified.

Cloud Run uses the runtime service account specified in the revision, not the compute engine default SA. The developer must explicitly set the service account when deploying, and grant it appropriate roles. The compute engine default SA is for Compute Engine VMs, not Cloud Run.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The bucket uses uniform bucket-level access, which overrides IAM.

    Why it's wrong here

    Uniform bucket-level access still uses IAM, so the role should work.

  • The service account was not granted access to the specific bucket.

    Why it's wrong here

    The role is at project level, which applies to all buckets.

  • The Cloud Run service is using a different service account than the one modified.

    Why this is correct

    Cloud Run services must have a service account explicitly assigned; it does not use the compute engine default SA.

  • The Cloud Run service requires the Storage Admin role.

    Why it's wrong here

    Object Viewer is sufficient for reading objects.

About these practice questions

This PCSE question is part of Courseiva's 960-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PCSE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCSE exam.