Try Before You Buy

Download a free sample of any of our exam questions and answers

  • 24/7 customer support, Secure shopping site
  • Free One year updates to match real exam scenarios
  • If you failed your exam after buying our products we will refund the full amount back to you.

[Oct 26, 2022] 2V0-72.22 Exam Dumps 100% Same Q&A In Your Real Exam [Q12-Q33]

Share

[Oct 26, 2022] 2V0-72.22 Exam Dumps 100% Same Q&A In Your Real Exam

2V0-72.22 Test Engine Dumps Training With 62 Questions

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

  • A. Spring provides comprehensive Java IDE support.
  • B. Spring automates a Java application build.
  • C. Spring provides a Dependency Injection container.
  • D. Spring provides abstractions over infrastructure such as persistence and messaging.
  • E. Spring automates deployment of Java applications to all of the major cloud providers.

Answer: B,C

 

NEW QUESTION 13
Which two statements are true about REST? (Choose two.)

  • A. REST is a Protocol.
  • B. REST is Interoperable.
  • C. REST is Reliable.
  • D. REST is Stateful.
  • E. REST is Relative.

Answer: A,B

 

NEW QUESTION 14
Which two statements are true about @Controller annotated classes? (Choose two.)

  • A. The @Controller annotated classes can only render views.
  • B. The @Controller annotation is a stereotype annotation like @Component.
  • C. @Controller is interchangeable with @RestController with no extra code changes for the methods inside the class.
  • D. The classes must be annotated together with @EnableMvcMappings to be discovered via component scanning.
  • E. The classes are eligible for handling requests in Spring MVC.

Answer: B,E

 

NEW QUESTION 15
Which two statements are true concerning constructor injection? (Choose two.)

  • A. Constructor injection only allows one value to be injected.
  • B. Constructor injection is preferred over field injection to support unit testing.
  • C. If there is only one constructor the @Autowired annotation is not required.
  • D. Field injection is preferred over constructor injection from a unit testing standpoint.
  • E. Construction injection can be used with multiple constructors without @Autowired annotation.

Answer: B,D

 

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

  • A. Spring Data implementations exist for many data storage types, such as MongoDB, Neo4j, and Redis.
  • B. Spring Data can greatly reduce the amount of "boilerplate" code typically needed for data access.
  • C. Spring Data cannot be used together with Spring MVC.
  • D. Spring Data is specifically designed for JPA, JDBC, and relational database access only.
  • E. Spring Data works by applying the JPA annotations to data stores such as MongoDB, Neo4j, and Redis.

Answer: B,D

 

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

  • A. A Spring bean can be implicitly created by annotating the class with @Component and using the component-scanner to scan its package.
  • B. A Spring bean can be explicitly created using @Bean annotated methods within a Spring configuration class.
  • C. A Spring bean can be explicitly created by annotating methods or fields by @Autowired.
  • D. A Spring bean can be explicitly created by annotating the class with @Autowired.
  • E. A Spring bean can be implicitly created by annotating the class with @Bean and using the component- scanner to scan its package.

Answer: A,D

Explanation:
Reference:
https://howtodoinjava.com/spring-core/spring-beans-autowiring-concepts/

 

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

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

Answer: D,E

 

NEW QUESTION 19
Which three types of objects can be returned form a JdbcTemplate query? (Choose three.)

  • A. User defined types
  • B. Generic MapS
  • C. Simple types (int, long, String, etc)
  • D. Properties
  • E. JSONObject
  • F. XMLObject

Answer: A,C,D

 

NEW QUESTION 20
Given an ApplicationContext containing three bean definitions of type Foo with bean ids foo1, foo2, and foo3, which three @Autowired scenarios are valid and will allow the ApplicationContext to initialize successfully? (Choose three.)

  • A. @Autowired public void setFoo(Foo foo2) {...}
  • B. @Autowired public void setFoo (Foo foo) {...}
  • C. @Autowired public void setFoo (@Qualifier ("foo1") Foo foo) {...}
  • D. @Autowired private Foo foo;
  • E. @Autowired private Foo foo2;
  • F. @Autowired @Qualifier ("foo3") Foo foo;

Answer: A,B,D

 

NEW QUESTION 21
Spring Boot will find and load property files in which of the following? (Choose the best answer.)

  • A. env.properties or env.yml, usually located in the classpath root.
  • B. application.properties or application.yml, usually located in the classpath root.
  • C. config.properties or config.yml, usually located in the classpath root.
  • D. A *.properties file matching the name of the class annotated with @SpringBootApplication.

