About this exam
A professional-level Google Cloud certification that validates the ability to build scalable, highly available applications using Google-recommended practices and tools. It covers designing cloud-native applications, building and deploying to platforms such as Cloud Run and GKE, integrating with Google Cloud services, and operating and improving applications with logging, monitoring and tracing.
Try a sample question
This is an original sample question written by itmoshi based on the exam objectives.
An API service running on Cloud Run must read files from a single Cloud Storage bucket named reports-bucket. The requirements are: (1) the service may only read this bucket; (2) no long-lived credentials may be stored in the container or the repository; (3) the application uses the standard authentication method of the Cloud Client Libraries. What should you do?
- ACreate a service account key (JSON), include it in the container image and point to it with an environment variable
- BDeploy with the Compute Engine default service account and read the bucket using project-wide permissions
- CCreate an API key, store it in Secret Manager and attach it to every Cloud Storage request
- DCreate a dedicated service account, grant it Storage Object Viewer on the bucket, and set it as the Cloud Run service identity
Show answer and explanation
Answer:D When Cloud Run calls Google Cloud APIs, set a dedicated, least-privilege service account as the service identity.
Why it is correct
Granting only roles/storage.objectViewer on the bucket to a dedicated service account limits the service to reading this bucket (requirement 1). Cloud Run automatically supplies short-lived access tokens for the service identity, so no key file is needed (requirement 2). The client libraries pick up these tokens through Application Default Credentials (ADC), so no authentication code is required (requirement 3).
The other options
- ✗ A A key file is a long-lived credential that anyone who can pull the image can extract, violating requirement 2 and adding leak and rotation management. It is a last resort for systems outside Google Cloud that cannot use Workload Identity Federation.
- ✗ B Reading with project-wide permissions, as the option says, lets the service reach resources beyond this bucket, so it fails the least-privilege requirement 1. The default service account is convenient, but production services that need narrowly scoped permissions should use a dedicated account.
- ✗ C API keys cannot authorize access to private Cloud Storage objects; IAM credentials are required. API keys are for certain APIs that only need to identify the calling project.
Key takeaway
Workloads on Google Cloud should authenticate without keys: Cloud Run, Cloud Run functions and Compute Engine → attach a dedicated service account; GKE → Workload Identity Federation for GKE; outside Google Cloud → Workload Identity Federation. Service account keys are the last resort.
Try 36 questions like this for free
itmoshi is an unofficial study service and is not affiliated with Google Cloud or any exam provider.