New Year Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

2V0-72.22 Professional Develop VMware Spring Questions and Answers

Questions 4

Refer to the exhibit.

2V0-72.22 Question 4

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.

Buy Now
Questions 5

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

Buy Now
Questions 6

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.

Buy Now
Questions 7

Refer to the exhibit.

2V0-72.22 Question 7

How can a response status code be set for No Content (204)? (Choose the best answer.)

Options:

A.

Annotate the update() handler method with @PutMapping(“/store/orders/{id”}”, HttpStatus.NO_CONTENT).

B.

Annotate the update() handler method with @ResponseStatus(HttpStatus.NO_CONTENT).

C.

Annotate the update() handler method with @ResponseEntity(204).

D.

The update() handler method cannot return a void type, it must return a ResponseEntity type.

Buy Now
Questions 8

Which two statements are true about Spring Boot and Spring Data JPA? (Choose two.)

Options:

A.

@EntityScan and spring.jpa.* properties can be used to customize Spring Data JPA.

B.

Any kind of Hibernate property can be passed to Spring Data JPA like spring.jpa.properties.xxx.

C.

Spring Data JPA is the only implementation for relational databases.

D.

Scanning of JPA Entities can not be customized, the whole classpath is scanned.

E.

Embedded Databases (H2, HSQLDB, Derby) are not re-created during the startup.

Buy Now
Questions 9

Refer to the exhibit.

2V0-72.22 Question 9

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

Buy Now
Questions 10

What are the two reasons Spring be used to build a Java application? (Choose two.)

Options:

A.

Spring automates a Java application build.

B.

Spring provides a Dependency Injection container.

C.

Spring automates deployment of Java applications to all of the major cloud providers.

D.

Spring provides comprehensive Java IDE support.

E.

Spring provides abstractions over infrastructure such as persistence and messaging.

Buy Now
Questions 11

Which two annotations are meta-annotations on the @SpringBootApplication composed annotation? (Choose two.)

Options:

A.

@Configuration

B.

@ComponentScan

C.

@SpringBootConfiguration

D.

@SpringApplication

E.

@AutoConfiguration

Buy Now
Questions 12

Which strategy is correct for configuring Spring Security to intercept particular URLs? (Choose the best answer.)

Options:

A.

The URLs can be specified via configuration (using authorizeRequests () and request matchers), with the most specific rule first and the least specific last.

B.

Spring Security can obtain URLs from Spring MVC controllers, the Spring Security configuration just needs a reference to the controller to be protected.

C.

The URLs are specified in a special properties file, used by Spring Security.

D.

The URLs can be specified via configuration (using authorizeRequests () and request matchers), with the least specific rule first and the most specific last.

Buy Now
Questions 13

Refer to the exhibit.

2V0-72.22 Question 13

Which two methods will be implemented at runtime if declared in a Spring Data JPA Repository? (Choose two.)

Options:

A.

public Customer getsingle(Long id);

B.

public Customer findFirstOrderDateMax();

C.

public Customer findByEmail(String email);

D.

public Customer findFirstByOrderDateBetween(Date d1, Date d2);

E.

public Customer findCustomerByName(String name);

Buy Now
Questions 14

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.

Buy Now
Questions 15

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

Options:

A.

EasyMock is supported out of the box.

B.

@SpringBootTest or @SpringJUnitConfig can be used for creating an ApplicationContext.

C.

Mockito spy is not supported in Spring Boot testing by default.

D.

The spring-test dependency provides annotations such as @Mock and @MockBean.

E.

Integration and slice testing are both supported.

Buy Now
Questions 16

Which two options will inject the value of the daily.limit system property? (Choose two.)

Options:

A.

@Value(“#{daily.limit}”)

B.

@Value(“$(systemProperties.daily.limit)”)

C.

@Value(“$(daily.limit)”)

D.

@Value(“#{systemProperties[‘daily.limit’]}”)

E.

@Value(“#{systemProperties.daily.limit}”)

Buy Now
Questions 17

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.

Buy Now
Questions 18

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

Options:

A.

It provides configuration options through which only an authenticated user can display application information.

B.

It is not enabled by default.

C.

It can be used to display arbitrary application information.

D.

It can be used to change a property value on a running application.

E.

Typically it is used to display build or source control information.

Buy Now
Questions 19

Refer to the exhibit.

2V0-72.22 Question 19

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.

Buy Now
Questions 20

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.

Buy Now
Questions 21

Which three types of objects can be returned form a JdbcTemplate query? (Choose three.)

Options:

A.

Generic MapS

B.

Simple types (int, long, String, etc)

C.

JSONObject

D.

User defined types

E.

Properties

F.

XMLObject

Buy Now
Questions 22

Which two statements are true regarding a Spring Boot "fat" JAR? (Choose two.)

Options:

A.

The "fat" JAR contains both the class files and the source files for your project.

B.

The "fat" JAR requires an external Servlet container.

C.

The "fat" JAR contains compiled classes and dependencies that your code needs to run.

D.

The "fat" JAR can contain multiple embedded application servers.

E.

The "fat" JAR is created by the Spring Boot Maven plugin or Gradle plugin.

Buy Now
Questions 23

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.

Buy Now
Exam Code: 2V0-72.22
Exam Name: Professional Develop VMware Spring
Last Update: Dec 19, 2024
Questions: 79

PDF + Testing Engine

$57.75  $164.99

Testing Engine

$43.75  $124.99
buy now 2V0-72.22 testing engine

PDF (Q&A)

$36.75  $104.99
buy now 2V0-72.22 pdf