0% found this document useful (0 votes)
24 views34 pages

Lecture 4-Service Orientation Design Principles (Continued)

This document contains a presentation on service-oriented architecture principles. It includes an outline, recap, and 10 practice questions related to principles like service loose coupling, service statelessness, service autonomy, and others. The questions are multiple choice and relate to applying and distinguishing between the different principles in various scenarios.

Uploaded by

زينب على
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views34 pages

Lecture 4-Service Orientation Design Principles (Continued)

This document contains a presentation on service-oriented architecture principles. It includes an outline, recap, and 10 practice questions related to principles like service loose coupling, service statelessness, service autonomy, and others. The questions are multiple choice and relate to applying and distinguishing between the different principles in various scenarios.

Uploaded by

زينب على
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

Course: Service Oriented Architecture

Course Code: IS434

Service Orientation Design Principles


(Continued)

Presented by:
Dr. Dina Ezzat

1
Outline
• Practice Questions

2
Recap

3
Practice Question 1
• Each time our corporate development team makes a change to
the service logic it is required to publish a new version of the
service contract. Our customers are complaining because their
service consumer programs become incompatible with the new
service contract versions and therefore no longer work.
• Which of the following service orientation design principles is
most likely to help in solving this ongoing problem?

A. Service Reusability
B. Service Statelessness
C. Service Loose Coupling
D. Service Autonomy
4
Practice Question 1
• Each time our corporate development team makes a change to
the service logic it is required to publish a new version of the
service contract. Our customers are complaining because their
service consumer programs become incompatible with the new
service contract versions and therefore no longer work.
• Which of the following service orientation design principles is
most likely to help in solving this ongoing problem?

A. Service Reusability
B. Service Statelessness
C. Service Loose Coupling
D. Service Autonomy
5
Practice Question 2
• In my service, I chose to persist data between invocations to a
database. After doing so, I found that the performance of my
service declined significantly due to the fact that my database
is shared with other applications. As a result, I further isolated
the service by giving it its own dedicated database.
• Which service orientation design principle was involved in this
scenario?

A. Service Composability
B. Service Reusability
C. Service Abstraction
D. Service Statelessness

6
Practice Question 2
• In my service, I chose to persist data between invocations to a
database. After doing so, I found that the performance of my
service declined significantly due to the fact that my database
is shared with other applications. As a result, I further isolated
the service by giving it its own dedicated database.
• Which service orientation design principle was involved in this
scenario?

A. Service Composability
B. Service Reusability
C. Service Abstraction
D. Service Statelessness

7
Practice Question 3
• __________ refers to a software program that consumes a
service.

A. Service Contract
B. Service Registry
C. Service Provider
D. None of the above

8
Practice Question 3
• __________ refers to a software program that consumes a
service.

A. Service Contract
B. Service Registry
C. Service Provider
D. None of the above

9
Practice Question 4
• Which of the following is not a service orientation design
principle?

A. Service Abstraction
B. Service Reliability
C. Service Autonomy
D. All the above are service orientation design principles

10
Practice Question 4
• Which of the following is not a service orientation design
principle?

A. Service Abstraction
B. Service Reliability
C. Service Autonomy
D. All the above are service-orientation design principles

11
Practice Question 5
• The following statement describes the relationship between the
Service Reusability principle and which other design
principle?
• “Because of the potentially high performance and concurrent
usage demands of reusable services, the extent of control they
can exercise over their underlying logic is an important design
consideration in guaranteeing an acceptable level of
predictable runtime behavior.”

A. Standardized Service Contract


B. Service Composability
C. Service Autonomy
D. Service Loose Coupling
12
Practice Question 5
• The following statement describes the relationship between the
Service Reusability principle and which other design
principle?
• “Because of the potentially high performance and concurrent
usage demands of reusable services, the extent of control they
can exercise over their underlying logic is an important design
consideration in guaranteeing an acceptable level of
predictable runtime behavior.”

A. Standardized Service Contract


