Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Messaging Questions SCEA_PREP  RSS feed

Shankar Ranganathan
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I found some questions in SCEA_PREP. I just tried to answer all the questions.Please give your opinions. Did you find anything like this for design patterns?
1.Messaging is achieved by:
�Synchronous tightly coupled communication between distributed components
�Asynchronous loosely coupled communication between components
�Using Stubs and Skeletons
�Marshalling and unmarshalling of data
Ans. B

2.Asynchronous communication is achieved by using:
�Remote Procedure Calls
�Message Oriented Middleware
Ans. C
3.Applications exchange messages through:
�Active channels called Networks
�Active Channels called Message Brokers
�Virtual Channels called Digests
�Virtual Channels called Destinations
Ans. B
4. Messaging supports which of the following two models:
�Point to Point
�Send to List
Ans. A,C
5. Which of the following is not part of the Messaging architecture:
�Decentralized messaging using IP Multicasting
�Decentralized messaging using Secure Sockets Layer (SSL)
�Use of virtual channels called Queues
�Use of virtual channels called Topics
Ans. A(I am not sure)
6. Which of the following are true about Publish/Subscribe:
�Subscribers receive a copy of every message
�It is a Pull (Polling) based model
�It is a push-based model
�It is generally used when one publisher wishes to send a message to one subscriber
Ans. C
7. Which of the following is not true about RPC:
�RPC attempts to mimic the behavior of a system that runs in one process
�When a remote procedure is invoked, the caller is blocked until the procedure completes and returns control
�RPC is asynchronous in nature
�RPC is tightly coupled
Ans. C
8. In P2P, clients send messages to:
�A designated queue
�Multiple Queues
�A specific node for redistribution to subscribers
�CORBA compliant ORB
Ans. A
9. In Pub/Sub, publishers send messages:
�To a specific node, which is then re-distributed to all subscribers
�Directly to all the subscribers in the topic subscription list.
�To a designated queue
�To a �component transaction monitor� such as an EJB Server.
10. RPC may be more suited for:
�B2B transaction
�Credit Card validation
�Push Model Applications
Ans. C
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!