Topic 1 Question 64
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?
Install the Stackdriver Error Reporting library for Python, and then run your code on a Compute Engine VM.
Install the Stackdriver Error Reporting library for Python, and then run your code on Google Kubernetes Engine.
Install the Stackdriver Error Reporting library for Python, and then run your code on App Engine flexible environment.
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.
ユーザの投票
コメント(17)
@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
👍 13muk56582021/11/24D 100% https://cloud.google.com/error-reporting/docs/formatting-error-messages no need to install error reporting library on App Engine Flex.
👍 4pddddd2022/01/27- 正解だと思う選択肢: 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
👍 3iamzeah2022/07/22
シャッフルモード