Designing services
22 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which of the following best describes a service in the context of software?

  • Software that listens to requests and/or sends back responses (correct)
  • Software that interacts directly with the user
  • Software that is installed on a device
  • Software that performs automated tasks
  • Where does a service live when it listens to requests from applications on the client-side or from other services on the server-side?

  • Neither server-side nor client-side
  • Client-side
  • Server-side (correct)
  • Both server-side and client-side
  • Which of the following is an example of a client application?

  • Billing service
  • Music application (correct)
  • Song service
  • Playlist service
  • What is a sign of tightly coupled services?

    <p>Updating one service requires changing the logic in another service</p> Signup and view all the answers

    What is the concept of high cohesion?

    <p>The logic, methods, and classes of a single service should be functionally related and support a single purpose</p> Signup and view all the answers

    Which diagram type is used to illustrate the static parts of a system, such as classes, interfaces, and relationships?

    <p>Structural diagrams</p> Signup and view all the answers

    What is the artifact commonly produced during database modeling to show the relationship behavior of data entities in a database?

    <p>Entity-Relationship diagrams</p> Signup and view all the answers

    Which one of the following is not a benefit of writing service interfaces in a self-documenting style?

    <p>Reduced complexity of system design</p> Signup and view all the answers

    What is one of the challenges of system design when thinking about how services communicate, cooperate, and scale together?

    <p>Determining the functionality of each service</p> Signup and view all the answers

    Which of the following is a disadvantage of using microservices?

    <p>Increased complexity</p> Signup and view all the answers

    What is the advantage of using microservices over monoliths in terms of scalability?

    <p>Microservices have better scalability</p> Signup and view all the answers

    What is the tradeoff between reusability and development cost when using microservices?

    <p>Microservices allow for greater reusability but have higher initial development costs</p> Signup and view all the answers

    What is the concept of loose coupling in microservices?

    <p>Services have minimal dependency on each other</p> Signup and view all the answers

    Which of the following best describes a monolithic design?

    <p>A monolithic design refers to software that is built and deployed as a single unit.</p> Signup and view all the answers

    Which of the following is an advantage of a monolithic design?

    <p>Easy development and fast deployment</p> Signup and view all the answers

    Which of the following is a disadvantage of a monolithic design?

    <p>Low agility</p> Signup and view all the answers

    Which of the following best describes microservices?

    <p>Microservices are a software design style that emphasizes modular component-based services.</p> Signup and view all the answers

    According to the text, why is the proposed updateShippingAddress method an example of low cohesion?

    <p>Because it is not related to the cart functionality</p> Signup and view all the answers

    Which of the following best describes the request-response model?

    <p>A model that describes how a client interacts with a server, where the client sends a request and the server responds with a corresponding response</p> Signup and view all the answers

    Which of the following is true about service interfaces?

    <p>A service interface is the published interface used to invoke the service methods</p> Signup and view all the answers

    What is a message data structure used for in a service interface?

    <p>To describe the request and response messages that a service uses to communicate over a network</p> Signup and view all the answers

    What is the purpose of the 'repeated' keyword in a message data structure?

    <p>To create a list of values within the message</p> Signup and view all the answers

    More Like This

    Use Quizgecko on...
    Browser
    Browser