2V0-72.22 Practice Dumps - Verified By ExamcollectionPass Updated 62 Questions
Updated 2V0-72.22 Exam Dumps - PDF Questions and Testing Engine
VMware 2V0-72.22 exam is a professional developer certification that is designed to validate the skills and knowledge of developers who work with VMware Spring technologies. Professional Develop VMware Spring certification exam is aimed at developers who have experience with Spring Framework and related technologies, and who want to demonstrate their expertise in developing and deploying enterprise applications using VMware Spring.
NEW QUESTION # 23
Refer to the exhibit.
Which statement is true? (Choose the best answer.)
- A. CustomerRepository should be a class, not an interface.
- B. An implementation of this repository can be automatically generated by Spring Data JPA.
- C. JPA annotations are required on the Customer class to successfully use Spring Data JDBC.
- D. A class that implements CustomerRepository must be implemented and declared as a Spring Bean.
Answer: B
NEW QUESTION # 24
Which two statements are correct regarding Spring Boot auto-configuration customization? (Choose two.)
- A. Provide customized auto-configuration by subclassing the provided Spring Boot auto-configuration classes.
- B. Disable specific auto-configuration classes by using the exclude attribute on the
@EnableAutoConfiguation annotation. - C. Control the order of auto-configuration classes applied with @AutoConfigureOrder.
- D. Use the @AutoConfigureAfter or @AutoConfigureBefore annotations to apply configuration in a specific order.
- E. Enable component scanning within auto-configuration classes to find necessary components.
Answer: B,D
Explanation:
Section: (none)
Explanation
NEW QUESTION # 25
Which two statements are correct regarding the @EnableAutoConfiguration annotation? (Choose two.)
- A. It is meta-annotation on the @SpringBootConfiguration composed annotation.
- B. It has the same effect regardless of the package of the class that is annotated with it.
- C. It enables auto-configuration of the ApplicationContext by attempting to guess necessary beans.
- D. It ensures auto-configuration is applied before user-defined beans have been registered.
- E. It is a meta-annotation on the @SpringBootApplication composed annotation.
Answer: B,E
NEW QUESTION # 26
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.)
- A. spring-boot-initializr
- B. spring-boot-devtools
- C. spring-boot-restart
- D. spring-boot-starter-devtools
Answer: B
NEW QUESTION # 27
Which three types of objects can be returned form a JdbcTemplate query? (Choose three.)
- A. XMLObject
- B. Simple types (int, long, String, etc)
- C. JSONObject
- D. Properties
- E. Generic MapS
- F. User defined types
Answer: B,D,F
NEW QUESTION # 28
What are the two reasons Spring be used to build a Java application? (Choose two.)
- A. Spring automates deployment of Java applications to all of the major cloud providers.
- B. Spring provides abstractions over infrastructure such as persistence and messaging.
- C. Spring automates a Java application build.
- D. Spring provides comprehensive Java IDE support.
- E. Spring provides a Dependency Injection container.
Answer: C,E
NEW QUESTION # 29
Refer to the exhibit.
It is a Java code fragment from a Spring application. Which statement is true with regard to the above example? (Choose the best answer.)
- A. It will return a bean called ClientService regardless of its id or name.
- B. This syntax is invalid because the bean id must be specified as a method parameter.
- C. This syntax is invalid because the result of the getBean() method call should be cast to ClientService.
- D. It will return a bean of the type ClientService regardless of its id or name.
Answer: D
NEW QUESTION # 30
In which three ways are Security filters used in Spring Security? (Choose three.)
- A. To provide risk governance.
- B. To enforce authorization (access control).
- C. To provide a logout capability.
- D. To drive authentication.
- E. To manage application users.
- F. To encrypt data.
Answer: B,C,D
NEW QUESTION # 31
Which three dependencies are provided by the spring-boot-starter-test? (Choose three.)
- A. EasyMock
- B. Cucumber
- C. spring-test
- D. Hamcrest
- E. PowerMock
- F. Junit
Answer: A,D,F
NEW QUESTION # 32
Which statement is true? (Choose the best answer.)
- A. @ActiveProfiles is a class-level annotation that you can use to configure the locations of properties files and inlined properties to be added to the set of PropertySources in the Environment for an ApplicationContext loaded for an integration test.
- B. @ActiveProfiles is a class-level annotation that is used to declare which bean definition profiles should be active when loaded an ApplicationContext for an integration test.
- C. @ActiveProfiles is a class-level annotation that you can use to configure how the Spring TestContext Framework is bootstrapped.
- D. @ActiveProfiles is a class-level annotation that is used to instruct the Spring TestContext Framework to record all application events that are published in the ApplicationContext during the execution of a single test.
Answer: B
NEW QUESTION # 33
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. Custom metrics can be measured using Meter primitives such as Counter, Gauge, Timer, and DistributionSummary.
- C. Timer measures both the number of timed events and the total time of all events timed.
- D. A metric must be created with one or more tags.
- E. The metrics endpoint /actuator/metrics is exposed over HTTP by default.
Answer: A,E
NEW QUESTION # 34
Which three types can be used as @Controller method arguments? (Choose three.)
- A. HttpSession
- B. Principal
- C. Locale
- D. Language
- E. Session
- F. Request
Answer: A,C,F
NEW QUESTION # 35
Which statement describes the @AfterReturning advice type? (Choose the best answer.)
- A. The advice has complete control over the method invocation; it could even prevent the method from being called at all.
- B. The @AfterReturning advice allows behavior to be added after a method returns even if it throws an exception.
- C. Typically used to prevent any exception, thrown by the advised method, from propagating up the call-stack.
- D. The advice is invoked only if the method returns successfully but not if it throws an exception.
Answer: D
NEW QUESTION # 36
Refer to the exhibit.
Based on the default Spring behavior, choose the correct answer. (Choose the best answer.)
- A. Two AccountRepository beans will be instantiated as the accountRepository() method will be called two times.
- B. One AccountRepository bean will be instantiated since the default scope is singleton.
- C. Three AccountRepository beans will be instantiated as the accountRepository() method will be called three times.
- D. Many AccountRepository beans will be instantiated, depending how often accountRepository(), transferService() and accountService() are called.
Answer: D
NEW QUESTION # 37
Spring puts each bean instance in a scope. What is the default scope? (Choose the best answer.)
- A. request
- B. prototype
- C. singleton
- D. session
Answer: C
NEW QUESTION # 38
Refer to the exhibit.
Which two statements are correct regarding the HelloAutoConfig auto-configuration class when it is specified in the META-INF/spring.factories file? (Choose two.)
- A. A HelloService bean will be created from the helloService() method only when there is no other HelloService bean in the ApplicationContext.
- B. A HelloService bean will be created from the helloService() method even if the HelloService.class is not in the classpath.
- C. This auto-configuration class is used only when the HelloService.class is not on the classpath.
- D. This auto-configuration class is used only when the HelloService.class is on the classpath.
- E. A HelloService bean will be created from the helloService() method and will replace existing a HelloService bean in the ApplicationContext.
Answer: A,D
NEW QUESTION # 39
Which two options are REST principles? (Choose two.)
- A. RESTful applications favor tight coupling between the clients and the servers.
- B. RESTful application use HTTP headers and status codes as a contract with the clients.
- C. RESTful application servers keep track of the client state.
- D. RESTful applications cannot use caching.
- E. RESTful applications use a stateless architecture.
Answer: B,E
NEW QUESTION # 40
Refer to the exhibit.
What is the id/name of the declared bean in this Java configuration class? (Choose the best answer.)
- A. clientServiceImpl (starting with uppercase "C")
- B. clientService (starting with lowercase "c")
- C. clientServiceImpl (starting with lowercase "c")
- D. ClientService (starting with uppercase "C")
Answer: D
NEW QUESTION # 41
Refer to the exhibit.
Assume that the application is using Spring transaction management which uses Spring AOP internally.
Choose the statement that describes what is happening when the update1 method is called? (Choose the best answer.)
- A. There is only one transaction because REQUIRES_NEW will use an active transaction if one already exists.
- B. There is only one transaction initiated by update1() because the call to update2() does not go through the proxy.
- C. There are 2 transactions because REQUIRES_NEW always runs in a new transaction.
- D. An exception is thrown as another transaction cannot be started within an existing transaction.
Answer: B
NEW QUESTION # 42
......
New (2024) VMware 2V0-72.22 Exam Dumps: https://www.examcollectionpass.com/VMware/2V0-72.22-practice-exam-dumps.html
Best Way To Study For VMware 2V0-72.22 Exam Brilliant 2V0-72.22 Exam Questions PDF: https://drive.google.com/open?id=1DRhScV88yjx4uAJNHUWbveMBKQfe4j9D