CSSE4004 - Lecture 3

tb22
Quiz by tb22, updated more than 1 year ago
tb22
Created by tb22 over 5 years ago
35
0

Description

CSSE4004 - Lecture 3

Resource summary

Question 1

Question
Which of the following is true about typical RPC
Answer
  • Synchronous and transient
  • Synchronous and persistent
  • Nonblocking and transient
  • Synchronous and temporary

Question 2

Question
What is not a common protocol that middleware provides?
Answer
  • Security
  • Transaction
  • Message queuing
  • Concurrency

Question 3

Question
Which of these is not a type of synchronicity?
Answer
  • Persistent asynchronous communication
  • Receipt-based transient synchronous communication
  • Response-based transient synchronous communication
  • Multicast response synchronization

Question 4

Question
This is not an interleaved transmission
Answer
  • True
  • False

Question 5

Question
Which of the following is false about publish-subscribe
Answer
  • One message might be delivered to multiple recipients
  • Subscriptions may be conditional upon the content of the message
  • The broker is responsible for deciding which subscribers should receive the message
  • The sender specifies which recipients should receive the message

Question 6

Question
Which of these is NOT an issue resolved by Parameter marshaling?
Answer
  • Client and server have different data representations
  • Client and server have to agree on the same encoding
  • Interpreting data and transforming it into machine dependent representation
  • Generating stubs to interface with server side application

Question 7

Question
What does Message-oriented communication typically allow over traditional RPC?
Answer
  • Asynchronous communication
  • Persistent communication
  • Reliable communication
  • Multicast RMI

Question 8

Question
When is stream-oriented communication appropriate?
Answer
  • When the the temporal relationship between different data items is essential
  • When large blocks of data such as video files are involved
  • When reliable communication is not required
  • When buffering is not acceptable

Question 9

Question
Which of the following is true about Persistent synchronous communication if the recipient is not running
Answer
  • The message is stored and the sender receives accepted acknowledgement immediatley
  • The message is stored and the sender receives accepted acknowledgement when the recipient starts
  • The sender is blocked until the receiver starts
  • The message is discarded and the sender is notified when the receiver starts

Question 10

Question
Which is true about Transient asynchronous communication if the reciever is not running
Answer
  • The message will not be received but the sender won't be blocked
  • The message will be queued until the receiver starts
  • The sender will automatically retry until receiver starts
  • The message will not be received and the sender will be blocked

Question 11

Question
Which of the following is true about parameter specifications and stubs?
Answer
  • Parameters passed by value do generally pose any problems
  • It is only possible to pass parameters by value if they are primitive data types
  • Interfaces (procedures) are often specified in Interface Definition Languages (IDL) and compiled into stubs
  • It is completely impossible to pass parameters by reference

Question 12

Question
What type of communication is this?
Answer
  • Receipt-based transient synchronous communication
  • Transient asynchronous communication
  • Delivery-based transient synchronous communication at message delivery
  • Persistent synchronous communication

Question 13

Question
What are the basic operations of a message queue?
Answer
  • Put, Get, Poll, Notify
  • Push, Get, Poll, Notify
  • Pop, Get, Poll, Subscribe
  • Put, Get, Notify, Acknowledge

Question 14

Question
What is the main role of a message broker?
Answer
  • To transform messages from sender's format to receive'’s format
  • To handle retries if a receiver fails to acknowledge the message
  • To manage who is authorized to subscribe to which queue
  • To balance messages between multiple storage queues

Question 15

Question
What does this diagram represent?
Answer
  • Traditional RPC
  • Asynchronous RPC
  • Passing a value by reference
  • A callback following an asynchronous RPC

Question 16

Question
Which layer does the middleware layer sit between?
Answer
  • Application and transport
  • Transport and network
  • Application and network
  • Operating system and Network

Question 17

Question
What kind of communication is this?
Answer
  • Persistent asynchronous communication
  • Persistent synchronous communication
  • Response-based transient synchronous communication
  • Transient asynchronous communication

Question 18

Question
Is the caller of an RPC usually blocked while waiting for a result?
Answer
  • True
  • False
Show full summary Hide full summary

Similar

CSSE4004 - Lecture 5
tb22
CSSE4004 - Lecture 8
tb22
CSSE4004 -Lecture 7
tb22
CSSE4004 - Lecture 4
tb22
CSSE4004 Lecture 1
tb22
CSSE4004 - Lecture 9
tb22
CSSE4004 - Lecture 6
tb22
CSSE4004 - Lecture 10
tb22
CSSE4004 - Lecture 2
tb22
MKTG1501 Quiz
Emily Samuels
Biology- Genes, Chromosomes and DNA
Laura Perry