B. Service Composability
C. Service Autonomy
D. Service Loose Coupling
13
Practice Question 6
• The Service Abstraction principle emphasizes the need to
reveal as much of the underlying details of a service as
possible in order to support the Service Discoverability
principle in its goal of maximizing the quantity of published
information about a service.
• Select the correct answer.

A. True
B. False

14
Practice Question 6
• The Service Abstraction principle emphasizes the need to
reveal as much of the underlying details of a service as
possible in order to support the Service Discoverability
principle in its goal of maximizing the quantity of published
information about a service.
• Select the correct answer.

A. True
B. False

15
Practice Question 7
• A(n) _____________ in the extent to which the Service
Composability principle is applied to a service can result in
a(n) _____________ in the potential for the service to be
reused.
• Select all that apply.

A. Increase, Decrease
B. Decrease, Decrease
C. Increase, Increase
D. Decrease, Increase

16
Practice Question 7
• A(n) _____________ in the extent to which the Service
Composability principle is applied to a service can result in
a(n) _____________ in the potential for the service to be
reused.
• Select all that apply.

A. Increase, Decrease
B. Decrease, Decrease
C. Increase, Increase
D. Decrease, Increase

17
Practice Question 8
• Which of the following statements correctly explains the difference between the
Service Reusability and Service Composability design principles?

A. Service Reusability is focused on creating highly scalable services,


whereas Service Composability is focused on creating highly isolated
services
B. There is no difference between these two principles. One principle
name is used instead of the other depending on whether you are building
a task or a service
C. Service Reusability is focused on creating highly isolated services,
whereas Service Composability is focused on creating highly scalable
services
D. Service Reusability is focused on creating generic service logic,
whereas Service Composability is focused on creating services that are
effective participants of multiple service compositions

18
Practice Question 8
• Which of the following statements correctly explains the difference between the
Service Reusability and Service Composability design principles?

A. Service Reusability is focused on creating highly scalable services,


whereas Service Composability is focused on creating highly isolated
services
B. There is no difference between these two principles. One principle
name is used instead of the other depending on whether you are building
a task or a service
C. Service Reusability is focused on creating highly isolated services,
whereas Service Composability is focused on creating highly scalable
services
D. Service Reusability is focused on creating generic service logic,
whereas Service Composability is focused on creating services that are
effective participants of multiple service compositions

19
Practice Question 9
• The service orientation design principle which states that the
contract of a service is designed based on a set of rules is
called ______________.

A. Service Autonomy
B. Service Composability
C. Service Reusability
D. Standardized Service Contract

20
Practice Question 9
• The service orientation design principle which states that the
contract of a service is designed based on a set of rules is
called ______________.

A. Service Autonomy
B. Service Composability
C. Service Reusability
D. Standardized Service Contract

21
Practice Question 10
• When applying the Service Loose Coupling design principle,
we want to _____________ the coupling between the service
contract and service consumers and _____________ the
coupling of the service to other services.
• Select the correct answer.

A. Increase, Increase
B. Increase, Reduce
C. Reduce, Increase
D. Reduce, Reduce

22
Practice Question 10
• When applying the Service Loose Coupling design principle,
we want to _____________ the coupling between the service
contract and service consumers and _____________ the
coupling of the service to other services.
• Select the correct answer.

A. Increase, Increase
B. Increase, Reduce
C. Reduce, Increase
D. Reduce, Reduce

23
Practice Question 11
• Which of the following statements correctly explains the difference between the
Service Abstraction and Service Loose Coupling design principles?

A. Service Abstraction is focused on creating highly scalable services, whereas


Service Loose Coupling is focused on the relationship between the service
contract and service consumers
B. Service Abstraction is focused on hiding information about service
implementation details, whereas Service Loose Coupling is focused on the
positioning of the service in relation to other services and service consumers
C. Service Abstraction is focused on dependencies that exist between the
service contract and its underlying logic, whereas Service Loose Coupling is
focused on service logic only in order to establish an abstraction layer
D. There is no difference between these two principles. One principle
name is used instead of the other depending on whether you are building
loose or tight
24
Practice Question 11
• Which of the following statements correctly explains the difference between the
Service Abstraction and Service Loose Coupling design principles?

