Google Associate Cloud Engineer Question 28
Select 3Google Cloud PlatformYou are tasked with setting up monitoring for a new application deployed on Google Cloud. The application consists of several Compute Engine instances and a Cloud SQL database. Which steps should you follow to provision and set up monitoring using Google Cloud's operations suite?
- A
Enable the Cloud Monitoring API and create a new workspace.
- B
Install the Cloud Monitoring agent on the Compute Engine instances.
- C
Create a Cloud Function to automatically gather metrics from the Cloud SQL database.
- D
Set up alerting policies in Cloud Monitoring for key metrics.
- E
Configure a Cloud Pub/Sub topic to store all log data.
Show answer and explanation
Correct answers: A, B, D
Explanation
To effectively use Google Cloud's operations suite for monitoring, you need to enable the appropriate APIs and set up a monitoring workspace. Installing the Cloud Monitoring agent on your instances is essential for collecting detailed metrics. Additionally, configuring alerting policies helps ensure that you are informed of any critical issues. Other options, like using Cloud Functions or Pub/Sub for these purposes, are not part of the standard process for setting up monitoring in this context.
- A. Correct.
Enabling the Cloud Monitoring API and creating a workspace is necessary to start using Google Cloud's monitoring services.
- B. Correct.
Installing the Cloud Monitoring agent on the instances allows for detailed metrics collection beyond the default metrics.
- C. Incorrect.
Cloud Functions are not used for gathering metrics; instead, Cloud Monitoring and Logging are used for this purpose.
- D. Correct.
Setting up alerting policies is crucial to notify the team of any anomalies in key metrics.
- E. Incorrect.
Cloud Pub/Sub is not directly used for storing log data; Cloud Logging is the appropriate service for this.