March Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

VMware 2V0-72.22 Professional Develop VMware Spring Exam Practice Test

Demo: 9 questions
Total 60 questions

Professional Develop VMware Spring Questions and Answers

Question 1

What are the two reasons Spring be used to build a Java application? (Choose two.)

Options:

A.

Spring automates a Java application build.

B.

Spring provides a Dependency Injection container.

C.

Spring automates deployment of Java applications to all of the major cloud providers.

D.

Spring provides comprehensive Java IDE support.

E.

Spring provides abstractions over infrastructure such as persistence and messaging.

Question 2

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

Options:

A.

EasyMock is supported out of the box.

B.

@SpringBootTest or @SpringJUnitConfig can be used for creating an ApplicationContext.

C.

Mockito spy is not supported in Spring Boot testing by default.

D.

The spring-test dependency provides annotations such as @Mock and @MockBean.

E.

Integration and slice testing are both supported.

Question 3

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.)

Options:

A.

spring-boot-devtools

B.

spring-boot-initializr

C.

spring-boot-starter-devtools

D.

spring-boot-restart

Question 4

Which two statements about the @Autowired annotation are true? (Choose two.)

Options:

A.

@Autowired fields are injected after any config methods are invoked.

B.

Multiple arguments can be injected into a single method using @Autowired.

C.

By default, if a dependency cannot be satisfied with @Autowired, Spring throws a RuntimeException.

D.

If @Autowired is used on a class, field injection is automatically performed for all dependencies.

E.

@Autowired can be used to inject references into BeanPostProcessor and

BeanFactoryPostProcessor.

Question 5

Which two statements are true regarding a Spring Boot-based Spring MVC application? (Choose two.)

Options:

A.

The default embedded servlet container can be replaced with Undertow.

B.

Jetty is the default servlet container.

C.

Spring Boot starts up an embedded servlet container by default.

D.

The default port of the embedded servlet container is 8088.

E.

Spring MVC starts up an in-memory database by default.

Question 6

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

Options:

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.

Question 7

In which three ways are Security filters used in Spring Security? (Choose three.)

Options:

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.

Question 8

Which statement defines a pointcut? (Choose the best answer.)

Options:

A.

A point in the execution of a program such as a method call or field assignment.

B.

An expression that selects one or more join points.

C.

A module that encapsulated advices.

D.

Code to be executed at each selected join point.

Question 9

Refer to the exhibit.

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

Options:

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.

Demo: 9 questions
Total 60 questions