ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 203 - Professional Cloud Developer discussion

Report
Export

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?

A.
Implement a mocking framework.
Answers
A.
Implement a mocking framework.
B.
Create a topic and subscription for each tester.
Answers
B.
Create a topic and subscription for each tester.
C.
Add a filter by tester to the subscription.
Answers
C.
Add a filter by tester to the subscription.
D.
Use the Pub/Sub emulator.
Answers
D.
Use the Pub/Sub emulator.
Suggested answer: D

Explanation:

https://cloud.google.com/pubsub/docs/emulator, 'Testing apps locally with the emulator'.

asked 18/09/2024
Mike Rachuj
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first