Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free VMware 2V0-72.22 Practice Exam with Questions & Answers

Questions 1

Which two statements are true about REST? (Choose two.)

Options:
A.

REST is a Protocol.

B.

REST is Stateful.

C.

REST is Reliable.

D.

REST is Interoperable.

E.

REST is Relative.

VMware 2V0-72.22 Premium Access
Questions 2

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.

Questions 3

Which two options are application slices that can be tested with Spring Boot Testing? (Choose two.)

Options:
A.

Repository

B.

Messaging

C.

Web

D.

Container

E.

Client

Questions 4

Refer to the exhibit.

2V0-72.22 Question 4

What statement is true about @DirtiesContext?

Options:
A.

It will close the existing cached ApplicationContext and recreate a new one before the test method.

B.

It will close the existing cached ApplicationContext and recreate a new one after the test method.

C.

It will keep the existing cached ApplicationContext, all changes to Spring managed beans will be reverted after the test.

D.

It will recreate only the Spring managed beans that are modified inside the test method.

Questions 5

What is a Spring Boot starter dependency? (Choose the best answer.)

Options:
A.

A setting for specifying which code you want Spring Boot to generate for you.

B.

A specific POM which you must build to control Spring Boot’s opinionated runtime.

C.

A pre-existing model project you can download and use as the basis of your project.

D.

An easy way to include multiple, coordinated dependencies related to a specific technology, like web or JDBC.

Questions 6

According to REST principles, which is the recommended way to update the order resource identified by 1234?

Options:
A.

Send a PUT request to /orders/edit?id=1234.

B.

Send a PUT request to /orders/1234.

C.

Send a POST request to /orders/1234.

D.

Send a POST request to /orders/edit?id=1234.

Questions 7

Refer to the exhibit.

2V0-72.22 Question 7

What is the id/name of the declared bean in this Java configuration class? (Choose the best answer.)

Options:
A.

clientServiceImpl (starting with lowercase “c”)

B.

clientServiceImpl (starting with uppercase “C”)

C.

clientService (starting with lowercase “c”)

D.

ClientService (starting with uppercase “C”)

Questions 8

Refer to the exhibit.

2V0-72.22 Question 8

Based on the default Spring behavior, choose the correct answer. (Choose the best answer.)

Options:
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.

Questions 9

Which two use cases can be addressed by the method level security annotation @PreAuthorize? (Choose two.)

Options:
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.

Questions 10

Which statements is true?

Options:
A.

Methods annotated with @AfterEach will run only once before any tests in a class are executed.

B.

@BeforeAll annotation can only be used on non-static methods.

C.

Methods annotated with @BeforeAll will run only once before any tests in a class are executed.

D.

@AfterEach annotation must be used on a cleanup method when @BeforeEach is used.