Winter Special - 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: c4sdisc65

2V0-72.22 PDF

$38.5

$109.99

3 Months Free Update

  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions

2V0-72.22 PDF + Testing Engine

$61.6

$175.99

3 Months Free Update

  • Exam Name: Professional Develop VMware Spring
  • Last Update: Dec 5, 2024
  • Questions and Answers: 79
  • Free Real Questions Demo
  • Recommended by Industry Experts
  • Best Economical Package
  • Immediate Access

2V0-72.22 Engine

$46.2

$131.99

3 Months Free Update

  • Best Testing Engine
  • One Click installation
  • Recommended by Teachers
  • Easy to use
  • 3 Modes of Learning
  • State of Art Technology
  • 100% Real Questions included

2V0-72.22 Practice Exam Questions with Answers Professional Develop VMware Spring Certification

Question # 6

Refer to the exhibit.

2V0-72.22 question answer

AppConfig is a Java configuration class. Which two statements are true? (Choose two.)

A.

The clientService bean declared will have prototype scope by default.

B.

The name of the clientService() method is invalid and will throw an error.

C.

The clientService bean will be lazy initialized the first time accessed.

D.

The bean is of type clientService and by default will be a Singleton.

E.

The Java configuration can be profile specific by adding a @Profile annotation.

Full Access
Question # 7

Refer to the exhibit.

2V0-72.22 question answer

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.

Full Access
Question # 8

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.

Full Access
Question # 9

Which two use cases can be addressed by the method level security annotation @PreAuthorize? (Choose two.)

A.

Allow access to a method based on user identity.

B.

Allow access to a method based on the returned object.

C.

Allow access to a method based on HTTP method.

D.

Allow access to a method based on request URL.

E.

Allow access to a method based on roles.

Full Access
Question # 10

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

A.

The @After advice type is invoked regardless of whether a method successfully returned or an exception was thrown.

B.

In Spring AOP, a join point represents a method execution or property access.

C.

Spring AOP does not use AspectJ's pointcut expression language.

D.

Examples of cross-cutting concerns include security, caching, transaction.

E.

There are in total 4 types of advice, @Before, @After, @AfterReturning and @AfterThrowing.

Full Access
Question # 11

Spring Boot will find and load property files in which of the following? (Choose the best answer.)

A.

A *.properties file matching the name of the class annotated with @SpringBootApplication.

B.

config.properties or config.yml, usually located in the classpath root.

C.

application.properties or application.yml, usually located in the classpath root.

D.

env.properties or env.yml, usually located in the classpath root.

Full Access
Question # 12

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.

Full Access
Question # 13

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.

Full Access
Question # 14

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

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.

Full Access
Question # 15

Which two statements are correct regarding the differences between @ConfigurationProperties and @Value? (Choose two.)

A.

@Value must be used for environment variables, as @ConfigurationProperties cannot access the environment.

B.

@Value supports relaxed binding of properties, but not property binding through SpEL.

C.

@ConfigurationProperties is preferable over @Value when type-safety during property binding is a concern.

D.

@ConfigurationProperties only bind properties from .properties files, not from .yml files.

E.

@ConfigurationProperties supports relaxed binding of properties, but not property binding through SpEL.

Full Access
Question # 16

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.

Full Access
Question # 17

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

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.

Full Access
Question # 18

Which two options are application slices that can be tested with Spring Boot Testing? (Choose two.)

A.

Repository

B.

Messaging

C.

Web

D.

Container

E.

Client

Full Access
Question # 19

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.

Full Access
Question # 20

Refer to the exhibit.

2V0-72.22 question answer

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

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.

Full Access
Question # 21

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

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.

Full Access
Question # 22

What two options are auto-configured Spring Boot Actuator HealthIndicators? (Choose two.)

A.

DataSourceHealthIndicator

B.

GoogleCloudDataStoreHealthIndicator

C.

DynamoDBHealthIndicator

D.

RabbitHealthIndicator

E.

OktaHealthIndicator

Full Access
Question # 23

Which two statements are correct when @SpringBootApplication is annotated on a class? (Choose two.)

A.

It causes Spring Boot to enable auto-configuration by default.

B.

Component scanning will start from the package of the class.

C.

All other annotations on the class will be ignored.

D.

Methods in the class annotated with @Bean will be ignored.

E.

A separate ApplicationContext will be created for each class annotated with

@SpringBootApplication.

Full Access