Google Professional Cloud DevOps Engineer Question 123
Single answerGoogle Cloud PlatformYour organization needs to store application logs for auditing purposes and ensure they are available for long-term analysis while minimizing operational overhead. The logs should be easily queryable and support integration with dashboards for visualization. Which service should you export the logs to?
- A
BigQuery
- B
Cloud Pub/Sub
- C
Cloud Storage
- D
Cloud Monitoring
Show answer and explanation
Correct answer: A
Explanation
BigQuery is the most suitable service for exporting logs when long-term storage, easy querying, and integration with dashboards are required. It allows organizations to analyze logs using SQL and integrate them with visualization tools to meet auditing and reporting needs. While other options have their use cases, they do not provide the same level of functionality for querying and analysis as BigQuery.
- A. Correct.
BigQuery is the best choice for storing logs that need to be easily queryable and analyzed over the long term. It provides a serverless and scalable platform for querying data using SQL, making it ideal for auditing and dashboard integration.
- B. Incorrect.
Cloud Pub/Sub is a messaging service designed for real-time streaming and event-driven architectures, not for long-term log storage or querying. While it can be used as an intermediary to route logs, it is not suitable for direct auditing or analysis.
- C. Incorrect.
Cloud Storage is a good option for long-term log retention, but it is not optimized for querying or visualization. You would need additional tools or services to analyze the logs, which increases complexity.
- D. Incorrect.
Cloud Monitoring is used for monitoring metrics and setting up alerts but is not designed for log storage or querying. It can complement log analysis but is not a primary log export destination for auditing purposes.