
Answer-first summary for fast verification
Answer: Install the Stackdriver Error Reporting library for Python, and then run your code on App Engine flexible environment.
The question focuses on customizing error information sent to Stackdriver Error Reporting for a Python application hosted on App Engine flexible environment. Option C is correct because the Stackdriver Error Reporting library for Python can be directly integrated into the App Engine flexible environment. This library allows explicit customization of error reports, including adding context or modifying error payloads. Options A and B are incorrect as they suggest migrating to Compute Engine VM or Google Kubernetes Engine, which is unnecessary and contradicts the requirement to keep the app on App Engine. Option D is incorrect because manually using the Error Reporting API and generating log entries adds complexity; the library handles integration seamlessly and is the recommended approach for App Engine flexible environments.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You manage a Python-based trading application running on App Engine flexible environment. How can you customize the error details sent to Stackdriver Error Reporting?
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.
No comments yet.