GCP Professional Cloud Architect Practice Question

Your organization's CI pipeline runs integration tests for a Go microservice that publishes to Cloud Pub/Sub, stores data in Firestore (Native mode), and queries Cloud Bigtable. A Docker test container starts local emulators for the three services on ports 8085, 8080, and 9000. The tests still fail because the Go client libraries exit with "could not find Application Default Credentials." Which single change will allow the tests to run entirely against the emulators without providing any credentials?

  • Run gcloud auth application-default login --no-launch-browser inside the container to create a dummy credential file after the emulators start.

  • Execute gcloud config set auth/disable_credentials true in the container to tell every client library to ignore authentication.

  • Declare the environment variables PUBSUB_EMULATOR_HOST=localhost:8085, FIRESTORE_EMULATOR_HOST=localhost:8080, and BIGTABLE_EMULATOR_HOST=localhost:9000 before executing the test suite.

  • Set the environment variable GOOGLE_APPLICATION_CREDENTIALS to /dev/null so the libraries cannot find a credential file.

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