Spring Boot Quiz (Set 4) Spring Boot (Set 4) 1 / 10 What is the purpose of the '@CrossOrigin' annotation in Spring MVC? To define a custom URL mapping To specify a request parameter To enable cross-origin resource sharing (CORS) for specific controller methods To handle exceptions 2 / 10 What does the term 'IoC' stand for in Spring Framework? Input or Control Interchange of Classes Inversion of Control Internal of Components 3 / 10 In Spring Boot, where should externalized configuration be placed? Inside the main application class In property files (application.properties or application.yml) In a separate Maven module In XML configuration files 4 / 10 Which annotation is used to enable Caching in Spring Boot? @Cacheable @CacheConfig @Caching @EnableCaching 5 / 10 What is the primary purpose of Spring Data JPA? To manage external APIs To simplify interaction with databases using JPA To handle frontend rendering To provide security features 6 / 10 Which embedded web server is commonly used with Spring Boot applications? Tomcat Jetty Undertow Nginx 7 / 10 What is the purpose of the '@Autowired' annotation in Spring? To define bean lifecycle methods To handle HTTP requests To inject dependencies automatically To create new instances of a class 8 / 10 What is the primary purpose of the Spring Framework? To manage databases To simplify building Java applications To create graphical user interfaces To develop mobile applications 9 / 10 Which annotation is used to mark a class as a Spring Boot application? @SpringApp @MainApplication @Bootable @SpringBootApplication 10 / 10 What is the purpose of the Spring Boot Starter projects? To optimize database performance To provide pre-configured templates for common use cases To generate API documentation To automate code deployment Your score isThe average score is 0% 0% Restart quiz