Pass4itsure > 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 scenarios requires you to instantiate an ApplicationContext using the `new' keyword? (Select one)

A. Running your Spring application inside a JUnit test (using SpringJUnit4ClassRunner)

B. Bootstrapping your Spring application within a Java main() method

C. Deploying your Spring application in an application server, packaged in a WAR file

D. Both a and b

Buy Now
Questions 5

Consider the following complete configuration sample:

Which of the following statements is true? (Select one)

A. This configuration is correct

B. This configuration is not valid because the first bean should have an id. Its value should be "rewardNetwork".

C. This configuration is not valid because the second bean should have an id. Its value should be "accountRepository".

D. Both (b) and (c)

Buy Now
Questions 6

Which of the following statements is NOT true with respect to Spring's ApplicationContext? (select one)

A. The ApplicationContext eagerly instantiates all singleton beans by default

B. There are many different implementation classes which all implement the ApplicationContext interface

C. When available, the close() method will cause any registered bean destruction code to be invoked

D. In a JUnit test using Spring support (with @ContextConfiguration annotation), it is necessary to close the ApplicationContext manually

Buy Now
Questions 7

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

Buy Now
Questions 8

Identify the correct statement(s) regarding the following pointcut: execution (@com.springsource.MyCustomAnnotation void *(..))

A. Spring does not support annotations inside its pointcut expression language

B. This will select join points representing void methods that are annotated by @com.springsource.MyCustomAnnotation

C. This will select join points representing methods that may have a public, protected or default visibility

D. This pointcut will in no situation ever be able to select any join points

Buy Now
Questions 9

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

A. Runs in a nested transaction if an active transaction exists. If an active transaction does not exist, the transaction behaves as if Propagation.REQUIRED is set

B. Supports a transaction if one already exists. Throws an exception if an active transaction does not exist.

C. Always starts a new transaction. If an active transaction already exists, it is suspended

D. Always executes without a transaction even if an active transaction exists. Throws an exeception if an active transaction exists.

Buy Now
Questions 10

Which of the following is the correct mechanism for using programmatic transactions in Spring? (Select one)

A. Use of the @Transactional annotation on each method which should be transactional

B. Use of the @Transactional annotation on the Class of methods which should all be transactional

C. Configuration in an XML configuration file using the Spring "tx" namespace

D. Use of the Spring TransactionTemplate

Buy Now
Questions 11

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

Buy Now
Questions 12

Which is the correct way to declare that a spring-enabled JUnit 4 integration test should rollback transactions upon completion? (Select one)

A. The test should create a TransactionManager instance

B. Test case must extend AbstractTransactionalSpringContextTests

C. Annotate the method or the class with @Transactional

D. Method name must begin with test

Buy Now
Questions 13

Which of the following strategies is correct for configuring Spring Security to intercept particular URLs? (Select one)

A. The URLs are specified in the XML configuration using the tag, with the most specific match first and the least specific last

B. The URLs are specified in the XML configuration, with the least specific match first and the most specific last

C. The URLs are specified in a special properties file, used by Spring Security

D. The URLs can only be specified in web.xml as part of the Servlet mapping

Buy Now
Exam Code: CORESPRINGV3.2
Exam Name: Core-Spring (based on Spring 3.2)
Last Update: May 04, 2024
Questions: 97
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$45.99

VCE

$49.99

PDF + VCE

$59.99