لا تريد أن تفوت شيئا؟

نصائح اجتياز امتحان الشهادة

آخر أخبار الامتحانات ومعلومات الخصم

برعاية وحديثة من قبل خبرائنا

نعم، أرسل لي النشرة الإخبارية

خذ اختبارات أخرى عبر الإنترنت

السؤال #1
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
عرض الإجابة
اجابة صحيحة: A

View The Updated 2V0-72.22 Exam Questions

SPOTO Provides 100% Real 2V0-72.22 Exam Questions for You to Pass Your 2V0-72.22 Exam!

السؤال #2
Which two statements are correct regarding Spring Boot auto-configuration? (Choose two.)
A. Auto-configuration uses @Conditional annotations to constrain when it should apply
B. Auto-configuration could apply when a bean is missing but not when a bean is present
C. Auto-configuration is applied by processing candidates listed in META-INF/spring
D. Auto-configuration could apply when a bean is present but not when a bean is missing
E. Auto-configuration is applied before user-defined beans have been registered
عرض الإجابة
اجابة صحيحة: DE
السؤال #3
Refer to the exhibit.Which statement is true? (Choose the best answer.)
A. CustomerRepository should be a class, not an interface
B. JPA annotations are required on the Customer class to successfully use Spring Data JDBC
C. An implementation of this repository can be automatically generated by Spring Data JPA
D. A class that implements CustomerRepository must be implemented and declared as a Spring Bean
عرض الإجابة
اجابة صحيحة: C
السؤال #4
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
B. Annotate the update() handler method with @ResponseStatus(HttpStatus
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
عرض الإجابة
اجابة صحيحة: C
السؤال #5
Refer to the exhibit.Based on the default Spring behavior, choose the correct answer. (Choose the best answer.)
A. One AccountRepository bean will be instantiated since the default scope is singleton
B. Three AccountRepository beans will be instantiated as the accountRepository() method will be called three times
C. Many AccountRepository beans will be instantiated, depending how often accountRepository(), transferService() and accountService() are called
D. Two AccountRepository beans will be instantiated as the accountRepository() method will be called two times
عرض الإجابة
اجابة صحيحة: C
السؤال #6
Which two statements are true regarding storing user details in Spring Security? (Choose two.)
A. With a custom UserDetailsService defined in the ApplicationContext, Spring Boot still creates the default user
B. Passwords must be hashed and the default hashing algorithm is MD5
C. User details can be stored in custom storage and retrieve them by implementing the UserDetailsService interface
D. User details can be stored in a database, in LDAP, or in-memory
E. The user details includes username and password but not authorities
عرض الإجابة
اجابة صحيحة: AE
السؤال #7
Which two statements are correct regarding Spring Boot 2.x Actuator Metrics? (Choose two.)
A. n external monitoring system must be used with Actuator
B. he metrics endpoint /actuator/metrics is exposed over HTTP by default
C. imer measures both the number of timed events and the total time of all events timed
D. ustom metrics can be measured using Meter primitives such as Counter, Gauge, Timer, and DistributionSummary
E. metric must be created with one or more tags
عرض الإجابة
اجابة صحيحة: AB
السؤال #8
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. his syntax is invalid because the result of the getBean() method call should be cast to ClientService
B. t will return a bean called ClientService regardless of its id or name
C. his syntax is invalid because the bean id must be specified as a method parameter
D. t will return a bean of the type ClientService regardless of its id or name
عرض الإجابة
اجابة صحيحة: D
السؤال #9
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
عرض الإجابة
اجابة صحيحة: BD
السؤال #10
Which statement about @TestPropertySource annotation is true? (Choose the best answer.)
A. ava system properties have higher precedence than the properties loaded from
@TestPropertySource.
B. roperties defined @PropertySource are not loaded if @TestPropertySource is used
C. TestPropertySource annotation loads a properties file relative to the root of the project by default
D. nlined properties defined in @TestPropertySource can be used to override properties defined in property files
عرض الإجابة
اجابة صحيحة: D
السؤال #11
Which two statements are true about Spring Boot and Spring Data JPA? (Choose two.)
A. @EntityScan and spring
B. Any kind of Hibernate property can be passed to Spring Data JPA like spring
C. Spring Data JPA is the only implementation for relational databases
D. Scanning of JPA Entities can not be customized, the whole classpath is scanned
E. Embedded Databases (H2, HSQLDB, Derby) are not re-created during the startup
عرض الإجابة
اجابة صحيحة: CE
السؤال #12
Refer to the exhibit.Which two statements are correct regarding the HelloAutoConfig auto-configuration class when it isspecified in the META-INF/spring.factories file? (Choose two.)
A. A HelloService bean will be created from the helloService() method even if the HelloService
B. A HelloService bean will be created from the helloService() method only when there is no other HelloService bean in the ApplicationContext
C. This auto-configuration class is used only when the HelloService
D. This auto-configuration class is used only when the HelloService
E. A HelloService bean will be created from the helloService() method and will replace existing a HelloService bean in the ApplicationContext
عرض الإجابة
اجابة صحيحة: BD
السؤال #13
Which two statements are true regarding bean creation? (Choose two.) https://howtodoinjava.com/spring-core/spring-beans-autowiring-concepts/
A. Spring bean can be explicitly created by annotating methods or fields by @Autowired
B. Spring bean can be implicitly created by annotating the class with @Component and using the component-scanner to scan its package
C. Spring bean can be implicitly created by annotating the class with @Bean and using the component- scanner to scan its package
D. Spring bean can be explicitly created using @Bean annotated methods within a Spring configuration class
E. Spring bean can be explicitly created by annotating the class with @Autowired
عرض الإجابة
اجابة صحيحة: BE
السؤال #14
Which statement about @TestPropertySource annotation is true? (Choose the best answer.)
A. Java system properties have higher precedence than the properties loaded from @TestPropertySource
B. Properties defined @PropertySource are not loaded if @TestPropertySource is used
C. @TestPropertySource annotation loads a properties file relative to the root of the project by default
D. Inlined properties defined in @TestPropertySource can be used to override properties defined in property files
عرض الإجابة
اجابة صحيحة: D
السؤال #15
Which two options are valid optional attributes for Springs @Transactional annotation? (Choosetwo.)
A. isolation
B. writeOnly
C. nestedTransaction
D. readWrite
E. propagation
عرض الإجابة
اجابة صحيحة: AE
السؤال #16
Which statement is true about the @PropertySource annotation? (Choose the best answer.)
A. Used to designate the location of the application
B. Used to easily look up and return a single property value from some external property file
C. Used to designate the file directory of the application
D. Used to add a set of name/value pairs to the Spring Environment from an external source
عرض الإجابة
اجابة صحيحة: B
السؤال #17
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
عرض الإجابة
اجابة صحيحة: CD
السؤال #18
Which two statements are correct regarding the Actuator info endpoint? (Choose two.)
A. It provides configuration options through which only an authenticated user can display application information
B. It is not enabled by default
C. It can be used to display arbitrary application information
D. It can be used to change a property value on a running application
E. Typically it is used to display build or source control information
عرض الإجابة
اجابة صحيحة: BC
السؤال #19
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 lowercase “c”)
B. clientServiceImpl (starting with uppercase “C”)
C. clientService (starting with lowercase “c”)
D. ClientService (starting with uppercase “C”)
عرض الإجابة
اجابة صحيحة: D
السؤال #20
Refer to the exhibit. What is the id/name of the declared bean in this Java configuration class? (Choose the best answer.)
A. lientServiceImpl (starting with lowercase ''c'')
B. lientServiceImpl (starting with uppercase ''C'')
C. lientService (starting with lowercase ''c'')
D. lientService (starting with uppercase ''C'')
عرض الإجابة
اجابة صحيحة: D

View The Updated Vmware Exam Questions

SPOTO Provides 100% Real Vmware Exam Questions for You to Pass Your Vmware Exam!

عرض الإجابات بعد التقديم

يرجى إرسال البريد الإلكتروني الخاص بك والواتس اب للحصول على إجابات الأسئلة.

ملحوظة: يرجى التأكد من صلاحية معرف البريد الإلكتروني وWhatsApp حتى تتمكن من الحصول على نتائج الاختبار الصحيحة.

بريد إلكتروني:
رقم الواتس اب/الهاتف: