exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 273 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 273
Topic #: 1
[All Professional Cloud Developer Questions]

Your team recently deployed an application on Google Kubernetes Engine (GKE). You are monitoring your application and want to be alerted when the average memory consumption of your containers is under 20% or above 80%. How should you configure the alerts?

  • A. Create a Cloud Function that consumes the Monitoring API. Create a schedule to trigger the Cloud Function hourly and alert you if the average memory consumption is outside the defined range.
  • B. In Cloud Monitoring, create an alerting policy to notify you if the average memory consumption is outside the defined range.
  • C. Create a Cloud Function that runs on a schedule, executes kubectl top on all the workloads on the cluster, and sends an email alert if the average memory consumption is outside the defined range.
  • D. Write a script that pulls the memory consumption of the instance at the OS level and sends an email alert if the average memory consumption is outside the defined range.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
JonathanSJ
9 months ago
Selected Answer: B
I will go for B.
upvoted 1 times
...
plutonians123
10 months, 3 weeks ago
Selected Answer: B
To monitor average memory consumption of containers in Google Kubernetes Engine (GKE), the best approach is to use Cloud Monitoring. You can create an alerting policy in Cloud Monitoring to notify you if the average memory consumption is outside the defined range. This method leverages Google Cloud's built-in capabilities for efficient and accurate monitoring. For detailed instructions, please refer to: Google Cloud Documentation: https://cloud.google.com/monitoring
upvoted 1 times
...
dar_gor
10 months, 3 weeks ago
Selected Answer: B
No need to use CloudFunction in this case and the custom script is overengineering. Answer B fits the needs.
upvoted 1 times
...
plutonians123
11 months ago
Selected Answer: B
Cloud Monitoring provides a user-friendly interface to create complex alerting policies. You can set up thresholds for specific metrics, like memory consumption, and receive notifications if these thresholds are exceeded or undercut. This feature negates the need for custom scripts or functions to monitor these metrics.
upvoted 1 times
...
MoanaMacknzy
11 months, 1 week ago
Selected Answer: B
B is the right answer, alert in the cloud monitoring
upvoted 1 times
...
vspringe
11 months, 3 weeks ago
B. using Cloud Monitoring to create an alerting policy is the most efficient, reliable, and straightforward method to monitor and be alerted about the memory consumption of your containers in GKE.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago