Service Oriented Architecture Interview Questions And Answers

1). What is SOA?

Ans)Service Oriented Architecture (SOA) is used to develop Enterprise applications by using a collection of services which communicates each other. Service-Oriented Architecture (SOA) is a set of principles and methodologies for designing and developing software in the form of inter operable services.


2).What is the SOA Suite 11g Components?

Ans)Oracle Adapters
Oracle Mediator
Business Events and Events Delivery Network
Oracle Business Rules
Human Workflow
Oracle Business Activity Monitoring
Oracle Enterprise Manager


3). What are the different design patterns in SOA?

Ans)Synchronous
Asynchronous Fire and Forget
Asynchronous Delayed Response.


4).Enlist the Principles of SOA?

Ans)1. Loose coupling
2. Re-usability
3. Interoperability
4. Flexible


5).What is singleton Property in SOA?

Ans) In the clustered environment when the processing of the message should happen via only one SOA managed server, then the property singleton needs to be defined at the adapter level.


6).What is SCA?

Ans)Service Component Architecture (SCA) provides a programming model for building applications and systems based on a Service Oriented Architecture. SCA is a model that aims to encompass a wide range of technologies for service components and for the access methods which are used to connect them.


7). What is SOA governance? What are its functions?

Ans)Service-Oriented Architecture (SOA) governance is a concept used for activities related to exercising control over services in an SOA Some key activities that are often mentioned as being part of SOA governance are:
Managing the portfolio of services: This includes planning development of new services and updating current services.
Managing the service lifecycle: This is meant to ensure that updates of services do not disturb current services to the consumers. Using policies to restrict behavior: Consistency of services can be ensured by having the rules applied to all the created services. Monitoring performance of services: The consequences of service downtime or underperformance can be severe because of service composition. Therefore action can be taken instantly when a problem occurs by monitoring service performance and availability.


8).What is the difference between 10g and 11g?

Ans)SCA architecture was followed in 11g and not in 10g

In 11g you can put all your project SOA components in composite.xml file and deploy as a single deployment unit to single server, where in 10g you have to deploy each component to the respective server (i.e. ESB to ESB server, BPEL to BPEL Server)

Basically all the SOA components like BPEL, ESB (Called Mediator in 11g), & OWSM are brought into one place in 11g using SCA composite concept.

The major difference between 10g & 11g would be the app server container. 10g by default runs onOC4J while 11g runs on Web logic Server.

In 10g every BPEL is a separate project, but in 11g several components can make 1 project as SCA.

In 10g consoles are separate for BPEL and ESB, but in 11g Enterprise Manager contains all.

In 10g BAM and business rules are outside SOA Suite, but in 11g they are in SOA Suite.


9).Is Oracle SOA same as Oracle Fusion Middleware?

Ans)No because SOA is one of the parts in Fusion middleware and SOA behaves like user interface where as Fusion is big platform


10).What is choreography? How does it differ from orchestration?

Ans)In choreography there is no business process to control the integration between the systems; each system will directly integrate with one another in sequence where as in Orchestration there is a business process which controls all the services (source/Target) which is part of the integration.


11). In how many ways can a process be deployed?

Ans) 1. Using Jdeveloper
2. Through Enterprise Manger Console
3. Through Weblogic Scripts.


12).What is MDS?

Ans)MDS –Metadata Store

Wsdl and Schemas to be used in the process can be published to the MDS and get it used in the code by referring the artifacts from the MDS

Advantages:

1. JAR (Deployment unit) size will be reduced.

2. Duplication of the artifacts can be avoided between the services.


13).What is Dehydration store?

Ans)Dehydration store is the database where the instances get stored when it gets dehydrated by the process on the occurrence of non-idempotent activities and also stores the information on the long running processes.


14).What is Decision service?

Ans)Oracle SOA Suite provides support for Decision components that support Oracle Business Rules. A Decision component is a mechanism for publishing rules and rule sets as a reusable service that can be invoked from multiple business processes. These rules can be changed without redeploying the code.


15).What are DVM’s and how are they helpful in SOA?

Ans) DVM-Domain Value Map is static mappings between a source and target system which can be used in transformations. The value can be changed via SOA composer.


16).What is the difference between XREF and DVM?

Ans)XREF- It is dynamic since the values to the XREF can be populated dynamically and it is stored in XREF_DATA table in SOA Dehydration store.
DVM- Domain Value Map is static mappings between a source and target system which can be used in transformations.


17). How to increase the transaction timeouts in SOA?

Ans)For the transaction timeout needs to be increased, all the below settings timeout value needs to be changed to the expected Timeout value.
1. JTA
2. Engine Bean
3. Delivery Bean


18) Is it possible to use MS SQL Server as dehydration store with SOA Suite ?if yes how?

Ans) Yes it is possible.
To automatically maintain long-running asynchronous processes and their current state information in a database while they wait for asynchronous callbacks, you use a database as a dehydration store. Storing the process in a database preserves the process and prevents any loss of state or reliability if a system shuts down or a network problem occurs. This feature increases both BPEL process reliability and scalability. You can also use it to support clustering and failover.


