Click here to Skip to main content
6,629,885 members and growing! (20,444 online)
Email Password   helpLost your password?
Web Development » ASP.NET » General     Beginner License: The Code Project Open License (CPOL)

SOA Interview questions Part 1

By Shivprasad koirala

Software Architecture Interview Questions (Service oriented architecture Interview questions Part 1)
C# (C# 1.0, C# 2.0, C# 3.0), VB (VB 7.x, VB 8.0, VB 9.0, VB 6), SQL, UML, .NET (.NET 1.0, .NET 1.1, .NET 2.0, Mono, DotGNU, .NET 3.0, .NET 3.5), ASP, ASP.NET, SQL Server (SQL 2000, SQL 2005, SQL CE), Visual Studio (VS.NET2003, VS2005, VS2008), ADO, ADO.NET, XAML, Oracle, SAP, Architect, Design, Marketing
Posted:14 Aug 2008
Views:26,753
Bookmarked:48 times
Unedited contribution
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
13 votes for this article.
Popularity: 3.79 Rating: 3.40 out of 5
4 votes, 30.8%
1

2
1 vote, 7.7%
3
3 votes, 23.1%
4
5 votes, 38.5%
5
Title:     SOA Interview questions Part 1
Author:      Shivprasad Koirala 
Email:       shiv_koirala@yahoo.com
Language:    UML
Level:       Beginner
Description: Software Architecture Interview Questions

SOA ( Service oriented architecture Interview questions Part 1)


(B) What is SOA?

(I) In SOA do we need to build systems from scratch?

(I) Can you explain business layers and plumbing layers in SOA?

(I) what’s the difference between services and components?

(A) Can you describe the complete architecture of SOA?

(I) Can you explain a practical example in SOA?

(I) What are ends, contract, address, and bindings?

(I) Are web-services SOA ?

Introduction

In my previous section we had concentrated on design patterns and UML which is one of the most important fundamentals for architecture interviews. One of the other areas other than both of them which needs to be stronger for architects is understanding of SOA.

Again i repeat do not think you get an architecture position by reading interview questions. But yes there should be some kind of reference which will help you quickly revise what are the definition. Just by reading these answers you get to a position where you are aware of the fundamentals. But if you have not really worked you will surely fail with scenario based questions. So use this as a quick revision rather than a shot cut.

To give you a practical understanding i have put all these design patterns in a video format and uploaded on http://www.questpond.com/FreeDesign1.htm . You can visit http://www.questpond.com and download the complete architecture interview questions PDF which covers SOA , UML , Design patterns , Togaf , OOPs etc.

Previous parts of Architecture Interview questions

You can download the software architecture interview questions PDF

Download Software Architecture Interview Questions

Part 1 - SoftArchInter1.aspx

Part 2 - SoftArch2.aspx

Part 3 - SoftArch3.aspx

Part 4 - SoftArch4.aspx

UML interview questions part 1 SoftArch5.aspx

Happy job hunting......

(B) What is SOA?

SOA stands for service oriented architecture. Before we define SOA lets first define a service. In real world service is what we pay for and we get the intended service. For instance you go to a hotel and order food. Your order first goes to the counter and then it goes to the kitchen where the food is prepared and finally the waiter serves the food.


Figure: - Hotel and services


So in order to order a item from a hotel you need the three logical departments / services to work together (counter, kitchen and waiter).

In the same manner in software world these services are termed as business services. They are self contained and logical. So let’s first define a business service, SOA definition will be just an extension of the same.

Definition of business service: - It’s a logical encapsulation of self contained business functionality.
For instance figure ‘order system’ shows a simple ordering system which is achieved by different services like payment gateway, stock system and delivery system coming together. All the services are self contained and logical. They are like black boxes. In short we do not need to understand the internal details of how the business service works. For the external world it’s just a black box which takes messages and serves accordingly. For instance the ‘payment gateway’ business service takes message ‘check credit’ and gives out output does the customer have credit or not. For the ‘order system’ business service ‘payment gateway’ service is a black box.

Figure: - Order system


Now let’s revise some bullet points of SOA before we arrive to a definition of SOA.

SOA components are loosely coupled. When we say loosely coupled means every service is self contained and exist in alone logically. For instance we take the ‘payment gateway’ service and attach it to a different system.
SOA services are black boxes. In SOA services hide there inner complexities. They only interact using messages and send services depending on those messages. By visualizing services as black boxes services become more loosely coupled.
SOA service should be self defined: - SOA services should be able to define themselves.
SOA Services are maintained in a listing: - SOA services are maintained in a central repository. Applications can search the services in the central repository and use them accordingly.
SOA components can be orchestrated and linked to achieve a particular functionality. SOA services can be used/orchestrated in a plug and play manner. For instance figure ‘Orchestration’ shows two services ‘Security service’ and ‘Order processing service’. You can achieve two types of orchestrations from it one you can check the user first and then process order or vice-versa. Yes you guessed right using SOA we can manage work flow between services in a loosely coupled fashion.

Figure: - Orchestration

So lets define SOA.

SOA is a architecture for building business applications using loosely coupled services which act like black boxes and can be orchestrated to achieve a specific functionality by linking together.

(I) In SOA do we need to build systems from scratch?


No. If you need to integrate or make an existing system as a business service, you just need to create loosely coupled wrappers which will wrap your custom systems and expose the systems functionality in generic fashion to the external world.

(I) Can you explain business layers and plumbing layers in SOA?


In SOA we can divide any architecture in two layers. The first which has direct relevance to business as it carries out business functions. The second layer is a technical layer which talks about managing computer resources like database, web server etc. This division is needed to identify a service. Consider the figure ‘Simple order system’. It has various components which interact with each other to complete the order system functionality.

Figure: - Simple order System

The simple order system can be divided in to two layers (see figure ‘business and plumbing layer’ one which is business related and second which is more technical related. You can see the plumbing layer consisting of data access layer , AJAX , yes more of technical stuff.

Figure: - Business layer and plumbing layer

(I) what’s the difference between services and components?


Services are logical grouping of components to achieve business functionality. Components are implementation approaches to make a service. The components can be in JAVA, C#, C++ but the services will be exposed in a general format like Web Services.

(A) Can you describe the complete architecture of SOA?


Figure ‘Architecture of SOA’ shows a complete view of a SOA. Please note this architecture diagram is not tied up with implementation of Microsoft, IBM etc. It’s a general architecture. Any vendor who implements SOA needs to fulfill the below SOA components. How they do it is completely their own technological implementation.

Figure: - Architecture of SOA


The main goal of SOA is to connect disparate systems. In order that these disparate system work they should messages to each other. ESB (Enterprise service bus) acts like a reliable post office which guarantees delivery of messages between systems in a loosely coupled manner. ESB is a special layer which delivers messages between applications. In the figure we have shown a huge plump pipe. It’s not hardware or some wire etc. It’s a group of components/software which helps you to send and receive messages between the disparate applications. Do not try to code your own ESB, you can think of buying one from Microsoft, IBM, Oracle, progress etc.

SOA registry is like a reference database of services. It describes what each services do, where are they located and how can they communicate. It’s a central reference of meta-data for services.

SOA workflow allows us to define work flow using the services in SOA registry. We will read more about BPM in the further questions.

Service broker reads the work flow and takes services from the SOA registry and ties them together. Service brokers are normally middleware like EAI (Enterprise application Integration) products. You can get a list of decent EAI from Sun, Microsoft, and IBM etc.

Process manager is nothing but the collection of SOA registry, SOA workflow and service broker.

SOA supervisor is traffic cop ensuring that services do not have issues. It deals mainly with performance issues of the system so that appropriate service levels are met. If any of the services have performance problems it sends messages to the proper infrastructure to fix the issue.

Note: - The above explanation is of general architecture for SOA. Any vendor (Microsoft, IBM, SUN etc) who gives solution for SOA should have the above components in some or other manner. As this is a Software architecture book, we will not be covering specific vendor implementation. We would advise the reader to map the same to their vendor products for better understanding.


(I) Can you explain a practical example in SOA?

(I) What are ends, contract, address, and bindings?


These three terminologies on which SOA service stands. Every service must expose one or more ends by which the service can be available to the client. End consists of three important things where, what and how:-

Contract (What)
Contract is an agreement between two or more parties. It defines the protocol how client should communicate with your service. Technically, it describes parameters and return values for a method.
Address (Where)
An Address indicates where we can find this service. Address is a URL, which points to the location of the service.
Binding (How)
Bindings determine how this end can be accessed. It determines how communications is done. For instance, you expose your service, which can be accessed using SOAP over HTTP or BINARY over TCP. So for each of these communications medium two bindings will be created.

Below figure, show the three main components of end. You can see the stock ticker is the service class, which has an end hosted on www.soa.com with HTTP and TCP binding support and using Stock Ticker interface type.

Figure: - Endpoint Architecture


Note: - You can also remember the end point by ABC where A stands for Address, B for bindings and C for Contract.


(I) Are web-services SOA ?


SOA is a thinking, it’s an architectural concept and web service is one of the technical approach to complete it. Web services are the preferred standards to achieve SOA.

• In SOA we need the services to be loosely coupled. A web service communicates using SOAP protocol which is XML based which is very loosely coupled. It answers the what part of the service.
• SOA services should be able to describe themselves.WSDL describes how we can access the service.
• SOA services are located in a directory.UDDI describes where we can get the web service. This nothing but implementation of SOA registry.

Other Interview question PDF's

.NET Interview Question PDF

Project Management interview questions

Download Networking Interview Questions

Download Software Testing Interview Questions

Download Sql Server Interview Questions

Download C# and ASP .Net Projects

Download Java Interview Questions

Download Software Architecture Interview Questions

Download Excel Question and Answers

Download HINDI Excel Question and Answers

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Shivprasad koirala


Member
He thinks he was born for only one mission and thats technology.Keeping this mission in mind he established www.questpond.com where he has uploaded 500 videos on WCF,WPF,WWF,Silverlight,Design pattern, FPA , UML , Projects etc. He is also actively involved in RFC which is a financial open source made in C#. It has modules like accounting , invoicing , purchase , stocks etc.
Occupation: Architect
Company: http://www.questpond.com
Location: India India

Other popular ASP.NET articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 9 of 9 (Total in Forum: 9) (Refresh)FirstPrevNext
General[Message Deleted] PinmemberSinov14:11 23 Jun '09  
GeneralRe: Really garbage ? PinmemberShivprasad koirala16:11 23 Jun '09  
GeneralGarbage... PinmvpDave Kreskowiak6:15 15 Apr '09  
GeneralRe: Garbage... PinmemberShivprasad koirala19:22 15 Apr '09  
GeneralRe: Garbage... PinmvpDave Kreskowiak2:34 16 Apr '09  
JokeRe: Garbage... PinmemberMember 48046906:23 21 Apr '09  
GeneralRe: Garbage... PinmvpDave Kreskowiak6:53 21 Apr '09  
GeneralRe: Garbage... PinmemberShivprasad koirala15:27 21 Apr '09  
GeneralRe: Garbage... PinmvpDave Kreskowiak17:55 21 Apr '09  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 14 Aug 2008
Editor:
Copyright 2008 by Shivprasad koirala
Everything else Copyright © CodeProject, 1999-2009
Web17 | Advertise on the Code Project