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

Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions
Questions # 1:

Refer to the exhibit.

Question # 1

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

Options:

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.


Questions # 2:

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

Options:

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.


Questions # 3:

Which two statements are correct regarding Spring Boot 2.x Actuator Metrics? (Choose two.)

Options:

A.

An external monitoring system must be used with Actuator.


B.

The metrics endpoint /actuator/metrics is exposed over HTTP by default.


C.

Timer measures both the number of timed events and the total time of all events timed.


D.

Custom metrics can be measured using Meter primitives such as Counter, Gauge, Timer, and DistributionSummary.


E.

A metric must be created with one or more tags.


Questions # 4:

Which three statements are advantages of using Spring’s Dependency Injection? (Choose three.)

Options:

A.

Dependency injection can make code easier to trace because it couples behavior with construction.


B.

Dependency injection reduces the start-up time of an application.


C.

Dependencies between application components can be managed external to the components.


D.

Configuration can be externalized and centralized in a small set of files.


E.

Dependency injection creates tight coupling between components.


F.

Dependency injection facilitates loose coupling between components.


Questions # 5:

Refer to the exhibit.

Question # 5

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

Options:

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.


Questions # 6:

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

Options:

A.

Use the @AutoConfigureAfter or @AutoConfigureBefore annotations to apply configuration in a specific order.


B.

Disable specific auto-configuration classes by using the exclude attribute on the

@EnableAutoConfiguation annotation.


C.

Provide customized auto-configuration by subclassing the provided Spring Boot auto-configuration classes.


D.

Enable component scanning within auto-configuration classes to find necessary components.


E.

Control the order of auto-configuration classes applied with @AutoConfigureOrder.


Questions # 7:

Which two statements are true concerning the BeanPostProcessor Extension point? (Choose two.)

Options:

A.

BeanPostProcessors are called before the dependencies have been injected.


B.

Custom BeanPostProcessors can be implemented for Spring applications.


C.

BeanPostProcessors are called before the BeanFactoryPostProcessors.


D.

BeanPostProcessors are called during the initialization phase of a bean life cycle.


E.

BeanPostProcessors cannot be ordered in a Spring Boot application.


Questions # 8:

Which two statements are correct regarding the @EnableAutoConfiguration annotation? (Choose two.)

Options:

A.

It is a meta-annotation on the @SpringBootApplication composed annotation.


B.

It enables auto-configuration of the ApplicationContext by attempting to guess necessary beans.


C.

It is meta-annotation on the @SpringBootConfiguration composed annotation.


D.

It has the same effect regardless of the package of the class that is annotated with it.


E.

It ensures auto-configuration is applied before user-defined beans have been registered.


Questions # 9:

Which two statements about pointcut expressions are true? (Choose two.)

Options:

A.

A pointcut expression cannot specify the type of parameters.


B.

A pointcut expression will throw an exception if no methods are matched.


C.

A pointcut expression cannot have a wildcard for a method name.


D.

A pointcut expression can include operators such as the following: && (and), || (or), ! (not).


E.

A pointcut expression can be used to select join points which have been annotated with a specific annotation.


Questions # 10:

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

Options:

A.

Access control can be configured at the method level.


B.

A special Java Authentication and Authorization Service (JAAS) policy file needs to be configured.


C.

Authentication data can be accessed using a variety of different mechanisms, including databases and LDAP.


D.

In the authorization configuration, the usage of permitAll () allows bypassing Spring security completely.


E.

It provides a strict implementation of the Java EE Security specification.


Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions