Spring Boot Quiz (Set 12) Spring Boot (Set 2) 1 / 10 What is the purpose of the Spring Boot DevTools? To provide automatic application restarts and other development-related features To secure Spring Boot applications To enable Spring Boot Actuator endpoints To manage database connections 2 / 10 Which Spring Boot annotation is used to exclude a specific class from component scanning? @ComponentScan @ExcludeComponent @ComponentExclude @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = ExcludeClass.class) 3 / 10 What is a Bean Scope in Spring? It refers to the class used for creating beans It defines the lifecycle and visibility of a Spring bean It specifies the number of instances of a bean It defines the injection strategy for a bean 4 / 10 Which Spring module provides integration with databases using Object-Relational Mapping (ORM)? Spring Data JPA Spring Boot ORM Spring Data JDBC Spring ORM 5 / 10 What is the purpose of the Spring Boot Actuator? To automate the deployment of Spring Boot applications To generate API documentation To optimize database queries To provide production-ready features for monitoring and managing Spring Boot applications 6 / 10 What is the purpose of the '@GetMapping' annotation in Spring MVC? To map a method to an HTTP GET request To define a new bean instance To specify a transaction isolation level To handle exception mappings 7 / 10 Which Spring Boot starter is typically used for building RESTful APIs? spring-boot-starter-data-jpa spring-boot-starter-security spring-boot-starter-web spring-boot-starter-test 8 / 10 What is the purpose of the '@Qualifier' annotation in Spring? To mark a bean as a primary candidate for injection To specify which bean to inject when multiple beans of the same type are present To indicate that a bean is a singleton To define a bean's scope 9 / 10 Which annotation is used to define a bean in Spring? @Bean @Component @Service @Instance 10 / 10 What is an Inversion of Control (IoC) container in Spring? A container that manages the lifecycle of Spring beans and their dependencies A container for storing Java annotations A container for storing external configuration files A container for managing database connections Your score isThe average score is 0% 0% Restart quiz