Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

Show all 10 Emulating Google Cloud Services Locally practice questions and answers
  1. Why use emulators?
    Local development and unit testing without cost or touching real resources.
  2. Which emulators does gcloud provide?
    Pub/Sub, Firestore, Datastore, Bigtable and Spanner.
  3. How do you start the Pub/Sub emulator?
    gcloud beta emulators pubsub start.
  4. How do apps find an emulator?
    Environment variables like PUBSUB_EMULATOR_HOST or FIRESTORE_EMULATOR_HOST.
  5. How do you set emulator env vars automatically?
    $(gcloud beta emulators pubsub env-init).
  6. Bigtable emulator env var?
    BIGTABLE_EMULATOR_HOST.
  7. Spanner emulator env var?
    SPANNER_EMULATOR_HOST.
  8. Limitation of emulators?
    Not all features or production behaviors are reproduced.
  9. Do emulators need credentials?
    Generally no.
  10. Where else can emulators run?
    In CI pipelines for integration tests.