A. Service Abstraction is focused on creating highly scalable services, whereas


Service Loose Coupling is focused on the relationship between the service
contract and service consumers
B. Service Abstraction is focused on hiding information about service
implementation details, whereas Service Loose Coupling is focused on the
positioning of the service in relation to other services and service consumers
C. Service Abstraction is focused on dependencies that exist between the
service contract and its underlying logic, whereas Service Loose Coupling is
focused on service logic only in order to establish an abstraction layer
D. There is no difference between these two principles. One principle
name is used instead of the other depending on whether you are building
loose or tight
25
Practice Question 12
• Which service orientation design principle would be used to
justify a corporate policy that restricts access to technical
specifications that show design and technology details about
the underlying implementation of a published service?

A. Service Abstraction
B. Service Discoverability
C. Service Autonomy
D. Service Statelessness

26
Practice Question 12
• Which service orientation design principle would be used to
justify a corporate policy that restricts access to technical
specifications that show design and technology details about
the underlying implementation of a published service?

A. Service Abstraction
B. Service Discoverability
C. Service Autonomy
D. Service Statelessness

27
Practice Question 13
• I have a service composition with three services. Service A
retrieves a list of country codes from a database and keeps this
data in memory while interacting with Service B and Service
C. However, because Service A is concurrently invoked many
times, and because each instance of Service A loads its own
copy of the country code data into memory, the demands on
the overall infrastructure become too high, and performance
and reliability are negatively affected.
• Which service orientation principle can be applied to help in
solving this problem?

A. Service Autonomy
B. Service Reusability
C. Service Statelessness
D. Service Abstraction
28
Practice Question 13
• I have a service composition with three services. Service A
retrieves a list of country codes from a database and keeps this
data in memory while interacting with Service B and Service
C. However, because Service A is concurrently invoked many
times, and because each instance of Service A loads its own
copy of the country code data into memory, the demands on
the overall infrastructure become too high, and performance
and reliability are negatively affected.
• Which service orientation principle can be applied to help in
solving this problem?

A. Service Autonomy
B. Service Reusability
C. Service Statelessness
D. Service Abstraction
29
Practice Question 14
• Service Composition A is comprised of 4 services. Service Composition
B is comprised of 6 services. Because both service compositions are
comprised of services from the same service registry, how many total
services the service registry will have?

A. 10
B. 24
C. Based on the information provided, it’s impossible to know how
many services reside in the service registry because we don’t know
how many other service compositions exist
D. Based on the information provided, it’s impossible to know how
many services reside in the service registry because the quantity of
services within a service registry is not determined by the quantity
of services in service compositions

30
Practice Question 14
• Service Composition A is comprised of 4 services. Service Composition
B is comprised of 6 services. Because both service compositions are
comprised of services from the same service registry, how many total
services the service registry will have?

A. 10
B. 24
C. Based on the information provided, it’s impossible to know how
many services reside in the service registry because we don’t know
how many other service compositions exist
D. Based on the information provided, it’s impossible to know how
many services reside in the service registry because the quantity
of services within a service registry is not determined by the
quantity of services in service compositions

31
Practice Question 15
• Which of the following statements is correct?

A. I am going to register my new service in the service registry


because service registration is one of the design principles of
service orientation
B. I am going to register my new service in the service registry
in order to improve the performance of my service oriented
solution
C. I am going to register my new service in the service registry
so that customers can discover it and use it in their service
oriented solutions
D. None of the above

32
Practice Question 15
• Which of the following statements is correct?

A. I am going to register my new service in the service registry


because service registration is one of the design principles of
service orientation
B. I am going to register my new service in the service registry
in order to improve the performance of my service oriented
solution
C. I am going to register my new service in the service registry
so that customers can discover it and use it in their service
oriented solutions
D. None of the above

33
Any Questions?

34

You might also like