Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Professional Cloud Developer Exam - Topic 7 Question 66 Discussion

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?
A) Deploy the Pub/Sub and Cloud Run emulators on your local machine. Deploy the application locally, and change the logging level in the application to DEBUG or INFO. Write mock messages to topic A, and then analyze the logs.
B) Use the gcloud CLI to write mock messages to topic A. Change the logging level in the application to DEBUG or INFO, and then analyze the logs.
C) Deploy the Pub/Sub emulator on your local machine. Point the production application to your local Pub/Sub topics. Write mock messages to topic A, and then analyze the logs.
D) Use the Google Cloud console to write mock messages to topic A. Change the logging level in the application to DEBUG or INFO, and then analyze the logs.

Google Professional Cloud Developer Exam - Topic 7 Question 66 Discussion

Actual exam question for Google's Professional Cloud Developer exam
Question #: 66
Topic #: 7
[All Professional Cloud Developer Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Darrin
10 months ago
I’m not sure about D, using the console feels less controlled.
upvoted 0 times
...
Narcisa
10 months ago
Option A seems more thorough with the emulators.
upvoted 0 times
...
Tyra
10 months ago
Wait, can we really point production to local topics? Sounds risky!
upvoted 0 times
...
Nadine
11 months ago
Definitely agree with B, quick and effective!
upvoted 0 times
...
Malcolm
11 months ago
I think option B is the simplest way to test.
upvoted 0 times
...
Erasmo
11 months ago
I recall discussing the importance of analyzing logs, but I’m torn between using the console or the CLI to write those mock messages.
upvoted 0 times
...
Odelia
11 months ago
I feel like deploying the emulator locally could help isolate the issue, but I’m uncertain if it’s the best approach for a production environment.
upvoted 0 times
...
Mattie
11 months ago
I think option B sounds familiar; using the gcloud CLI to write messages seems straightforward, but I’m not completely confident about the logging part.
upvoted 0 times
...
Fatima
11 months ago
I remember we practiced a similar question about testing with mock messages, but I’m not sure if using the emulator is necessary for this scenario.
upvoted 0 times
...
Rutha
11 months ago
I recall discussing the importance of analyzing logs, but I’m torn between using the console or the CLI to write those mock messages.
upvoted 0 times
...
Laila
11 months ago
I feel like deploying the emulator locally could help isolate the issue, but I’m uncertain if it’s the best approach for a production environment.
upvoted 0 times
...
Cassi
11 months ago
I think option B sounds familiar; using the gcloud CLI to write messages seems straightforward, but I’m not completely confident about the logging part.
upvoted 0 times
...
Robt
11 months ago
I remember we practiced a similar question about testing with mock messages, but I’m not sure if using the emulator is necessary for this scenario.
upvoted 0 times
...
Mozell
11 months ago
Hmm, I'm not entirely sure about this one. The options all sound similar, and I'm not very familiar with the activiti-app configuration properties. I'll need to think this through carefully.
upvoted 0 times
...
Corinne
11 months ago
Collecting run-time metrics and sending emails seems like it could be automated, so I'm going to rule that out. The other options all seem like they could be done through WLST scripts, so I'll need to analyze each one closely.
upvoted 0 times
...
Yvonne
11 months ago
Okay, I've got this. The AlertDialog widget is used to display a modal dialog, not a temporary notification at the bottom of the screen. The question description is inaccurate, so the correct answer is False.
upvoted 0 times
...
Mohammad
11 months ago
Hmm, I'm not sure about this one. I know centralized logging is important in Kubernetes, but I'm not entirely clear on the specific steps required to set it up. I'll have to think this through carefully.
upvoted 0 times
...

Save Cancel