Free 2V0-72.22 Exam Braindumps (page: 6)

Page 5 of 16

What is a Spring Boot starter dependency? (Choose the best answer.)

  1. A setting for specifying which code you want Spring Boot to generate for you.
  2. A specific POM which you must build to control Spring Boot's opinionated runtime.
  3. A pre-existing model project you can download and use as the basis of your project.
  4. An easy way to include multiple, coordinated dependencies related to a specific technology, like web or JDBC.

Answer(s): D


Reference:

https://developer.ibm.com/tutorials/j-spring-boot-basics-perry/



Which two are required to use transactions in Spring? (Choose two.)

  1. Add @EnableTransactionManagement to a Java configuration class.
  2. Annotate a class, an interface, or individual methods requiring a transaction with the @Transactional
    annotation.
  3. A class must be annotated with @Service and @Transaction.
  4. A class requiring a transaction must implement the TransactionInterceptor interface.
  5. Write a Spring AOP advice to implement transactional behavior.

Answer(s): A,B


Reference:

https://www.baeldung.com/transaction-configuration-with-jpa-and-spring



Which two statements are true regarding the RestTemplate class? (Choose two.)

  1. It supports asynchronous non-blocking model.
  2. It automatically supports sending and receiving Java objects.
  3. It provides convenience methods for writing REST clients.
  4. It provides convenience methods for writing REST services.
  5. Sending an HTTP request with a custom header is not possible when using RestTemplate.

Answer(s): B,E


Reference:

https://docs.spring.io/spring-framework/docs/current/javadoc- api/org/springframework/web/client/ RestTemplate.html



Which statement is true? (Choose the best answer.)

  1. @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.
  2. @ActiveProfiles is a class-level annotation that you can use to configure how the Spring TestContext Framework is bootstrapped.
  3. @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.
  4. @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.

Answer(s): D


Reference:

https://docs.spring.io/spring-framework/docs/4.2.x/spring-framework-

reference/html/integration- testing.html






Post your Comments and Discuss VMware 2V0-72.22 exam with other Community members:

2V0-72.22 Discussions & Posts