Web Service Flashcards

1
Q

A set of clearly defined methods of communication between various components.

A

API

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Refer to a published document that defines how these methods of communication can be used.

A

API

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Refers to the actual implementation of an interface that other app/programs can call on.

A

API

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

API is also used informally to refer to the ____________ that describes the usage of this interface.

A

document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Web Services involve __________________

A

network communication

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Web Services are APIs designed to support interoperable _______________________.

A

machine-machine interaction over a network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

WS expose services to clients over a ________, using a uniform interface.

A

network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Since many systems do not inherently interoperate well, thus the need for _______________.

A

APIs/web services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

2 types of Web Service Implementations

A
  1. Simple Object Access Protocol (SOAP)
  2. Representational State Transfer (REST)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

This web service usage revolves around the exchange of XML messages.

A

SOAP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

True or False: SOAP is transport agnostic.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In SOAP web services, req/res formats are formally defined in ____________________ files.

A

Web Service Definition (WSD) files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

WSDs are written in Web Service Definition Language (WSDL), which has an _________________.

A

XML-like structure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The API for SOAP.

A

WSD - Web Service Definition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Discovery services use the __________________________ framework for sharing and finding WSDs.

A

Universal Description, Discovery, and Integration (UDDI)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

REST

A

Representational State Transfer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

REST uses the HTTP/HTTPS protocol for message _________.

A

transport.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

True or False: Request/response payloads for RESTful web services can use any data format.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

True or False: RESTful web services are stateful.

A

False, stateless.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

RESTful Web Services use HTTP, and thus use ________.

A

HTTP urls.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

6 constraints of designing RESTful ws that limit the ways the server can process and respond to requests.

A
  1. Client-Server
  2. Stateless
  3. Cache
  4. Uniform Contract
  5. Layered System
  6. Code-on-Demand* (optional)
22
Q

_____________ is separated into consumer and service logic.

A

Solution Logic

23
Q

Consumers invoke services using a published _____________.

A

technical contract.

24
Q

Each request sent and processed is ________________. It doesn’t depend on context from an earlier message.

A

self-contained

25
This frees up server storage space and processing power that would otherwise be used to store and read earlier messages.
Stateless
26
Response messages are explicitly labeled as __________ or _________ for potential use.
cacheable or non-cacheable
27
Ways to tell if the request messages are equivalent or not.
cache-control
28
Ways to label if a response is cacheable or not, by whom, and for how long.
cache-control
29
Improves runtime efficiency by eliminating the need to send duplicate responses.
Cache
30
Service consumers and service providers share a common, general technical support
uniform contract
31
Clients of a RESTful WS need to know:
- The URL and HTTP method for a particular operation - The required inputs - The returned outputs
32
Standardizes the interaction between different entities, making interoperability possible.
Common general contract
33
It is in the interest of all parties taht this uniform contract change as _______________.
Iittle as possible.
34
Solutions can be comprised of multiple architectural layers.
Layered System
35
Each layer can't ______ pas the next layer. Each service is only concerned about interacting with next layer.
see
36
Each layer's logic can evolve independently of the others, as long as the ________________ between them remains the same.
general contract (API)
37
Service consumers can support the execution of deferred service logic.
Code-on-Demand
38
Code-on-Demand disadvantage
Consumers need an execution environment for the deferred proces.s
39
May prevent server bottlenecks. But requires additional features on the consumer's part.
Code-on-demand
40
REST Architectural goals (7)
PPSSMVR 1. Performance 2. Portability 3. Simplicity 4. Scalability 5. Modifiability 6. Visibility 7. Reliability
41
This architectural goal considers the throughput and latency of request and responses. As well as resource utilization in the server.
Performance
42
Sometimes, the __________________ can be tweaked to make the response seem faster without actually changing the actual time to process.
order of messages/data sent
43
This architectural goal addresses the architecture's need to support a varying number of concurrent connections.
Scalability
44
This architectural goal is required for an app that will change over time.
Modifiability
45
This architectural goal lets the app be self-monitored and regulated to optimize performance
Visibility
46
To some extent, it benefits different modules to know ________________ (though it may seem contradictory to the Layered System requirement or modularity approach).
the inner workings of the others
47
This architectural goal refers to the ease of moving applications from deployed location to another.
Portability
48
This architectural goal is the degree of service's susceptibility to failure.
Reliability
49
Downtimes can be addressed by using _________________.
Redundant servers
50
Is facebook, amazon, and twitter website or web service?
They are both. FB/Amazon/Twitter that we NORMALLY SEE are websites. But these companies ALSO PROVIDE WEB SERVICES meant for 3rd party apps to call on.