exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 217 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 217
Topic #: 1
[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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
__rajan__
3 months, 1 week ago
Selected Answer: A
A is correct.
upvoted 1 times
...
purushi
4 months, 3 weeks ago
Selected Answer: A
A is right. Pub-Sub and cloud run emulator to run under local env with mock msgs publish to a topic, INFO and DEBUG logs enabled to see detailed log info.
upvoted 1 times
...
Pime13
10 months, 2 weeks ago
Selected Answer: A
I choose A. C is against all practices.
upvoted 1 times
...
zellck
1 year ago
Selected Answer: A
A is the answer.
upvoted 1 times
...
melisargh
1 year ago
Selected Answer: A
going with A because it mentions the 2 points of posible failure and gives you a full scenario to analyse
upvoted 2 times
...
kisswd
1 year ago
Selected Answer: A
Run all locally
upvoted 3 times
...
TNT87
1 year ago
Selected Answer: C
https://cloud.google.com/pubsub/docs/emulator
upvoted 1 times
swifty512
1 year ago
If production is pointing to your local emulator...your users are in trouble lol...Answer is A
upvoted 2 times
TNT87
12 months ago
when emulatimg you are testing, you have to test, i think you need to read the document first then you will understand what pub/sub emulation is and how it is done. yeah the answer might not be correct because it doesnt include cloud run emulation.... you run all locally to test then you can deploy to production
upvoted 1 times
NewComer200
8 months ago
You may not have experience with this, but wouldn't the main application be developed in a local environment? In the same way, it is better to develop and debug everything locally. There are various troublesome parts, and in reality, the details (Functions, Pub/Sub, etc.) are checked in the development environment, but ideally, it would be convenient if everything could be developed and debugged in the local environment. In an ideal case, it would be convenient if everything could be developed and debugged in a local environment.
upvoted 1 times
...
...
TNT87
12 months ago
You want to conduct tests to identify the cause of the errors...this is the core of the question.....
upvoted 1 times
...
...
ladannylondo
1 year ago
i think that is better the option A, because can you run all locally and check the logs.
upvoted 4 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago