exam questions

Exam Professional Cloud DevOps Engineer All Questions

View all questions & answers for the Professional Cloud DevOps Engineer exam

Exam Professional Cloud DevOps Engineer topic 1 question 64 discussion

Actual exam question from Google's Professional Cloud DevOps Engineer
Question #: 64
Topic #: 1
[All Professional Cloud DevOps Engineer Questions]

You support a trading application written in Python and hosted on App Engine flexible environment. You want to customize the error information being sent to
Stackdriver Error Reporting. What should you do?

  • A. Install the Stackdriver Error Reporting library for Python, and then run your code on a Compute Engine VM.
  • B. Install the Stackdriver Error Reporting library for Python, and then run your code on Google Kubernetes Engine.
  • C. Install the Stackdriver Error Reporting library for Python, and then run your code on App Engine flexible environment.
  • D. Use the Stackdriver Error Reporting API to write errors from your application to ReportedErrorEvent, and then generate log entries with properly formatted error messages in Stackdriver Logging.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
muk5658
Highly Voted 2 years, 11 months ago
@TNT87 - Answer is C, the link you shared has a pip install in the beginning which means Python requires installing library first. pip install --upgrade google-cloud-error-reporting
upvoted 20 times
TNT87
2 years, 10 months ago
Ans C https://cloud.google.com/error-reporting/docs/setup/python i think you can see that 1 month ago answered it ok, the one with answer D was a mistake
upvoted 1 times
TNT87
2 years, 10 months ago
App Engine flexible environment App Engine grants the Error Reporting Writer role by default. The Error Reporting library for Python can be used without needing to explicitly provide credentials. Error Reporting is automatically enabled for App Engine flexible environment applications. No additional setup is required. Yes anser is C https://cloud.google.com/error-reporting/docs/setup/python#app-engine
upvoted 3 times
...
...
...
Min3em
Most Recent 3 months, 3 weeks ago
Selected Answer: D
https://cloud.google.com/error-reporting/docs/setup/python#app-engine:~:text=Error%20Reporting%20is%20automatically%20enabled%20for%20App%20Engine%20flexible%20environment%20applications.%20No%20additional%20setup%20is%20required. "Error Reporting is automatically enabled for App Engine flexible environment applications. No additional setup is required."
upvoted 1 times
...
tell3r
5 months, 2 weeks ago
Selected Answer: C
ReportedErrorEvent is for formatting, not customization
upvoted 1 times
...
jinaldesailive
7 months, 2 weeks ago
Selected Answer: C
C is the answer. As it's simplest to configure with minimal effort.
upvoted 1 times
...
alpha_canary
8 months, 3 weeks ago
Selected Answer: C
wy not D? While it's possible to use the Stackdriver Error Reporting API, it's easier and more straightforward to use the library designed specifically for the language of the application (Python, in this case). https://cloud.google.com/error-reporting/docs/setup/python#install_the_client_library
upvoted 1 times
...
jomonkp
10 months, 4 weeks ago
Selected Answer: D
Option D
upvoted 2 times
...
anshad666
1 year, 6 months ago
Selected Answer: D
App Engine grants the Error Reporting Writer role by default. The Error Reporting library for Python can be used without needing to explicitly provide credentials.Error Reporting is automatically enabled for App Engine flexible environment applications. No additional setup is required
upvoted 3 times
...
JonathanSJ
1 year, 9 months ago
Selected Answer: C
C. Install the Stackdriver Error Reporting library for Python, and then run your code on App Engine flexible environment. This would allow you to customize the error information being sent to Stackdriver Error Reporting while keeping the application hosted on App Engine flexible environment.
upvoted 2 times
...
WhyIronMan
1 year, 10 months ago
Selected Answer: C
C) for sure As per Error Reporting setup instructions for App Engine Flexible: https://cloud.google.com/error-reporting/docs/setup/app-engine-flexible-environment "If you'd like to customize the error information being sent to Error Reporting, you can use the instrumentation libraries available for a number of languages" Which includes a step for installing Python client libraries https://cloud.google.com/error-reporting/docs/setup/python#installing_the_client_library
upvoted 2 times
...
DoodleDo
1 year, 10 months ago
Ans C There are two things asked here. One is Error Reporting enabled for App Engine Flex. It is based on this source - Ans D Error Reporting Auto Enabled for App Engine Flex - Source - https://cloud.google.com/error-reporting/docs/setup/app-engine-flexible-environment Second the question asks about customize error (not formatting the error). If you'd like to customize the error information being sent to Error Reporting, you can use the instrumentation libraries available for a number of languages: Source - https://cloud.google.com/error-reporting/docs/setup/app-engine-flexible-environment For formatting the error then use option D - Source - https://cloud.google.com/error-reporting/docs/formatting-error-messages
upvoted 3 times
...
enter_co
1 year, 11 months ago
Selected Answer: C
You want to customize the error information being sent to Stackdriver Error Reporting. As per Error Reporting setup instructions for App Engine Flexible: https://cloud.google.com/error-reporting/docs/setup/app-engine-flexible-environment "If you'd like to customize the error information being sent to Error Reporting, you can use the instrumentation libraries available for a number of languages" Which includes a step for installing Python client libraries https://cloud.google.com/error-reporting/docs/setup/python#installing_the_client_library
upvoted 2 times
...
mudot
1 year, 11 months ago
Selected Answer: D
Appeard in 7/11/2022 exam keys: you need to customise the message + it is already on appEngine
upvoted 3 times
...
mudot
1 year, 11 months ago
Selected Answer: D
isnt the question already says it is running on app engine flexible ?
upvoted 2 times
...
pradoUA
2 years ago
Selected Answer: D
The question ask: "You want to customize the error information being sent", hence for me the answer is D
upvoted 4 times
AzureDP900
2 years ago
Exactly that is the keyword triggers me D as right choice
upvoted 1 times
...
...
zellck
2 years ago
D is the answer. https://cloud.google.com/error-reporting/docs/setup/python#app-engine Error logs written to stderr are processed automatically by Error Reporting, without needing to use the Error Reporting library for Python directly.
upvoted 2 times
...
iamzeah
2 years, 3 months ago
Selected Answer: D
If you're using the Error Reporting API, you can report error events from your application by writing them to ReportedErrorEvent. Doing this generates log entries with properly formatted error messages in Cloud Logging. https://cloud.google.com/error-reporting/docs/formatting-error-messages
upvoted 4 times
...
nhadi82
2 years, 3 months ago
Selected Answer: D
If you're using the Error Reporting API, you can report error events from your application by writing them to ReportedErrorEvent. Doing this generates log entries with properly formatted error messages in Cloud Logging. The resulting logName is formatted as follows:
upvoted 3 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