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) 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 2 / 45 2) What is the role of @Conditional in Spring? A) Configures database connections B) Allows bean creation based on specified conditions C) Validates input data D) Allows bean creation based on specified conditions 3 / 45 3) How do you implement a custom health indicator in Spring Boot? A) By modifying application.properties B) By implementing HealthIndicator interface C) By implementing HealthIndicator interface D) Only through XML configuration 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 implement a custom UserDetailsService in Spring Boot? A) By modifying application.properties B) Only through XML configuration C) By implementing the UserDetailsService interface D) By implementing the UserDetailsService interface 6 / 45 6) How can you implement health checks in Spring Boot? A) Only through XML configuration B) By using Actuator endpoints for health checks C) By using Actuator endpoints for health checks D) By modifying application.properties 7 / 45 7) What does @JsonIgnore do? A) Validates input data B) Configures headers C) Excludes a field from JSON serialization D) Excludes a field from JSON serialization 8 / 45 8) Which of the following is a Spring Boot feature? A) Manual configuration B) Manual bootstrapping C) Auto-configuration D) Auto-configuration 9 / 45 9) How can you set up internationalization (i18n) in Spring Boot? A) By using message properties files and LocaleResolver B) By modifying application.properties C) By using message properties files and LocaleResolver D) Only through XML configuration 10 / 45 10) How can you implement JWT authentication in Spring Boot? A) By creating filters and authentication services B) Only through XML configuration C) By creating filters and authentication services D) By modifying application.properties 11 / 45 11) 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 12 / 45 12) How do you use Spring Data REST in a Spring Boot application? A) By adding Spring Data REST dependencies B) By adding Spring Data REST dependencies C) Only through XML configuration D) By modifying application.properties 13 / 45 13) What does @Configuration signify? A) Marks a class as a source of bean definitions B) Marks a class as a source of bean definitions C) Configures database connections D) Validates input data 14 / 45 14) How can you implement custom validation in Spring Boot? A) By creating custom validators implementing ConstraintValidator B) Only through XML configuration C) By creating custom validators implementing ConstraintValidator D) By modifying application.properties 15 / 45 15) How can you implement method-level security in Spring Boot? A) Only through XML configuration B) By using @PreAuthorize and related annotations C) By modifying application.properties D) By using @PreAuthorize and related annotations 16 / 45 16) How can you implement file downloads in Spring Boot? A) Only through XML configuration B) By returning ResponseEntity with file data C) By modifying application.properties D) By returning ResponseEntity with file data 17 / 45 17) How do you enable Spring Boot DevTools? A) By adding DevTools dependency in the project B) Only through XML configuration C) By modifying application.properties D) By adding DevTools dependency in the project 18 / 45 18) What does @ConditionalOnProperty do? A) Activates bean creation based on specified properties B) Activates bean creation based on specified properties C) Validates input data D) Configures database connections 19 / 45 19) What does @Async do? A) Executes a method in a separate thread B) Validates input data C) Executes a method in a separate thread D) Configures database connections 20 / 45 20) 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 21 / 45 21) How can you implement Spring Boot Actuator? A) By adding Actuator dependencies B) By adding Actuator dependencies C) Only through XML configuration D) By modifying application.properties 22 / 45 22) How can you configure the server port in Spring Boot? A) Through XML configuration B) By setting server.port in application.properties C) By setting server.port in application.properties D) By using the command line 23 / 45 23) Which of the following is a valid way to handle exceptions in Spring Boot? A) @ExceptionHandler B) @RestControllerAdvice C) @ExceptionHandler D) GlobalException 24 / 45 24) What is the role of @Scheduled annotation? A) Validates input data B) Marks a method to be executed on a schedule C) Marks a method to be executed on a schedule D) Configures database connections 25 / 45 25) How can you read a file in Spring Boot? A) Only through file paths B) By modifying application.properties C) By using ResourceLoader or InputStream D) By using ResourceLoader or InputStream 26 / 45 26) What is the role of @RestControllerAdvice? A) Validates input data B) Configures database connections C) Combines @ControllerAdvice and @ResponseBody D) Combines @ControllerAdvice and @ResponseBody 27 / 45 27) How can you enable Spring Boot logging? A) By configuring application.properties or using logback.xml B) Only through XML configuration C) By modifying code D) By configuring application.properties or using logback.xml 28 / 45 28) How can you manage externalized configuration in Spring Boot? A) By modifying application.properties B) By using @ConfigurationProperties with external property files C) By using @ConfigurationProperties with external property files D) Only through XML configuration 29 / 45 29) How do you customize application properties in Spring Boot? A) By creating application-{profile}.properties files B) By creating application-{profile}.properties files C) By modifying code D) Only through XML configuration 30 / 45 30) How can you integrate Spring Boot with Swagger? A) By modifying application.properties B) By adding Swagger dependencies and configuring Docket C) By adding Swagger dependencies and configuring Docket D) Only through XML configuration 31 / 45 31) How do you specify the default port for a Spring Boot application? A) server.port B) app.port C) server.port D) server.default.port 32 / 45 32) Which annotation is used to define a Spring Boot application? A) @SpringBootApplication B) @SpringApplication C) @Component D) @SpringBootApplication 33 / 45 33) Which of the following is a valid way to handle exceptions in Spring Boot? A) GlobalException B) @RestControllerAdvice C) @ExceptionHandler D) @ExceptionHandler 34 / 45 34) What does @Async do? A) Enables asynchronous method execution B) Validates input data C) Enables asynchronous method execution D) Configures database connections 35 / 45 35) What is the purpose of @PathVariable? A) Validates input data B) Maps URI variables to method parameters C) Maps URI variables to method parameters D) Configures database connections 36 / 45 36) What does @RestControllerAdvice do? A) Catches exceptions thrown by REST controllers globally B) Configures database connections C) Validates input data D) Catches exceptions thrown by REST controllers globally 37 / 45 37) What does @Profile do? A) Validates input data B) Configures database connections C) Conditionally registers beans based on profiles D) Conditionally registers beans based on profiles 38 / 45 38) 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 39 / 45 39) Which file is used to configure properties in a Spring Boot application? A) bootstrap.yml B) application.properties C) application.properties D) pom.xml 40 / 45 40) What is Spring Boot Actuator used for? A) Security B) Dependency injection C) Monitoring and metrics D) Monitoring and metrics 41 / 45 41) How can you implement pagination in Spring Boot? A) Only through manual implementation B) By using Pageable interface in repository methods C) By modifying application.properties D) By using Pageable interface in repository methods 42 / 45 42) What does @ExceptionHandler do? A) Specifies a method to handle specific exceptions B) Validates input data C) Specifies a method to handle specific exceptions D) Configures database connections 43 / 45 43) How can you implement JWT authentication in Spring Boot? A) By creating filters and configuring security settings B) By creating filters and configuring security settings C) Only through XML configuration D) By modifying application.properties 44 / 45 44) How do you run a Spring Boot application from the command line? A) mvn run B) java -jar C) gradle build D) java -jar 45 / 45 45) How do you configure a Spring Boot application for production? A) By setting profiles, logging, and performance tuning B) By modifying application.properties C) By setting profiles, logging, and performance tuning D) Only through XML configuration 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 16Share on WhatsApp10Share on LinkedIn5Share on YouTube9Share on Facebook Comments 0