New Year Sale 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 CertsForce

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

Which two annotations are meta-annotations on the @SpringBootApplication composed annotation? (Choose two.)

Options:

A.

@Configuration


B.

@ComponentScan


C.

@SpringBootConfiguration


D.

@SpringApplication


E.

@AutoConfiguration


Expert Solution
Questions # 2:

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

Options:

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.


Expert Solution
Questions # 3:

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

Options:

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.


Expert Solution
Questions # 4:

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
Questions # 5:

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

Options:

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.


Expert Solution
Questions # 6:

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

Options:

A.

It auto-configures a MockMvc.


B.

It will only scan for @Controller beans in the source code.


C.

It is used for testing Spring MVC components such as @Controller with a running server.


D.

Typically it is used in combination with @MockBean when there is a dependency bean to be mocked.


E.

It is typically used with @ExtendWith(MockitoExtension.class) in JUnit 5.


Expert Solution
Questions # 7:

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

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

Options:

A.

Spring Data implementations exist for many data storage types, such as MongoDB, Neo4j, and Redis.


B.

Spring Data works by applying the JPA annotations to data stores such as MongoDB, Neo4j, and Redis.


C.

Spring Data can greatly reduce the amount of “boilerplate” code typically needed for data access.


D.

Spring Data is specifically designed for JPA, JDBC, and relational database access only.


E.

Spring Data cannot be used together with Spring MVC.


Expert Solution
Questions # 9:

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

Options:

A.

Cucumber


B.

Hamcrest


C.

spring-test


D.

Junit


E.

EasyMock


F.

PowerMock


Expert Solution
Questions # 10:

What's the password storage format when using the DelegatingPasswordEncoder?

Options:

A.

encodedPassword{id}, where {id} is an identifier used to look up which PasswordEncoder should be used.


B.

{id}encodedPassword, where {id} is an identifier used to look up which PasswordEncoder should be used.


C.

{timestamp}encodedPassword, where {timestamp} is the time when the password was encoded.


D.

{id}{salt}encodedPassword, where {id} is an identifier used to look up which PasswordEncoder should be used and {salt} a randomly generated salt.


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