Spring Boot Quiz (Set 9) Spring Boot (Set 9) 1 / 10 Which annotation is used to enable scheduling in Spring Boot? @TaskScheduler @EnableScheduling @Scheduled @EnableTask 2 / 10 In Spring Boot, what is the role of the 'application-test.properties' (or 'application-test.yml') file? To configure the main application properties To provide test-specific configuration settings To store log messages To define database schema and tables for testing 3 / 10 What is the purpose of the '@EnableAutoConfiguration' annotation in Spring Boot? It enables auto-reloading of Spring beans It enables automatic configuration based on the classpath and dependencies It triggers automatic data migration It activates automatic exception handling 4 / 10 Which of the following annotations is used to enable caching in Spring Boot? @EnableCaching @Cachable @Cacheable @EnableCache 5 / 10 What is the purpose of the '@RestController' annotation in Spring Boot? It indicates a component class in the application It defines a bean in the Spring context It combines '@Controller' and '@ResponseBody' annotations It creates a JPA entity for data storage 6 / 10 Which embedded web server is commonly used with Spring Boot applications? Jetty WebLogic Tomcat GlassFish 7 / 10 What is the purpose of the 'application.properties' (or 'application.yml') file in Spring Boot? To define database schema and tables To configure application-specific properties To store log messages To store test cases 8 / 10 What is the default packaging type for a Spring Boot project when using Maven? war zip tar.gz jar 9 / 10 Which annotation is used to define a Spring Boot application class? @SpringApp @SpringBootApplication @SpringMain @SpringClass 10 / 10 What is the primary purpose of Spring Boot? To provide a lightweight container for Java applications To build standalone Java applications without any framework To simplify the development of Spring applications To replace the Spring Framework completely Your score isThe average score is 0% 0% Restart quiz