Leads4pass > VMware > VCP-AM Develop 2022 > 2V0-72.22 > 2V0-72.22 Online Practice Questions and Answers

2V0-72.22 Online Practice Questions and Answers

Questions 4

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

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 5

Which two statements are true regarding a Spring Boot-based Spring MVC application? (Choose two.)

A. The default embedded servlet container can be replaced with Undertow.

B. Jetty is the default servlet container.

C. Spring Boot starts up an embedded servlet container by default.

D. The default port of the embedded servlet container is 8088.

E. Spring MVC starts up an in-memory database by default.

Buy Now
Questions 6

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

A. spring-boot-devtools

B. spring-boot-initializr

C. spring-boot-starter-devtools

D. spring-boot-restart

Buy Now
Questions 7

What is a Spring Boot starter dependency? (Choose the best answer.)

A. A setting for specifying which code you want Spring Boot to generate for you.

B. A specific POM which you must build to control Spring Boot's opinionated runtime.

C. A pre-existing model project you can download and use as the basis of your project.

D. An easy way to include multiple, coordinated dependencies related to a specific technology, like web or JDBC.

Buy Now
Questions 8

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

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.

Buy Now
Questions 9

Refer to the exhibit.

Based on the default Spring behavior, choose the correct answer. (Choose the best answer.)

A. One AccountRepository bean will be instantiated since the default scope is singleton.

B. Three AccountRepository beans will be instantiated as the accountRepository() method will be called three times.

C. Many AccountRepository beans will be instantiated, depending how often accountRepository(), transferService() and accountService() are called.

D. Two AccountRepository beans will be instantiated as the accountRepository() method will be called two times.

Buy Now
Questions 10

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

A. Auto-configuration uses @Conditional annotations to constrain when it should apply.

B. Auto-configuration could apply when a bean is missing but not when a bean is present.

C. Auto-configuration is applied by processing candidates listed in META-INF/spring.factories.

D. Auto-configuration could apply when a bean is present but not when a bean is missing.

E. Auto-configuration is applied before user-defined beans have been registered.

Buy Now
Questions 11

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.

Buy Now
Questions 12

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

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.

Buy Now
Questions 13

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

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.

Buy Now
Exam Code: 2V0-72.22
Exam Name: Professional Develop VMware Spring
Last Update: Nov 11, 2024
Questions: 60
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99