19).Why we use BPEL and OSB?

Ans)OSB is the light-weight service bus wherever there is not much business logic involves and there is need to just get the message routed between the systems OSB is used where as when there is more business logic involves in the process, then BPEL will be used.


20).What is a XA data source? How it differs from a non-XA data source?

Ans) An XA transaction involves a coordinating transaction manager, with one or more databases (or other resources, like JMS) all involved in a single global transaction. Non-XA transactions have no transaction coordinator, and a single resource is doing all its transaction work itself (this is sometimes called local transactions).


21).How can we secure our web services using Oracle SOA Suite?

Ans) When accessing the services should be restricted to the group,then service should be secured via WSM (Web service Manager).


22).How to deploy an XSL file without deployment of BPEL Process?

Ans) We will directly deploy the XSLT, options: –
1. Using ANT script by file replacement in TMP folder.
2. By creating a folder in BPEL PM Installation folder and specifying its location in our BPEL code with http call and replacing our xslt to that location.


23).What is HA File and FTP Adapters?

Ans)In the clustered environment, File and FTP adapters should be used as HA (High-Availability) Inbound: It is controlled by Control Files and avoids the race between the manages servers in reading the files where the reference of the files read by the managed servers will be maintained in the control directory. Outbound: It is controlled by DB Mutex table exist in the SOA dehydration store and this avoids duplicated been written to the same file when all the managed servers in the clusters process the same messages.


24).What is a pick activity? Can I have a pick activity with no onMessage branch?

Ans)Pick activity picks the messages from service (Source) which has multiple operations or the BPEL process needs to receive the messages from multiple source system. Pick activity should have at least on Message branch.


25).What is a flow activity? What is a flowN activity and how does it leverages the flow activity?

Ans)Flow activity is used, when parallel execution of the flow is needed and to use this property “non blocking invoke should be set as true “at the partner link level and no. of execution of parallel flow is defined and static. Where as in Flown the no. of execution of parallel flow is not static and it is determined during run time.


26).What do you mean by non-idempotent activity? Which all activities are non-idempotent by default?

Ans) Activities like Pick, Wait, receive, reply and checkpoint() are called non-Idempotent activity and during the execution of the process whenever these activities are encountered then it gets dehydrated to the dehydration store.


27). What are dspMaxThread and recieverThread properties? Why are they important?

Ans)Receiver Threads property specifies the maximum number of MDBs that process Async across all domains. Whereas the dspMaxThread are the maximum number of MDBs that process Async and threads that operate across a domain. So, we need to ensure that the dspMaxThread value is not greater than Receiver Threads.


28).When u will go for Sync process?

Ans)Whenever the services returns the response in few seconds, it is recommended to go for synchronous BPEL process if not the BPEL process should be Asynchronous the reason is calling application can’t proceed further in case of synchronous process.


29).What is a syncFileRead operation? Is a inbound or a outbound operation? Can my process begin with syncFileRead operation?

Ans) When file has to be read in the mid of the BPEL process, then we will use syncFileRead Operation, means some process should initiate the file read process and it is an outbound operation and process can’t begin with Sync File read.


30).Can we use a File Adapter to get a file without reading its content?

Ans)Yes, by selecting the Do not read file content check box in the Jdeveloper wizard while configuring the “Read operation.”


31). How can we embed or use a java code in BPEL?

Ans)Using JAVA embedding activity in BPEL, Java code can be embedded in BPEL and can be used.


32).What is a nonBlockingAll property?

Ans) Non- blocking invoke is used when Parallel flow needs to be executed where new thread will be created for each invoke a activity and which will execute simultaneously.


33).What is getPreference property? How do we set it and what advantage it provides?

Ans)Hard coding is not a good practice, so to avoid hard coding preference variable can be used and the value of the preference variable is accessed using getPreference().The preference variable value can be changed without re-deploying the code via em console MBean property.


34).How can we improve the performance of an XSL file?

Ans)By avoiding use of various if statements and using choose and by using for-each group in place of for-each.


35). How do we handle transactions in BPEL?

Ans)Property needs to be defined to start the new transaction or to continue with the same transactions Property Name: Transaction and if this has value as required then the BPEL process will be continued in the same transaction where as if the value is defined as requiresnew then it will start the new transaction.


36).What are transient and durable BPEL processes?

Ans)Durable:-It is long running process and initiated through a one-way invocation and do incur one or more dehydration points in the database during execution Ex: Asynchronous Transient:-It is short-lived process, request-response style processes and do not incur dehydration during their process execution Ex: Synchronous.


37).How does pick activity differ from a receive activity?

Ans)Pick activity can act as a multiple receive activity in some business scenarios. If we have two inbound operations and both can trigger the bpel process then we will go with pick activity as we can’t have two receive activity with create Instance box checked.


38).How can we make a partner link dynamic?

Ans)If we have to send the request to different service which has the same wsdl then dynamic partner link will be used and using addressing schema we can set the endpoint dynamic to send the request to the desired service.


39).How does a Async request run in the backend?

Ans)The sequences of events involved in the delivery of invoke messages is as follows:
The client posts the message to the delivery service.
The delivery service saves the invocation message to the dlv_message table. The initial state of the message is 0 (undelivered).
The delivery service schedules a dispatcher message to process the invocation message asynchronously.
The dispatcher message is delivered to the dispatcher through the afterCompletion() call.
Therefore, the message is not delivered if the JTA transaction fails.
The dispatcher sends the JMS message to the queue. Places a very short JMS message in the in-memory queue (jms/collaxa/BPELWorkerQueue) in OC4J JMS. The small JMS message triggers the Worker Bean in the downstream step.
This message is then picked up by a Worker Bean MDB, which requests the dispatcher for work to execute. If the number of Worker Bean MDBs currently processing activities for the domain is sufficient, the dispatcher module may decide not to request another MDB.
MDB fetches the invocation message from the dispatcher.
MDB passes the invocation message to Oracle BPEL Server, which updates the invocation message state to 1 (delivered), creates the instance, and executes the activities in the flow until a breakpoint activity is reached.


40).Why we need SOA?

Ans) Service is the important concept. Services can be published, discovered and used in a technology neutral, standard form by the set of protocols of the web services. Other than being just architecture, SOA is the policies, practices, and frameworks by which it is ensure the right services are provided and consumed. It becomes critical to implement processes that ensure that there are at least two different and separate processes— one for provider and the other for consumer, using SOA. The Business Service Bus is starting point for developers that guide them to a coherent set that has been assembled for their domain. This is better than leaving developers to discover individual services and put them into context


41).Challenges faced in SOA adoption?

Ans)One of the challenges faced by SOA is managing services metadata. Second biggest challenge is the lack of testing in SOA space. Another challenge is providing appropriate levels of security. Interoperability is another important aspect in the SOA implementations. Vendor hype concerns SOA because it can create expectations that may not be fulfilled.


42).What is SOA governance? What are its functions?

Ans)Service-Oriented Architecture (SOA) governance is a concept used for activities related to exercising control over services in an SOA Some key activities that are often mentioned as being part of SOA governance are:
Managing the portfolio of services: This includes planning development of new services and updating current services.
Managing the service lifecycle: This is meant to ensure that updates of services do not disturb current services to the consumers.
Using policies to restrict behavior: Consistency of services can be ensured by having the rules applied to all the created services.
Monitoring performance of services: The consequences of service downtime or under-performance can be severe because of service composition. Therefore action can be taken instantly when a problem occurs by monitoring service performance and availability.


43).What are the Business Benefits of Service Oriented Architecture?

Ans)SOA can help businesses respond more quickly and economically to changing market conditions. SOA can be considered an architectural evolution. It captures many of the best practices of previous software architectures. The goal of separating users from the service implementations is promoted by SOA. The goals like increased interoperability, increased federation and increased business & technology domain alignment can be achieved by SOA due to its architectural and design discipline. SOA is an architectural approach for constructing complex software-intensive systems from services. SOA realizes its business and IT benefits through utilizing an analysis and design methodology when creating services.


44).What are the IT Benefits of Service-Oriented Architecture?

Ans)IT benefits of SOA are:
The ability to build composite applications is provided.
Business services are offered across thvided
Provides truly real-time decision-making applications.
Reliability is enhanced
It is not necessary that Services be at a particular system or network
The approach is completely loosely coupled
Hardware acquisition costs are reduced
At every level there’s Authentication and authorization support
Existing development skills are leveraged
Provides a data bridge between incompatible technologies
The search and connectivity to other services is dynamic

45).Is Oracle SOA same as Oracle Fusion Middleware?

Ans)No because SOA is one of the parts in Fusion middleware and SOA behaves like user interface where as Fusion is big platform


46).What is SCA?

Ans)Service Component Architecture (SCA) provides a programming model for building applications and systems based on a Service Oriented Architecture. SCA is a model that aims to encompass a wide range of technologies for service components and for the access methods which are used to connect them.


47). What is the SOA Suite 11g Components?

Ans) Oracle Adapters
Oracle Mediator
Business Events and Events Delivery Network
Oracle Business Rules
Human Workflow
Oracle Business Activity Monitoring
Oracle Enterprise Manager


48).What is choreography? How does it differ from orchestration?

Ans)In choreography there is no business process to control the integration between the systems; each system will directly integrate with one another in sequence where as in Orchestration there is a business process which controls all the services (Source/Target) which is part of the integration.


49).What are the different design patterns in SOA?

Ans)Synchronous
Asynchronous Fire and Forget
Asynchronous Delayed Response.


50).In how many ways can a process be deployed?

Ans)Using Jdeveloper
Through Enterprise Manger Console
Through Weblogic Scripts.