Which is the class that has to be autowired with the controller class for invoking
processes?
Service
Which REST Service API cannot be created using Spring Boot?
None of the options
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
________ can be used to over a SQL as well as NoSQL database.
Spring Data
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
What is the dependency to be added to configure JPA to Spring Boot Project?
Spring-boot-starter-data-jpa
In Basic authentication, username and password are base64 encoded.
True
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==
Spring Boot offers ______ template to consume REST Services.
RestTemplate
Which of the following ways cannot be adopted to test using MockMvc technique?
Both the options
Which is the class level annotation that is used to test Repository class?
@DataJpaTest
What is the technique used to do unit testing on a Controller class?
TestMvc
In Spring Boot, unit testing can be done on ______ class.
All the options
_________ class has to be auto wired to the Repository test class to test
Repository class.
TestEntityManager
---------------------------------------------------------------
With OAuth 2, you will have to set an authentication system to support Oauth
workflow.
False
Any configuration on Logback logging has to be done in ______.
application.yml
Which is not a valid method in RestTemplate to http post request?
postForLocation
______ class does magic in Spring Data Integration implementation.
JPARepository
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.
None of the options
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
What are the template engine/engines that is/are not supported by Spring Boot?
None of the options
Integration testing can be done using _________.
RestTemplate
Service class added to Rest API should be annotated as _________.
None of the options
Which is the Spring boot starter that has to be added to include Freemarker
template engine?
Spring-boot-starter-freemarker
What are the HTTP methods that can be implemented in Spring Boot Rest Service?
Post
Annotation @PathVariable is used to _________.
Map a path URI
What is the annotation to be added for Entity class?
@Entity
Which is the UI Web framework that is built to use Spring Boot?
Vaadin
Repository class has to extend ______ class to get the implementation benefit of
Spring Data
No Class needs to extended
What is the method name to fetch specific data for a entity from database in
Repository class?
None of the options
What is the method name to fetch all data for a entity from database in Repository
class?
findAll()
Which is not a valid Cache provider supported by Spring Boot?
None of the options
Jackson library is used to ______________.
concert object to Json objects
Which is the dependency to be added to include basic security to the project?
Spring-boot-starter-security
Http method Patch is used to ___________.
Update an entity
Any configuration on Logback logging has to be done in ______.
application.properties
What are the Rest Template methods that can be used to handle any kind of request
type?
Both the options