Font size
WorksheetsService-Oriented Architecture
Total questions: 66
Worksheet time: 39mins
You are probably using the internet to do some of your personal banking. There is a page that shows your accounts and their balances, often called something like "Account Summary" or "Account Overview." You must click on an account to begin managing it. Which type of web page is this?
static web page
dynamic web page
web service
web app
Another web page allows interacting with a spreadsheet in a browser. You can enter in values, sum them up, perform operations on them, format them, etc. What type of web page is this?
static web page
web app
web service
dynamic web page
Consider the two statements. Choose the one correct option.
JSON is a markup language
2. JSON can easily be converted into a Javascript object
Neither statement is correct
Only the first statement is correct
Both statements are correct
Only the second statement is correct
Which of these is NOT a basic standard of the World Wide Web?
FTP
HTTP
URL
TCP
There is an HTTP method that allows you to send, create or update a resource, but allows the server to decide its location and identity. Which HTTP method is this?
POST
SEND
GET
PUT
Which of these is often used to add dynamic content to a web page?
HTML
CSS
Javascript
HTML DOM
What are the three high-level components involved in a remote procedural call?
IDL source code, IDL compiler, interface headers
client stub, compiler, server stub
marshal, client, server
client, server, interface definition language
The process of establishing a connection between the client stub and server stub is called…
handshaking
binding
interfacing
marshalling
What are the advantages of Common Object Request Broker Architecture (CORBA)? Choose the two correct answers.
It allows for object-oriented paradigms in distributed computing
Method calls can be treated locally or remotely
Objects are essentially independent of their physical or virtual location.
Dynamic binding is simple
Which of these are desirable characteristics of a web service? Select the three correct answers.
modular
simple
composable
platform-independent
Which of these responsibilities does the client stub have in a middleware-based architecture that uses RPC? Choose the three correct answers.
Invoking the server application directly
Formatting and encoding data into standardized messages
Establishing a connection with the server
Invoking the remote procedure call over the network
What is the main difference between a web service and a web application?
Web applications are presented through a browser
Web applications dynamically generate content
Web services are simpler
Web services are mostly meant for business applications
What standard is used for all aspects of web service development in this module, from describing interfaces to publishing and discovering services?
XML
SOAP
UDDI
WSDL
What are the two major styles of SOAP requests?
envelope
document style
request-response
RPC style
Which of these message patterns are typical of asynchronous messaging? Choose two correct answers.
solicit-response
notification
one-way
request-response
Your web browser has an add-on that is alerted when your favourite blog has a new post. Which messaging pattern is this?
request-response
solicit-response
one-way
notification
An important part of a WSDL (Web Service Description Language) file is a section that describes how services are invoked. For example, this section includes the style of interaction (document or RPC), the transport protocol, and how messages are turned into XML. What is this section?
services
types
bindings
interfaces
Consider the two statements. Choose the one correct option.
SOAP messages can only be sent over HTTP
2. Every SOAP message needs a header
Only the first statement is true
Only the second statement is true
Both statements are true
Neither statement is true
Consider the two statements. Choose the one correct option
WSDL can be used to describe non-XML based web services
2. A WSDL document can import other WSDL documents to gain access to their specifications
Only the first statement is true
Only the second statement is true
Both statements are true
Neither statement is true
UDDI covers two aspects of web service development. Which ones? Choose the two correct answers.
publishing
security
discovery
composition
The green pages of UDDI contain which data structures? Choose the two correct answers.
businessService
tModel
businessEntity
bindingTemplate
onsider the following two statements. Choose the one correct option
Binding to a service is usually a run-time activity
2. UDDI uses web services for publishing and discovering
Only the first statement is true
Only the second statement is true
Both statements are true
Neither statement is true
WS-BPEL covers what aspect of web services?
publishing
security
encryption
composition
Which part of a WSDL 2.0 description gives concrete information about the ports to be used for the service?
bindings
interfaces
services
portTypes
REST uses several HTTP methods to communicate. Which HTTP method should not make a change to data on the server?
(a)
Which of these are constraints of REST architectures? Choose the three correct answers.
Interactions rely on state
Clients can cache responses
Layered and client-server based
Uniform interface for communication
According to REST best practices, where should you specify what format the input and output messages are in?
HTTP headers
XML schema
Parameters in the URI
sub-resources in the URI
Which of these are acceptable REST URIs according to best practices? Choose the two correct answers
/students/
/students/3/
/student/
/getstudent/
Which of these is NOT used in developing RESTful web services?
simple text
XML
JSON
SOAP
By convention, which HTML method is usually used to create a new resource?
POST
PUT
DELETE
PATCH
What is the recommended way to not break functionality if your RESTful API is being used by many users?
Subscribe your service consumers to change notifications
Describe your service with WSDL
version your API
Refactor the service, keeping the API the same
Which of these best describes microservices?
a variation of SOA applied on an application scale
Replicating services and modifying them to fill other roles
Migrating business functionality into a set of services incrementally instead of all at once
Web service architectures consisting of lots of small, modular services
Consider the two statements. Choose the one correct option.
Microservices must be in the same language and framework
2. Microservices can be replicated for scaling
Only the first statement is true
Only the second statement is true
Both statements are true
Neither statement is true
Which are the advantages of microservices? Choose the two correct answers.
Performance is very good
Small teams can develop microservices quickly
Services can be scaled independently
Testing is simple
How can you pass parameters in a REST call? Select the two correct answer
In the HTTP header
In the SOAP header
In the URL
In XML
Consider the following two statements about RESTful web services. Choose the one correct option
Requests can be sent in simple text
2. PUT is usually used to create new resource
Only the first statement is true
Only the second statement is true
Both statements are true
Neither statement is true
Marlon is creating a web page. It's a simple page, which has a list of his current projects, a short bio about himself, and some GIF images of some of those same projects that he uploaded to the server himself. What type of web page is this?
web app
static web page
web service
dynamic web page
Which of these examples is a web application?
a website conducting a survey
an online shopping platform
a blog
online poker
Which of these formats can be used to express and structure content to be sent over the internet? Choose the three correct answers:
CSS
JSON
HTML
XML
What are the essential parts of an HTTP request? Choose the three correct answers.
request-line
a blank space
a message body
headers
Which of these are essential parts of an HTTP server response? Choose the two correct answers.
a message body
status-line
headers
response-line
Consider the following two statements about Javascript. Choose the one correct option.
1. It can allow you to generate content within the browser
2. A Javascript file must be sent in addition to an HTML file
Only the first statement is true
Only the second statement is true
Both statements are true
Neither statement is true
Question 7
What is the term for the action that converts the parameters into a standardized message on the client side?
binding
blocking
marshalling
invocation
Question 8
Consider the following two statements about middleware and RPC. Choose the one correct option.
RPC (Remote Procedure Call) is a form of middleware
2. The IDL (Interface Definition Language) is responsible for generating stubs
Only the first statement is true
Only the second statement is true
Both statements are true
Neither statement is true
.
Question 9
Which of these can be found in Common Object Request Broker Architecture (CORBA)? Choose the three correct answers.
client and server stubs
interface definition language
object request broker
facilities
What are some disadvantages of CORBA? Choose the two correct answers.
Objects are always called remotely
Dynamic binding is impossible
Implementation is difficult
Clients and servers must be implemented in the same language
Question 11
In what format are SOAP messages represented?
XML
HTML
JSON
SOAP formatting is not based on any other format
Which part of a SOAP message can be included but is NOT required?
HTTP method
body
envelope
header
True or False: a SOAP message must be sent over HTTP.
True
False
Which type of description will a service requester need to bind to a web service?
WS-Description
UDDI
SOAP
WSDL
Question 15
Which section of WSDL 2.0 contains concrete information like physical ports and mapping interfaces to endpoints?
bindings
portTypes
services
interfaces
What does the types section of a WSDL 2.0 document allow developers to do?
Define abstract data types
Specify document-style or RPC-style interaction
Specify which communications protocol is used (HTTP, SMTP…)
Specifies the type of interaction (request-response, solicit-response…)
Question 17
Which aspects of web services does UDDI allow you to implement? Choose the two correct answers.
invocation
publication
discovery
composition
Question 18
In which section of a UDDI description will you find information like the category of business and service?
yellow pages
green pages
blue pages
white pages
Under which data structure of UDDI will you find a reference to the WSDL description?
tModel
businessEntity
businessService
serviceInterface
What is the difference between coordination and composition in the context of services?
coordination is focused on pairwise interactions
composition uses only objects
composition exposes a combination of services as another service
coordination can only be done in a synchronous way
Consider the following two statements. Choose the one correct option.
WS-BPEL only allows you to compose services out of basic services.
2. WS-BPEL has other features such as conditional logic and the ability to store state.
Only the first statement is true
Only the second statement is true
Both statements are true
Both statements are false
What does it mean that RESTful services are cacheable?
the client can store a version of the server's response
the server can queue and prioritize requests
the service logic can be stored on the client
the server can store the state of the interaction
Question 23
Which of these formats can be used within the invocation of a REST service? Choose the three correct answers.
XML
WSDL
simple text
JSON
Question 24
Which of these is a good name for a REST resource? In other words, which of these resource names follow best practices? Choose the two correct answers.
/car/2
/cars/2/tires
/cars/2
/getCar/2
Question 25
You received an HTTP status code 201 from the server, which means that a resource was created. In a well-designed REST service, which HTTP methods did you send to the server?
DELETE
POST
PUT
GET
Which of these elements in the HTTP header of a request specifies the format of the response?
Content-Type:
Accept:
Host
Content-Encoding:
Question 27
What is the most important difference between WS*-style web services (which utilize SOAP, WSDL, etc.) and RESTful web services?
Their differences are very minor
They do not use the same transfer protocol
RESTful services are simpler
WS* are more secure
Where are the formats of the input and output data specified, according to REST best practices?
In the HTTP request in JSON format
As parameters in the URL
In the HTTP header
In the HTTP request in XML format
What are some advantages of microservices architecture? Select the two correct answers.
Good performance
No centralized management
Scaling through replication
Services can be developed in different languages
Consider the following two statements about microservices architecture. Choose the one correct option.
Communication between microservices is stateless
2. Testing microservice architecture is complex
Only the first statement is true.
Only the second statement is true
Both statements are true
Neither statement is true
