Web Service Flashcards

1
Q
Are Web Services typically a business-to-business (B2B), business-to-consumer (B2C), or consumer-to-consumer (C2C) technology?
Select one:
a. B2C
b. C2C
c. B2B
A

c. B2B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
2xx Http Status Codes are for:
Select one:
a. Success 
b. Redirection
c. Informational
d. Server Error
e. Client Error
A

a. Success

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
3xx Http Status Codes are for:
Select one:
a. Redirection 
b. Success
c. Server Error
d. Informational
e. Client Error
A

a. Redirection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
4xx Http Status Codes are for:
Select one:
a. Informational
b. Redirection
c. Server Error
d. Client Error 
e. Success
A

d. Client Error

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

Select the incorrect option regarding SOA.
Select one:
a. It is an implementation specific style like SOAP or REST
b. It is a style of architecting applications in such a way that they are composed of discrete software agents that have simple, well defined interfaces and are orchestrated through a loose coupling to perform a required function.
c. It promotes reusable components as business services.

A

a. It is an implementation specific style like SOAP or REST

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
The \_\_\_\_\_ HTTP status code shows a bad request.
Select one:
a. 200
b. 400 
c. 500
d. 403
A

b. 400

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
The \_\_\_\_\_ HTTP status code shows forbidden access to a resource.
Select one:
a. 404
b. 200
c. 500
d. 403
A

d. 403

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
The \_\_\_\_\_ HTTP status code shows internal server error.
Select one:
a. 500
b. 200
c. 403
d. 404
A

a. 500

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
The \_\_\_\_\_ HTTP status code shows not found when a resource is unavailable.
Select one:
a. 404 
b. 500
c. 403
d. 200
A

a. 404

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
The \_\_\_\_\_ HTTP status code shows success (OK).
Select one:
a. 500
b. 403
c. 201
d. 200
A

d. 200

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
The \_\_\_\_\_ HTTP status code shows success in creating something.
Select one:
a. 403
b. 500
c. 201 
d. 200
A

c. 201

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

What are Web Services?
Select one:
a. All of the above
b. Hardware that can be made accessible over the Cloud
c. Software that makes itself available over the Internet and uses a standardized messaging system
d. Software that runs on a local platform but mimics a Web browser interface

A

c. Software that makes itself available over the Internet and uses a standardized messaging system

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

What is an Enterprise Service Bus (ESB)?
Select one:
a. None of the above
b. Infrastructure to support SOA that manages message transport, security, and standards-based integration
c. A Java API that helps build SOAP and REST applications
d. The physical hardware layer that allows light or electrical signals to communicate messages

A

b. Infrastructure to support SOA that manages message transport, security, and standards-based integration

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

What is Jackson?

Select one:

a. Converter for SOAP Message
b. Artifact generated by AXIS for SOAP Client
c. Alternative to JAX-RS
d. Library for processing JSON
e. Implementation of SOA

A

d. Library for processing JSON

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

What is JAX-B?
Select one:
a. An API for developing RESTful Web Services
b. An API for developing SOAP-based Web Services
c. None of the above
d. An API for binding objects to XML and vice versa

A

d. An API for binding objects to XML and vice versa

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
What language is used to represent a resource?
Select one:
a. JSON
b. Plain Text
c. All of the above 
d. XML
A

c. All of the above

17
Q

What not true about service-oriented architecture (SOA)?
Select one:
a. Services should be loosely coupled by hiding the service implementation
b. Black box services that orchestrate into an entire ecosystem
c. Web services are the preferred technical approach to achieve SOA
d. None of the above

A

c. Web services are the preferred technical approach to achieve SOA

18
Q
Which annotation allows you to parse semi-colon separated parameters in the request header?
Select one:
a. QueryParam
b. BeanParam 
c. PathParam
d. MatrixParam
A

d. MatrixParam

19
Q
Which is not one of the core components of an HTTP request?
Select one:
a. Status code
b. Request Body
c. Request Header 
d. Uniform resource identifier (URI)
e. HTTP method
A

a. Status code

20
Q
Which is not one of the core components of an HTTP response?
Select one:
a. URI
b. HTTP Version
c. Status Code
d. Response Header 
e. Response Body
A

a. URI

21
Q
Which messaging exchange pattern involves the client sending a message without expecting a response from the service?
Select one:
a. Request-Response
b. One-way 
c. Solicit Response
d. Notification
A

b. One-way

22
Q
Which messaging exchange pattern involves the client sending a request and server sending a response back?
Select one:
a. Notification
b. Solicit Response
c. One-way
d. Request-Response
A

d. Request-Response

23
Q
Which messaging exchange pattern involves the server sending a message without expecting a response?
Select one:
a. Notification
b. Request-Response
c. Solicit Response 
d. One-way
A

a. Notification

24
Q
Which messaging exchange pattern involves the server sending a message and client sending a response back?
Select one:
a. Request-Response
b. One-way
c. Solicit Response
d. Notification
A

c. Solicit Response

25
Q

Why are Web Services needed?
Select one:
a. Allows for distributed business applications
b. Provides interoperability between platforms
c. Promotes code reusability
d. All of the above

A

d. All of the above

26
Q

DOM is event-based.

Select one:

a. True
b. False

A

b. False

27
Q

SAX is preferred when I only want relatively small portions of a large xml document.

Select one:

a. True
b. False

A

a. True