An engineering team is designing a local development and integration testing workflow for microservices that interact with Google Cloud services. Which of the following statements describe valid practices for implementing Google Cloud emulators in development and testing environments? (Select TWO)
- Export designated emulator host environment variables (such as SPANNER_EMULATOR_HOST or PUBSUB_EMULATOR_HOST) so client libraries automatically route API requests to the local emulator.Answer
- BGrant primitive IAM Owner permissions to developer accounts so that local emulators can validate security tokens against live GCP services.
- Launch emulator components using gcloud command-line tools or containerize them for execution within automated CI/CD test suites.Answer
- DProvision a dedicated Google Kubernetes Engine (GKE) cluster for each developer to run local unit test emulators.
Answer
Exporting specific emulator host environment variables and launching emulators via gcloud commands or containerized environments are the correct practices for local development and testing.
The correct practices are configuring emulator-specific host environment variables (which redirect client library calls to local ports) and running emulators via gcloud CLI commands or Docker containers (which provides a lightweight and consistent execution environment across developer machines and automated CI/CD pipelines).
Step-by-Step Solution
Key Concept
Local Cloud Emulator Setup and Client SDK Integration
Estimated Time:1m 0s