QuizzesSpring Boot: Understanding Custom Actuator Endpoints
beginner
spring

Spring Boot: Understanding Custom Actuator Endpoints

A beginner-level quiz on creating and using custom actuator endpoints in Spring Boot applications.

15 minutes 15 questions Pass at 70%
Time Limit
15 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

15 questions on Spring Boot: Understanding Custom Actuator Endpoints. Work through them here, then start the quiz to answer them and see your score.

  1. 1.What is the primary purpose of Spring Boot Actuator?

    • ATo enhance the security of Spring Boot applications
    • BTo improve the performance of database queries
    • CTo provide production-ready features for monitoring and managing applications
    • DTo simplify the configuration of Spring Boot applications
  2. 2.Which annotation is used to create a custom actuator endpoint in Spring Boot?

    • A@Component
    • B@Endpoint
    • C@RestController
    • D@Service
  3. 3.In a custom actuator endpoint, which method should be annotated to expose the endpoint?

    • A@GetMapping
    • B@DeleteOperation
    • C@ReadOperation
    • D@WriteOperation
  4. 4.How can you access a custom actuator endpoint in a Spring Boot application?

    • AThrough the main application URL
    • BBy adding a specific configuration in application.properties
    • CBy using a special API key
    • DVia the /actuator endpoint path
  5. 5.Which dependency must be included to use Spring Boot Actuator?

    • Aspring-boot-starter-data-jpa
    • Bspring-boot-starter-security
    • Cspring-boot-starter-web
    • Dspring-boot-starter-actuator
  6. 6.What is the default HTTP method for a @ReadOperation in a custom actuator endpoint?

    • APOST
    • BPUT
    • CGET
    • DDELETE
  7. 7.Which configuration file is commonly used to customize actuator settings?

    • Alogback.xml
    • Bpom.xml
    • Csettings.gradle
    • Dapplication.properties
  8. 8.How do you enable a custom actuator endpoint in Spring Boot?

    • ABy defining it with @Endpoint and related annotations
    • BBy including it in the application.properties
    • CBy adding @EnableCustomEndpoint
    • DBy configuring it in the main application class
  9. 9.Which of the following is NOT a valid operation annotation for custom actuator endpoints?

    • A@ReadOperation
    • B@WriteOperation
    • C@UpdateOperation
    • D@DeleteOperation
  10. 10.What is the purpose of the @Selector annotation in a custom actuator endpoint?

    • ATo select specific data from the endpoint
    • BTo specify a default value for the endpoint
    • CTo indicate a path variable in the endpoint URL
    • DTo define the endpoint's HTTP method
  11. 11.Which HTTP status code is typically returned by a successful @WriteOperation?

    • A200 OK
    • B202 Accepted
    • C204 No Content
    • D201 Created
  12. 12.How can you disable all actuator endpoints except for a custom one?

    • ABy removing the actuator dependency
    • BBy using a security configuration
    • CBy setting management.endpoints.enabled-by-default=false and enabling the custom endpoint
    • DBy setting management.endpoints.web.exposure.include=all
  13. 13.Which property would you use to expose a custom actuator endpoint over HTTP?

    • Amanagement.endpoint.<endpointName>.enabled=true
    • Bserver.port=8080
    • Cmanagement.server.port=8081
    • Dspring.application.name=actuator
  14. 14.What is the default base path for actuator endpoints in Spring Boot 2.x?

    • A/
    • B/admin
    • C/actuator
    • D/monitor
  15. 15.Which class is typically extended to create a custom health indicator in Spring Boot?

    • AHealthIndicator
    • BHealthMonitor
    • CHealthStatus
    • DHealthCheck