Vcehome > VMware > VCP-AM Develop 2022 > 2V0-72.22 > 2V0-72.22 Online Practice Questions and Answers

2V0-72.22 Online Practice Questions and Answers

Questions 4

Which two statements are true regarding Spring Security? (Choose two.)

A. Access control can be configured at the method level.

B. A special Java Authentication and Authorization Service (JAAS) policy file needs to be configured.

C. Authentication data can be accessed using a variety of different mechanisms, including databases and LDAP.

D. In the authorization configuration, the usage of permitAll () allows bypassing Spring security completely.

E. It provides a strict implementation of the Java EE Security specification.

Browse 60 Q&As
Questions 5

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

Browse 60 Q&As
Questions 6

Which three statements are advantages of using Spring's Dependency Injection? (Choose three.)

A. Dependency injection can make code easier to trace because it couples behavior with construction.

B. Dependency injection reduces the start-up time of an application.

C. Dependencies between application components can be managed external to the components.

D. Configuration can be externalized and centralized in a small set of files.

E. Dependency injection creates tight coupling between components.

F. Dependency injection facilitates loose coupling between components.

Browse 60 Q&As
Questions 7

Which two statements are correct when @SpringBootApplication is annotated on a class? (Choose two.)

A. It causes Spring Boot to enable auto-configuration by default.

B. Component scanning will start from the package of the class.

C. All other annotations on the class will be ignored.

D. Methods in the class annotated with @Bean will be ignored.

E. A separate ApplicationContext will be created for each class annotated with @SpringBootApplication.

Browse 60 Q&As
Questions 8

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: andand (and), || (or), ! (not).

E. A pointcut expression can be used to select join points which have been annotated with a specific annotation.

Browse 60 Q&As
Questions 9

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

Browse 60 Q&As
Questions 10

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.

Browse 60 Q&As
Questions 11

Refer to the exhibit.

Which two statements are correct regarding the HelloAutoConfig auto-configuration class when it is specified in the META-INF/spring.factories file? (Choose two.)

A. A HelloService bean will be created from the helloService() method even if the HelloService.class is not in the classpath.

B. A HelloService bean will be created from the helloService() method only when there is no other HelloService bean in the ApplicationContext.

C. This auto-configuration class is used only when the HelloService.class is not on the classpath.

D. This auto-configuration class is used only when the HelloService.class is on the classpath.

E. A HelloService bean will be created from the helloService() method and will replace existing a HelloService bean in the ApplicationContext.

Browse 60 Q&As
Questions 12

Refer to the exhibit.

Which statement is true? (Choose the best answer.)

A. CustomerRepository should be a class, not an interface.

B. JPA annotations are required on the Customer class to successfully use Spring Data JDBC.

C. An implementation of this repository can be automatically generated by Spring Data JPA.

D. A class that implements CustomerRepository must be implemented and declared as a Spring Bean.

Browse 60 Q&As
Questions 13

Which two statements are true regarding Spring Boot Testing? (Choose two.)

A. @TestApplicationContext is used to define additional beans or customizations for a test.

B. Test methods in a @SpringBootTest class are transactional by default.

C. @SpringBootTest is typically used for integration testing.

D. Test methods annotated with @SpringBootTest will recreate the ApplicationContext.

E. @SpringBootTest without any configuration classes expects there is only one class annotated with @SpringBootConfiguration in the application.

Browse 60 Q&As
Exam Code: 2V0-72.22
Exam Name: Professional Develop VMware Spring
Last Update: May 10, 2024
Questions: 60 Q&As

PDF

$49.99

VCE

$59.99

PDF + VCE

$67.99