Weekend Sale 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

Free VMware 2V0-72.22 Practice Exam with Questions & Answers | Set: 3

Questions 21

Which is the correct approach to register for a bean destruction callback?

Options:
A.

Annotate the callback method with @PostDestroy.

B.

Annotate the callback method with @PreDestroy.

C.

Add the @Lazy annotation to the bean configuration.

D.

Configure the bean instance to use prototype scope.

VMware 2V0-72.22 Premium Access
Questions 22

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

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

Questions 23

Which statement describes the @AfterReturning advice type? (Choose the best answer.)

Options:
A.

The advice is invoked only if the method returns successfully but not if it throws an exception.

B.

The @AfterReturning advice allows behavior to be added after a method returns even if it throws an exception.

C.

The advice has complete control over the method invocation; it could even prevent the method from being called at all.

D.

Typically used to prevent any exception, thrown by the advised method, from propagating up the call-stack.