Spring Boot - API Cantabile
Which Spring annotation can be used to expose a controller as REST API? --
@Restcontroller
Which is the Spring Boot URI mapping that can be done to a Service using
annotation? -- @RequestMapping
Which REST Service API cannot be created using Spring Boot? - none of the options
Which REST Service API can be created using Spring Boot? -- rating service
Spring Boot Microservices are loosly coupled, independent, constrained and
abstracted. -- true
Which is the class that has to be autowired with the controller class for invoking
processes? -- service
What is the dependency to be added to configure JPA to Spring Boot Project? --
Spring-boot-starter-data-jpa
Embedded DB support is not available for ___________. -- oracle
JPA can be configured over a NoSQL database. -- false
Embedded database support has persistent data storage. -- false
________ can be used to over a SQL as well as NoSQL database. -- spring data
What are the security techniques that can be used for Spring Boot Microservices? --
all
Which is not a valid method in RestTemplate to get http request? -- getForlocation
Which is the correct format for HTTP Basic security technique? -- Authorization:
Basic dm9yZGVsOnZvcmRlbA==
In Basic authentication, username and password are base64 encoded. -- true
Spring Boot offers ______ template to consume REST Services. -- rest Template
What is the technique used to do unit testing on a Controller class? -- TestMvc
_________ class has to be auto wired to the Repository test class to test
Repository class. -- testEntityManager
Which of the following ways cannot be adopted to test using MockMvc technique? -
both
Which is the class level annotation that is used to test Repository class? --
@DataJpaTest
In Spring Boot, unit testing can be done on ______ class. -- all
===============
What are the HTTP methods that can be implemented in Spring Boot Rest Service? --
del
OAuth 2 offers users a flexibility to grant third-party access to web resources
without sharing their password. -- true
While implementing security, you need to add AuthenticationEntryPoint class to
extend _______ class. --BasicAuthenticationEntryPoint
Http method Patch is used to ___________. -- modify an entity
Any configuration on Logback logging has to be done in ______. -- any
Which is the UI Web framework that is built to use Spring Boot? -- vaadin
What is the method name to fetch specific data for a entity from database in
Repository class? -- findOne(id)
Jackson library is used to ______________. -- concert object to Json objects
What is the annotation to be added for Entity class? -- @entity
What are the template engine/engines that is/are not supported by Spring Boot? --
all
Which is the Spring boot starter that has to be added to include Freemarker
template engine? -- Spring-boot-starter-freemarker
______ class does magic in Spring Data Integration implementation. -- repository
Which is the dependency to be added to include basic security to the project? --
Spring-boot-starter-security
Which is not a valid Cache provider supported by Spring Boot? -- none
Service class added to Rest API should be annotated as _________ -- @service
What is the method name to fetch all data for a entity from database in Repository
class? -- findall
Annotation @PathVariable is used to _________. -- Map an input param
Which is the Spring Boot annotation used for caching auto configuration? --
@Cacheable
Integration testing can be done using _________. -- RestTemplate
------------------
Which is the Spring Boot starter that has to be added to include Thymeleaf template
engine? --- Spring-boot-starter-thymeleaf
What is the Spring Boot starter that has to be added for logging? --Spring-boot-
starter-logging
With OAuth 2, you will have to set an authentication system to support Oauth
workflow. -- false
What are the Rest Template methods that can be used to handle any kind of request
type? --- both
Which is not a valid method in RestTemplate to http post request? -- none
repository cass has to extend ------- class to get the implementation benefit of
string data -- no class