Spring/Spring Mcq Set 16 Sample Test,Sample questions

adplus-dvertising

Question:
 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:-

1.100

2. 1

3.10

4.1000

Posted Date:-2022-01-06 03:48:26


Question:
 Serving to abstract away the functionality of other components in an abbreviated interface to provide courser functionality.

1.facade

2.façade

3.gateway

4.None of the mentioned

Posted Date:-2022-01-06 02:40:56


Question:
 Spring Batch will, by default, try to pluck the:-

1. PlatformTransactionManager

2.transactionManager

3.All of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 03:53:16


Question:
 Spring core framework provides first-class support for transactions.

1.Transaction

2.TransactionManager

3.All of the mentioned

4.none of the mentioned

Posted Date:-2022-01-06 03:51:20


Question:
 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.

1. True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 02:45:19


Question:
 The only custom logic is a POJO with an @Aggregator annotation on a method expecting a collection of Message objects.

1. True

2. False

3.none

4.all the mentoined

Posted Date:-2022-01-06 02:20:58


Question:
 The RetryTemplate supports many use cases, with convenient APIs to wrap.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 04:04:04


Question:
 There are some convenient default routers available to fill common needs:-

1. PayloadTypeRouter

2.PayloadType

3.Payload

4.none of the mentioned

Posted Date:-2022-01-06 02:22:12


Question:
 To load the contents of a properties file (batch.properties) whose values you use to configure the data source.

1.PropertyPlaceholder

2.PropertyPlaceholderConfigurer

3.Property

4.PropertyConfigurer

Posted Date:-2022-01-06 02:58:08


Question:
Adapters are opaque in nature.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 02:23:03


Question:
Attribute to configure how many items will be processed before the transaction is committed all the input is sent to the writer.

1. interval

2. commit

3.commit-interval

4.None of the mentioned

Posted Date:-2022-01-06 03:31:35


Question:
Class which delegates the task of delimiting fields and records within a file to a LineMapper, which in turn delegates the task of identifying the fields within that record, to LineTokenizer.

1.org.springframework.batch.item.file.FlatFileItemReader

2.org.springframework.batch.item.file.FlatFile

3.org.springframework.batch.item.file.FlatFileItem

4.org.springframework.batch.item.file.FileItemReader

Posted Date:-2022-01-06 03:32:39


Question:
Element to configure this for the step:-

1.no-rollback-exception-classes

2.no-rollback-exception

3.no-rollback

4.None of the mentioned

Posted Date:-2022-01-06 03:54:47


Question:
However, it’s important to wear another hat, that of a DBA, when writing applications.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 03:00:55


Question:
Indeed, a step could be considered the smallest unit of work for a job. Input (what’s read) is passed to the Step and potentially processed; then output (what’s written) is created from the step.

1. Steplet

2.Tasklet

3.All of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 03:30:23


Question:
MapJobRegistry instance. This is critical—it is the central store for information regarding a given Job.

1. True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 02:58:42


Question:
Messages sent on the requests channel are forwarded to the:-

1.jms:outbound-gateway

2.jms:outbound

3. jms-gateway

4. all of the mentioned

Posted Date:-2022-01-06 02:46:10


Question:
No processing system (such as an ESB) can deal with a million records at once efficiently.

1.True

2.False

3.all of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 02:38:55


Question:
SimpleJobLauncher, whose sole purpose is to give you a mechanism to launch batch jobs, where a “job” in this case is our batch solution.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 02:59:18


Question:
Some invocations will fail but may be retried with some likelihood of success in a transactional scenario.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 04:00:19


Question:
Sometimes, functionality is made available from within the application via:-

1. Stable API

2.Cohesive API

3.All of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 02:36:31


Question:
Spring Batch excels in the robustness it surfaces as simple configuration options for the edge and failure cases.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 03:53:52


Question:
Spring Batch models solutions using XML schema.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 03:00:22


Question:
Spring Batch provides a convenience class, CompositeItemProcessor, which forwards the output of the filter to the input of the successive filter.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 03:47:29


Question:
Spring Batch provides a lot of flexibility and guarantees to your application, but it cannot work in a vacuum. To do its work:-

1.Job

2. JobRepo

3. JobRepository

4.All of the mentioned

Posted Date:-2022-01-06 02:50:08


Question:
Spring Batch reads the file, transforms the records into:-

1.objects

2.outputs

3.all of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 02:39:26


Question:
Spring Integration does support reading files into the bus.

1. True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 02:38:25


Question:
The API surfaces a Paging object, which works something like Criteria in Hibernate.

1. True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 02:37:10


Question:
The batch.xml file establishes a:-

1.BasicDataSource

2.DataSourceTransactionManager

3.All of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 03:52:19


Question:
The BPM engine would thread together the different actors and work lists,

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 02:39:52


Question:
The capability to hide messaging behind a POJO interface.

