Module 2: Introduction to Google Cloud Observability

Looking for ‘Logging and Monitoring in Google Cloud Module 2 Answers’?

In this post, I provide complete, accurate, and detailed explanations for the answers to Module 2: Introduction to Google Cloud Observability of Course 12: Logging and Monitoring in Google Cloud – Preparing for Google Cloud Certification: Cloud Security Engineer Professional Certificate.

Whether you’re preparing for quizzes or brushing up on your knowledge, these insights will help you master the concepts effectively. Let’s dive into the correct answers and detailed explanations for each question!

Advanced Logging and Analysis

Graded Assignment

1. You want to compare resource utilization for VMs used for production, development, and testing. What should you do?

  • Export all machine logs to Cloud Storage and use Cloud Run functions to build reports based on the VM tags.
  • Name the VMs with a prefix like “dev-”, “test-”, and “prod-” and filter on the name property when reporting.
  • Add a label called “state” to your VMs with the values “dev”, “test”, and “prod” and group by that label in your monitoring chart. ✅
  • Put those resources in different projects and use dataflow to create an aggregation of log values for each.

Explanation:
Using labels is the recommended and scalable way to organize and filter Google Cloud resources. Labels like "state=dev", "state=test", and "state=prod" let you group and compare metrics in Monitoring dashboards and reports easily. Filtering by name is not ideal because it’s less structured and harder to manage over time.

2. Your manager wants a daily report of resource utilization by application. Where would the best export sink be?

  • Cloud Storage
  • Pub/Sub
  • BigQuery ✅
  • Spanner

Explanation:
BigQuery is optimized for analytics and reporting. It allows you to run SQL-like queries on large datasets efficiently. Exporting usage metrics to BigQuery enables you to generate custom reports, perform aggregations, and schedule daily summaries—perfect for a manager’s daily utilization report.

Leave a Reply