Google Cloud Certified Cloud Operations and Monitoring 2 — Questions and Answers
Question 1: A company needs to export all GCP logs to a centralized BigQuery dataset for long-term analysis. What is the best approach?
- Download logs manually via the console
- Configure a Log Sink to route logs to BigQuery (Correct answer)
- Use Cloud Dataflow to read logs from Cloud Logging
- Use Cloud Pub/Sub to push logs to BigQuery
Correct answer: Configure a Log Sink to route logs to BigQuery
Log Sinks in Cloud Logging automatically route log entries to destinations like BigQuery, Cloud Storage, or Pub/Sub for archival and analysis.
Question 2: What is the default log retention period for audit logs in Cloud Logging?
- 7 days
- 30 days
- 400 days (Correct answer)
- 1 year
Correct answer: 400 days
By default, Cloud Audit Logs (Admin Activity and System Event) are retained for 400 days in Cloud Logging.
Question 3: Which GCP monitoring concept defines a target level of service that is measured against an error budget?
- KPI (Key Performance Indicator)
- SLO (Service Level Objective) (Correct answer)
- SLA (Service Level Agreement)
- OKR (Objective and Key Result)
Correct answer: SLO (Service Level Objective)
An SLO defines the target reliability level (e.g., 99.9% availability) and is used to calculate the error budget for the service.
Question 4: A team wants to debug a production Cloud Run service without redeploying or adding log statements. Which GCP tool allows setting breakpoints and inspecting state?
- Cloud Trace
- Error Reporting
- Cloud Debugger (Snapshot Debugger) (Correct answer)
- Cloud Profiler
Correct answer: Cloud Debugger (Snapshot Debugger)
Cloud Debugger (now Snapshot Debugger) allows inspecting application state at specific code locations in running apps without stopping or redeploying.
Question 5: Which Cloud Monitoring chart type is most appropriate for visualizing the distribution of request latencies over time?
- Line chart
- Bar chart
- Heatmap (Correct answer)
- Pie chart
Correct answer: Heatmap
Heatmaps display the distribution of values across time, making them ideal for visualizing latency percentiles and outliers.
Question 6: What does the Cloud Profiler service do in Google Cloud?
- Traces requests across microservices
- Continuously collects CPU and memory usage data from running applications (Correct answer)
- Aggregates application errors
- Monitors uptime of external endpoints
Correct answer: Continuously collects CPU and memory usage data from running applications
Cloud Profiler collects CPU and memory profiling data from production applications with minimal performance impact, helping identify bottlenecks.
A company needs to export all GCP logs to a centralized BigQuery dataset for long-term analysis.
What is the best approach?