R4RIN
MCQS
Spring MCQ Quiz Hub
Spring Mcq Set 17
Choose a topic to test your knowledge and improve your Spring skills
1. The RetryTemplate itself is configured in the Spring context, although it’s trivial to create in code.
True
False
none
all the mentoined
2. One of the more useful settings for the RetryTemplate is the :-
BackOff
Back
BackOffPolicy
All of the mentioned
3. You want to control how steps are executed, perhaps to eliminate a needless waste of time by:-
concurrent steps
decisions
sequential steps
All of the mentioned
4. Typical jobs of almost any complexity will have multiple steps, however.
True
False
none
all the mentoined
5. There’s nothing to prevent you from having many steps within the flow elements.
True
False
none
all the mentoined
6. Spring Batch provides a mechanism to offload processing to another process.
chunking
remote chunking
remote
none of the mentioned
7. Pattern which refers to the arrangement of multiple JMS clients all consuming the same queue messages.
aggressive-consumer
aggressive
all of the mentioned
None of the mentioned
8. Spring Batch ships with only handler, which executes steps in multiple threads using a TaskExecutor strategy.
TaskExecutorPartition
TaskExecutorPartitionHandler
TaskExecutorPartitionHandle
TaskExecutor
9. To determine the next step is the simplest example of a conditional flow.
Exit
Status
Status
None of the mentioned
10. If you want to vary the execution flow based on some logic more complex than a job’s ExitStatuses:-
ExitStatus
Exit
Decision
all of the mentioned
11. Spring Batch work with a system scheduler:-
cron
autosys
all of the mentioned
None of the mentioned
12. JobLauncher reference you configured previously is obtained and used to then launch an instance of a Job.
True
False
none
all the mentoined
13. TaskExecutor that will spawn a thread of execution and manage that thread without blocking.
Async
Sync
Simple
SimpleAsyncTaskExecutor
14. The CommandLineJobRunner for success will return system error codes:-
0
1
2
None of the mentioned
15. More complicated return codes can be returned by creating and declaring a top-level bean that implements the interface:-
ExitCode
ExitCodeMapper
ExitMapper
All of the mentioned
16. The bean is recognized and becomes part of the application context because of the:-
@Component
@Attr
All of the mentioned
none of the mentioned
17. To parameterize a job, which is then available to your steps through Spring Batch expression language.
Job
Steps
JobParameters
None of the mentioned
18. You want to share object state across multiple virtual machines.
Terracotta
Hibernate Transaction
All of the mentioned
None of the mentioned
19. The company, Terracotta, has also recently become the corporate sponsor of:-
Ehcache
Quartz
All of the mentioned
None of the mentioned
20. Terracotta works like many other clustered caches, except that, in addition to being a good Hibernate clustered cache.
True
False
none
all the mentoined
21. Terracotta doesn’t use serialization of objects.
True
False
none
all the mentoined
22. Terracotta is different than most clustered caches today because it has no visible API
True
False
none
all the mentoined
23. Terracotta has a client/server architecture.
True
False
none
all the mentoined
24. To deploy a Terracotta application, you first download the distribution. The distribution provides :-
utility scripts
JAR files
All of the mentioned
none of the mentioned
25. On Unix-like operating systems, you start Terracotta as :-
$TERRACOTTA HOME/bin/start-tc-server.sh –f $PATH TO TERRACOTTA CONFIGURATION
$TERRACOTTA HOME/bin/start-tc-server.sh –f $PATH TO TERRACOTTA
$TERRACOTTA HOME/bin/start-tc-server.sh –f $PATH TO TERRACOTTA
None of the mentioned
26. For each virtual machine client that you want to “see” and share that state, start it with a customized bootclasspath parameter when starting Java.
True
False
none
all the mentoined
27. To use the script on Unix-like operating systems:
$TERRACOTTA HOME/bin/dso-env.sh $HOST:3312
$TERRACOTTA HOME/bin/dso-env.sh $HOST:$PORT
All of the mentioned
none of the mentioned
28. To distribute processing over many nodes, perhaps to increase result speed through the use of concurrences, perhaps merely to provide load balance and fault tolerance.
Grid
GridGain
All of the mentioned
None of the mentioned
29. GridGain is an implementation of a processing grid.
True
False
none
all the mentoined
30. There are many data grids, such as :-
Coherence
Terracotta
Terracotta
All of the mentioned
31. Map/reduce is a pattern that was popularized by Google, and it comes from functional programming languages, which often have:-
map
reduce
none of the mentioned
All of the mentioned
32. To quickly grid-enable a method on a bean using GridGain.
@Gridify
@Grid
@GridGain
None of the mentioned
33. GridGain provides:-
load balancing
fault tolerance
routing
all of the mentioned
34. To build a parallelized solution for a problem that’s intrinsically better-suited to parallelization or that, for want of resources, needs to be chunked.
map
reduce
all of the mentioned
None of the mentioned
35. GridGain works with a GridTask, which specifies how to handle the main unit of work of the interface type:-
Grid
GridGain
GridJob
All of the mentioned
36. When you call the method on the service with the @Gridify annotation pointing to this GridTask implementation, it stops execution of method and loads an instance of this implementation.
True
False
none
all the mentoined
37. When using GridGain stem mostly from the fact that what you develop on one node can’t always automatically work on another node with no additional configuration.
True
False
none
all the mentoined
38. GridGain lets you start up nodes using the startup script in the:-
etc
opt
bin
All of the mentioned
39. To hoist a grid node into existence.
GridLoader
GridLoad
Grid
GridGain
40. When you use the script that comes with the distribution is the class:-
GridCommandLine
GridCommandLineLoader
GridCommand
All of the mentioned
41. A GridLoader instance is responsible for many things such as:-
GridFactory.start
GridFactory.stop
All of the mentioned
None of the mentioned
42. GridFactory.start can take as its first parameter a:-
GridConfiguration object
Spring application context
All of the mentioned
None of the mentioned
43. The file which enables you to tell GridGain about which GridTask classes are deployed:-
gridgain.xml
gridgain.html
grid.xml
gridify.xml
44. Instances of the ApplicationContext can be injected into the various GridGain class instances (GridTask, GridJob, and so forth) using GridGain:-
@Grid
@GridGain
@GridGain
None of the mentioned
45. This is the default implementation. It is used when you run gridgain.sh or gridgain.bat.
org.gridgain.grid.loaders.cmdline.GridCommandLineLoader
org.gridgain.grid.loaders.servlet.GridServletLoader
org.gridgain.grid.loaders.jboss.GridJbossLoader
org.gridgain.grid.loaders.weblogic.GridWeblogicStartup
46. This is likely the second most useful implementation. It provides a servlet that bootstraps the GridGain instance inside any web container as a servlet.
org.gridgain.grid.loaders.cmdline.GridCommandLineLoader
org.gridgain.grid.loaders.servlet.GridServletLoader
org.gridgain.grid.loaders.jboss.GridJbossLoader
org.gridgain.grid.loaders.weblogic.GridWeblogicStartup
47. A workflow system extricates that process state from the domain and into a separate layer, called a business process.
True
False
none
all the mentoined
48. A workflow engine lets you model the process in a higher-level form:-
XML
Use Case
UML
all of the mentioned
49. A language that, when deployed to a BPEL container, describes the execution of a process.
WS-BPEL (BPEL 2.0)
WS-BPEL (BPEL)
WS-BPEL for People (BPEL4People)
Business Process Modeling Notation (BPMN)
50. The main feature common to traditional workflow systems is the ability to support work lists for actors in a process.
WS-BPEL (BPEL 2.0)
WS-BPEL (BPEL)
WS-BPEL for People (BPEL4People)
Business Process Modeling Notation (BPMN)
Submit