Labour Day Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exams65

Professional Develop VMware Spring Question and Answers

Professional Develop VMware Spring

Last Update May 2, 2024
Total Questions : 60

We are offering FREE 2V0-72.22 VMware exam questions. All you do is to just go and sign up. Give your details, prepare 2V0-72.22 free exam questions and then go for complete pool of Professional Develop VMware Spring test questions that will help you more.

2V0-72.22 pdf

2V0-72.22 PDF

$35  $99.99
2V0-72.22 Engine

2V0-72.22 Testing Engine

$42  $119.99
2V0-72.22 PDF + Engine

2V0-72.22 PDF + Testing Engine

$56  $159.99
Questions 1

Which two options are REST principles? (Choose two.)

Options:

A.  

RESTful applications use a stateless architecture.

B.  

RESTful application use HTTP headers and status codes as a contract with the clients.

C.  

RESTful applications cannot use caching.

D.  

RESTful application servers keep track of the client state.

E.  

RESTful applications favor tight coupling between the clients and the servers.

Discussion 0
Questions 2

Which two are required to use transactions in Spring? (Choose two.)

Options:

A.  

Add @EnableTransactionManagement to a Java configuration class.

B.  

Annotate a class, an interface, or individual methods requiring a transaction with the @Transactional

annotation.

C.  

A class must be annotated with @Service and @Transaction.

D.  

A class requiring a transaction must implement the TransactionInterceptor interface.

E.  

Write a Spring AOP advice to implement transactional behavior.

Discussion 0
Questions 3

Which statement about @TestPropertySource annotation is true? (Choose the best answer.)

Options:

A.  

Java system properties have higher precedence than the properties loaded from

@TestPropertySource.

B.  

Properties defined @PropertySource are not loaded if @TestPropertySource is used.

C.  

@TestPropertySource annotation loads a properties file relative to the root of the project by default.

D.  

Inlined properties defined in @TestPropertySource can be used to override properties defined in property files.

Discussion 0
Questions 4

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

Options:

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.

Discussion 0
Questions 5

Which three dependencies are provided by the spring-boot-starter-test? (Choose three.)

Options:

A.  

Cucumber

B.  

Hamcrest

C.  

spring-test

D.  

Junit

E.  

EasyMock

F.  

PowerMock

Discussion 0
Questions 6

Which two statements are true about @Controller annotated classes? (Choose two.)

Options:

A.  

The @Controller annotated classes can only render views.

B.  

The classes are eligible for handling requests in Spring MVC.

C.  

The classes must be annotated together with @EnableMvcMappings to be discovered via component scanning.

D.  

@Controller is interchangeable with @RestController with no extra code changes for the methods inside the class.

E.  

The @Controller annotation is a stereotype annotation like @Component.

Discussion 0
Questions 7

Refer to the exhibit.

It is a Java code fragment from a Spring application. Which statement is true with regard to the above example? (Choose the best answer.)

Options:

A.  

This syntax is invalid because the result of the getBean() method call should be cast toClientService.

B.  

It will return a bean called ClientService regardless of its id or name.

C.  

This syntax is invalid because the bean id must be specified as a method parameter.

D.  

It will return a bean of the type ClientService regardless of its id or name.

Discussion 0
Questions 8

Which two statements are true regarding the RestTemplate class? (Choose two.)

Options:

A.  

It supports asynchronous non-blocking model.

B.  

It automatically supports sending and receiving Java objects.

C.  

It provides convenience methods for writing REST clients.

D.  

It provides convenience methods for writing REST services.

E.  

Sending an HTTP request with a custom header is not possible when using RestTemplate.

Discussion 0
Questions 9

Which statement is true about the @PropertySource annotation? (Choose the best answer.)

Options:

A.  

Used to designate the location of the application.properties file in a Spring Boot application.

B.  

Used to easily look up and return a single property value from some external property file.

C.  

Used to designate the file directory of the application.properties file in a Spring Boot application.

D.  

Used to add a set of name/value pairs to the Spring Environment from an external source.

Discussion 0