Winter Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: v4s65

2V0-72.22 Exam Dumps - Professional Develop VMware Spring

Go to page:
Question # 4

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.

Full Access
Question # 5

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

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.

Full Access
Question # 6

Which two statements are true about Spring AOP? (Choose two.)

A.

The @After advice type is invoked regardless of whether a method successfully returned or an exception was thrown.

B.

In Spring AOP, a join point represents a method execution or property access.

C.

Spring AOP does not use AspectJ's pointcut expression language.

D.

Examples of cross-cutting concerns include security, caching, transaction.

E.

There are in total 4 types of advice, @Before, @After, @AfterReturning and @AfterThrowing.

Full Access
Question # 7

Refer to the exhibit.

The above code shows a conditional @Bean method for the creation of a JdbcTemplate bean. Which two statements correctly describe the code behavior? (Choose two.)

A.

@ConditionalOnBean(name= “dataSource”) should be replaced with @ConditionalOnBean (DataSource.class) for greater flexibility.

B.

@ConditionalOnBean(name= “dataSource”) should be replaced with

@ConditionalOnMissingBean (DataSource.class) for greater flexibility.

C.

The @Bean annotation should be removed.

D.

A JdbcTemplate bean will be created when the DataSource class is in the classpath but there is no

DataSource bean.

E.

A JdbcTemplate bean will be created when a bean named dataSource has already been created.

Full Access
Question # 8

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

Full Access
Go to page: