MCQOPTIONS
Saved Bookmarks
This section includes 20 Mcqs, each offering curated multiple-choice questions to sharpen your Spring knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
TaskExecutor that will spawn a thread of execution and manage that thread without blocking. |
| A. | Async |
| B. | Sync |
| C. | Simple |
| D. | SimpleAsyncTaskExecutor |
| Answer» E. | |
| 2. |
JobLauncher reference you configured previously is obtained and used to then launch an instance of a Job. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 3. |
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 | |
| 4. |
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 | |
| 5. |
There’s nothing to prevent you from having many steps within the flow elements. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 6. |
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 | |
| 7. |
TaskExecutor that will spawn a thread of execution and manage that thread without blocking.$ |
| A. | Async |
| B. | Sync |
| C. | Simple |
| D. | SimpleAsyncTaskExecutor |
| Answer» E. | |
| 8. |
JobLauncher_reference_you_configured_previously_is_obtained_and_used_to_then_launch_an_instance_of_a_Job.$ |
| A. | True |
| B. | False |
| Answer» B. False | |
| 9. |
To parameterize a job, which is then available to your steps through Spring Batch expression language. |
| A. | Job |
| B. | Steps |
| C. | JobParameters |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 10. |
The bean is recognized and becomes part of the application context because of the:- |
| A. | @Component |
| B. | @Attr |
| C. | All of the mentioned |
| D. | None of the mentioned |
| Answer» B. @Attr | |
| 11. |
More complicated return codes can be returned by creating and declaring a top-level bean that implements the interface:- |
| A. | ExitCode |
| B. | ExitCodeMapper |
| C. | ExitMapper |
| D. | All of the mentioned |
| Answer» C. ExitMapper | |
| 12. |
The CommandLineJobRunner for success will return system error codes:- |
| A. | 0 |
| B. | 1 |
| C. | 2 |
| D. | none of the mentioned |
| Answer» B. 1 | |
| 13. |
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 | |
| 14. |
To determine the next step is the simplest example of a conditional flow. |
| A. | Exit |
| B. | Status |
| C. | ExitStatus |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 15. |
Spring Batch ships with only handler, which executes steps in multiple threads using a TaskExecutor strategy. |
| A. | TaskExecutorPartition |
| B. | TaskExecutorPartitionHandler |
| C. | TaskExecutorPartitionHandle |
| D. | TaskExecutor |
| Answer» C. TaskExecutorPartitionHandle | |
| 16. |
Pattern which refers to the arrangement of multiple JMS clients all consuming the same queue messages. |
| A. | aggressive-consumer |
| B. | aggressive |
| C. | all of the mentioned |
| D. | none of the mentioned |
| Answer» B. aggressive | |
| 17. |
Spring Batch provides a mechanism to offload processing to another process. |
| A. | chunking |
| B. | remote chunking |
| C. | remote |
| D. | none of the mentioned |
| Answer» C. remote | |
| 18. |
There’s nothing to prevent you from having many steps within the flow elements.$ |
| A. | True |
| B. | False |
| Answer» B. False | |
| 19. |
Typical jobs of almost any complexity will have multiple steps, however. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 20. |
You want to control how steps are executed, perhaps to eliminate a needless waste of time by:- |
| A. | concurrent steps |
| B. | decisions |
| C. | sequential steps |
| D. | all of the mentioned |
| Answer» E. | |