Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

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

Exam 2V0-72.22 All Questions
Exam 2V0-72.22 Premium Access

View all detail and faqs for the 2V0-72.22 exam

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

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.

Expert Solution
Questions # 2:

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

Options:

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.

Expert Solution
Questions # 3:

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

Options:

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.

Expert Solution
Questions # 4:

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

Options:

A.

Used to designate the location of the application.properties file in a Spring Boot application.

B.

Used to easily look up and return a single property value from some external property file.

C.

Used to designate the file directory of the application.properties file in a Spring Boot application.

D.

Used to add a set of name/value pairs to the Spring Environment from an external source.

Expert Solution
Questions # 5:

Which three types can be used as @Controller method arguments? (Choose three.)

Options:

A.

Locale

B.

Principal

C.

Language

D.

Session

E.

Request

F.

HttpSession

Expert Solution
Questions # 6:

Refer to the exhibit.

Question # 6

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.

Expert Solution
Questions # 7:

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

Options:

A.

spring-boot-devtools

B.

spring-boot-initializr

C.

spring-boot-starter-devtools

D.

spring-boot-restart

Expert Solution
Questions # 8:

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.

Expert Solution
Questions # 9:

Refer to the exhibit.

Question # 9

How can a Spring Bean be created from this LegacySingleton class?

Options:

A.

Call LegacySingleton.getInstance() from within a @Bean method and return the instance.

B.

Return an instance of LegacySingleton using the new keyword from a @Bean method.

C.

It is not possible without modifying the LegacySingleton class, the constructor must be public.

D.

Modify the LegacySingleton class by adding the @Autowired annotation to the instance variable.

Expert Solution
Questions # 10:

Which two statements are true about @Controller annotated classes? (Choose two.)

Options:

A.

The @Controller annotated classes can only render views.

B.

The classes are eligible for handling requests in Spring MVC.

C.

The classes must be annotated together with @EnableMvcMappings to be discovered via component scanning.

D.

@Controller is interchangeable with @RestController with no extra code changes for the methods inside the class.

E.

The @Controller annotation is a stereotype annotation like @Component.

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