0
0
Spring Bootframework~20 mins

Actuator endpoints overview in Spring Boot - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Actuator Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the primary purpose of Spring Boot Actuator endpoints?

Spring Boot Actuator provides several endpoints. What is their main purpose?

ATo serve static web pages for the application frontend.
BTo expose operational information about the running application for monitoring and management.
CTo handle user authentication and authorization.
DTo compile and build the application during runtime.
Attempts:
2 left
💡 Hint

Think about what monitoring tools need from a running app.

component_behavior
intermediate
1:30remaining
What output does the /actuator/health endpoint produce by default?

Consider a default Spring Boot app with Actuator enabled. What is the typical JSON output of the /actuator/health endpoint?

A{"state":"running"}
B{"result":"healthy"}
C{"health":"OK"}
D{"status":"UP"}
Attempts:
2 left
💡 Hint

Look for the key that indicates overall system status.

📝 Syntax
advanced
2:00remaining
Which configuration enables all Actuator endpoints in Spring Boot 3.x?

Given the following application.properties snippet, which option correctly enables all Actuator endpoints?

Spring Boot
management.endpoints.web.exposure.include=
Amanagement.endpoints.web.exposure.include=*
Bmanagement.endpoints.web.exposure.include=health,info,metrics,env
Cmanagement.endpoints.web.exposure.include=all
Dmanagement.endpoints.web.exposure.include=enabled
Attempts:
2 left
💡 Hint

Use the wildcard symbol to include all endpoints.

state_output
advanced
2:00remaining
What is the output of /actuator/metrics/jvm.memory.used endpoint?

When you access /actuator/metrics/jvm.memory.used, what kind of data do you expect to see?

A{"name":"jvm.memory.used","measurements":[{"statistic":"VALUE","value":12345678.0}],"availableTags":[]}
B{"memoryUsed":"12345678"}
C{"metric":"memory","used":true}
D{"status":"UP"}
Attempts:
2 left
💡 Hint

Look for a JSON structure with name, measurements, and statistics.

🔧 Debug
expert
2:30remaining
Why does the /actuator/env endpoint return 404 error by default?

You try to access /actuator/env but get a 404 Not Found error. What is the most likely reason?

AThe application does not have the Actuator dependency added.
BThe env endpoint is deprecated and removed in Spring Boot 3.x.
CThe env endpoint is not exposed by default and must be explicitly enabled in configuration.
DThe server port is incorrect in the request URL.
Attempts:
2 left
💡 Hint

Check which endpoints are exposed by default and which require explicit enabling.