
Answer-first summary for fast verification
Answer: Use Cloud Monitoring to set up an alerting policy for CPU and memory metrics and to configure SMS notification channels.
To set up alerts for CPU and memory metrics for your Cloud SQL instance following Google-recommended practices, the best approach is to use Cloud Monitoring. Cloud Monitoring is specifically designed for monitoring and alerting on metrics from Google Cloud services, including Cloud SQL. It allows you to set up alerting policies based on specific metrics (like CPU and memory usage) and configure notification channels, including SMS, to notify you when those metrics exceed certain thresholds. Option A suggests using a Cloud Function, which is not the most efficient or recommended method for this purpose. Option B mentions Error Reporting, which is not suitable for monitoring CPU and memory metrics. Option C involves Cloud Logging and setting up a log sink, which is not the correct approach for monitoring real-time metrics like CPU and memory. Therefore, the correct answer is D.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can you configure alerts for CPU and memory metrics on your Cloud SQL for SQL Server instance following Google's best practices to receive text notifications when potential issues arise during increased holiday traffic for your ecommerce application?
A
Use a Cloud Function to pull CPU and memory metrics from your Cloud SQL instance and to call a custom service to send alerts.
B
Use Error Reporting to monitor CPU and memory metrics and to configure SMS notification channels.
C
Use Cloud Logging to set up a log sink for CPU and memory metrics and to configure a sink destination to send a message to Pub/Sub.
D
Use Cloud Monitoring to set up an alerting policy for CPU and memory metrics and to configure SMS notification channels.
No comments yet.