Cloud Engineer Cloud Monitoring, Logging & Observability 1 — Questions and Answers
Question 1: Which Google Cloud service provides a unified dashboard for metrics, logs, and traces across your cloud infrastructure?
- Cloud Trace
- Cloud Monitoring (Correct answer)
- Cloud Profiler
- Error Reporting
Correct answer: Cloud Monitoring
Cloud Monitoring (formerly Stackdriver Monitoring) provides a unified dashboard for metrics, uptime checks, alerting, and dashboards across Google Cloud and AWS resources.
Question 2: A cloud engineer needs to capture all API calls made to Google Cloud resources for security auditing. Which log type should they enable?
- System Event Audit Logs
- Data Access Audit Logs (Correct answer)
- Admin Activity Audit Logs
- Policy Denied Audit Logs
Correct answer: Data Access Audit Logs
Data Access Audit Logs record API calls that read or modify the configuration or data of user-created resources and must be explicitly enabled (except for BigQuery).
Question 3: You want to export Cloud Logging logs to BigQuery for long-term analysis. What resource do you configure in Cloud Logging?
- Log metric
- Log sink (Correct answer)
- Log exclusion filter
- Log bucket
Correct answer: Log sink
A log sink routes log entries matching a filter to a destination such as BigQuery, Cloud Storage, or Pub/Sub for long-term storage or analysis.
Question 4: What is the default retention period for logs stored in the _Default log bucket in Cloud Logging?
- 7 days
- 30 days (Correct answer)
- 90 days
- 365 days
Correct answer: 30 days
The _Default log bucket retains logs for 30 days by default; you can extend retention up to 3,650 days for an additional cost.
Question 5: A team wants to receive an email alert when the CPU utilization of a Compute Engine instance exceeds 80% for 5 minutes. Which Cloud Monitoring component defines this threshold condition?
- Uptime check
- Alerting policy (Correct answer)
- Dashboard chart
- Log-based metric
Correct answer: Alerting policy
An alerting policy in Cloud Monitoring defines conditions (metric threshold, duration, filter) and notification channels to trigger when those conditions are met.
Question 6: Which Cloud Monitoring feature allows you to verify that a publicly accessible URL returns a successful HTTP response at regular intervals?
- Synthetic monitor
- Uptime check (Correct answer)
- SLO alert
- Metric descriptor
Correct answer: Uptime check
Uptime checks periodically send requests to a specified URL or IP address and alert you when the endpoint is unreachable or returns an error.
Question 7: You are writing a custom metric in Cloud Monitoring. Which metric kind should you use if each data point represents an instantaneous measurement, such as current memory usage?
- DELTA
- CUMULATIVE
- GAUGE (Correct answer)
- DISTRIBUTION
Correct answer: GAUGE
A GAUGE metric kind represents an instantaneous value at a specific point in time, such as current CPU or memory usage.
Which Google Cloud service provides a unified dashboard for metrics, logs, and traces across your cloud infrastructure?