MCQOPTIONS
Saved Bookmarks
This section includes 89 Mcqs, each offering curated multiple-choice questions to sharpen your Java Spring Framework knowledge and support exam preparation. Choose a topic below to get started.
| 51. |
The JavaMailSenderImpl instance you injected does implement this interface. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 52. |
One way to discriminate by Exception type is to use |
| A. | org.springframework.integration.router.ErrorMessageExceptionType |
| B. | org.springframework.integration.router.ErrorMessageException |
| C. | org.springframework.integration.router.ErrorMessageExceptionTypeRouter |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 53. |
You want to conditionally move a message through different processes based on some criteria. |
| A. | router component |
| B. | EAI |
| C. | all of the mentioned |
| D. | none of the mentioned |
| Answer» B. EAI | |
| 54. |
Spring Batch work with a system scheduler:- |
| A. | cron |
| B. | autosys |
| C. | all of the mentioned |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 55. |
A splitter takes an input message and asks you, the user of the component, on what basis it should split the Message. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 56. |
Method to convert MapMessage Object into Spring runtime exception JmsException. |
| A. | JmsUtils.convertJmsAccessException() |
| B. | JmsUtils.convertJmsAccess() |
| C. | JmsUtils.convertJms() |
| D. | none of the mentioned |
| Answer» B. JmsUtils.convertJmsAccess() | |
| 57. |
If you want to vary the execution flow based on some logic more complex than a job’s ExitStatuses:- |
| A. | ExitStatus |
| B. | Exit |
| C. | Decision |
| D. | All of the mentioned |
| Answer» D. All of the mentioned | |
| 58. |
TaskExecutor that will spawn a thread of execution and manage that thread without blocking. |
| A. | Async |
| B. | Sync |
| C. | Simple |
| D. | SimpleAsyncTaskExecutor |
| Answer» E. | |
| 59. |
The names and values for the named parameters are being created by the bean configured for the itemSqlParameterSourceProvider property, an instance of the interface |
| A. | BeanPropertyItemSqlParameterSourceProvider |
| B. | BeanPropertyItemSqlParameterSource |
| C. | BeanPropertyItemSqlParameter |
| D. | All of the mentioned |
| Answer» B. BeanPropertyItemSqlParameterSource | |
| 60. |
The next component, a service-activator, listens for messages coming into that channel and invokes the bean referenced by the:- |
| A. | ref |
| B. | after |
| C. | before |
| D. | all of the mentioned |
| Answer» B. after | |
| 61. |
To load the contents of a properties file (batch.properties) whose values you use to configure the data source. |
| A. | PropertyPlaceholder |
| B. | PropertyPlaceholderConfigurer |
| C. | Property |
| D. | PropertyConfigurer |
| Answer» C. Property | |
| 62. |
Spring provides an implementation of SimpleMessageConvertor to handle the translation of a JMS message received. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 63. |
There’s only one really useful implementation of the JobRepository interface, which stores information about the state of the batch processes in a database. |
| A. | SimpleJobRepository |
| B. | SimpleJob |
| C. | SimpleRepo |
| D. | All of the mentioned |
| Answer» B. SimpleJob | |
| 64. |
Sometimes, functionality is made available from within the application via:- |
| A. | Stable API |
| B. | Cohesive API |
| C. | All of the mentioned |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 65. |
The MessageCreator interface declares method:- |
| A. | createMessage() |
| B. | create() |
| C. | createMsg() |
| D. | none of the mentioned |
| Answer» B. create() | |
| 66. |
Some header values are specific to the type of the source message payload. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» D. Can't say | |
| 67. |
A service-activator, however, only helps you invoke your application’s business logic on receipt of a message. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 68. |
To determine how many messages to read until it can stop:- |
| A. | SequenceSizeCompletionStrategy |
| B. | SequenceSizeCompletion |
| C. | SequenceSize |
| D. | None of the mentioned |
| Answer» B. SequenceSizeCompletion | |
| 69. |
Spring allows your beans to publish JMX notifications through:- |
| A. | NotificationPublisher |
| B. | Notification |
| C. | Notify |
| D. | All of the mentioned |
| Answer» B. Notification | |
| 70. |
MIME is supported by JavaMail through the:- |
| A. | javax.mail.internet.Mime |
| B. | javax.mail.internet.Message |
| C. | javax.mail.internet.MimeMessage |
| D. | javax.mail.internet.Mail |
| Answer» D. javax.mail.internet.Mail | |
| 71. |
If the preceding job was run on a batch with a 100 rows, each item was read and passed through the processor, and it found 10 items invalid (it returned null 10 times), the value for the filter_count column would be:- |
| A. | 100 |
| B. | 1 |
| C. | 10 |
| D. | 1000 |
| Answer» D. 1000 | |
| 72. |
The processor attribute on the chunk element expects a reference to a bean of the interface:- |
| A. | org.springframework.batch.item.Item |
| B. | org.springframework.batch.item |
| C. | org.springframework.batch.item.ItemProcessor |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 73. |
If no RMI registry has been created externally, you should create one by using:- |
| A. | RmiRegistryFactory |
| B. | RmiRegistryFactoryBean |
| C. | RmiRegistry |
| D. | RmiRegister |
| Answer» C. RmiRegistry | |
| 74. |
The SimpleMessagingGateway needs a request and a response channel, and it coordinates the rest. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 75. |
The capability to hide messaging behind a POJO interface. |
| A. | Lingo |
| B. | JCA |
| C. | JMS |
| D. | All of the mentioned |
| Answer» E. | |
| 76. |
The most fundamental support for gateways comes from the Spring Integration class:- |
| A. | SimpleMessagingGateway |
| B. | SimpleMessaging |
| C. | SimpleGateway |
| D. | None of the mentioned |
| Answer» B. SimpleMessaging | |
| 77. |
Spring Integration will use that header and forward errors encountered in the processing of this message to that channel. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 78. |
Sending all the errors to the same channel can eventually lead to a large switch-laden class that’s too complex to maintain. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 79. |
The first thing that the client configuration does is import a shared application context (to save typing if nothing else) that declares a JMS connection factor. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 80. |
By default, the JMS template uses SimpleMessageConverter for converting TextMessage to or from a string. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 81. |
There are several types of messages defined in the JMS API, including:- |
| A. | TextMessage |
| B. | MapMessage |
| C. | BytesMessage |
| D. | All of the mentioned |
| Answer» E. | |
| 82. |
The only custom logic is a POJO with an @Aggregator annotation on a method expecting a collection of Message objects. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 83. |
One of the more useful settings for the RetryTemplate is the :- |
| A. | BackOff |
| B. | Back |
| C. | BackOffPolicy |
| D. | All of the mentioned |
| Answer» D. All of the mentioned | |
| 84. |
The simplest MBean assembler in Spring is, which allows you to specify the names of the methods to export. |
| A. | MethodNameBasedMBeanInfoAssembler |
| B. | MethodNameBasedMBeanInfo |
| C. | MethodNameBasedMBean |
| D. | MethodNameBasedInfoAssembler |
| Answer» B. MethodNameBasedMBeanInfo | |
| 85. |
SimpleTrigger allows you to set trigger properties:- |
| A. | start time |
| B. | end time |
| C. | repeat interval |
| D. | all of the mentioned |
| Answer» E. | |
| 86. |
There’s support for writing JMS:- |
| A. | JmsItemWriter |
| B. | JpaItemWriter |
| C. | JdbcBatchItemWriter |
| D. | All of the mentioned |
| Answer» E. | |
| 87. |
To register an MBean, you need an instance of the interface :- |
| A. | javax.management.MBeanServer |
| B. | javax.management |
| C. | javax.management.MBean |
| D. | none of the mentioned |
| Answer» B. javax.management | |
| 88. |
The static method to locate a platform MBean server. |
| A. | ManagementFactory.getPlatform() |
| B. | ManagementFactory.getPlatformMBeanServer() |
| C. | ManagementFactory.getPlatformMBean() |
| D. | All of the mentioned |
| Answer» C. ManagementFactory.getPlatformMBean() | |
| 89. |
From the preceding code, you can see that for each MBean attribute and MBean operation, you need to create a:- |
| A. | ModelMBeanAttributeInfo |
| B. | ModelMBeanOperationInfo |
| C. | None of the mentioned |
| D. | All of the mentioned |
| Answer» E. | |