GCP Professional Cloud Architect Practice Question

Your team is developing a Java microservice deployed on Cloud Run that must regularly scan several multi-million-object Cloud Storage buckets and write each object's metadata to Cloud Spanner. A developer suggests invoking the Cloud Storage JSON REST API with custom HTTP requests, manually retrieving OAuth 2.0 tokens from the metadata server, paging through nextPageToken values, and coding bespoke exponential-backoff retries. To align with Google Cloud API access best practices while minimizing future maintenance effort and risk, what should you recommend?

  • Reject the proposal and require using the official Cloud Storage Java client library, which provides automatic Application Default Credentials handling, pagination, and robust retry logic out of the box.

  • Approve the design but require embedding a long-lived service-account key in the container image instead of using the metadata server for authentication.

  • Approve the proposed design because direct REST calls avoid external dependencies and offer better scalability than client libraries.

  • Reject the proposal and migrate the workload to a Compute Engine VM that runs curl commands in a startup script to perform the same operations.

GCP Professional Cloud Architect
Managing implementation
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