D2: Emulating Google Cloud Services Locally
Google Cloud Professional Cloud Developer exam practice questions · 10 flashcards
Question
Why use emulators?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Emulating Google Cloud Services Locally practice questions and answers
- Why use emulators?Local development and unit testing without cost or touching real resources.
- Which emulators does gcloud provide?Pub/Sub, Firestore, Datastore, Bigtable and Spanner.
- How do you start the Pub/Sub emulator?gcloud beta emulators pubsub start.
- How do apps find an emulator?Environment variables like PUBSUB_EMULATOR_HOST or FIRESTORE_EMULATOR_HOST.
- How do you set emulator env vars automatically?$(gcloud beta emulators pubsub env-init).
- Bigtable emulator env var?BIGTABLE_EMULATOR_HOST.
- Spanner emulator env var?SPANNER_EMULATOR_HOST.
- Limitation of emulators?Not all features or production behaviors are reproduced.
- Do emulators need credentials?Generally no.
- Where else can emulators run?In CI pipelines for integration tests.