Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to enable the basic health endpoint in Spring Boot Actuator.
Spring Boot
management.endpoints.web.exposure.include=[1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing an endpoint that does not show health status.
Using multiple endpoints instead of just one.
✗ Incorrect
The health endpoint shows the application health status and is commonly enabled first.
2fill in blank
mediumComplete the code to expose all actuator endpoints over HTTP.
Spring Boot
management.endpoints.web.exposure.include=[1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Listing endpoints manually instead of using the wildcard.
Using invalid characters instead of the wildcard.
✗ Incorrect
Using * exposes all available actuator endpoints.
3fill in blank
hardFix the error in the property to enable the metrics endpoint.
Spring Boot
management.endpoints.web.exposure.include=[1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Misspelling the endpoint name.
Using singular form instead of plural.
✗ Incorrect
The correct endpoint name is metrics with an 's' at the end.
4fill in blank
hardFill both blanks to configure the info and health endpoints exposure.
Spring Boot
management.endpoints.web.exposure.include=[1],[2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using endpoints not related to info or health.
Swapping the order of endpoints.
✗ Incorrect
The info and health endpoints are commonly exposed together.
5fill in blank
hardFill all three blanks to create a custom health indicator bean in Spring Boot.
Spring Boot
import org.springframework.boot.actuate.health.Health; import org.springframework.boot.actuate.health.HealthIndicator; import org.springframework.stereotype.Component; @Component public class CustomHealthIndicator implements [1] { @Override public [2] health() { return Health.[3]().build(); } }
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong interface name.
Returning wrong type from health method.
Using incorrect method to build health status.
✗ Incorrect
You implement HealthIndicator, return a Health object, and use Health.up() to indicate healthy status.