Summer Certification Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = getmirror

Pass the VMware VCP-AM Develop 2022 2V0-72.22 Questions and answers with ExamsMirror

Practice at least 50% of the questions to maximize your chances of passing.
Exam 2V0-72.22 Premium Access

View all detail and faqs for the 2V0-72.22 exam


757 Students Passed

89% Average Score

98% Same Questions
Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions
Questions # 11:

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.

Questions # 12:

Which two statements describe Spring JdbcTemplate? (Choose two.)

Options:

A.

All JdbcTemplate methods throw SQLException which you are required to handle.

B.

The JdbcTemplate provides the ability to work with result sets.

C.

The JdbcTemplate can only perform update but not insert to the database.

D.

The JdbcTemplate provides methods for query execution.

E.

The JdbcTemplate generates SQL statements.

Questions # 13:

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

Options:

A.

Spring Data implementations exist for many data storage types, such as MongoDB, Neo4j, and Redis.

B.

Spring Data works by applying the JPA annotations to data stores such as MongoDB, Neo4j, and Redis.

C.

Spring Data can greatly reduce the amount of “boilerplate” code typically needed for data access.

D.

Spring Data is specifically designed for JPA, JDBC, and relational database access only.

E.

Spring Data cannot be used together with Spring MVC.

Questions # 14:

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

Questions # 15:

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 to ClientService.

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.

Questions # 16:

Which two statements are true regarding bean creation? (Choose two.)

Options:

A.

A Spring bean can be explicitly created by annotating methods or fields by @Autowired.

B.

A Spring bean can be implicitly created by annotating the class with @Component and using the component-scanner to scan its package.

C.

A Spring bean can be implicitly created by annotating the class with @Bean and using the component- scanner to scan its package.

D.

A Spring bean can be explicitly created using @Bean annotated methods within a Spring configuration class.

E.

A Spring bean can be explicitly created by annotating the class with @Autowired.

Questions # 17:

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.

Questions # 18:

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

Options:

A.

@Configuration

B.

@ComponentScan

C.

@SpringBootConfiguration

D.

@SpringApplication

E.

@AutoConfiguration

Questions # 19:

Refer to the exhibit.

Question # 19

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.

Questions # 20:

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.

Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions
TOP CODES

TOP CODES

Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.