wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Service-Oriented Architecture

Total questions: 66

Worksheet time: 39mins

Name
Class
Date
1.

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?

a)

static web page

b)

dynamic web page

c)

web service

d)

web app

2.


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?

a)


static web page

b)


web app

c)


web service

d)


dynamic web page

3.

Consider the two statements. Choose the one correct option.

  1. JSON is a markup language

2. JSON can easily be converted into a Javascript object

a)


Neither statement is correct

b)

Only the first statement is correct

c)


Both statements are correct

d)


Only the second statement is correct

4.


Which of these is NOT a basic standard of the World Wide Web?

a)

FTP

b)

HTTP

c)

URL

d)

TCP

5.

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?

a)

POST

b)

SEND

c)

GET

d)

PUT

6.

Which of these is often used to add dynamic content to a web page?

a)

HTML

b)

CSS

c)

Javascript

d)

HTML DOM

7.


What are the three high-level components involved in a remote procedural call?

a)


IDL source code, IDL compiler, interface headers

b)

client stub, compiler, server stub

c)

marshal, client, server

d)


client, server, interface definition language

8.

The process of establishing a connection between the client stub and server stub is called…

a)


handshaking

b)


binding

c)

interfacing

d)


marshalling

9.

What are the advantages of Common Object Request Broker Architecture (CORBA)? Choose the two correct answers.

a)


It allows for object-oriented paradigms in distributed computing

b)


Method calls can be treated locally or remotely

c)

Objects are essentially independent of their physical or virtual location.

d)


Dynamic binding is simple

10.


Which of these are desirable characteristics of a web service? Select the three correct answers.

a)


modular

b)


simple

c)


composable

d)


platform-independent

11.

Which of these responsibilities does the client stub have in a middleware-based architecture that uses RPC? Choose the three correct answers.

a)


Invoking the server application directly

b)

Formatting and encoding data into standardized messages

c)


Establishing a connection with the server

d)


Invoking the remote procedure call over the network

12.

What is the main difference between a web service and a web application?

a)


Web applications are presented through a browser


b)

Web applications dynamically generate content


c)


Web services are simpler

d)


Web services are mostly meant for business applications

13.


What standard is used for all aspects of web service development in this module, from describing interfaces to publishing and discovering services?

a)

XML

b)

SOAP

c)

UDDI

d)

WSDL

14.

What are the two major styles of SOAP requests?

a)

envelope

b)

document style

c)


request-response

d)


RPC style

15.

Which of these message patterns are typical of asynchronous messaging? Choose two correct answers.

a)


solicit-response

b)

notification

c)

one-way

d)


request-response

16.


Your web browser has an add-on that is alerted when your favourite blog has a new post. Which messaging pattern is this?

a)


request-response

b)


solicit-response

c)


one-way

d)

notification

17.

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?

a)

services

b)


types

c)


bindings

d)


interfaces

18.

Consider the two statements. Choose the one correct option.

  1. SOAP messages can only be sent over HTTP

2. Every SOAP message needs a header


a)


Only the first statement is true

b)


Only the second statement is true

c)

Both statements are true

d)


Neither statement is true

19.


Consider the two statements. Choose the one correct option

  1. 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

a)


Only the first statement is true

b)


Only the second statement is true

c)


Both statements are true

d)


Neither statement is true

20.


UDDI covers two aspects of web service development. Which ones? Choose the two correct answers.

a)

publishing

b)

security

c)

discovery

d)

composition

21.

The green pages of UDDI contain which data structures? Choose the two correct answers.

a)

businessService

b)

tModel

c)

businessEntity

d)

bindingTemplate

22.

onsider the following two statements. Choose the one correct option

  1. Binding to a service is usually a run-time activity

2. UDDI uses web services for publishing and discovering

a)


Only the first statement is true

b)


Only the second statement is true

c)

Both statements are true

d)


Neither statement is true

23.

WS-BPEL covers what aspect of web services?