Answer: B

 

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

  • A. Component scanning will start from the package of the class.
  • B. All other annotations on the class will be ignored.
  • C. It causes Spring Boot to enable auto-configuration by default.
  • D. Methods in the class annotated with @Bean will be ignored.
  • E. A separate ApplicationContext will be created for each class annotated with

Answer: C,E

Explanation:
@SpringBootApplication.

 

NEW QUESTION 23
Refer to the exhibit.

The above code shows a conditional @Bean method for the creation of a JdbcTemplate bean. Which two statements correctly describe the code behavior? (Choose two.)

  • A. A JdbcTemplate bean will be created when the DataSource class is in the classpath but there is no DataSource bean.
  • B. The @Bean annotation should be removed.
  • C. @ConditionalOnBean(name= "dataSource") should be replaced with @ConditionalOnBean (DataSource.class) for greater flexibility.
  • D. @ConditionalOnBean(name= "dataSource") should be replaced with
    @ConditionalOnMissingBean (DataSource.class) for greater flexibility.
  • E. A JdbcTemplate bean will be created when a bean named dataSource has already been created.

Answer: A,C

 

NEW QUESTION 24
Which statement about @TestPropertySource annotation is true? (Choose the best answer.)

  • A. @TestPropertySource annotation loads a properties file relative to the root of the project by default.
  • B. Java system properties have higher precedence than the properties loaded from
    @TestPropertySource.
  • C. Properties defined @PropertySource are not loaded if @TestPropertySource is used.
  • D. Inlined properties defined in @TestPropertySource can be used to override properties defined in property files.

Answer: D

 

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

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

Answer: A

 

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

  • A. Annotate a class, an interface, or individual methods requiring a transaction with the @Transactional annotation.
  • B. Write a Spring AOP advice to implement transactional behavior.
  • C. Add @EnableTransactionManagement to a Java configuration class.
  • D. A class requiring a transaction must implement the TransactionInterceptor interface.
  • E. A class must be annotated with @Service and @Transaction.

Answer: A,C

 

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

  • A. @SpringBootTest without any configuration classes expects there is only one class annotated with @SpringBootConfiguration in the application.
  • B. @TestApplicationContext is used to define additional beans or customizations for a test.
  • C. Test methods in a @SpringBootTest class are transactional by default.
  • D. Test methods annotated with @SpringBootTest will recreate the ApplicationContext.
  • E. @SpringBootTest is typically used for integration testing.

Answer: D,E

 

NEW QUESTION 28
Which two statements are correct regarding the Health Indicator status? (Choose two.)

  • A. Custom status values can be created.
  • B. The last status in a sorted list of HealthIndicators is used to derive the final system health.
  • C. The built-in status values are DOWN, OUT_OF_SERVICE, UNKNOWN, and UP in decreasing order of severity.
  • D. The severity order cannot be changed due to security reasons.
  • E. The status with the least severity is used as the top-level status.

Answer: A,C

 

NEW QUESTION 29
Which three types can be used as @Controller method arguments? (Choose three.)

  • A. HttpSession
  • B. Language
  • C. Request
  • D. Principal
  • E. Session
  • F. Locale

Answer: A,C,F

 

NEW QUESTION 30
Refer to the exhibit.

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

  • A. A class that implements CustomerRepository must be implemented and declared as a Spring Bean.
  • B. CustomerRepository should be a class, not an interface.
  • C. JPA annotations are required on the Customer class to successfully use Spring Data JDBC.
  • D. An implementation of this repository can be automatically generated by Spring Data JPA.

Answer: D

 

NEW QUESTION 31
What two options are auto-configured Spring Boot Actuator HealthIndicators? (Choose two.)

  • A. RabbitHealthIndicator
  • B. DataSourceHealthIndicator
  • C. GoogleCloudDataStoreHealthIndicator
  • D. DynamoDBHealthIndicator
  • E. OktaHealthIndicator

Answer: A,B

 

NEW QUESTION 32
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. It will return a bean of the type ClientService regardless of its id or name.
  • C. This syntax is invalid because the bean id must be specified as a method parameter.
  • D. This syntax is invalid because the result of the getBean() method call should be cast to ClientService.

Answer: B

 

NEW QUESTION 33
......

2V0-72.22 Practice Test Pdf Exam Material: https://braindumps2go.dumptorrent.com/2V0-72.22-braindumps-torrent.html