Service-Oriented Architecture Coursera Quiz Answers – Networking Funda

All Weeks Service-Oriented Architecture Coursera Quiz Answers

Service-Oriented Architecture Coursera Quiz Answers

Week 1: Service-Oriented Architecture

Q1. 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
  • web service
  • dynamic web page
  • web app

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

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

  1. JSON is a markup language
  1. JSON can easily be converted into a Javascript object
  • Both statements are correct
  • Only the first statement is correct
  • Neither statement is correct
  • Only the second statement is correct

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

  • FTP
  • TCP
  • HTTP
  • URL

Q5. 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
  • GET
  • SEND
  • PUT

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

  • HTML
  • HTML DOM
  • CSS
  • Javascript

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

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

  • handshaking
  • binding
  • interfacing
  • marshalling

Q9. 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
  • Dynamic binding is simple
  • Objects are essentially independent of their physical or virtual location.
  • Method calls can be treated locally or remotely

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

  • modular
  • platform-independent
  • composable
  • simple

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

  • Invoking the remote procedure call over the network
  • Formatting and encoding data into standardized messages
  • Invoking the server application directly
  • Establishing a connection with the server

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

  • Web services are mostly meant for business applications
  • Web applications dynamically generate content
  • Web services are simpler
  • Web applications are presented through a browser

Week 2: Introduction to Web Services

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

Q2. What are the two major styles of SOAP requests?

  • request-response
  • RPC style
  • document style
  • envelope

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

  • request-response
  • one-way
  • solicit-response
  • notification

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

  • solicit-response
  • one-way
  • notification
  • request-response

Q5. 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?

  • interfaces
  • types
  • services
  • bindings

Q6. 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
  • Only the first statement is true
  • Only the second statement is true
  • Both statements are true
  • Neither statement is true

Q7. 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
  • Only the first statement is true
  • Only the second statement is true
  • Both statements are true
  • Neither statement is true

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

  • publishing
  • security
  • discovery
  • composition

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

  • tModel
  • bindingTemplate
  • businessService
  • businessEntity

Q10. Consider 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
  • Only the first statement is true
  • Only the second statement is true
  • Both statements are true
  • Neither statement is true

Q11. WS-BPEL covers what aspect of web services?

  • security
  • composition
  • publishing
  • encryption

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

  • portTypes
  • services
  • bindings
  • interfaces

Week 3: REST Services

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

Enter answer here

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

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

  • sub-resources in the URI
  • HTTP headers
  • Parameters in the URI
  • XML schema

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

  • /students/
  • /students/3/
  • /student/
  • /getstudent/

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

  • simple text
  • XML
  • JSON
  • SOAP

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

  • PUT
  • DELETE
  • POST
  • PATCH

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

  • Refactor the service, keeping the API the same
  • Subscribe your service consumers to change notifications
  • version your API
  • Describe your service with WSDL

Q8. Which of these best describes microservices?

  • Web service architectures consisting of lots of small, modular services
  • Migrating business functionality into a set of services incrementally instead of all at once
  • a variation of SOA applied on an application scale
  • Replicating services and modifying them to fill other roles

Q9. 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
  • Only the first statement is true
  • Only the second statement is true
  • Both statements are true
  • Neither statement is true

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

  • Testing is simple
  • Performance is very good
  • Services can be scaled independently
  • Small teams can develop microservices quickly

Q11. How can you pass parameters in a REST call? Select the two correct answers.

  • In XML
  • In the URL
  • In the HTTP header
  • In the SOAP header

Q12. 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
  • Only the first statement is true
  • Only the second statement is true
  • Both statements are true
  • Neither statement is true

Week 4: Applying Service-Oriented Architecture

Q1. 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
  • dynamic web page
  • web service
  • static web page

Q2. Which of these examples is a web application?

  • a blog
  • online poker
  • a website conducting a survey
  • an online shopping platform

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

  • HTML
  • XML
  • CSS
  • JSON

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

  • request-line
  • a message body
  • a blank space
  • headers

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

  • response-line
  • a message body
  • status-line
  • headers

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

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

  • marshalling
  • blocking
  • binding
  • invocation

Q8. 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
  • Only the first statement is true
  • Only the second statement is true
  • Both statements are true
  • Neither statement is true

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

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

  • Objects are always called remotely
  • Clients and servers must be implemented in the same language
  • Implementation is difficult
  • Dynamic binding is impossible

Q11. In what format are SOAP messages represented?

  • JSON
  • SOAP formatting is not based on any other format
  • XML
  • HTML

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

  • HTTP method
  • envelope
  • header
  • body

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

  • True
  • False

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

  • UDDI
  • WS-Description
  • WSDL
  • SOAP

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

  • interfaces
  • services
  • portTypes
  • bindings

Q16. 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…)

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

  • invocation
  • publication
  • discovery
  • composition

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

  • green pages
  • white pages
  • blue pages
  • yellow pages

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

  • businessService
  • serviceInterface
  • businessEntity
  • tModel

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

  • coordination can only be done in a synchronous way
  • composition exposes a combination of services as another service
  • coordination is focused on pairwise interactions
  • composition uses only objects

Q21. 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.
  • Only the first statement is true
  • Only the second statement is true
  • Both statements are true
  • Both statements are false

Q22. What does it mean that RESTful services are cacheable?

  • the client can store a version of the server’s response
  • the service logic can be stored on the client
  • the server can store the state of the interaction
  • the server can queue and prioritize requests

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

  • WSDL
  • JSON
  • XML
  • simple text

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

  • /cars/2
  • /getCar/2
  • /car/2
  • /cars/2/tires

Q25. 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?

  • GET
  • POST
  • DELETE
  • PUT

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

  • Accept:
  • Host
  • Content-Encoding:
  • Content-Type:

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

  • RESTful services are simpler
  • WS* are more secure
  • They do not use the same transfer protocol
  • Their differences are very minor

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

  • In the HTTP request in JSON format
  • In the HTTP request in XML format
  • In the HTTP header
  • As parameters in the URL

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

  • Services can be developed in different languages
  • Scaling through replication
  • Good performance
  • No centralized management

Q30. 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
  • Only the first statement is true.
  • Only the second statement is true
  • Both statements are true
  • Neither statement is true
Get All Course Quiz Answers of Software Design and Architecture Specialization

Object-Oriented Design Coursera Quiz Answers

Design Patterns Coursera Quiz Answers

Software Architecture Coursera Quiz Answers

Service-Oriented Architecture Coursera Quiz Answers

Team Networking Funda
Team Networking Funda

We are Team Networking Funda, a group of passionate authors and networking enthusiasts committed to sharing our expertise and experiences in networking and team building. With backgrounds in Data Science, Information Technology, Health, and Business Marketing, we bring diverse perspectives and insights to help you navigate the challenges and opportunities of professional networking and teamwork.

Leave a Reply

Your email address will not be published. Required fields are marked *