SLA stands for Service Level Agreement. It is a contract that defines the expected level of service between a provider and a customer.
Click to reveal answer
beginner
Why is uptime important in SLA tracking?
Uptime measures the time a service is available and working. High uptime means the service is reliable and meets SLA promises.
Click to reveal answer
intermediate
How is uptime percentage calculated?
Uptime % = (Total time service is available / Total time in period) × 100. For example, 99.9% uptime means the service was down for only 0.1% of the time.
Click to reveal answer
beginner
What is a common REST API endpoint to check service uptime?
A common endpoint is GET /health or GET /status which returns the current status and uptime info of the service.
Click to reveal answer
intermediate
How can you track SLA violations using a REST API?
You can track SLA violations by regularly calling uptime/status endpoints, logging downtime events, and comparing uptime against SLA targets.
Click to reveal answer
What does a 99.9% uptime SLA mean?
AThe service can be down for about 8.76 hours per year
BThe service is down 99.9% of the time
CThe service is always available
DThe service is down for 99.9 hours per month
✗ Incorrect
99.9% uptime means the service can be down for about 0.1% of the time, which is roughly 8.76 hours per year.
Which HTTP method is usually used to check service status in a REST API?
APOST
BGET
CPUT
DDELETE
✗ Incorrect
GET is used to retrieve information like service status without changing any data.
What is the main purpose of an SLA?
ATo create marketing materials
BTo write code for the service
CTo design the user interface
DTo define service expectations and responsibilities
✗ Incorrect
An SLA defines the expected service levels and responsibilities between provider and customer.
Which metric directly measures service availability?
AMemory usage
BResponse time
CUptime
DCPU usage
✗ Incorrect
Uptime measures how long the service is available and working.
How can downtime be detected via a REST API?
ABy receiving error responses or no response from status endpoints
BBy sending POST requests to update data
CBy checking user login times
DBy monitoring database size
✗ Incorrect
Downtime is detected when status endpoints return errors or fail to respond.
Explain what SLA and uptime tracking mean and why they are important for a service.
Think about promises made to customers and how we check if they are kept.
You got /4 concepts.
Describe how you would use a REST API to monitor a service's uptime and detect SLA violations.
Consider how to check service health regularly and measure against agreed levels.
You got /4 concepts.
Practice
(1/5)
1. What does SLA stand for in the context of uptime tracking?
easy
A. Service Level Agreement
B. System Log Analysis
C. Server Load Average
D. Standard Latency Assessment
Solution
Step 1: Understand SLA meaning
SLA is a contract that defines expected service performance and uptime.
Step 2: Match SLA to options
Only "Service Level Agreement" correctly describes this contract.
Final Answer:
Service Level Agreement -> Option A
Quick Check:
SLA = Service Level Agreement [OK]
Hint: Remember SLA means agreement on service quality [OK]
Common Mistakes:
Confusing SLA with system logs
Thinking SLA measures latency
Mixing SLA with server load
2. Which HTTP method is typically used to retrieve uptime data from a REST API?
easy
A. POST
B. DELETE
C. PUT
D. GET
Solution
Step 1: Identify REST API methods for data retrieval
GET method is used to request data without changing server state.
Step 2: Match method to uptime data retrieval
Since uptime data is fetched, GET is the correct method.