Free 2V0-72.22 Exam Braindumps
Professional Develop VMware Spring Questions 52–56 (page: 6)

Updated On: 1-Feb-2026

Which two annotations indicate that the transaction for a transactional test method should be committed after the test method has completed? (Choose two.)

  1. @SqlMergeMode(false)
  2. @Rollback(false)
  3. @Commit
  4. @Sql(alwaysCommit=true)
  5. @Transactional(commit=true)

Answer(s): B,C


Reference:

https://stackoverflow.com/questions/9817388/junit-tests-always-rollback-the- transactions



Which two statements are correct regarding Spring Boot 2.x Actuator Metrics? (Choose two.)

  1. An external monitoring system must be used with Actuator.
  2. The metrics endpoint /actuator/metrics is exposed over HTTP by default.
  3. Timer measures both the number of timed events and the total time of all events timed.
  4. Custom metrics can be measured using Meter primitives such as Counter, Gauge, Timer, and DistributionSummary.
  5. A metric must be created with one or more tags.

Answer(s): A,B



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

  1. @TestApplicationContext is used to define additional beans or customizations for a test.
  2. Test methods in a @SpringBootTest class are transactional by default.
  3. @SpringBootTest is typically used for integration testing.
  4. Test methods annotated with @SpringBootTest will recreate the ApplicationContext.
  5. @SpringBootTest without any configuration classes expects there is only one class annotated with @SpringBootConfiguration in the application.

Answer(s): C,D



Which two statements are true regarding bean creation? (Choose two.)

  1. A Spring bean can be explicitly created by annotating methods or fields by @Autowired.
  2. A Spring bean can be implicitly created by annotating the class with @Component and using the component-scanner to scan its package.
  3. A Spring bean can be implicitly created by annotating the class with @Bean and using the component- scanner to scan its package.
  4. A Spring bean can be explicitly created using @Bean annotated methods within a Spring configuration class.
  5. A Spring bean can be explicitly created by annotating the class with @Autowired.

Answer(s): B,E


Reference:

https://docs.spring.io/spring-framework/docs/3.0.0.M4/spring-framework- reference/html/ ch03s10.html
https://howtodoinjava.com/spring-core/spring-beans-autowiring-concepts/



What are the two reasons Spring be used to build a Java application? (Choose two.)

  1. Spring automates a Java application build.
  2. Spring provides a Dependency Injection container.
  3. Spring automates deployment of Java applications to all of the major cloud providers.
  4. Spring provides comprehensive Java IDE support.
  5. Spring provides abstractions over infrastructure such as persistence and messaging.

Answer(s): A,B


Reference:

https://spring.io/why-spring



Viewing page 6 of 13
Viewing questions 26 - 30 out of 90 questions


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

AI Tutor AI Tutor 👋 I’m here to help!