Q.1 Spring boot uses ___________ by default for logging.
A. Logger
B. Logback
C. Loopback
D. None of the options
Ans : Logback
Q.2 Annotation @PathVariable is used to _________.
A. Map an entity
B. Map a path URI
C. Map an input param
D. None of the options
Ans : Map an input param
Q.3 Any configuration on Logback logging has to be done in ______.
A. application.yml
B. either application.properties or application.yml
C. application.properties
D. None of the options
Ans : either application.properties or application.yml
Q.4 Which is the Spring Boot annotation used for caching auto configuration?
A. @Cache
B. @CacheEnabled
C. @Cacheable
D. None of the options
Ans : None of the options
Q.5 What is the Spring Boot starter that has to be added for logging?
A. Spring-boot-logging
B. Spring-boot-logging-starter
C. spring-boot-starter-logging
D. None of the options
Ans : spring-boot-starter-logging
Q.6 While implementing security, you need to add AuthenticationEntryPoint class to extend _______ class.
A. BasicAuthenticationEntryPoint
B. AuthenticationEntry
C. BasicAuthentication
D. None of the options
Ans : BasicAuthenticationEntryPoint
Q.7 Service class added to Rest API should be annotated as _________.
A. @Service
B. @RestAPIService
C. @RestService
D. Any of the options
Ans : @Service
Q.8 Which is the Spring boot starter that has to be added to include Freemarker template engine?
A. Spring-boot-freemarker-starter
B. Spring-boot-freemarker-starter
C. spring-boot-starter-freemarker
D. None of the options
Ans : spring-boot-starter-freemarker
Q.9 Which is the dependency to be added to include basic security to the project?
A. spring-starter-security
B. spring-boot-starter-security
C. Spring-boot-security
D. None of the options
Ans : spring-boot-starter-security
Q.10 What is the method name to fetch all data for a entity from database in Repository class?
A. findAll()
B. getAll()
C. findAllItems()
D. None of the options
Ans : findAll()
Q.11 What is the annotation to be added for Entity class?
A. @Entity
B. @DataEntity
C. @JPAEntity
D. None of the options
Ans : @Entity
Q.12 Integration testing can be done using _________.
A. TestTemplate
B. TestRestTemplate
C. MvcTest
D. MockMvc
Ans : TestRestTemplate
Q.13 Which is the default logging file in springboot?
A. logback
B. log.log
C. spring.log
D. logback.log
Ans : logback
Q.14 Which is the Spring Boot starter that has to be added to include Thymeleaf template engine?
A. Spring-boot-thymeleaf-starter
B. Spring-boot-thymeleaf
C. spring-boot-starter-thymeleaf
D. None of the options
Ans : spring-boot-starter-thymeleaf
Q.15 Which is the UI Web framework that is built to use Spring Boot?
A. Vaadin
B. Bootstrap
C. HTML KickStart
D. SproutCore
Ans : Vaadin
Q.16 This authentication/Authorization mechanism helps to access resource through third party resources.
A. Oauth
B. HTTP Basic
C. X509
D. None of the options
Ans : Oauth
Q.17 Http method Patch is used to ___________.
A. Add a new entity
B. Modify an entity
C. Update an entity
D. Delete an entity
Ans : Modify an entity
Q.18 ______ class does magic in Spring Data Integration implementation.
A. JPARepository
B. CrudRepository
C. Service
D. Repo
Ans : Repo