2V0-72.22 Practice Test practice questions, page 3 of 4, with answer review and explanations.
Question 11
Which dependency enables an automatic restart of the application as code is changed during development of a Spring boot configuration on a web application? (Choose the best answer.)
spring-boot-devtools
spring-boot-initializr
spring-boot-starter-devtools
spring-boot-restart
Question 12
Spring puts each bean instance in a scope. What is the default scope? (Choose the best answer.)
prototype
singleton
request
session
Question 13
Refer to the exhibit. Which option is a valid way to retrieve the account id? (Choose the best answer.)
Add @PathVariable(“id”) String accountId argument to the update() handler method.
Add @PathVariable long accountId argument to the update() handler method.
Add @RequestParam long accountId argument to the update() handler method.
Add @RequestParam(“id”) String accountId argument to the update() handler method.
Question 14
Which strategy is correct for configuring Spring Security to intercept particular URLs? (Choose the best answer.)
The URLs can be specified via configuration (using authorizeRequests () and request matchers), with the most specific rule first and the least specific last.
Spring Security can obtain URLs from Spring MVC controllers, the Spring Security configuration just needs a reference to the controller to be protected.
The URLs are specified in a special properties file, used by Spring Security.
The URLs can be specified via configuration (using authorizeRequests () and request matchers), with the least specific rule first and the most specific last.
Question 15
In which three ways are Security filters used in Spring Security? (Choose three.)