nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #234

PROFESSIONAL-CLOUD-DEVELOPER Question #234: Real Exam Question with Answer & Explanation

The correct answer is A: Deploy the Pub/Sub and Cloud Run emulators on your local machine. Deploy the application. https://cloud.google.com/pubsub/docs/emulator

Building and Testing Applications

Question

Your team detected a spike of errors in an application running on Cloud Run in your production project. The application is configured to read messages from Pub/Sub topic A, process the messages, and write the messages to topic B. You want to conduct tests to identify the cause of the errors. You can use a set of mock messages for testing. What should you do?

Options

  • ADeploy the Pub/Sub and Cloud Run emulators on your local machine. Deploy the application
  • BUse the gcloud CLI to write mock messages to topic A. Change the logging level in the
  • CDeploy the Pub/Sub emulator on your local machine. Point the production application to your local
  • DUse the Google Cloud console to write mock messages to topic A. Change the logging level in

Explanation

https://cloud.google.com/pubsub/docs/emulator

Topics

#Cloud Run#Pub/Sub#Local Emulators#Debugging

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER PracticeBrowse All PROFESSIONAL-CLOUD-DEVELOPER Questions