Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation PCA Exam - Topic 3 Question 5 Discussion

Actual exam question for Linux Foundation's PCA exam
Question #: 5
Topic #: 3
[All PCA Questions]

Which function would you use to calculate the 95th percentile latency from histogram data?

Show Suggested Answer Hide Answer
Suggested Answer: B

To calculate a percentile (e.g., 95th percentile) from histogram data in Prometheus, the correct function is histogram_quantile(). It estimates quantiles based on cumulative bucket counts.

Example:

histogram_quantile(0.95, sum(rate(http_request_duration_seconds_bucket[5m])) by (le))

This computes the 95th percentile request duration across all observed instances over the last 5 minutes.


Contribute your Thoughts:

0/2000 characters
Joana
11 hours ago
Not sure about B, can you really sum rates like that?
upvoted 0 times
...
Cristal
5 days ago
Wait, is there really a function called histogram_quantile?
upvoted 0 times
...
Carissa
24 days ago
I thought it was A at first, but B makes more sense.
upvoted 0 times
...
Carmen
29 days ago
Haha, Dahlia, you're a riot! But I think I'll stick with the more reliable option B. Can't go wrong with the histogram_quantile function.
upvoted 0 times
...
Dahlia
1 month ago
D) topk(0.95, http_request_duration_seconds) is clearly the best choice. Who needs fancy percentile calculations when you can just get the top 95% of the values?
upvoted 0 times
...
Raina
1 month ago
I'm going with B as well. The "sum(rate(...))" part is to convert the cumulative histogram into a proper histogram, which is necessary for the quantile calculation.
upvoted 0 times
...
Vanesa
1 month ago
Option B looks good, but I'm a bit confused about the "sum(rate(...))" part. Shouldn't we just use the raw histogram data?
upvoted 0 times
...
Alayna
2 months ago
I don’t think it’s C or D since they seem more general and not specifically for histograms.
upvoted 0 times
...
Linsey
2 months ago
I’m a bit confused between A and B. I know they both deal with quantiles, but I can't recall the specifics of their usage.
upvoted 0 times
...
Larae
2 months ago
I remember practicing with histogram data, and I feel like `histogram_quantile` was a key function for calculating percentiles.
upvoted 0 times
...
Karan
2 months ago
I think the answer might be B, but I'm not entirely sure how the `sum(rate(...))` part works in this context.
upvoted 0 times
...
Jean
2 months ago
I think B is the way to go. The histogram_quantile function looks like it's the best fit for calculating the 95th percentile from the given histogram data.
upvoted 0 times
...
Pearline
3 months ago
I'm not sure about this one. The question mentions "histogram data," so I'm thinking maybe B or C could work. I'll have to review the details of each function to decide.
upvoted 0 times
...
Helaine
3 months ago
Okay, I'm pretty confident that B is the correct answer here. The histogram_quantile function is specifically designed for calculating percentiles from histogram data, which is exactly what this question is asking for.
upvoted 0 times
...
Willow
3 months ago
B is the right choice for histograms!
upvoted 0 times
...
Ria
3 months ago
I think B is the right choice.
upvoted 0 times
...
Eleonore
3 months ago
B) histogram_quantile(0.95, sum(rate(http_request_duration_seconds_bucket[5m])) by (le)) is the correct answer. It calculates the 95th percentile latency from histogram data.
upvoted 0 times
...
Mila
4 months ago
Definitely B, it's the standard way to get percentiles from histograms.
upvoted 0 times
...
Cassandra
4 months ago
Hmm, this one's tricky. I'm leaning towards B, but I'm a bit confused about the difference between the quantile_over_time and histogram_quantile functions. I'll have to double-check the documentation on those.
upvoted 0 times
...
Georgeanna
4 months ago
I think B is the right answer, but I'm not 100% sure. The histogram_quantile function looks like it might be the way to go for calculating the 95th percentile from the histogram data.
upvoted 0 times
Caprice
4 months ago
I thought A might work too, but B is more accurate.
upvoted 0 times
...
...

Save Cancel