
Answer-first summary for fast verification
Answer: No additional setup or configuration is needed. Error reporting is automatically enabled for Cloud Run.
The correct answer is **B** because Cloud Run is natively integrated with Error Reporting, requiring no additional setup to capture and display the application's top or new errors in real-time. Errors and exceptions are automatically logged to Error Reporting, which can be viewed and analyzed in a dashboard. - **A** is incorrect because Cloud Logging, while capable of logging errors, is not specifically designed for error reporting in the context of Cloud Run. - **C** is incorrect as it does not facilitate a clear dashboard view or real-time analysis of errors. - **D** is incorrect because the Monitoring agent is intended for collecting metrics, not for error reporting, making it less effective for this purpose.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your team is working on a containerized Python application for a government project, utilizing a microservices architecture to be deployed on Cloud Run. The requirement is to monitor and display the application's top or new errors in a real-time dashboard. What is the best approach to achieve this?
A
Install the Logging agent and adjust your application to log exceptions and their stack traces to Cloud Logging.
B
No additional setup or configuration is needed. Error reporting is automatically enabled for Cloud Run.
C
Report errors directly to the API using the REST API or a client library.
D
Install the Monitoring agent and modify your application to log exceptions and their stack traces to Error reporting.
No comments yet.