Weekend Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = simple70

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

Practice at least 50% of the questions to maximize your chances of passing.
Exam 2V0-72.22 Premium Access

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


437 Students Passed

94% Average Score

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

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.

Questions # 2:

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

Options:

A.

Generic MapS

B.

Simple types (int, long, String, etc)

C.

JSONObject

D.

User defined types

E.

Properties

F.

XMLObject

Questions # 3:

Refer to the exhibit.

Question # 3

Which two methods will be implemented at runtime if declared in a Spring Data JPA Repository? (Choose two.)

Options:

A.

public Customer getsingle(Long id);

B.

public Customer findFirstOrderDateMax();

C.

public Customer findByEmail(String email);

D.

public Customer findFirstByOrderDateBetween(Date d1, Date d2);

E.

public Customer findCustomerByName(String name);

Questions # 4:

Which statements is true?

Options:

A.

Methods annotated with @AfterEach will run only once before any tests in a class are executed.

B.

@BeforeAll annotation can only be used on non-static methods.

C.

Methods annotated with @BeforeAll will run only once before any tests in a class are executed.

D.

@AfterEach annotation must be used on a cleanup method when @BeforeEach is used.

Questions # 5:

Spring puts each bean instance in a scope. What is the default scope? (Choose the best answer.)

Options:

A.

prototype

B.

singleton

C.

request

D.

session

Questions # 6:

Refer to the exhibit.

Question # 6

The above code shows a conditional @Bean method for the creation of a JdbcTemplate bean. Which two statements correctly describe the code behavior? (Choose two.)

Options:

A.

@ConditionalOnBean(name= “dataSource”) should be replaced with @ConditionalOnBean (DataSource.class) for greater flexibility.

B.

@ConditionalOnBean(name= “dataSource”) should be replaced with

@ConditionalOnMissingBean (DataSource.class) for greater flexibility.

C.

The @Bean annotation should be removed.

D.

A JdbcTemplate bean will be created when the DataSource class is in the classpath but there is no

DataSource bean.

E.

A JdbcTemplate bean will be created when a bean named dataSource has already been created.

Questions # 7:

Refer to the exhibit.

Question # 7

Which option is a valid way to retrieve the account id? (Choose the best answer.)

Options:

A.

Add @PathVariable(“id”) String accountId argument to the update() handler method.

B.

Add @PathVariable long accountId argument to the update() handler method.

C.

Add @RequestParam long accountId argument to the update() handler method.

D.

Add @RequestParam(“id”) String accountId argument to the update() handler method.

Questions # 8:

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

Options:

A.

Auto-configuration uses @Conditional annotations to constrain when it should apply.

B.

Auto-configuration could apply when a bean is missing but not when a bean is present.

C.

Auto-configuration is applied by processing candidates listed in META-INF/spring.factories.

D.

Auto-configuration could apply when a bean is present but not when a bean is missing.

E.

Auto-configuration is applied before user-defined beans have been registered.

Questions # 9:

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 # 10:

Which is the correct approach to register for a bean destruction callback?

Options:

A.

Annotate the callback method with @PostDestroy.

B.

Annotate the callback method with @PreDestroy.

C.

Add the @Lazy annotation to the bean configuration.

D.

Configure the bean instance to use prototype scope.

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

TOP CODES

Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.