admin Oct, Wed, 2024 EXAM JAVA SPRING BOOT 123456789101112131415161718192021222324252627282930313233343536373839404142434445 Exam Instructions: Total Number of Questions: 45 You will be required to answer a total of 45 multiple-choice questions. Time Limit: 15 minutes for the entire exam Once the time is up, the exam will automatically submit. Passing Criteria: A minimum score of 50% is required to pass the exam Multiple Attempts: You are allowed to take the exam multiple times. Only your highest score will be considered for certification. Additional Instructions: The exam timer cannot be paused once it begins. Good luck, and feel free to retake the exam to improve your score! JAVA SPRING BOOT Test your JAVA SPRING BOOT skills with a challenging exam designed to evaluate your knowledge in programming, data structures, and algorithms The certificate will be generated based on the information you provide in the form, so please ensure that all details are entered correctly. NameEmailPhone NumberUniversityCollegeDegreeDepartmentPass Out YearPass Out Year2014201520162017201820192020202120222023202420252026202720282029 1 / 45 1) What does the @RestController annotation do in Spring Boot? A) @RestController B) @RestController C) @Controller D) @Service 2 / 45 2) How do you implement Spring Boot profiles? A) Only through XML configuration B) By using application-{profile}.properties files C) By using application-{profile}.properties files D) By modifying code 3 / 45 3) How can you implement server-sent events in Spring Boot? A) Only through REST APIs B) By modifying application.properties C) By using SseEmitter class D) By using SseEmitter class 4 / 45 4) What is Spring Boot Actuator used for? A) Security B) Dependency injection C) Monitoring and metrics D) Monitoring and metrics 5 / 45 5) How can you customize application properties in Spring Boot? A) By creating application-{profile}.properties files B) By creating application-{profile}.properties files C) Only through XML configuration D) By modifying application.properties 6 / 45 6) How do you implement metrics collection in Spring Boot? A) Only through XML configuration B) By modifying application.properties C) By using Micrometer for metrics collection D) By using Micrometer for metrics collection 7 / 45 7) What is the purpose of @ConfigurationProperties? A) Validates input data B) Maps properties to a Java bean C) Maps properties to a Java bean D) Configures database connections 8 / 45 8) What does @JsonFormat do? A) Configures date formatting for JSON output B) Configures date formatting for JSON output C) Configures headers D) Validates input data 9 / 45 9) How can you create an embedded database in Spring Boot? A) By adding dependencies for H2 or similar databases B) Only through XML configuration C) By modifying application.properties D) By adding dependencies for H2 or similar databases 10 / 45 10) How can you implement a custom Spring Boot starter? A) By creating a new module with dependencies and auto-configuration B) By creating a new module with dependencies and auto-configuration C) Only through XML configuration D) By modifying application.properties 11 / 45 11) What is the role of @EnableScheduling? A) Validates input data B) Configures database connections C) Activates scheduling features for tasks D) Activates scheduling features for tasks 12 / 45 12) How do you run a Spring Boot application from the command line? A) mvn run B) java -jar C) gradle build D) java -jar 13 / 45 13) What does @Autowired do? A) Configures database connections B) Validates input data C) Autowires dependencies in Spring beans D) Autowires dependencies in Spring beans 14 / 45 14) How can you integrate Spring Boot with Angular? A) By exposing REST APIs for Angular to consume B) By modifying application.properties C) By exposing REST APIs for Angular to consume D) Only through JSP 15 / 45 15) What is the role of @ComponentScan? A) Configures component scanning in the application B) Configures component scanning in the application C) Validates input data D) Configures database connections 16 / 45 16) How do you handle file uploads in Spring Boot? A) By modifying application.properties B) By using @RequestParam for file parameters C) Only through direct links D) By using @RequestParam for file parameters 17 / 45 17) How can you implement validation groups in Spring Boot? A) By modifying application.properties B) By using @Validated with group interfaces C) By using @Validated with group interfaces D) Only through XML configuration 18 / 45 18) How do you implement a custom filter in Spring Boot? A) By modifying application.properties B) By implementing Filter interface and registering it C) By implementing Filter interface and registering it D) Only through XML configuration 19 / 45 19) What is the role of @ResponseBody in REST APIs? A) Converts Java objects to JSON/XML output B) Configures database connections C) Converts Java objects to JSON/XML output D) Validates input data 20 / 45 20) What is the use of @Bean annotation? A) Validates input data B) Indicates a method produces a bean C) Indicates a method produces a bean D) Configures database connections 21 / 45 21) How can you customize the Spring Boot banner? A) By creating a banner.txt file in src/main/resources B) By modifying the main class C) By using the application.properties file D) By creating a banner.txt file in src/main/resources 22 / 45 22) What does @EventListener do? A) Validates input data B) Marks a method as an event listener C) Marks a method as an event listener D) Configures database connections 23 / 45 23) What does the @RestController annotation do in Spring Boot? A) @RestController B) @Controller C) @Service D) @RestController 24 / 45 24) How do you implement Spring Boot configuration properties? A) By modifying application.properties B) Only through XML configuration C) By using @ConfigurationProperties annotation D) By using @ConfigurationProperties annotation 25 / 45 25) What does the @RestController annotation do in Spring Boot? A) @RestController B) @Controller C) @RestController D) @Service 26 / 45 26) What does @Async annotation do? A) Marks a method for asynchronous execution B) Marks a method for asynchronous execution C) Configures database connections D) Validates input data 27 / 45 27) What does the @RestController annotation do in Spring Boot? A) @RestController B) @RestController C) @Service D) @Controller 28 / 45 28) How do you enable SSL in a Spring Boot application? A) By configuring SSL properties in application.properties B) By configuring SSL properties in application.properties C) By modifying application.properties D) Only through XML configuration 29 / 45 29) What does @ConditionalOnMissingBean do? A) Enables bean creation based on the absence of a bean B) Enables bean creation based on the absence of a bean C) Validates input data D) Configures database connections 30 / 45 30) How can you enable Actuator endpoints in Spring Boot? A) Only through XML configuration B) By adding Actuator dependency and configuring application.properties C) By modifying application.properties D) By adding Actuator dependency and configuring application.properties 31 / 45 31) How do you use Spring Boot with JPA and Hibernate? A) Only through XML configuration B) By configuring JPA properties and adding dependencies C) By modifying application.properties D) By configuring JPA properties and adding dependencies 32 / 45 32) Which annotation is used to define a Spring Boot application? A) @SpringApplication B) @SpringBootApplication C) @SpringBootApplication D) @Component 33 / 45 33) How can you implement Spring Boot testing? A) By modifying application.properties B) Only through manual testing C) By using @SpringBootTest and test annotations D) By using @SpringBootTest and test annotations 34 / 45 34) Which of the following is NOT a feature of Spring Boot? A) Dependency management B) Static type checking C) Built-in web server D) Dependency management 35 / 45 35) How do you implement security with OAuth2 in Spring Boot? A) By adding Spring Security OAuth2 dependencies and configurations B) By adding Spring Security OAuth2 dependencies and configurations C) Only through XML configuration D) By modifying application.properties 36 / 45 36) What is the purpose of @Scheduled(cron)? A) Validates input data B) Configures advanced scheduling for tasks C) Configures advanced scheduling for tasks D) Configures database connections 37 / 45 37) How can you configure a data source in Spring Boot? A) By using application.properties or Java configuration B) By using application.properties or Java configuration C) By modifying code D) Only through XML configuration 38 / 45 38) What does @GetMapping do? A) Validates input data B) Configures database connections C) Maps HTTP GET requests to specific handler methods D) Maps HTTP GET requests to specific handler methods 39 / 45 39) How can you implement Spring Data REST? A) By adding Spring Data REST dependencies B) Only through XML configuration C) By adding Spring Data REST dependencies D) By modifying application.properties 40 / 45 40) What is the role of @Repository annotation? A) Configures database connections B) Validates input data C) Marks a class for data access and exception translation D) Marks a class for data access and exception translation 41 / 45 41) Which annotation is used to define a Spring Boot application? A) @Component B) @SpringBootApplication C) @SpringBootApplication D) @SpringApplication 42 / 45 42) How can you create custom application events in Spring Boot? A) Only through XML configuration B) By modifying application.properties C) By extending ApplicationEvent and publishing with ApplicationEventPublisher D) By extending ApplicationEvent and publishing with ApplicationEventPublisher 43 / 45 43) Which of the following is a valid way to handle exceptions in Spring Boot? A) GlobalException B) @ExceptionHandler C) @ExceptionHandler D) @RestControllerAdvice 44 / 45 44) What is the purpose of @Autowired(required = false)? A) Validates input data B) Injects a bean only if it is available C) Configures database connections D) Injects a bean only if it is available 45 / 45 45) How can you implement custom filters in Spring Boot? A) By modifying application.properties B) Only through XML configuration C) By implementing Filter interface and registering it D) By implementing Filter interface and registering it Your score is LinkedIn Facebook Twitter VKontakte 0% ExamWEB DEVELOPMENT EXAM...Read MoreREACT JS PROGRAMMING EXAM...Read MorePYTHON FULL STACK...Read MorePYTHON EXAMS ...Read MoreMYSQL...Read MoreMACHINE LEARNING...Read MoreJAVASCRIPT PROGRAMMING EXAM...Read MoreJAVA SPRING BOOT...Read MoreJAVA PROGRAMMING EXAM...Read MoreJAVA FULL STACK...Read MoreHTML PROGRAMMING EXAM...Read MoreDEEP LEARNING...Read MoreDATA SCIENCE...Read MoreCSS PROGRAMMING EXAM...Read MoreANGULAR JS PROGRAMMING EXAM...Read More 13Share on WhatsApp6Share on LinkedIn4Share on YouTube9Share on Facebook Comments 0