PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice question 10 of 25

You support a high-traffic web application with a microservice architecture. The home page of the application displays multiple widgets containing…

Full set: 205 questions
You support a high-traffic web application with a microservice architecture. The home page of the application displays multiple widgets containing content such as the current weather, stock prices, and news headlines. The main serving thread makes a call to a dedicated microservice for each widget and then lays out the homepage for the user. The microservices occasionally fail; when that happens, theserving thread serves the homepage with some missing content. Users of the application are unhappy if this degraded mode occurs too frequently, but they would rather have some content served instead of no content at all. You want to set a Service Level Objective (SLO) to ensure that the user experience does not degrade too much. What Service Level Indicator {SLI) should you use to measure this?
Answer options
A: A quality SLI: the ratio of non-degraded responses to total responses Correct answer
B: An availability SLI: the ratio of healthy microservices to the total number of microservices
C: A freshness SLI: the proportion of widgets that have been updated within the last 10 minutes
D: A latency SLI: the ratio of microservice calls that complete in under 100 ms to the total number of microservice calls
Correct Answer:
A. A quality SLI: the ratio of non-degraded responses to total responses
Explanation

The goal is to measure the user's experience of the homepage, which degrades when content is missing. A quality-based Service Level Indicator (SLI) that measures the ratio of non-degraded (i.e., fully rendered) homepage responses to total responses directly reflects this user-facing impact. This SLI captures the essence of the problem: users are unhappy when the page is incomplete. Measuring the quality of the final aggregated response is the most accurate way to set an SLO that aligns with user satisfaction in this scenario.

Why Incorrect

B. This measures the health of the backend components, not the user's experience. A single microservice failure might not always result in a degraded response.
C. This is a freshness SLI, which is irrelevant to the problem of missing content (an availability or quality issue).
D. This is a latency SLI. The problem described is about the completeness of the content, not the speed at which it is delivered.

References

1. Betsy Beyer, Chris Jones, Jennifer Petoff, and Niall Richard Murphy, Site Reliability Engineering: How Google Runs Production Systems (O'Reilly Media, 2016), Chapter 4, "Service Level Objectives," section "What Do You Measure?" It emphasizes choosing SLIs that are "a good proxy for user happiness."

2. Google Cloud, "Concepts in service monitoring," last modified March 25, 2024. Under "Service-level indicators (SLIs)," it states, "You choose what to measure, the SLI, based on what's important to your users." A quality SLI measuring successful, non-degraded responses is a direct measure of user experience.

3. Alex Hidalgo, Implementing Service Level Objectives (O'Reilly Media, 2020), Chapter 3, "SLIs: The Art of the Possible." This chapter details different SLI types, including quality, noting its use for measuring "how 'good' a successful request was."

Scroll to Top