0
0
Spring Bootframework~10 mins

Info endpoint configuration in Spring Boot - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete 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'
Ainfo
Bhealth
Cmetrics
Dbeans
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'health' instead of 'info' exposes the health endpoint, not info.
Not including any endpoint disables info endpoint.
2fill in blank
medium

Complete 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'
Atrue
BMyApp
C8080
Dspringboot
Attempts:
3 left
💡 Hint
Common Mistakes
Using boolean or numeric values instead of a string.
Leaving the value empty disables the info property.
3fill in blank
hard

Fix 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'
Ainfo
Ball
C['info']
D[health,info]
Attempts:
3 left
💡 Hint
Common Mistakes
Using brackets or quotes that YAML interprets incorrectly.
Using 'all' exposes all endpoints, not just info.
4fill in blank
hard

Fill 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'
Ainfo
B1.0.0
Ctrue
Dhealth
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'true' instead of a version string for the second blank.
Exposing 'health' instead of 'info' endpoint.
5fill in blank
hard

Fill 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'
Ainfo,health
BSampleApp
CA simple Spring Boot app
Dmetrics
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'metrics' instead of 'info,health' for endpoint exposure.
Leaving description blank or using non-string values.