VMware 2V0-72.22 Professional Develop VMware Spring Online Training
VMware 2V0-72.22 Online Training
The questions for 2V0-72.22 were last updated at Nov 22,2024.
- Exam Code: 2V0-72.22
- Exam Name: Professional Develop VMware Spring
- Certification Provider: VMware
- Latest update: Nov 22,2024
What is a Spring Boot starter dependency? (Choose the best answer.)
- A . A setting for specifying which code you want Spring Boot to generate for you.
- B . A specific POM which you must build to control Spring Boot’s opinionated runtime.
- C . A pre-existing model project you can download and use as the basis of your project.
- D . An easy way to include multiple, coordinated dependencies related to a specific technology, like web or JDBC.
Which option is true about use of mocks in a Spring Boot web slice test? (Choose the best answer.)
- A . Mocking a Spring Bean requires annotating it with @MockBean annotation.
- B . If a Spring Bean already exists in the web slice test spring context, it cannot be mocked.
- C . Mocks cannot be used in a Spring Boot web slice test.
- D . Mocking a Spring Bean requires annotating it with @Mock annotation.
What two options are auto-configured Spring Boot Actuator HealthIndicators? (Choose two.)
- A . DataSourceHealthIndicator
- B . GoogleCloudDataStoreHealthIndicator
- C . DynamoDBHealthIndicator
- D . RabbitHealthIndicator
- E . OktaHealthIndicator
Which two statements are correct regarding Spring Boot 2.x Actuator Metrics? (Choose two.)
- 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 Distribution Summary.
- E . A metric must be created with one or more tags.
Which two statements describe Spring JdbcTemplate? (Choose two.)
- A . All JdbcTemplate methods throw SQLException which you are required to handle.
- B . The JdbcTemplate provides the ability to work with result sets.
- C . The JdbcTemplate can only perform update but not insert to the database.
- D . The JdbcTemplate provides methods for query execution.
- E . The JdbcTemplate generates SQL statements.
Which statement describes the @AfterReturning advice type? (Choose the best answer.)
- A . The advice is invoked only if the method returns successfully but not if it throws an exception.
- B . The @AfterReturning advice allows behavior to be added after a method returns even if it throws an exception.
- C . The advice has complete control over the method invocation; it could even prevent the method from being called at all.
- D . Typically used to prevent any exception, thrown by the advised method, from propagating up the call-stack.
Which two statements are true regarding @DataJpaTest? (Choose two.)
- A . TestEntityManager provides all methods that are provided by EntityManager and more.
- B . If an embedded database is on the classpath, it will be used to configure a DataSource by default.
- C . It can be used for testing both JPA components and NoSQL components.
- D . It auto-configures a TestEntityManager bean.
- E . It can be used for testing JdbcTemplate.
Refer to the exhibit.
How can a response status code be set for No Content (204)? (Choose the best answer.)
- A . Annotate the update() handler method with @PutMapping(“/store/orders/{id”}”, HttpStatus.NO_CONTENT).
- B . Annotate the update() handler method with @ResponseStatus(HttpStatus.NO_CONTENT).
- C . Annotate the update() handler method with @ResponseEntity(204).
- D . The update() handler method cannot return a void type, it must return a ResponseEntity type.
Which three statements are advantages of using Spring’s Dependency Injection? (Choose three.)
- 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.
Which three types can be used as @Controller method arguments? (Choose three.)
- A . Locale
- B . Principal
- C . Language
- D . Session
- E . Request
- F . HttpSession