Spring Boot Quiz (Set 8) Spring Boot (Set 8) 1 / 10 What is the purpose of the '@Component' annotation in Spring? To enable validation in Spring MVC To define URL mappings To configure application properties To indicate that a class is a Spring bean 2 / 10 In Spring Boot, what is the primary role of the 'starter' dependencies? To optimize database performance To provide a set of pre-configured templates for specific use cases To generate REST API documentation To automate code deployment 3 / 10 What is the purpose of the '@Transactional' annotation in Spring? To mark a class as a primary candidate for injection To enable caching To define the scope of a transaction To handle request mappings 4 / 10 In Spring Boot, what is the default embedded database? MySQL PostgreSQL SQLite H2 5 / 10 What is the purpose of the '@Scheduled' annotation in Spring? To define the scope of a bean To create scheduled tasks and methods To enable asynchronous processing To handle HTTP requests 6 / 10 What is the purpose of the '@RestController' annotation in Spring MVC? To define a configuration property To handle form submissions To indicate that a class is a RESTful controller To declare a bean in the application context 7 / 10 Which annotation is used to define a JPA entity class? @Bean @Model @Entity @Component 8 / 10 What is the primary purpose of Spring Data JPA? To simplify interaction with databases using JPA To manage external APIs To handle frontend rendering To provide security features 9 / 10 In Spring Boot, how can you exclude specific auto-configuration classes? By annotating the main application class with '@ExcludeAutoConfiguration' By adding exclusions in the 'application.properties' file By setting 'spring.autoconfig.exclude' property in 'application.properties' By using the '@EnableAutoConfiguration' annotation with the 'exclude' attribute 10 / 10 What is the purpose of the '@RequestBody' annotation in Spring MVC? To define a configuration property To bind the request body to a method parameter To specify a transaction boundary To handle exception mappings Your score isThe average score is 0% 0% Restart quiz