Google Cloud Professional Cloud Developer — Question 326
You recently developed an application that will be hosted on Cloud Run. You need to conduct a load test. You want to analyze the load test logs second by second to understand your Cloud Run service's response to rapid traffic spikes. You want to minimize effort. How should you analyze the logs?
Answer options
- A. Use estimation to extrapolate performance from summary monitoring charts.
- B. Analyze the log data in BigQuery by configuring a BigQuery log sink with the appropriate inclusion filter for your application.
- C. Use Cloud Monitoring’s default log console for analysis.
- D. Analyze the log data in Cloud SQL for PostgreSQL by pushing logs to a Pub/Sub topic. Use Dataflow to process and ingest the logs.
Correct answer: B
Explanation
The correct answer is B because analyzing logs in BigQuery allows for detailed and efficient querying of log data, which is essential for understanding performance under load. Option A is incorrect as extrapolating from summary charts does not provide the granularity needed for second-by-second analysis. Option C does not offer the same level of detailed log analysis as BigQuery, while option D involves unnecessary complexity and additional components that can complicate the process.