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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Mahmoud_E
Highly Voted 2 years, 3 months 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 35 times
chickennuggets
3 months, 1 week 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 3 times
...
...
kiappy81
Highly Voted 2 years, 5 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 16 times
...
venkee
Most Recent 6 days, 21 hours ago
Selected Answer: A
Q: How come filter condition using "AND" for same column with different value? 'OR' is more appropriate here to add up all rows to check the metric sum exceed 80%, IMHO. If I'm missing something, please let me know. BTW I'm forced to choose an answer, hence I selected 'A'. But I feel the question itself is malformed...
upvoted 2 times
...
Ekramy_Elnaggar
2 months, 1 week ago
Selected Answer: C
This question is wrong and contradict with question 199, Q199 is the right one
upvoted 1 times
...
MarcoPellegrino
3 months, 3 weeks ago
There should always be a time reference when having a metric
upvoted 1 times
...
pcamaster
6 months, 1 week 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 4 times
...
Gino17m
9 months, 1 week 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 5 times
huuthanhdlv
8 months, 2 weeks ago
Have same thought as you. Misunderstood this point thus selected wrong answer. All answers seem wrong...
upvoted 1 times
...
...
[Removed]
9 months, 3 weeks 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
10 months 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
10 months 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
10 months, 3 weeks 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 4 times
...
mesodan
11 months, 1 week 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
11 months, 1 week 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
11 months, 3 weeks 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 3 times
...
[Removed]
1 year 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
1 year, 1 month 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
1 year, 1 month 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
1 year, 1 month ago
Selected Answer: C
C is the correct one
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago