Certbus > SpringSource > SpringSource Certification Program > CORESPRINGV3.2 > CORESPRINGV3.2 Online Practice Questions and Answers

CORESPRINGV3.2 Online Practice Questions and Answers

Questions 4

Which of the following statements about the FactoryBean interface is NOT true? (select one)

A. A FactoryBean can be used to generate Spring beans of any type

B. The Spring configuration will ALWAYS inject the instance of the FactoryBean implementation

C. FactoryBean is a Spring interface

D. Factory objects used in Spring do not necessarily have to implement the FactoryBean interface

Browse 97 Q&As
Questions 5

Identify which statement indicates potential advantages of using Spring's Dependency Injection (select one)

A. Dependencies between application components can be managed external to the components themselves

B. Configuration can be externalized and centralized in a small set of files

C. Integration testing is made easier because different components used for testing can easily be injected

D. All of the above

Browse 97 Q&As
Questions 6

Given an ApplicationContext containing multiple bean definitions of a Java type "Foo", which of the following @Autowired scenarios will cause the ApplicationContext to FAIL to initialize? Assume that the ApplicationContext is configured to process the @Autowired annotations. (Select one)

A. @Autowired public void setFoo(Foo aFoo) {}

B. @Autowired private Foo foo;

C. Both a and b

D. Neither a or b

Browse 97 Q&As
Questions 7

Which of the following statements is NOT true concerning the BeanPostProcessor Extension point? (Select one)

A. BeanPostProcessors are called during the init phase

B. BeanPostProcessors are called after the dependencies have been injected

C. BeanPostProcessors are called before the BeanFactoryPostProcessors have been called

D. Custom BeanPostProcessors can be implemented

Browse 97 Q&As
Questions 8

Which of the following statements is NOT true about advice types (select one)

A. The Before advice method is able to obtain information about the target method's return type

B. The After advice method is able to obtain information about the target method's return type

C. The Before advice method is able to obtain the target method's return value

D. The After advice method is able to obtain the target method's return value

Browse 97 Q&As
Questions 9

Choose the statement that does NOT apply to Spring's JdbcTemplate (select one) A. All JdbcTemplate methods throw SQLExceptions which you are required to handle

B. The JdbcTemplate provides methods for query execution

C. The JdbcTemplate provides the ability to work with result sets

D. The JdbcTemplate does not write or generate SQL statements for you

Browse 97 Q&As
Questions 10

Which of the following statement(s) is/are true concerning Spring Transactions? (Select one or several answers)

A. Spring only provides support for declarative transaction management, there is no programmatic support

B. Spring provides declarative transactions only using XML

C. An AOP pointcut can be used to define which methods to advise for transactions

D. Spring's tx namespace enables a concise definition of transactional advice

Browse 97 Q&As
Questions 11

If the propagation behavior is Propagation.REQUIRED, choose the statement which describes the propagation behavior (select one)

A. Executes in a transaction if one already exists. If there is no transaction, it executes without a transaction context.

B. Executes in a transaction if one already exists. Throws an exception if there is no active transaction.

C. Executes in a nested transaction if an active transaction exists. If there is no transaction, it starts a new one.

D. Executes in a transaction if one already exists. If there is no transaction, it starts a new one.

Browse 97 Q&As
Questions 12

@Transactional

public class ClientServiceImpl implements ClientService {

//...

}

Using Spring AOP, you have declared @Transactional at the class level. It applies to:

A. All methods within the ClientServiceImpl class

B. All public methods within the ClientServiceImpl class

C. All methods within the class that have been declared by the ClientService interface

D. This will not compile. @Transactional cannot be declared at the class level

Browse 97 Q&As
Questions 13

Which of the following is NOT true about the @RequestMapping annotation? (select one)

A. It is an annotation for mapping web requests to controller methods.

B. It is commonly used for component scanning purpose.

C. You can use it only with @Controller annotated classes.

Browse 97 Q&As
Questions 14

Which of the following statements is NOT true concerning Spring Remoting? (Select one)

A. Spring exporters handle the binding to a registry or exposing an endpoint

B. Spring provides FactoryBeans that generate proxies to handle client-side requirements

C. The client-side implementation must catch RemoteExceptions

D. Spring proxies convert RemoteExceptions to a runtime exception hierarchy

Browse 97 Q&As
Questions 15

Spring's RMI Service Exporter provides which of the following services? (select one)

A. Transparently exposes an existing POJO service to the RMI registry

B. Avoids the service interface having to extend Remote

C. Exposes services that can be accessed via plain RMI

D. All of the above

Browse 97 Q&As
Questions 16

Which of the following statements is true concerning Spring's HttpInvoker remoting protocol? (select one)

A. HttpInvoker requires a web server to be running on the server

B. HttpInvoker is a synchronous remoting mechanism

C. The client invokes remote methods on the server using an HTTP POST

D. All of the above

Browse 97 Q&As
Questions 17

Select which of the following is a mechanism which can be used with Spring Security to store user details (select one)

A. Database

B. LDAP

C. Properties file

D. All of the above

Browse 97 Q&As
Questions 18

Which of the following methods is NOT provided by the JmsTemplate? (select one)

A. setDefaultDestination

B. onMessage (asynchronous call)

C. convertAndSend

D. receiveAndConvert (synchronous call)

Browse 97 Q&As
Exam Code: CORESPRINGV3.2
Exam Name: Core-Spring (based on Spring 3.2)
Last Update: Apr 26, 2024
Questions: 97 Q&As

PDF

$45.99

VCE

$49.99

PDF + VCE

$59.99