Winter Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: v4s65

2V0-72.22 Exam Dumps - Professional Develop VMware Spring

Go to page:
Question # 9

Which two statements about BeanFactoryPostProcessors are true? (Choose two.)

A.

Allows for the transformation of Spring bean definitions after the beans have been instantiated.

B.

Allows for the transformation of Spring bean definitions before the beans are instantiated.

C.

Creates proxies for the Spring beans that require an extra behavior like transaction management.

D.

PropertySourcesPlaceholderConfigurer implements BeanFactoryPostProcessor and is used to read property values from the Spring Environment.

E.

Detects annotations such as @PostConstruct and @PreDestroy and then invokes appropriate behavior.

Full Access
Question # 10

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

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.

Full Access
Question # 11

Which three dependencies are provided by the spring-boot-starter-test? (Choose three.)

A.

Cucumber

B.

Hamcrest

C.

spring-test

D.

Junit

E.

EasyMock

F.

PowerMock

Full Access
Question # 12

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

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.

Full Access
Question # 13

Refer to the exhibit.

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 # 14

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.

Full Access
Question # 15

Which two statements are true regarding storing user details in Spring Security? (Choose two.)

A.

With a custom UserDetailsService defined in the ApplicationContext, Spring Boot still creates the default user.

B.

Passwords must be hashed and the default hashing algorithm is MD5.

C.

User details can be stored in custom storage and retrieve them by implementing the

UserDetailsService interface.

D.

User details can be stored in a database, in LDAP, or in-memory.

E.

The user details includes username and password but not authorities.

Full Access
Question # 16

Which two statements about the @Autowired annotation are true? (Choose two.)

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.

Full Access
Go to page: