Topic 1 Question 261
You have a web application that publishes messages to Pub/Sub. You plan to build new versions of the application locally and want to quickly test Pub/Sub integration for each new build. How should you configure local testing?
Install Cloud Code on the integrated development environment (IDE). Navigate to Cloud APIs, and enable Pub/Sub against a valid Google Project ID. When developing locally, configure your application to call pubsub.googleapis.com.
Install the Pub/Sub emulator using gcloud, and start the emulator with a valid Google Project ID. When developing locally, configure your application to use the local emulator with ${gcloud beta emulators pubsub env-init}.
In the Google Cloud console, navigate to the API Library, and enable the Pub/Sub API. When developing locally, configure your application to call pubsub.googleapis.com.
Install the Pub/Sub emulator using gcloud, and start the emulator with a valid Google Project IWhen developing locally, configure your application to use the local emulator by exporting the PUBSUB_EMULATOR_HOST variable.
ユーザの投票
コメント(5)
- 正解だと思う選択肢: D
gcloud beta emulators pubsub start --project=my-project-id export PUBSUB_EMULATOR_HOST=localhost:8085 export GOOGLE_CLOUD_PROJECT=my-project-id
👍 1closer892023/04/25 Answer: D
👍 1Writer2023/04/26- 正解だと思う選択肢: D
Answer: D
👍 1Writer2023/04/26
シャッフルモード