VMware 2V0-72.22 - Professional Develop VMware Spring Exam

Question #11 (Topic: Exam A)
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.)
A. spring-boot-devtools B. spring-boot-initializr C. spring-boot-starter-devtools D. spring-boot-restart
Answer: A
Question #12 (Topic: Exam A)
Spring puts each bean instance in a scope. What is the default scope? (Choose the best answer.)
A. prototype B. singleton C. request D. session
Answer: B
Question #13 (Topic: Exam A)
Refer to the exhibit.

Which option is a valid way to retrieve the account id? (Choose the best answer.)
A. Add @PathVariable(“id”) String accountId argument to the update() handler method. B. Add @PathVariable long accountId argument to the update() handler method. C. Add @RequestParam long accountId argument to the update() handler method. D. Add @RequestParam(“id”) String accountId argument to the update() handler method.
Answer: A
Question #14 (Topic: Exam A)
Which strategy is correct for configuring Spring Security to intercept particular URLs? (Choose the best answer.)
A. The URLs can be specified via configuration (using authorizeRequests () and request matchers), with the most specific rule first and the least specific last. B. Spring Security can obtain URLs from Spring MVC controllers, the Spring Security configuration just needs a reference to the controller to be protected. C. The URLs are specified in a special properties file, used by Spring Security. D. The URLs can be specified via configuration (using authorizeRequests () and request matchers), with the least specific rule first and the most specific last.
Answer: A
Question #15 (Topic: Exam A)
In which three ways are Security filters used in Spring Security? (Choose three.)
A. To provide risk governance. B. To drive authentication. C. To manage application users. D. To provide a logout capability. E. To enforce authorization (access control). F. To encrypt data.
Answer: BDE
Download Exam
Page: 3 / 18
Total 90 questions