1.Lingo

2.JCA

3. JMS

4.All of the mentioned

Posted Date:-2022-01-06 02:41:25


Question:
The gateway element simply exists to identify the component and the interface.

1.True

2. False

3.none

4.all the mentoined

Posted Date:-2022-01-06 02:46:43


Question:
The most fundamental support for gateways comes from the Spring Integration class:-

1.SimpleMessagingGateway

2.SimpleMessaging

3. SimpleGateway

4.None of the mentioned

Posted Date:-2022-01-06 02:41:53


Question:
The names and values for the named parameters are being created by the bean configured for the itemSqlParameterSourceProvider property, an instance of the interface

1.BeanPropertyItemSqlParameterSourceProvider

2.BeanPropertyItemSqlParameterSource

3.BeanPropertyItemSqlParameter

4.All of the mentioned

Posted Date:-2022-01-06 03:41:02


Question:
The processor attribute on the chunk element expects a reference to a bean of the interface:-

1.org.springframework.batch.item.Item

2.org.springframework.batch.item

3.org.springframework.batch.item.ItemProcessor

4.none of the mentioned

Posted Date:-2022-01-06 03:45:36


Question:
The service-activator is what handles actual processing and there’s no mention of a response channel, for either the service-activator, or for the inbound JMS gateway.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 02:47:50


Question:
The SimpleMessagingGateway needs a request and a response channel, and it coordinates the rest.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 02:42:21


Question:
The template that (much like its various other Template cousins) isolates your logic from the nuances of retries and instead enables you to write the code as though you were only going to attempt it once.

1. Retry

2.RetryTemplate

3.All of the mentioned

4. None of the mentioned

Posted Date:-2022-01-06 04:03:09


Question:
There is no coupling between the client facing interface exposed via the gateway component and the interface of the service that ultimately handles the messages.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 02:47:15


Question:
There’s only one really useful implementation of the JobRepository interface, which stores information about the state of the batch processes in a database.

1.SimpleJobRepository

2.SimpleJob

3.SimpleRepo

4.All of the mentioned

Posted Date:-2022-01-06 02:57:17


Question:
There’s support for writing JMS:-

1. JmsItemWriter

2. JpaItemWriter

3.JdbcBatchItemWriter

4.All of the mentioned

Posted Date:-2022-01-06 03:43:49


Question:
To receive messages from an external system and process them using Spring Integration.

1. channel

2.channel adapter

3.EJP

4.None of the mentioned

Posted Date:-2022-01-06 02:22:42


Question:
To take an input file or a payload and reliably, and systematically, decompose it into events that an ESB can work with:-

1.Splitter

2.Spring Batch

3.All of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 02:37:59


Question:
Transaction capabilities are built on top of the first class support already provided by the core Spring framework.

1. True

2.False

3.none

4.None of the mentioned

Posted Date:-2022-01-06 03:50:20


Question:
You can leverage Spring Batch support for retries and recovery in your own code.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 04:02:04


Question:
You can specify exception classes on which to retry the operation.

<step id = "step23">
       <tasklet transaction-manager="transactionManager">
            <chunk reader="csvFileReader" writer="jdbcItemWriter" commit-interval="10" retry-limit="3" cache-capacity="10">
           <retryable-exception-classes>
           <include class="org.springframework.dao.DeadlockLoserDataAccessException"/>
           </retryable-exception-classes> 
           </chunk>
       </tasklet>
</step>

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 04:01:22


Question:
You use Spring Integration’s inbound-channel-adapter element to wire the TwitterMessageSource and a poller element.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 02:36:50


Question:
You want to conditionally move a message through different processes based on some criteria.

1. router component

2.EAI

3. all of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 02:21:27


Question:
You want to expose an interface to clients of your service, without betraying the fact that your service is implemented in terms of messaging middleware.

1.Enterprise Integration Patterns

2.Gateway

3.All of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 02:40:23


Question:
You want to work with a resource that may fail when you try to read from or write to it.

1.TransactionManager

2.Transaction

3.Spring batch retry

4. all of the mentioned

Posted Date:-2022-01-06 03:55:37


More MCQS

  1. Spring Mcq Set 1
  2. Spring Mcq Set 2
  3. Spring Mcq Set 3
  4. Spring Mcq Set 4
  5. Spring Mcq Set 5
  6. Spring Mcq Set 6
  7. Spring Mcq Set 7
  8. Spring Mcq Set 8
  9. Spring Mcq Set 9
  10. Spring Mcq Set 10
  11. Spring Mcq Set 11
  12. Spring Mcq Set 12
  13. Spring Mcq Set 13
  14. Spring Mcq Set 14
  15. Spring Mcq Set 15
  16. Spring Mcq Set 16
  17. Spring Mcq Set 17
  18. Spring Mcq Set 18
  19. Spring Mcq Set 19
  20. Spring Mcq Questions
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!