Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 190 discussion

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

You have a Compute Engine application that you want to autoscale when total memory usage exceeds 80%. You have installed the Cloud Monitoring agent and configured the autoscaling policy as follows:
✑ Metric identifier: agent.googleapis.com/memory/percent_used
✑ Filter: metric.label.state = 'used'
✑ Target utilization level: 80
✑ Target type: GAUGE
You observe that the application does not scale under high load. You want to resolve this. What should you do?

  • A. Change the Target type to DELTA_PER_MINUTE.
  • B. Change the Metric identifier to agent.googleapis.com/memory/bytes_used.
  • C. Change the filter to metric.label.state = 'used' AND metric.label.state = 'buffered' AND metric.label.state = 'cached' AND metric.label.state = 'slab'.
  • D. Change the filter to metric.label.state = 'free' and the Target utilization to 20.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Mahmoud_E
Highly Voted 2 years, 1 month ago
Selected Answer: C
C is correct answer: A. Change the Target type to DELTA_PER_MINUTE. (in this case the utlization tagret need to be in minutes which is not the case its percentage % and not time based. B. Change the Metric identifier to agent.googleapis.com/memory/bytes_used. (not applicable) C. Change the filter to metric.label.state = 'used' AND metric.label.state = 'buffered' AND metric.label.state = 'cached' AND metric.label.state = 'slab'. (this gives total memory used) D. Change the filter to metric.label.state = 'free' and the Target utilization to 20. (you would still need to change the the percent_used to percent_free) https://stackoverflow.com/questions/69267526/what-is-disk-data-cached-in-the-memory-usage-chart-metrics-of-gcp-compute-in https://cloud.google.com/compute/docs/autoscaler/scaling-cloud-monitoring-metrics
upvoted 34 times
chickennuggets
3 weeks, 5 days ago
C is correct - the link provided actually specs exactly what needs to be done https://cloud.google.com/compute/docs/autoscaler/scaling-cloud-monitoring-metrics#autoscale_based_on_memory_usage
upvoted 1 times
...
...
kiappy81
Highly Voted 2 years, 2 months ago
Selected Answer: A
TARGET_TYPE: the value type for the metric. gauge: the autoscaler computes the average value of the data collected in the last couple of minutes and compares that to the utilization target. delta-per-minute: the autoscaler calculates the average rate of growth per minute and compares that to the utilization target. delta-per-second: the autoscaler calculates the average rate of growth per second and compares that to the utilization target. For accurate comparisons, if you set the utilization target in seconds, use delta-per-second as the target type. Likewise, use delta-per-minute for a utilization target in minutes.
upvoted 14 times
...
MarcoPellegrino
Most Recent 1 month, 1 week ago
There should always be a time reference when having a metric
upvoted 1 times
...
pcamaster
3 months, 3 weeks ago
exam done today, This question has been changed in the exam and the filter in the text of the question is actually "metric.label.state = 'used' AND metric.label.state = 'buffered' AND metric.label.state = 'cached' AND metric.label.state = 'slab'."
upvoted 1 times
...
Gino17m
6 months, 3 weeks ago
Selected Answer: C
...but....propbably thwre is a mistake in the question. I assume that metric.label.state can't have many values in the same time so instead AND operator OR should be used ??????
upvoted 3 times
huuthanhdlv
6 months ago
Have same thought as you. Misunderstood this point thus selected wrong answer. All answers seem wrong...
upvoted 1 times
...
...
Exam__
7 months, 1 week ago
To configure autoscaling based on the percent of used memory, specify the percent_used metric provided by the memory Ops Agent metrics. You should filter the metric by state to use only the used memory state. If you do not specify the filter, then the autoscaler takes the sum of memory usage by all memory states labeled as buffered, cached, free, slab, and used.
upvoted 2 times
...
kalyan_krishna742020
7 months, 2 weeks ago
I'm preparing for a test and see that questions from 115 onwards are considered valid. Can anyone who's taken the test offer any insights or advice? Thank you!
upvoted 1 times
...
a53fd2c
7 months, 2 weeks ago
C is the right option ( use used and gauge as options as in the guide listed here https://cloud.google.com/compute/docs/autoscaler/scaling-cloud-monitoring-metrics#autoscale_based_on_memory_usage
upvoted 1 times
...
nuts_bee
8 months, 1 week ago
In the real exam "Filter: metric.label.state = 'used' AND metric.label.state = 'buffered' AND metric.label.state = 'cached' AND metric.label.state = 'slab'" is in the QUESTION. The answer should be: C. Change the filter to metric.label.state = 'used'
upvoted 2 times
...
mesodan
8 months, 3 weeks ago
Selected Answer: C
C is the correct approach. The current filter only considers memory in the "used" state. However, the operating system also uses memory for caching, buffering, and other purposes. By modifying the filter we ensure the autoscaling policy considers all memory states, providing a more accurate representation of total memory usage.
upvoted 2 times
...
agadd2
8 months, 3 weeks ago
This question came in recent exam and default state already have all metric.label.state . Went with DELTE per minute option A
upvoted 1 times
...
alpha_canary
9 months, 1 week ago
Selected Answer: C
Question has a mistake "Filter: metric.label.state = 'used'" is in option C "Change the filter to metric.label.state = 'used' AND metric.label.state = 'buffered' AND metric.label.state = 'cached' AND metric.label.state = 'slab'." is actually in the queston. https://cloud.google.com/compute/docs/autoscaler/scaling-cloud-monitoring-metrics#autoscale_based_on_memory_usage You should use: Filter: metric.label.state = 'used'
upvoted 2 times
...
[Removed]
10 months ago
Selected Answer: C
The question in actual exam is reverse. The filter in the question is metric.label.state = 'used' AND metric.label.state = 'buffered' AND metric.label.state = 'cached' AND metric.label.state = 'slab'. and the option C is: Filter: metric.label.state = 'used' C is the correct answer in that case https://cloud.google.com/compute/docs/autoscaler/scaling-cloud-monitoring-metrics#autoscale_based_on_memory_usage
upvoted 4 times
...
e5019c6
11 months ago
Selected Answer: D
Actually this question is kinda weird We can discard A & B right away: A: If you change to DELTA_PER_MINUTE it'll calculate the difference in memory used from one minute to the other, and if that difference is bigger* than 80%, it'll trigger. Not what we want. B: If we change the metric to bytes_used, we must change the value of the gauge too. Not an option. Now comes the messy part. Following what is said in this page: https://cloud.google.com/monitoring/api/metrics_opsagent#agent-memory The metric.label.state should be ONE of these: [buffered, cached, free, slab, used] And it also states that: 'Summing the values of all states yields the total memory on the machine'. So, using a simple equation, if we remove the 'free' one from them, then that would give us the total memory that is being used. But remember, it said ONE of them, so that would discard it.
upvoted 1 times
e5019c6
11 months ago
Now D, for me is the closest one to being true. If you ask only for the free percentage_used and change the target to 20, you should be done. But a question I read here was very interesting, and connects with the * used above... How does it know that it should scale when the metric is above or below? We don't set that filter. We can hope that the autoscaling is smart enough to know that when we use 'used' we mean more than and when using 'free' we mean less than. I couldn't find any information about that, so if anyone gets any additional info, please share it.
upvoted 1 times
...
...
Roro_Brother
11 months, 2 weeks ago
Selected Answer: C
C is the correct one
upvoted 1 times
...
rsvd
1 year ago
Selected Answer: C
In the real exam, questions metric label state was mentioned as "metric.label.state = 'used' AND metric.label.state = 'buffered' AND metric.label.state = 'cached' AND metric.label.state = 'slab'" and "metric.label.state = 'used'" was given in answer C.
upvoted 7 times
ammonia_free
10 months ago
How does it work for autoscaling? "AND" is considered as "OR"? When you already have metric.label.state = 'used' in the problem statement and have an issue, then you trying to add more conditions and hope that this will solve the problem?!? Strange....
upvoted 1 times
...
...
rsvd
1 year ago
Selected Answer: C
https://cloud.google.com/monitoring/api/metrics_agent#agent-memory percent_used Current percentage of memory used by memory state. Summing percentages over all states yields 100 percent. Sampled every 60 seconds. state: One of [buffered, cached, free, slab, used].
upvoted 1 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 ...