2V0-72.22 Dumps 2V0-72.22 Braindumps 2V0-72.22 Real Questions 2V0-72.22 Practice Test 2V0-72.22 Actual Questions Vmware 2V0-72.22 Spring Professional Develop https://killexams.com/pass4sure/exam-detail/2V0-72.22 Question: 10 Which two statements are correct regarding the Health Indicator status? (Choose two.) A. The last status in a sorted list of HealthIndicators is used to derive the final system health. B. The status with the least severity is used as the top-level status. C. Custom status values can be created. D. The built-in status values are DOWN, OUT_OF_SERVICE, UNKNOWN, and UP in decreasing order of severity. E. The severity order cannot be changed due to security reasons. Answer: A,C,D Explanation: Reference: https://docs.spring.io/spring-boot/docs/1.5.x/reference/html/production-ready-endpoints.html Question: 11 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 JDB Answer: D Explanation: Reference: https://developer.ibm.com/tutorials/j-spring-boot-basics-perry/ Question: 12 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. Answer: A Explanation: Reference: https://tanzu.vmware.com/developer/guides/spring-boot-testing/ Question: 13 What two options are auto-configured Spring Boot Actuator HealthIndicators? (Choose two.) A. DataSourceHealthIndicator B. GoogleCloudDataStoreHealthIndicator C. DynamoDBHealthIndicator D. RabbitHealthIndicator E. OktaHealthIndicator Answer: A,D Explanation: Reference: https://docs.spring.io/spring-boot/docs/1.5.x/reference/html/production-ready-endpoints.html Question: 14 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. Answer: A,B Question: 15 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. Answer: A,B,E Explanation: Reference: https://www.baeldung.com/spring-jdbctemplate-in-list Question: 16 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. Answer: A Explanation: Reference: https://www.amitph.com/spring-aop-afterreturning-advice Question: 17 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. Answer: A,B,D Explanation: Reference: https://docs.spring.io/spring- boot/docs/current/api/org/springframework/boot/test/autoconfigure/orm/jpa/DataJpaTest.html Question: 18 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. Answer: C Explanation: Reference: https://stackoverflow.com/questions/55691288/is-this-the-correct-way-to-return-204-no-content- using- spring Question: 19 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. Answer: A,B,D,E Explanation: Reference: https://raviroza.com/tight-coupling-and-loose-coupling-in-spring-framework/ Question: 20 Which three types can be used as @Controller method arguments? (Choose three.) A. Locale B. Principal C. Language D. Session E. Request F. HttpSession Answer: A,E,F Explanation: Reference: https://docs.spring.io/spring-framework/docs/3.0.0.M4/spring-framework-reference/html/ch15s03.html 6$03/( 48(67,216 7KHVH TXHVWLRQV DUH IRU GHPR SXUSRVH RQO\ )XOO YHUVLRQ LV XS WR GDWH DQG FRQWDLQV DFWXDO TXHVWLRQV DQG DQVZHUV .LOOH[DPV FRP LV DQ RQOLQH SODWIRUP WKDW RIIHUV D ZLGH UDQJH RI VHUYLFHV UHODWHG WR FHUWLILFDWLRQ H[DP SUHSDUDWLRQ 7KH SODWIRUP SURYLGHV DFWXDO TXHVWLRQV H[DP GXPSV DQG SUDFWLFH WHVWV WR KHOS LQGLYLGXDOV SUHSDUH IRU YDULRXV FHUWLILFDWLRQ H[DPV ZLWK FRQILGHQFH +HUH DUH VRPH NH\ IHDWXUHV DQG VHUYLFHV RIIHUHG E\ .LOOH[DPV FRP $FWXDO ([DP 4XHVWLRQV .LOOH[DPV FRP SURYLGHV DFWXDO H[DP TXHVWLRQV WKDW DUH H[SHULHQFHG LQ WHVW FHQWHUV 7KHVH TXHVWLRQV DUH XSGDWHG UHJXODUO\ WR HQVXUH WKH\ DUH XS WR GDWH DQG UHOHYDQW WR WKH ODWHVW H[DP V\OODEXV %\ VWXG\LQJ WKHVH DFWXDO TXHVWLRQV FDQGLGDWHV FDQ IDPLOLDUL]H WKHPVHOYHV ZLWK WKH FRQWHQW DQG IRUPDW RI WKH UHDO H[DP ([DP 'XPSV .LOOH[DPV FRP RIIHUV H[DP GXPSV LQ 3') IRUPDW 7KHVH GXPSV FRQWDLQ D FRPSUHKHQVLYH FROOHFWLRQ RI TXHVWLRQV DQG DQVZHUV WKDW FRYHU WKH H[DP WRSLFV %\ XVLQJ WKHVH GXPSV FDQGLGDWHV FDQ HQKDQFH WKHLU NQRZOHGJH DQG LPSURYH WKHLU FKDQFHV RI VXFFHVV LQ WKH FHUWLILFDWLRQ H[DP 3UDFWLFH 7HVWV .LOOH[DPV FRP SURYLGHV SUDFWLFH WHVWV WKURXJK WKHLU GHVNWRS 9&( H[DP VLPXODWRU DQG RQOLQH WHVW HQJLQH 7KHVH SUDFWLFH WHVWV VLPXODWH WKH UHDO H[DP HQYLURQPHQW DQG KHOS FDQGLGDWHV DVVHVV WKHLU UHDGLQHVV IRU WKH DFWXDO H[DP 7KH SUDFWLFH WHVWV FRYHU D ZLGH UDQJH RI TXHVWLRQV DQG HQDEOH FDQGLGDWHV WR LGHQWLI\ WKHLU VWUHQJWKV DQG ZHDNQHVVHV *XDUDQWHHG 6XFFHVV .LOOH[DPV FRP RIIHUV D VXFFHVV JXDUDQWHH ZLWK WKHLU H[DP GXPSV 7KH\ FODLP WKDW E\ XVLQJ WKHLU PDWHULDOV FDQGLGDWHV ZLOO SDVV WKHLU H[DPV RQ WKH ILUVW DWWHPSW RU WKH\ ZLOO UHIXQG WKH SXUFKDVH SULFH 7KLV JXDUDQWHH SURYLGHV DVVXUDQFH DQG FRQILGHQFH WR LQGLYLGXDOV SUHSDULQJ IRU FHUWLILFDWLRQ H[DPV 8SGDWHG &RQWHQW .LOOH[DPV FRP UHJXODUO\ XSGDWHV LWV TXHVWLRQ EDQN DQG H[DP GXPSV WR HQVXUH WKDW WKH\ DUH FXUUHQW DQG UHIOHFW WKH ODWHVW FKDQJHV LQ WKH H[DP V\OODEXV 7KLV KHOSV FDQGLGDWHV VWD\ XS WR GDWH ZLWK WKH H[DP FRQWHQW DQG LQFUHDVHV WKHLU FKDQFHV RI VXFFHVV 7HFKQLFDO 6XSSRUW .LOOH[DPV FRP SURYLGHV IUHH [ WHFKQLFDO VXSSRUW WR DVVLVW FDQGLGDWHV ZLWK DQ\ TXHULHV RU LVVXHV WKH\ PD\ HQFRXQWHU ZKLOH XVLQJ WKHLU VHUYLFHV 7KHLU FHUWLILHG H[SHUWV DUH DYDLODEOH WR SURYLGH JXLGDQFH DQG KHOS FDQGLGDWHV WKURXJKRXW WKHLU H[DP SUHSDUDWLRQ MRXUQH\ 'PS .PSF FYBNT WJTJU IUUQT LJMMFYBNT DPN WFOEPST FYBN MJTU .LOO \RXU H[DP DW )LUVW $WWHPSW *XDUDQWHHG