🔥 40% Off Crucial Exams Memberships — Deal ends today!

2 hours, 31 minutes remaining!

GCP Professional Cloud Architect Practice Question

Your continuous integration pipeline in Cloud Build needs to run hundreds of tests for a microservice that publishes to Pub/Sub and stores data in Firestore. The current strategy uses a shared non-production Google Cloud project, but engineers report slow feedback, unpredictable costs, and occasional IAM quota errors. You must redesign the pipeline so tests run quickly, avoid generating Google Cloud charges, and still exercise real Pub/Sub topic publishing and Firestore query logic end-to-end. What should you do?

  • Replace the integration tests with unit tests that use in-memory mocks for Pub/Sub and Firestore, eliminating the need for any emulators or Google Cloud services during CI.

  • Have the pipeline create a brand-new Google Cloud project for every build, provision Pub/Sub topics and Firestore collections with deployment scripts, run the tests, then delete the project.

  • Spin up a dedicated GKE Autopilot cluster per commit, deploy the microservice and managed Pub/Sub and Firestore resources to it, and destroy the cluster after tests complete.

  • Launch the Pub/Sub and Firestore emulators inside each Cloud Build step, export the corresponding *EMULATOR_HOST environment variables, and execute the test suite against the localhost endpoints.

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