Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to enable the Spring Boot info 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
Using 'health' instead of 'info' exposes the health endpoint, not info.
Not including any endpoint disables info endpoint.
✗ Incorrect
The info endpoint must be included to enable it in Spring Boot actuator.
2fill in blank
mediumComplete the code to add custom info properties in application.properties.
Spring Boot
info.app.name=[1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using boolean or numeric values instead of a string.
Leaving the value empty disables the info property.
✗ Incorrect
Setting info.app.name to a string like 'MyApp' adds custom info data.
3fill in blank
hardFix the error in the YAML config to expose the info 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
Using brackets or quotes that YAML interprets incorrectly.
Using 'all' exposes all endpoints, not just info.
✗ Incorrect
In YAML, the value should be a plain string info to expose only the info endpoint.
4fill in blank
hardFill both blanks to configure info endpoint exposure and add a custom property.
Spring Boot
management.endpoints.web.exposure.include=[1] info.app.version=[2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'true' instead of a version string for the second blank.
Exposing 'health' instead of 'info' endpoint.
✗ Incorrect
Expose the info endpoint and set a custom version string.
5fill in blank
hardFill all three blanks to expose info and health endpoints and add custom info properties.
Spring Boot
management.endpoints.web.exposure.include=[1] info.app.name=[2] info.app.description=[3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'metrics' instead of 'info,health' for endpoint exposure.
Leaving description blank or using non-string values.
✗ Incorrect
Expose both info and health endpoints and add name and description info properties.