최신 SpringSource Certification Program CoreSpringV3.2 무료샘플문제:
1. Which of the following methods is NOT provided by the JmsTemplate? (select one)
A) convertAndSend
B) onMessage (asynchronous call)
C) setDefaultDestination
D) receiveAndConvert (synchronous call)
2. What is the primary purpose of bean definition inheritance? (Select one or several answers)
A) To configure Java class inheritance dynamically within the XML bean definition file
B) To allow Spring beans to be created on the fly from classes declared as abstract
C) To simplify configuration by allowing multiple properties files to be loaded in a hierarchy to specify bean properties
D) To reduce the amount of configuration required by inheriting properties from other bean definitions
3. Which of the following statements is NOT true concerning the BeanPostProcessor Extension point? (Select one)
A) Custom BeanPostProcessors can be implemented
B) BeanPostProcessors are called during the init phase
C) BeanPostProcessors are called before the BeanFactoryPostProcessors have been called
D) BeanPostProcessors are called after the dependencies have been injected
4. Consider the following complete configuration sample:
<bean class="rewards.internal.RewardNetworkImpl">
<property name="accountRepository" ref="accountRepository"/>
</bean>
<bean class="rewards.internal.account.JdbcAccountRepository"/>
Which of the following statements is true? (Select one)
A) This configuration is not valid because the second bean should have an id. Its value should be "accountRepository".
B) Both (b) and (c)
C) This configuration is not valid because the first bean should have an id. Its value should be "rewardNetwork".
D) This configuration is correct
5. public class ClientServiceImpl implements ClientService {
@Transactional(propagation=Propagation.REQUIRED)
public void update1() {
update2();
}
@Transactional(propagation=Propagation.REQUIRES_NEW)
public void update2() { // ... }
}
You are using transactions with Spring AOP. What is happening when the update1 method is called? (Select one)
A) There is only one transaction because the call to update2() is internal (it does not go through the proxy)
B) There is only one transaction because REQUIRES_NEW runs into the active transaction if one already exists
C) There are 2 transactions because REQUIRES_NEW always runs in a new transaction
질문과 대답:
질문 # 1 정답: B | 질문 # 2 정답: D | 질문 # 3 정답: C | 질문 # 4 정답: A | 질문 # 5 정답: A |