Google Cloud Professional Cloud Developer — Question 89
Your team develops services that run on Google Kubernetes Engine. You need to standardize their log data using Google-recommended practices and make the data more useful in the fewest number of steps. What should you do? (Choose two.)
Answer options
- A. Create aggregated exports on application logs to BigQuery to facilitate log analytics.
- B. Create aggregated exports on application logs to Cloud Storage to facilitate log analytics.
- C. Write log output to standard output (stdout) as single-line JSON to be ingested into Cloud Logging as structured logs.
- D. Mandate the use of the Logging API in the application code to write structured logs to Cloud Logging.
- E. Mandate the use of the Pub/Sub API to write structured data to Pub/Sub and create a Dataflow streaming pipeline to normalize logs and write them to BigQuery for analytics.
Correct answer: A, C
Explanation
The correct answers, A and C, enable efficient log analytics by exporting logs to BigQuery and formatting them as structured logs. Options B, D, and E involve either less efficient storage solutions or unnecessary complexity, making them less suitable for standardizing log data in a straightforward manner.