Web Service Flashcards
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
c. B2B
2xx Http Status Codes are for: Select one: a. Success b. Redirection c. Informational d. Server Error e. Client Error
a. Success
3xx Http Status Codes are for: Select one: a. Redirection b. Success c. Server Error d. Informational e. Client Error
a. Redirection
4xx Http Status Codes are for: Select one: a. Informational b. Redirection c. Server Error d. Client Error e. Success
d. Client Error
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. It is an implementation specific style like SOAP or REST
The \_\_\_\_\_ HTTP status code shows a bad request. Select one: a. 200 b. 400 c. 500 d. 403
b. 400
The \_\_\_\_\_ HTTP status code shows forbidden access to a resource. Select one: a. 404 b. 200 c. 500 d. 403
d. 403
The \_\_\_\_\_ HTTP status code shows internal server error. Select one: a. 500 b. 200 c. 403 d. 404
a. 500
The \_\_\_\_\_ HTTP status code shows not found when a resource is unavailable. Select one: a. 404 b. 500 c. 403 d. 200
a. 404
The \_\_\_\_\_ HTTP status code shows success (OK). Select one: a. 500 b. 403 c. 201 d. 200
d. 200
The \_\_\_\_\_ HTTP status code shows success in creating something. Select one: a. 403 b. 500 c. 201 d. 200
c. 201
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
c. Software that makes itself available over the Internet and uses a standardized messaging system
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
b. Infrastructure to support SOA that manages message transport, security, and standards-based integration
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
d. Library for processing JSON
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
d. An API for binding objects to XML and vice versa
What language is used to represent a resource? Select one: a. JSON b. Plain Text c. All of the above d. XML
c. All of the above
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
c. Web services are the preferred technical approach to achieve SOA
Which annotation allows you to parse semi-colon separated parameters in the request header? Select one: a. QueryParam b. BeanParam c. PathParam d. MatrixParam
d. MatrixParam
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. Status code
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. URI
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
b. One-way
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
d. Request-Response
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. Notification
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
c. Solicit Response
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
d. All of the above
DOM is event-based.
Select one:
a. True
b. False
b. False
SAX is preferred when I only want relatively small portions of a large xml document.
Select one:
a. True
b. False
a. True