Font size
WorksheetsUTS SPT
Total questions: 70
Worksheet time: 11hrs 45mins
A network in which the nodes are formed by this processes and the links represent the possible communication channels, is called:
Overstay network
Overlay network
Hierarchical network
Mesh network
Peer-to-peer network
In structured naming system, contacting your local name space and let it walk the hierarchy is called:
Absolute name resolution
Recursive name resolution
Hierarchical name resolution
Relative name resolution
Iterative name resolution
Illusion of being able to run multiple tasks at the same time is called:
Multiprocess
Multitasking
Multithread
Parallel
Concurrency
The followings are the advantages of XML, except:
XML is text based
One XML document can be displayed the same in different media
You only need to change the XML document in order to change all the rest
Transmitted efficiently
Takes up less space
What provides two way communication between two different programs in a network?
HTTP
Library
Socket
Port
Protocol
An interface should:
Not be called from other services
Hide the implementation of a service
Consist of a big enough service
Be compatible with any devices
Expose the implementation of a service
Which one of the following is note the Microservices principles?
Separate processes
UI/UX
CI/CD
Execution Scope
One job
Which of the following is not the function of API gateway?
Orchestration
Interoperability
Monitoring
Security and Authorization
Service Registry and Discovery
Centralized component that takes care of application heterogeneity in a message communication system is:
Message queue
Message broker
Message transfer
Message oriented communication
Message passing
Three levels of application layering are:
Client, front-end and back-end
Application-interface, processing, data
Browser, web engine, database engine
Model, view, controller
User and kernel
Which one of the followings is not one of XML rules?
Tags must be properly nested
Tags are enclosed in angle brackets
Tags come in pairs with start-tags and end-tags
Tags that do not have end-tags must be terminated by a '/'
Tags have a fixed meaning and browsers know what it is
The services communicate with each other internally ____________
Remote Procedure invocation
Messaging
Both Messaging and Remote Procedure invocation
SSH
Which architecture styles organize components in a layered fashion?
Object-based architectures
Resource-based architectures
Layered architectures
Event-based architectures
Network-based architectures
Types of names in distributed systems are:
Flat, Hierarchical, Horizontal
Flat, Hierarchical, Attribute-based
Flat, Vertical, Attribute-based
Horizontal, Vertical, Flat
Horizontal, Vertical, Attribute-based
Which of the following is not a communication method?
Remote Method Invocation (RMI)
Stream oriented communication
Message oriented communication
Remote Object Calls
Remote Procedure Calls (RPC)
In structured naming system, repeatedly contact hierarchy of nodes to resolve parts of the name is called:
Absolute name resolution
Relative name resolution
Recursive name resolution
Hierarchical name resolution
Iterative name resolution
Simultaneous use of more than one computer to solve a problem is called:
Parallel Computing
Hybrid Computing
Distributed Computing
Concurrency
Multitasking
Which of the following is not the element of RabbitMQ:
Message
Security
Queue
Consumer
Routing
Which of the followings is true about event-based coordination:
processes communicate entirely through tuples
coordination takes place in a direct way
processes do not know each other explicitly
processes communicate through network
no need for two communicating processes to be executing at the same time
An API _____
an interface which works between two independent SOAs allowing them to communicate
an interface which works between two independent applications allowing them to communicate
a sub component of an application that works independently
an interface which works for the user access
a service which exposes the functionality of an architecture to a minimum of two applications
The combination of constants AF_INET and SOCK_STREAM is used to:
Specify that the SMTP protocol should be used
Specify that the UDP protocol should be used
Specify that the TCP protocol should be used
Specify that the HTTP protocol should be used
Specify that the socket should be used
Application distribution type where each process will act as a client and a server at the same time is called:
Peer-to-peer system
Horizontal distribution
Flat distribution
Vertical distribution
Client server distribution
Message broker can do the the followings, except:
route messages
store the messages
Improve the transfer speed
divide the publisher and consumer
check and organize messages.
Scaling the application can be challenging in ________ due to conflicting needs of Memory, CPU, IO.
Microservies
Monolithic
RabbitMQ
RMI
RPC
The main benefit of decoupling an application is to:
Create a tightly integrated application
Enable data synchronization across the web application layer
Have the ability to execute atutomated bootstrapping actions
Reduce inter-dependencies so failure do not impact other components
Reduce memory usage
Which of the following is not RabbitMQ types of exchages:
Topic
Footers
Direct
Fanout
Headers
In midlleware organization, the interfaces offered by the legacy component are most likely not suitable for all application. This problem could be solved by:
Wrapper
Interceptor
Re-develop the legacy component
API
RPC
Microservices based architecture prefers____
RDBMS DBs
MySQL DB
MongoDM
No dependency on any particular DB
NoSQL DBs
Fundamental Tricotomy in naming system are:
HTTP, TCP, IP
Root, Top level, Domain
Names, Addresses, Routes
DNS, DHCP, ARP
Location, Addresses, Routes
Which of the following is not Message oriented Middleware:
Kafka
GreenHornet
Qpid
ActiveMQ
ZeroMQ
Which consistency model where things work fine so long as user accesses same replica?
Causal consistency
Sequential Consistency
Data-Centric Consistency
Strict Consistency
Eventual Consistency
Which statement is true about replication in distributed system:
Worsen performance & increase network overheads of maintaining consistency
Worsen performance & decrease network overheads of maintaining consistency
Improves performance & increase network overheads of maintaining consistency
Does not improve anything, only fault recovery
Improves performance & decrease network overheads of maintaining consistency
What verb is used to update information in REST?
UPDATE
PUT
DELETE
GET
POST
The followings are the best practices to design microservices, except
Separate data store for each microservices
Treat servers as stateful
Keep code at a similar level of maturity
Separate build of microservice
Deploy into containers
Which of the following best describes a Microservices?
a group of independent services which are formed from the breaking down of an application into components
a service that has a group of services at the backend site.
a service that has been modified to function within more restrictive environments
a group of platform independent services available for public use.
a service that has been reduced in size but which carries the same functionality
The followings are the advantages of microservices, except:
One technology stack
Independent development
Fault isolation
Independen deployment
Granular scaling
When any single application function or component fails, then the entire application goes down. (Single point of failure ) This is primary disadvantage of ________________
RPC
RMI
RabbitMQ
Micorservices
Monolithic
Which type of communications where a message that has been submitted for transmission is stored by the communication middleware as long as it takes to deliver it to the receiver?
Persistent communication
Asynchronous Communication
Synchronous Communication
Two ways Communication
Transient Communication
Example of attribute-based naming is:
DHCP
CHORD
DNS
NFS
LDAP
One of the advantages of using distributed memory compared to shared memory is:
Processors can access their own memory in isolation without worrying about race conditions
writing the code harder
not scalable
easy to share data
expensive to assemble
Skype network is an example of :
Structured peer-to-peer systems
Hierarchical Peer-to-Peer Systems
Hierarchically Organized Peer-to-Peer Networks
Unstructured Peer-to-Peer Systems
Collaborative distributed systems
The order of creating socket on the server side:
Socket --> bind --> listen --> accept --> send --> recv --> close
Socket --> listen --> accept --> bind --> send --> recv --> close
Socket --> listen --> bind --> accept --> recv --> send --> close
Socket --> listen --> bind --> accept --> send --> recv --> close
Socket --> bind --> listen --> accept --> recv -->send -->close
Which type of communications where the sender and the receiver must be active at the time of communication?
Synchronous Communication
Transient Communication
Asynchronous Communication
Persistent Communication
Two ways Communication
Simultaneous use of more than one processor to solve a problem, is called:
Multitasking
Concurrency
Distributed Computing
Parallel Computing
Hybrid Computing
External clients communicate with Microservices using___
API GATEWAY
Message Broker
API PROXY
API
Messaging
Which one of the followings often referred to as a skeleton?
Proxy-site stub
Client-side stub
Database-site stub
Middleware-site stub
Server-side stub
Which consistency model where all processes must see all shared accesses in the same order and accesses are furthermore ordered according to a global timestamp?
Causal consistency
Linearizability
Sequential Consistency
Strict Consistency
. Data-Centric Consistency
Methods in finding objects that move in flat name spaces:
Broadcasting & Mobile IP
Forwarding pointers & Home-based
Forwarding pointers & Broadcasting
Home-based & Walk-on
Home-based & Mobile IP
One reason to build distributed system is:
Ability to tackle a problem so big that no individual computer could handle it at all, or at least, not in a reasonable amount of time
Ability to share load to other computers (Load balancing)
Ability to do fault recovery
Ability to tackle a big problem that could be handled by an individual computer within a reasonable amount of time
Ability to tackle a light problem that could be handled by an individual computer within a reasonable amount of time
A distributed computing paradigm that brings computation and data storage closer to the location where it is needed, is called:
Cloud computing
IoT
Edge Computing
Fog Computing
Grid Computing
Which consistency model where any read always returns the result of the most recent write?
Strict Consistency
Sequential Consistency
Data-Centric Consistency
Causal consistency
Linearizability
Which one of the following is not the important style of distributed system architecture?
Object-based architectures
Network-based architectures
Resource-based architectures
Layered architectures
Event-based architectures
Which consistency model where all processes see all shared accesses in the same order, but accesses are not ordered in time?
Data-Centric Consistency
Sequential Consistency
Eventual Consistency
Strict Consistency
Causal consistency
The followings are characteristics of what are known as RESTful architectures, except:
Provide a natural way of encapsulating data (called an object's state) and the operations that can be performed on that data
Messages sent to or from a service are fully self-described
After executing an operation at a service, that component forgets everything about the caller
All services offer the same interface, consisting of at most four operations
Resources are identified through a single naming scheme
A proxy is a client stub in RPC systems. What does it do?
Marshal method incovations into messages and unmarshal method invocation to reply messages to the client
Forward request from client application to the server OS
Forward request from client application to the client OS
Marshal method invocations into messages and unmarshal reply messages to return the result of the method invocation to the client
Marshal messages into method invocation and unmarshal reply messages to return the result of the method invocation to the client
The followings are four REST Operations, except:
PUT
UPDATE
GET
POST
DELETE
One of the advantages of using shared memory compared to distributed memory is:
hard to share data
cheap to assemble
writing the code harder
tremendously faster
very scalable
The followings are characteristics of what are known as RESTful architectures, except:
Provide a natural way of encapsulating data (called an object’s state) and the operations that can be performed on that data
All services offer the same interface, consisting of at most four operations.
Messages sent to or from a service are fully self-described
Resources are identified through a single naming scheme
After executing an operation at a service, that component forgets everything about the caller
The separation between interfaces and the objects implementing these interfaces allows us to place an interface at one machine, while the object itself resides on another machine. This is commonly referred to as:
Distributed object
Distributed service
Distributed component
Distributed interface
Distributed data
The order of creating socket on the client side:
Socket --> connect -->recv -->send -->close
Socket --> bind -->recv -->send -->close
Socket --> bind -->send -->recv -->close
Socket --> listen -->accept -- >bind -->send -- >recv -->close
Socket --> connect -->send -- >recv -->close
A piece of code that converts parameters passed between client and server during a remote procedure call (RPC)
Middleware
IPC
Message broker
Stub
RMI
In publish-subscribe architectures, the followings are the forms of coordination, except:
Mailbox
Shared data space
Direct
Periodically
Event-based
What does it do?
It sends the 'mahasiswa.txt' file to 'data.del.ac.id'
It connects to the localhost
It sends a request to extract 'mahasiswa.txt' from 'data.del.ac.id'
It throws an error because a socket cannot use HTTP
It creates a file named 'mahasiswa.txt'
In REST achitecture, which of the following is a way to transfer the states:
In the email attachment
In the body as an XML format
In the footer
In the header
In Javascript file
What does it do?
It listen on port 65432, receive data from server and send the data to the application
It listen on port 65432, receive data from client and send the data to the application
It listen on port 65432, receive data from server and send the data back to the server
It listen on port 65432, receive data from client and send the data to the server
It listen on port 65432, receive data from client and send the data back to the client
What is the type of communication?
Persistent Synchronous
Delivery-based Transient Synchronous
Persistent Asynchronous
Receipt-based Transient Synchronous
Transient Asynchrnous
Using Amdahl’s Law, given time to execute a proces T(1) using one processor is 1 second, serial fraction (S) is 40%, and paralel fraction is 60%, with 3 processors how many percent is the improvement of the execution time?
No improvement
40% faster
40% slower
60% slower
60% faster
Which of the following HTTP methods are used by REST? (Choose three correct answers.)
CREATE
PUT
REPLACE
GET
DELETE
Which of the following statement regarding microservices are true? (Choose three correct answers.)
Interaction between microservices can be slower than the interaction of similar components within a monolithic application
Microservices facilitate the replacement of the implementation of a specific functionality.
Within one application, individual microservices can be updated and redeployed independent of the remaining microservices.
Microservices applications are hard to scale because microservice architecture allow only one instance of each microservice
Integration tests for microservices are not possible until all microservices forming a specific application are completely developed.
Which one of the following coordinations is temporally decoupled, but referentially coupled:
Shared data space
Periodically
Event-based
Mailbox
Direct
