Pass4itsure > 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 options are REST principles? (Choose two.)

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.

Buy Now
Questions 6

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 7

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

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.

Buy Now
Questions 8

Which statement is true? (Choose the best answer.)

A. @ActiveProfiles is a class-level annotation that is used to instruct the Spring TestContext Framework to record all application events that are published in the ApplicationContext during the execution of a single test.

B. @ActiveProfiles is a class-level annotation that you can use to configure how the Spring TestContext Framework is bootstrapped.

C. @ActiveProfiles is a class-level annotation that you can use to configure the locations of properties files and inlined properties to be added to the set of PropertySources in the Environment for an ApplicationContext loaded for an integration test.

D. @ActiveProfiles is a class-level annotation that is used to declare which bean definition profiles should be active when loaded an ApplicationContext for an integration test.

Buy Now
Questions 9

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

A. Generic MapS

B. Simple types (int, long, String, etc)

C. JSONObject

D. User defined types

E. Properties

F. XMLObject

Buy Now
Questions 10

Refer to the exhibit.

Which two statements are correct regarding the HelloAutoConfig auto-configuration class when it is specified in the META-INF/spring.factories file? (Choose two.)

A. A HelloService bean will be created from the helloService() method even if the HelloService.class is not in the classpath.

B. A HelloService bean will be created from the helloService() method only when there is no other HelloService bean in the ApplicationContext.

C. This auto-configuration class is used only when the HelloService.class is not on the classpath.

D. This auto-configuration class is used only when the HelloService.class is on the classpath.

E. A HelloService bean will be created from the helloService() method and will replace existing a HelloService bean in the ApplicationContext.

Buy Now
Questions 11

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

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.

Buy Now
Questions 12

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

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.

Buy Now
Questions 13

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

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
Exam Code: 2V0-72.22
Exam Name: Professional Develop VMware Spring
Last Update: Apr 20, 2024
Questions: 60
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$45.99

VCE

$49.99

PDF + VCE

$59.99