a)


publishing

b)

security

c)

encryption

d)

composition

24.

Which part of a WSDL 2.0 description gives concrete information about the ports to be used for the service?

a)

bindings

b)

interfaces

c)

services

d)

portTypes

25.

REST uses several HTTP methods to communicate. Which HTTP method should not make a change to data on the server?

(a)  

26.

Which of these are constraints of REST architectures? Choose the three correct answers.

a)


Interactions rely on state

b)


Clients can cache responses

c)


Layered and client-server based

d)

Uniform interface for communication

27.


According to REST best practices, where should you specify what format the input and output messages are in?

a)

HTTP headers

b)


XML schema

c)


Parameters in the URI

d)


sub-resources in the URI

28.


Which of these are acceptable REST URIs according to best practices? Choose the two correct answers

a)


/students/

b)


/students/3/

c)


/student/

d)


/getstudent/

29.

Which of these is NOT used in developing RESTful web services?

a)


simple text

b)

XML

c)

JSON

d)

SOAP

30.

By convention, which HTML method is usually used to create a new resource?

a)

POST

b)

PUT

c)

DELETE

d)

PATCH

31.

What is the recommended way to not break functionality if your RESTful API is being used by many users?

a)


Subscribe your service consumers to change notifications

b)


Describe your service with WSDL

c)


version your API

d)


Refactor the service, keeping the API the same

32.

Which of these best describes microservices?

a)


a variation of SOA applied on an application scale

b)


Replicating services and modifying them to fill other roles

c)


Migrating business functionality into a set of services incrementally instead of all at once

d)


Web service architectures consisting of lots of small, modular services

33.

Consider the two statements. Choose the one correct option.

  1. Microservices must be in the same language and framework

2. Microservices can be replicated for scaling

a)


Only the first statement is true

b)

Only the second statement is true

c)

Both statements are true

d)


Neither statement is true

34.

Which are the advantages of microservices? Choose the two correct answers.

a)


Performance is very good

b)


Small teams can develop microservices quickly

c)


Services can be scaled independently

d)


Testing is simple

35.

How can you pass parameters in a REST call? Select the two correct answer

a)


In the HTTP header

b)


In the SOAP header

c)

In the URL

d)


In XML

36.

Consider the following two statements about RESTful web services. Choose the one correct option

  1. Requests can be sent in simple text

2. PUT is usually used to create new resource

a)

Only the first statement is true

b)

Only the second statement is true

c)


Both statements are true


d)


Neither statement is true

37.

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?

a)


web app

b)

static web page

c)

web service

d)


dynamic web page

38.

Which of these examples is a web application?

a)


a website conducting a survey


b)


an online shopping platform

c)

a blog

d)

online poker

39.

Which of these formats can be used to express and structure content to be sent over the internet? Choose the three correct answers:

a)

CSS

b)

JSON

c)

HTML

d)

XML

40.

What are the essential parts of an HTTP request? Choose the three correct answers.

a)


request-line

b)


a blank space

c)


a message body

d)


headers

41.

Which of these are essential parts of an HTTP server response? Choose the two correct answers.

a)


a message body

b)


status-line

c)

headers

d)


response-line

42.

Consider the following two statements about Javascript. Choose the one correct option.

  1. 1. It can allow you to generate content within the browser

2. A Javascript file must be sent in addition to an HTML file

a)


Only the first statement is true

b)


Only the second statement is true

c)


Both statements are true

d)


Neither statement is true

43.


Question 7

What is the term for the action that converts the parameters into a standardized message on the client side?

a)


binding

b)

blocking

c)

marshalling

d)

invocation

44.


Question 8

Consider the following two statements about middleware and RPC. Choose the one correct option.

  1. RPC (Remote Procedure Call) is a form of middleware

2. The IDL (Interface Definition Language) is responsible for generating stubs

a)


Only the first statement is true


b)


Only the second statement is true

c)


Both statements are true

d)


Neither statement is true

