Spring Boot Quiz (Set 3) Spring Boot (Set 3) 1 / 10 What is the purpose of the '@Value' annotation in Spring? To define a constant value To specify the scope of a bean To inject values from properties files into Spring beans To create a new instance of a bean 2 / 10 Which Spring module provides integration with messaging systems? Spring Data JMS Spring Messaging Spring JMS Spring AMQP 3 / 10 What is the purpose of the 'CommandLineRunner' interface in Spring Boot? To handle command-line arguments in a Spring application To define custom REST endpoints To run specific code after the Spring application context is loaded To manage database transactions 4 / 10 Which annotation is used to mark a class as a REST controller in Spring MVC? @RestController @Controller @RequestMapping @Service 5 / 10 What does the Spring Boot Starter Parent provide to your project? A set of predefined REST endpoints Default configuration and dependency management A UI framework for web applications A database connection pool 6 / 10 Which annotation is used to define a component as a candidate for autowiring? @Autowired @Component @Service @ComponentScan 7 / 10 In Spring, what is AOP? An application optimization tool An asynchronous programming framework An authentication and authorization framework Aspect-Oriented Programming, a technique for separating cross-cutting concerns 8 / 10 What is the purpose of the 'application.properties' (or 'application.yml') file in a Spring Boot application? To store database records To define REST endpoints To provide configuration settings for the application To store static resources 9 / 10 Which Spring Boot starter should you use to work with a MySQL database? spring-boot-starter-data-jpa spring-boot-starter-web spring-boot-starter-actuator spring-boot-starter-security 10 / 10 What is the purpose of the '@Transactional' annotation in Spring? To define a bean's lifecycle methods To indicate that a method should be executed within a transaction To specify a method as a REST endpoint To mark a method as asynchronous Your score isThe average score is 0% 0% Restart quiz