nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #214

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

The correct answer is D: Use the Pub/Sub emulator.. https://cloud.google.com/pubsub/docs/emulator

Implementing and testing applications

Question

You are planning to add unit tests to your application. You need to be able to assert that published Pub/Sub messages are processed by your subscriber in order. You want the unit tests to be cost-effective and reliable. What should you do?

Options

  • AImplement a mocking framework.
  • BCreate a topic and subscription for each tester.
  • CAdd a filter by tester to the subscription.
  • DUse the Pub/Sub emulator.

Explanation

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

Topics

#Pub/Sub#Unit Testing#GCP Emulators#Message Ordering

Community Discussion

No community discussion yet for this question.

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