VMware
2V0-72.22
Q1:
Which two statements are true regarding bean creation? (Choose two.)
☐
A
A Spring bean can be explicitly created by annotating methods or fields by @Autowired.☐
B
A Spring bean can be implicitly created by annotating the class with @Component and using the component-scanner to scan its package.☐
C
A Spring bean can be implicitly created by annotating the class with @Bean and using the component- scanner to scan its package.☐
D
A Spring bean can be explicitly created using @Bean annotated methods within a Spring configuration class.☐
E
A Spring bean can be explicitly created by annotating the class with @Autowired.
VMware
2V0-72.22
Q2:
Refer to the exhibit.

Based on the default Spring behavior, choose the correct answer. (Choose the best answer.)
○
A
One AccountRepository bean will be instantiated since the default scope is singleton.○
B
Three AccountRepository beans will be instantiated as the accountRepository() method will be called three times.○
C
Many AccountRepository beans will be instantiated, depending how often accountRepository(), transferService() and accountService() are called.○
D
Two AccountRepository beans will be instantiated as the accountRepository() method will be called two times.
VMware
2V0-72.22
Q3:
Which two use cases can be addressed by the method level security annotation @PreAuthorize? (Choose two.)
☐
A
Allow access to a method based on user identity.☐
B
Allow access to a method based on the returned object.☐
C
Allow access to a method based on HTTP method.☐
D
Allow access to a method based on request URL.☐
E
Allow access to a method based on roles.
VMware
2V0-72.22
Q4:
Which three types of objects can be returned form a JdbcTemplate query? (Choose three.)
☐
A
Generic MapS☐
B
Simple types (int, long, String, etc)☐
C
JSONObject☐
D
User defined types☐
E
Properties☐
F
XMLObject
VMware
2V0-72.22
Q5:
Which two statements about pointcut expressions are true? (Choose two.)
☐
A
A pointcut expression cannot specify the type of parameters.☐
B
A pointcut expression will throw an exception if no methods are matched.☐
C
A pointcut expression cannot have a wildcard for a method name.☐
D
A pointcut expression can include operators such as the following: && (and), || (or), ! (not).☐
E
A pointcut expression can be used to select join points which have been annotated with a specific annotation.