45.

.

Question 9

Which of these can be found in Common Object Request Broker Architecture (CORBA)? Choose the three correct answers.

a)


client and server stubs

b)


interface definition language

c)


object request broker

d)


facilities

46.

What are some disadvantages of CORBA? Choose the two correct answers.

a)


Objects are always called remotely

b)


Dynamic binding is impossible

c)

Implementation is difficult

d)


Clients and servers must be implemented in the same language

47.


Question 11

In what format are SOAP messages represented?

a)

XML

b)

HTML

c)

JSON

d)


SOAP formatting is not based on any other format

48.

Which part of a SOAP message can be included but is NOT required?

a)

HTTP method


b)

body

c)

envelope

d)

header

49.

True or False: a SOAP message must be sent over HTTP.

a)

True

b)

False

50.

Which type of description will a service requester need to bind to a web service?

a)

WS-Description

b)

UDDI

c)

SOAP

d)

WSDL

51.


Question 15

Which section of WSDL 2.0 contains concrete information like physical ports and mapping interfaces to endpoints?

a)

bindings

b)

portTypes

c)

services

d)

interfaces

52.

What does the types section of a WSDL 2.0 document allow developers to do?

a)


Define abstract data types

b)


Specify document-style or RPC-style interaction

c)

Specify which communications protocol is used (HTTP, SMTP…)

d)


Specifies the type of interaction (request-response, solicit-response…)

53.


Question 17

Which aspects of web services does UDDI allow you to implement? Choose the two correct answers.

a)


invocation

b)


publication

c)


discovery


d)


composition

54.


Question 18

In which section of a UDDI description will you find information like the category of business and service?

a)


yellow pages

b)


green pages

c)


blue pages

d)


white pages

55.


Under which data structure of UDDI will you find a reference to the WSDL description?

a)


tModel

b)


businessEntity

c)

businessService

d)

serviceInterface

56.

What is the difference between coordination and composition in the context of services?

a)


coordination is focused on pairwise interactions

b)


composition uses only objects

c)


composition exposes a combination of services as another service

d)


coordination can only be done in a synchronous way

57.

Consider the following two statements. Choose the one correct option.

  1. 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.

a)


Only the first statement is true

b)


Only the second statement is true

c)


Both statements are true

d)

Both statements are false

58.

What does it mean that RESTful services are cacheable?

a)


the client can store a version of the server's response

b)


the server can queue and prioritize requests

c)

the service logic can be stored on the client

d)

the server can store the state of the interaction

59.


Question 23

Which of these formats can be used within the invocation of a REST service? Choose the three correct answers.

a)

XML

b)

WSDL

c)


simple text

d)


JSON

60.


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.

a)


/car/2

b)


/cars/2/tires

c)


/cars/2

d)


/getCar/2

61.


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?

a)


DELETE

b)

POST

c)

PUT

d)

GET

62.

Which of these elements in the HTTP header of a request specifies the format of the response?

a)


Content-Type:

b)


Accept:

c)

Host

d)

Content-Encoding:

63.


Question 27

What is the most important difference between WS*-style web services (which utilize SOAP, WSDL, etc.) and RESTful web services?

a)

Their differences are very minor

b)


They do not use the same transfer protocol

c)

RESTful services are simpler

d)


WS* are more secure

64.

Where are the formats of the input and output data specified, according to REST best practices?

a)


In the HTTP request in JSON format

b)


As parameters in the URL

c)


In the HTTP header

d)


In the HTTP request in XML format

65.

What are some advantages of microservices architecture? Select the two correct answers.

a)

Good performance

b)


No centralized management

c)

Scaling through replication

d)

Services can be developed in different languages

66.

Consider the following two statements about microservices architecture. Choose the one correct option.

  1. Communication between microservices is stateless

2. Testing microservice architecture is complex

a)


Only the first statement is true.

b)


Only the second statement is true

c)


Both statements are true


d)


Neither statement is true