Google Cloud Professional Cloud Architect — Question 160
You have deployed an application on Anthos clusters (formerly Anthos GKE). According to the SRE practices at your company, you need to be alerted if request latency is above a certain threshold for a specified amount of time. What should you do?
Answer options
- A. Install Anthos Service Mesh on your cluster. Use the Google Cloud Console to define a Service Level Objective (SLO), and create an alerting policy based on this SLO.
- B. Enable the Cloud Trace API on your project, and use Cloud Monitoring Alerts to send an alert based on the Cloud Trace metrics.
- C. Use Cloud Profiler to follow up the request latency. Create a custom metric in Cloud Monitoring based on the results of Cloud Profiler, and create an Alerting policy in case this metric exceeds the threshold.
- D. Configure Anthos Config Management on your cluster, and create a yaml file that defines the SLO and alerting policy you want to deploy in your cluster.
Correct answer: A
Explanation
The correct answer is A because installing Anthos Service Mesh allows you to define a Service Level Objective (SLO) directly related to your application's performance metrics, which can then trigger alerts. Options B and C focus on different monitoring tools that do not directly align with SRE practices for defining SLOs, while D suggests using Anthos Config Management, which is not the optimal approach for this specific requirement.