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

ExamsBrite Dumps

Professional Develop VMware Spring Question and Answers

Professional Develop VMware Spring

Last Update Jun 15, 2025
Total Questions : 79

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

$36.75  $104.99
2V0-72.22 Engine

2V0-72.22 Testing Engine

$43.75  $124.99
2V0-72.22 PDF + Engine

2V0-72.22 PDF + Testing Engine

$57.75  $164.99
Questions 1

Refer to the exhibit.

Assume that the application is using Spring transaction management which uses Spring AOP internally.

Choose the statement that describes what is happening when the update1 method is called? (Choose the best answer.)

Options:

A.  

There are 2 transactions because REQUIRES_NEW always runs in a new transaction.

B.  

An exception is thrown as another transaction cannot be started within an existing transaction.

C.  

There is only one transaction because REQUIRES_NEW will use an active transaction if one already exists.

D.  

There is only one transaction initiated by update1() because the call to update2() does not go through the proxy.

Discussion 0
Questions 2

Which two statements are correct regarding the Actuator loggers endpoint? (Choose two.)

Options:

A.  

To get a logging level of a package called account.web, you can access the /actuator/loggers/account.web endpoint.

B.  

An application restart is required to change the logging level of the package.

C.  

In order to use the loggers endpoint, a logger implementation dependency needs to be added.

D.  

The logging levels of a package that can be accessed via the loggers endpoint include configuredLevel and effectiveLevel.

Discussion 0
Questions 3

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 4

Which two mechanisms of autowiring a dependency when multiple beans match the dependency's type are correct? (Choose two.)

Options:

A.  

Use of @Qualifier annotation on the class and @Autowired annotation either on a field or setter methods.

B.  

Use of @Qualifier and @Autowired annotations together with setter methods.

C.  

Use of @Qualifier annotation only with setter methods (@Autowired is optional for setters).

D.  

Use of @Qualifier and @Autowired annotations together on a field.

E.  

Use of @Qualifier annotation only on a field (@Autowired is optional for fields).

Discussion 0
Questions 5

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.

Discussion 0
Questions 6

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 7

Which two statements are correct regarding Spring Boot auto-configuration customization? (Choose two.)

Options:

A.  

Use the @AutoConfigureAfter or @AutoConfigureBefore annotations to apply configuration in a specific order.

B.  

Disable specific auto-configuration classes by using the exclude attribute on the

@EnableAutoConfiguation annotation.

C.  

Provide customized auto-configuration by subclassing the provided Spring Boot auto-configuration classes.

D.  

Enable component scanning within auto-configuration classes to find necessary components.

E.  

Control the order of auto-configuration classes applied with @AutoConfigureOrder.

Discussion 0
Questions 8

Which two statements describe the ApplicationContext correctly? (Choose two.)

Options:

A.  

The ApplicationContext is the root interface for accessing the Spring container.

B.  

The ApplicationContext lazy initializes beans by default.

C.  

The ApplicationContext can be created in a test environment, web application, and in a standalone application.

D.  

The ApplicationContext does not include all functionality of the BeanFactory.

E.  

The ApplicationContext maintains singleton beans that are instantiated by the Spring runtime.

Discussion 0
Questions 9

Which statement describes the propagation behavior of Propagation.REQUIRES_NEW annotation? (Choose the best answer.)

Options:

A.  

Starts a new transaction but throws an exception if an active transaction already exists.

B.  

Joins a transaction if one already exists; throws an exception if an active transaction does not exist.

C.  

Starts a new transaction; if an active transaction already exists, it is suspended.

D.  

Runs in a nested transaction if an active transaction exists; throws an exception if an active transaction does not exist.

Discussion 0
Questions 10

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

Options:

A.  

@TestApplicationContext is used to define additional beans or customizations for a test.

B.  

Test methods in a @SpringBootTest class are transactional by default.

C.  

@SpringBootTest is typically used for integration testing.

D.  

Test methods annotated with @SpringBootTest will recreate the ApplicationContext.

E.  

@SpringBootTest without any configuration classes expects there is only one class annotated with @SpringBootConfiguration in the application.

Discussion 0
Questions 11

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

Discussion 0
Questions 12

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.

Discussion 0
Questions 13

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.

Discussion 0
Questions 14

Which two statements are true regarding @DataJpaTest? (Choose two.)

Options:

A.  

TestEntityManager provides all methods that are provided by EntityManager and more.

B.  

If an embedded database is on the classpath, it will be used to configure a DataSource by default.

C.  

It can be used for testing both JPA components and NoSQL components.

D.  

It auto-configures a TestEntityManager bean.

E.  

It can be used for testing JdbcTemplate.

Discussion 0
Questions 15

Which two options are valid optional attributes for Spring’s @Transactional annotation? (Choose two.)

Options:

A.  

isolation

B.  

writeOnly

C.  

nestedTransaction

D.  

readWrite

E.  

propagation

Discussion 0
Questions 16

Which two statements are true concerning constructor injection? (Choose two.)

Options:

A.  

If there is only one constructor the @Autowired annotation is not required.

B.  

Constructor injection only allows one value to be injected.

C.  

Constructor injection is preferred over field injection to support unit testing.

D.  

Construction injection can be used with multiple constructors without @Autowired annotation.

E.  

Field injection is preferred over constructor injection from a unit testing standpoint.

Discussion 0
Questions 17

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.

Discussion 0
Questions 18

Refer to the exhibit.

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.

Discussion 0
Questions 19

Refer to the exhibit.

Which two statements are correct regarding auto-configuration of DataSource and JdbcTemplate beans given a Spring Boot application with only these two dependencies? (Choose two.)

Options:

A.  

A DataSource bean will not be auto-configured.

B.  

A JdbcTemplate bean will not be auto-configured.

C.  

A JdbcTemplate bean will be auto-configured.

D.  

A DataSource bean will be auto-configured only if a JdbcTemplate bean is explicitly defined.

E.  

A DataSource bean will be auto-configured.

Discussion 0
Questions 20

Which two annotations indicate that the transaction for a transactional test method should be committed after the test method has completed? (Choose two.)

Options:

A.  

@SqlMergeMode(false)

B.  

@Rollback(false)

C.  

@Commit

D.  

@Sql(alwaysCommit=true)

E.  

@Transactional(commit=true)

Discussion 0
Questions 21

Which two statements are correct regarding Spring Boot 2.x Actuator Metrics? (Choose two.)

Options:

A.  

An external monitoring system must be used with Actuator.

B.  

The metrics endpoint /actuator/metrics is exposed over HTTP by default.

C.  

Timer measures both the number of timed events and the total time of all events timed.

D.  

Custom metrics can be measured using Meter primitives such as Counter, Gauge, Timer, and DistributionSummary.

E.  

A metric must be created with one or more tags.

Discussion 0
Questions 22

Refer to the exhibit.

Which option is a valid way to retrieve the account id? (Choose the best answer.)

Options:

A.  

Add @PathVariable(“id”) String accountId argument to the update() handler method.

B.  

Add @PathVariable long accountId argument to the update() handler method.

C.  

Add @RequestParam long accountId argument to the update() handler method.

D.  

Add @RequestParam(“id”) String accountId argument to the update() handler method.

Discussion 0
Questions 23

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.

Discussion 0