MCQOPTIONS
Saved Bookmarks
This section includes 21 Mcqs, each offering curated multiple-choice questions to sharpen your Spring knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
The code for the service-activator has changed to reflect the fact that you’re expecting a message containing a message of type:- |
| A. | Message<java.io.File> |
| B. | Message<java.io> |
| C. | All of the mentioned |
| D. | None of the mentioned |
| Answer» B. Message<java.io> | |
| 2. |
Some header values are specific to the type of the source message payload. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 3. |
Headers Found in Spring Integration Messages:- |
| A. | ID |
| B. | TIMESTAMP |
| C. | CORRELATION_ID |
| D. | All of the mentioned |
| Answer» E. | |
| 4. |
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 | |
| 5. |
A service-activator, however, only helps you invoke your application’s business logic on receipt of a message. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 6. |
Using an ESB lets you hide the origin of the message from the code that’s handling it. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 7. |
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 | |
| 8. |
Some header values are specific to the type of the source message payload.$ |
| A. | True |
| B. | False |
| Answer» B. False | |
| 9. |
Headers Found in Spring Integration Messages:-$ |
| A. | ID |
| B. | TIMESTAMP |
| C. | CORRELATION_ID |
| D. | All of the mentioned |
| Answer» E. | |
| 10. |
The code for the service-activator has changed to reflect the fact that you’re expecting a message containing a message of type:-$ |
| A. | Message<java.io.File> |
| B. | Message<java.io> |
| C. | All of the mentioned |
| D. | None of the mentioned |
| Answer» B. Message<java.io> | |
| 11. |
Annotation to get access to header metadata:- |
| A. | @Ref |
| B. | @service |
| C. | @Header |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 12. |
Component-specific headers are the constants defined for files on:- |
| A. | org.springframework.integration.file.FileHeaders: FILENAME |
| B. | org.springframework.integration.file.FileHeaders: PREFIX |
| C. | all of the mentioned |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 13. |
A service-activator, however, only helps you invoke your application’s business logic on receipt of a message?# |
| A. | True |
| B. | False |
| Answer» B. False | |
| 14. |
An adapter is a component that knows how to speak to a specific type of subsystem and translate messages on that subsystem into something that can be used in the Spring Integration bus only. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 15. |
The configuration starts with the inboundHelloJMSMessageChannel channel, which tells Spring Integration what to name the point-to-point connection from the message queue to the:- |
| A. | service-activator |
| B. | service |
| C. | all of the mentioned |
| D. | none of the mentioned |
| Answer» B. service | |
| 16. |
As with a standard MDP, a configuration for the ConnectionFactory exists. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 17. |
Using an ESB lets you hide the origin of the message from the code that’s handling it.$ |
| A. | True |
| B. | False |
| Answer» B. False | |
| 18. |
Integration of Spring which has each application connect to a common messaging system and exchange data and invoke behavior using messages. |
| A. | File transfer |
| B. | Shared Database |
| C. | Remote Procedure Invocation |
| D. | Messaging |
| Answer» E. | |
| 19. |
Integration of Spring which has each application expose some of its procedures so that they can be invoked remotely and have applications invoke them to initiate behavior and exchange data. |
| A. | File transfer |
| B. | Shared Database |
| C. | Remote Procedure Invocation |
| D. | Messaging |
| Answer» D. Messaging | |
| 20. |
Integration of Spring which has the applications store the data they want to share in a common database. |
| A. | File transfer |
| B. | Shared Database |
| C. | Remote Procedure Invocation |
| D. | Messaging |
| Answer» C. Remote Procedure Invocation | |
| 21. |
Integration of Spring which has each application produce files of shared data for others to consume. |
| A. | File transfer |
| B. | Shared Database |
| C. | Remote Procedure Invocation |
| D. | Messaging |
| Answer» B. Shared Database | |