Easy1 markMultiple Choice
GCP PCA · Question 45 · Design for security
Your development team spends too much time parsing through raw text logs in Cloud Logging to find application crashes and stack traces. Which TWO actions should you take to improve their troubleshooting efficiency? (Select TWO)
Your development team spends too much time parsing through raw text logs in Cloud Logging to find application crashes and stack traces. Which TWO actions should you take to improve their troubleshooting efficiency? (Select TWO)
Answer options:
A.
Update the application to output logs in structured JSON format.
B.
Export all logs to Cloud Storage and use grep commands to search them.
C.
Use Cloud Error Reporting to automatically group and notify the team of crashes.
D.
Increase the logging verbosity to DEBUG level in production.
E.
Use Cloud Trace to find the stack traces.
How to approach this question
Identify best practices for logging and the specific GCP service designed for crash analysis.
Full Answer
Update the application to output logs in structured JSON format., Use Cloud Error Reporting to automatically group and notify the team of crashes.
To improve observability, applications should output structured logs (JSON) rather than plain text. This allows GCP to parse the logs into queryable fields. Cloud Error Reporting is a service that automatically hooks into Cloud Logging, identifies stack traces and exceptions, groups them by root cause, and provides a dashboard and alerts for application crashes.
Common mistakes
Confusing Cloud Trace (latency) with Cloud Error Reporting (crashes).
Practice the full GCP Professional Cloud Architect Practice Exam 1
50 questions · hints · full answers · grading
More questions from this exam
Q01**CASE STUDY: TechStream Gaming**
**Company Overview:** TechStream Gaming is a global gaming com...HardQ02**CASE STUDY: TechStream Gaming**
**Company Overview:** TechStream Gaming is a global gaming com...MediumQ03**CASE STUDY: TechStream Gaming**
**Company Overview:** TechStream Gaming is a global gaming com...HardQ04**CASE STUDY: TechStream Gaming**
**Company Overview:** TechStream Gaming is a global gaming com...MediumQ05**CASE STUDY: TechStream Gaming**
**Company Overview:** TechStream Gaming is a global gaming com...Medium
Expert