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 is the purpose of @Bean? A) Indicates that a method produces a bean to be managed by Spring B) Configures database connections C) Indicates that a method produces a bean to be managed by Spring D) Validates input data 2 / 45 2) What does @RequestBody do? A) Maps request body content to a Java object B) Configures database connections C) Validates input data D) Maps request body content to a Java object 3 / 45 3) What does @Query do in Spring Data JPA? A) Specifies a JPQL or SQL query for a repository method B) Specifies a JPQL or SQL query for a repository method C) Only through XML configuration D) By modifying application.properties 4 / 45 4) What is the purpose of @PathVariable? A) Configures database connections B) Maps URI variable values to method parameters C) Validates input data D) Maps URI variable values to method parameters 5 / 45 5) What is the purpose of @ConditionalOnProperty? A) Registers beans conditionally based on property values B) Configures database connections C) Registers beans conditionally based on property values D) Validates input data 6 / 45 6) What does @Primary do in Spring? A) Configures database connections B) Validates input data C) Specifies the default bean to use D) Specifies the default bean to use 7 / 45 7) How can you implement message queues in Spring Boot? A) By modifying application.properties B) By using RabbitMQ or Kafka dependencies C) Only through XML configuration D) By using RabbitMQ or Kafka dependencies 8 / 45 8) How can you enable CORS in a Spring Boot application? A) By modifying application.properties B) By adding @CrossOrigin or configuring WebMvcConfigurer C) By adding @CrossOrigin or configuring WebMvcConfigurer D) Only through XML configuration 9 / 45 9) Which annotation is used to create a REST controller in Spring Boot? A) @RestController B) @RestController C) @Service D) @Controller 10 / 45 10) 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 11 / 45 11) What is the purpose of @Resource annotation? A) Configures database connections B) Injects a bean by name into a property C) Injects a bean by name into a property D) Validates input data 12 / 45 12) How can you enable caching in a Spring Boot application? A) Only through configuration B) By adding dependencies C) By using @EnableCaching D) By using @EnableCaching 13 / 45 13) How can you implement API versioning in Spring Boot? A) By using URI versioning or request parameter versioning B) By using URI versioning or request parameter versioning C) Only through XML configuration D) By modifying application.properties 14 / 45 14) How do you implement a global exception handler in Spring Boot? A) Only through XML configuration B) By using @ControllerAdvice and @ExceptionHandler C) By modifying application.properties D) By using @ControllerAdvice and @ExceptionHandler 15 / 45 15) How can you profile a Spring Boot application? A) By modifying application.properties B) By using @Profile annotation C) Only through XML configuration D) By using @Profile annotation 16 / 45 16) What is the purpose of @Autowired(required = false)? A) Prevents exceptions if the dependency is not found B) Validates input data C) Prevents exceptions if the dependency is not found D) Configures database connections 17 / 45 17) Which annotation is used to enable scheduling in Spring Boot? A) @EnableScheduling B) @Scheduled C) @Scheduler D) @EnableScheduling 18 / 45 18) What is the purpose of @CachePut? A) Validates input data B) Updates cache entries while executing the method C) Updates cache entries while executing the method D) Configures database connections 19 / 45 19) What is the role of @Service in Spring Boot? A) Validates input data B) Configures database connections C) Indicates a service layer component D) Indicates a service layer component 20 / 45 20) Which of the following is a Spring Boot feature? A) Auto-configuration B) Manual configuration C) Manual bootstrapping D) Auto-configuration 21 / 45 21) How do you enable JPA auditing in Spring Boot? A) By modifying application.properties B) By using @EnableJpaAuditing annotation C) By using @EnableJpaAuditing annotation D) Only through XML configuration 22 / 45 22) Which file is used to configure properties in a Spring Boot application? A) application.properties B) pom.xml C) bootstrap.yml D) application.properties 23 / 45 23) How can you implement custom serialization/deserialization in Spring Boot? A) By modifying application.properties B) By implementing JsonSerializer and JsonDeserializer C) By implementing JsonSerializer and JsonDeserializer D) Only through XML configuration 24 / 45 24) What is Spring Boot Actuator used for? A) Security B) Dependency injection C) Monitoring and metrics D) Monitoring and metrics 25 / 45 25) How do you implement a custom property source in Spring Boot? A) Only through XML configuration B) By implementing PropertySource interface and adding it to the environment C) By modifying application.properties D) By implementing PropertySource interface and adding it to the environment 26 / 45 26) How can you enable Swagger in Spring Boot? A) Only through XML configuration B) By modifying application.properties C) By adding Swagger dependencies and annotations D) By adding Swagger dependencies and annotations 27 / 45 27) What does @MessageMapping do? A) Configures database connections B) Defines methods to handle incoming messages C) Validates input data D) Defines methods to handle incoming messages 28 / 45 28) What is the purpose of the application.properties file in Spring Boot? A) Configuration settings B) Logging settings C) Configuration settings D) Database settings 29 / 45 29) Which file is used to configure properties in a Spring Boot application? A) pom.xml B) application.properties C) application.properties D) bootstrap.yml 30 / 45 30) How can you implement custom exception handling globally? A) By modifying application.properties B) Only through XML configuration C) By using @ControllerAdvice and @ExceptionHandler D) By using @ControllerAdvice and @ExceptionHandler 31 / 45 31) How do you specify the default port for a Spring Boot application? A) app.port B) server.port C) server.default.port D) server.port 32 / 45 32) What does @Async do in Spring? A) Validates input data B) Executes methods in a separate thread C) Executes methods in a separate thread D) Configures database connections 33 / 45 33) How can you enable Spring Boot DevTools? A) By modifying application.properties B) Only through XML configuration C) By adding the DevTools dependency in pom.xml D) By adding the DevTools dependency in pom.xml 34 / 45 34) What does @Transactional(readOnly = true) do? A) Optimizes transaction for read-only operations B) Optimizes transaction for read-only operations C) Configures database connections D) Validates input data 35 / 45 35) What does @Transactional(readOnly = true) indicate? A) Configures database connections B) Validates input data C) Marks the transaction as read-only, improving performance D) Marks the transaction as read-only, improving performance 36 / 45 36) How do you handle CORS in Spring Boot? A) By configuring CORS mappings in WebMvcConfigurer B) By configuring CORS mappings in WebMvcConfigurer C) Only through XML configuration D) By modifying application.properties 37 / 45 37) What is the purpose of the application.properties file in Spring Boot? A) Database settings B) Configuration settings C) Configuration settings D) Logging settings 38 / 45 38) What is the purpose of @Scheduled(fixedRate = 5000)? A) Executes the task every 5 seconds B) Configures database connections C) Validates input data D) Executes the task every 5 seconds 39 / 45 39) How do you configure CORS in Spring Boot? A) By using @CrossOrigin annotation or global CORS configuration B) Only through XML configuration C) By modifying application.properties D) By using @CrossOrigin annotation or global CORS configuration 40 / 45 40) How can you configure Spring Boot to use SSL? A) By modifying application.properties B) By configuring application.properties with SSL settings C) Only through XML configuration D) By configuring application.properties with SSL settings 41 / 45 41) Which of the following is a Spring Boot feature? A) Auto-configuration B) Manual bootstrapping C) Auto-configuration D) Manual configuration 42 / 45 42) What is the purpose of @Primary? A) Validates input data B) Configures database connections C) Marks a bean as primary in autowiring D) Marks a bean as primary in autowiring 43 / 45 43) How can you implement an event listener in Spring Boot? A) By using @EventListener annotation B) Only through XML configuration C) By using @EventListener annotation D) By modifying application.properties 44 / 45 44) What is Spring Boot Actuator used for? A) To create REST APIs B) For logging purposes only C) Exposes operational information about the application D) Exposes operational information about the application 45 / 45 45) What does @EnableWebMvc do? A) Activates Spring MVC configuration and features B) Validates input data C) Configures database connections D) Activates Spring MVC configuration and features 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