Professional Cloud Developer Exam - Topic 3 Question 100 Discussion
Google Professional Cloud Developer Exam - Topic 3 Question 100 Discussion
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?
B) Create a topic and subscription for each tester.
A) Implement a mocking framework.
C) Add a filter by tester to the subscription.
D) Use the Pub/Sub emulator.
Google Professional Cloud Developer Exam - Topic 3 Question 100 Discussion
Actual exam question for
Google's
Professional Cloud Developer exam
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?
I’m a bit confused about the options. Creating a topic and subscription for each tester seems excessive, but I wonder if option B could work in some scenarios?
I remember we discussed the importance of using an emulator for testing Pub/Sub messages. It seems like option D might be the best choice for cost-effectiveness.
Adding a filter by tester to the subscription could be a good way to isolate the tests, but I'm not sure if that would guarantee the order of message processing.
This sounds like a tricky one. I'll need to think through the different options carefully to come up with the most cost-effective and reliable solution.
The Pub/Sub emulator? Isn't that like using a crystal ball to predict the future of your messages? I'm going with option A, the mocking framework. It's the only way to be sure.
Adding a filter by tester to the subscription? That's just asking for trouble. I'm going with the Pub/Sub emulator, it's the most cost-effective and reliable option.
Creating a topic and subscription for each tester sounds like a lot of work. I think the Pub/Sub emulator is the way to go. It'll save us time and money.
Adolph
7 months agoCorinne
8 months agoClement
8 months agoKristine
8 months agoRex
8 months agoLeah
9 months agoBrent
9 months agoGladys
9 months agoCelestina
9 months agoAzalee
9 months agoBambi
9 months agoMing
9 months agoCarmelina
9 months agoTaryn
9 months agoAnnmarie
1 year agoChandra
1 year agoEzekiel
1 year agoYuriko
1 year agoKiera
1 year agoSina
1 year agoAlayna
1 year agoTerry
1 year agoWilford
1 year agoNathalie
1 year agoEarleen
1 year agoIsabella
1 year agoArthur
1 year agoJohnetta
1 year agoRocco
1 year agoErnie
1 year agoTiera
1 year agoLayla
1 year agoHarley
1 year agoXuan
1 year agoKenia
1 year ago