Lecture 4-Service Orientation Design Principles (Continued)
Lecture 4-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. 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?
18
Practice Question 8
• Which of the following statements correctly explains the difference between the
Service Reusability and Service Composability design principles?
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
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?
32
Practice Question 15
• Which of the following statements is correct?
33
Any Questions?
34