Blog

Mule ESB Interview Question And Answers

  • (5.0)
  • | 29144 Ratings

If you're looking for MuleSoft Interview Questions for Experienced & Freshers, you are at right place. There are lot of opportunities from many reputed companies in the world. According to research MuleSoft has a market share of about 5.9%. So, You still have opportunity to move ahead in your career in Mule ESB. Mindmajix offers advanced MuleSoft Interview Questions that helps you in cracking your interview & acquire dream career.

Learn how to use MuleSoft, from beginner basics to advanced techniques. Enroll for Free Mule ESB Training Demo!

Q. What is Mule ESB?
Mule ESB is a Java-based enterprise service bus (ESB) and integration platform, developer can connect their application with ESB. Mule use service oriented architecture. Apart from of the different technologies the applications use, including JMS, Web Services, SMTP, HTTP. The advantage of ESB, it’s allow communicate different application. Messages can be any format SOAP to JSON. Mule ESB Development provide messaging framework that enable exchange of data among application.

Q. Why Mule ESB?
Mule ESB is lightweight integration framework but highly scalable, allowing you to start small application and connect multiple applications. Mule manages all the interactions between applications and components transparently, ESB will take care of the multiple application, we can easily integrate third party application using Mule.

Q. What are the Features of Mule ESB?
An ESB is a used for integration using a service-oriented approach. Its main features are:

  • Set of Service Container
  • Message Transformation Service
  • Message Routing Service
  • Web Service Security 

Q. What are different types of Primitives used in Mediation?
These are the different types of primitives in mediation:

  1. Message Filter
  2. Type Filter
  3. Endpoint Lookup
  4. Service Invoke
  5. Fan-out
  6. Fan-in
  7. XSLT
  8. BO Map
  9. Message Element Setter
  10. DB lookup
  11. Data Handler
  12. Custom Mediation
  13. Header Setters
  14. Message Logger
  15. Even Emitter
  16. Stop
  17. Fail
  18. Sub Flow

Q.What are various types of Exception Handling?

  1. Choice Exception Handling.
  2. Catch Exception Handling.
  3. Rollback Exception Handling.
  4. Global Exception Handling.
  5. Default Exception Handling.

Q. What is Shared Resource in Mule and how they have been used?
We can make connectors as an reusable component by defining them as common resources and expose them to all applications deployed under a same domain, these resources are known as shared resources. These shared resource needs to be defined inside Mule Domain Project and then referred to each of the projects that are meant to use the elements in it.

Q. What are the different ESBs in the market?
There are various ESB's available in the market. Some are opensource, some licenced:
  1. Talend
  2. Mule ESB
  3. JBoss Fuse ESB

Q. Various types of variables in mule?

  1. Record Variable.
  2. Flow Variable.
  3. Session Variable.

Q. What is the defination of Web Services?
Web service is a function or program in any language that can be accessed over HTTP. Message format can be XML or JSON or any other program as long as the other programs can understand and communicate. Any web service has server-client relationship. Web services can be synchronous or asynchronous. Any web service can have multiple clients.

Q. How to find when the project needs ESB?
ESB implementation is not suitable for all projects. Proper analysis should be done if the use of ESB will really benefit the project.

Some of the points to be considered while analyzing the need of ESB are as follows:

  • If project requires integrating 3 or more applications/services. If the need is to communicate between two applications, using point-to-point integration would suffice.
  • If the project would need to be scaled in future where it might be needed to interact with more services in future. Not all projects need this as they may perform not that big a task.
  • If the project needs message routing capabilities such as forking and aggregating message flows. Such features are not required by all projects.
  • Is the architecture of what is to be achieved clear. Its much better to do simple POCs integrating small parts to evaluate the benefits.
  • Most ESBs are a costly affair. Does the project budget allow use of ESB.

Q. What are the different types of Flow Processing Strategies?
There are six different types of Flow Processing Strategies. They are

  1. Asynchronous Flow Processing Strategy.
  2. Custom Processing Strategy.
  3. Thread Per Processing Strategy.
  4. Queued Asynchronous Flow Processing Strategy.
  5. Synchronous Flow Processing Strategy.
  6. Non-blocking Flow Processing Strategy.
  7. Queued Flow Processing Strategy.

Check Out Mule ESB Tutorials

Q. How to create and consume SOAP service in Mule?
Creating SOAP Service – We can create a SOAP service same as we create Mule Project With RAML, the only change is instead of RAML we need to import Concert WSDL.
Consuming SOAP Service – We can use Web Service Consumer or CXF component in our mule flow to access/consume SOAP service.

Q. Explain ESB Integration core principles?
Transformation - Data transformation between canonical data formats and specific data formats required by each ESB connector.
Transportation - Transport protocol negotiation between multiple formats. Such as HTTP, JMS, JDBC.
Mediation - Providing multiple interfaces for the purpose of a) supporting multiple versions of a service for backwards compatibility or alternatively, b) to allow for multiple channels to the same underlying component implementation. This second requirement may involve providing multiple interfaces to the same component, one legacy interface (flat file) and one standards compliant (SOAP/XML) interface.
Non-functional consistency - For a typical ESB initiative, this can include consistency around the way security and monitoring policies are applied and implemented.

Mule ESB Interview Questions For Experienced:

Q. How to select an ESB?
Usability: How complicated is the installation process? The learning curve of the ESB should not be long.
Maintainability: How to monitor the product? If any GUI terminal is available for monitoring the services.
Community: Is there active community for the ESB. Various discussion forums, tutorials etc.
Enterprose Support- Is the product support reliable. What services are available.
Flexibility: Can the ESB be configured to meet the business requirements.
Reliability: The reliablity of the ESB. Its current users and various case studies if available.
Cost: The cost of the ESB. Its Licence policies. Support cose. etc.

Q. What are the advantages of using an ESB?
Provides a way for end points to connect to each other without having to directly talk to each other. It simplifies the communications for the end points as they only have to conform to a standard communication interface, the bus.

An ESB provides a single place to get some key end point metrics: frequency, availability, and performance.

An ESB tends to provide more than one communication interface. However, a developer only needs to choose the easiest one to get and receive the data from the bus.

Q. What is REST?
REST stands for Representaional State Transfer or RESTful web service. REST is a client-server architecture which means each unique URL is representation of some object or resource. Any REST API developed uses HTTP methods explicitly and in a way that’s consistent with the protocol definition. This basic REST design principle establishes a one-to-one mapping between create, read, update, and delete (CRUD) operations and HTTP methods. According to this mapping:

1. To create a resource on the server, use POST.
2. To retrieve a resource, use GET.
3. To change the state of a resource or to update it, use PUT.
4. To remove or delete a resource, use DELETE.

Q. What is RAML and why we use it?
RAML – REST ful API Modeling Language
RAML is similar to WSDL, it contains endpoint URL, request/response schema, HTTP methods and query and URI parameter.

RAML helps client (a consumer of the service) know, what the service is and what/how all operations can be invoked.

RAML helps the developer in creating the initial structure of this API. RAML can also be used for documentation purpose.

Q. What are the Message Sources in Mule ESB? 
Message sources in Mule are usually Anypoint Connectors, elements which provide connectivity to a specific external source, either via a standard protocol (such as HTTP, FTP, SMTP) or a third-party API (such as Salesforce.com, Twitter, or MongoDB).

Explore Mule ESB Sample Resumes! Download & Edit, Get Noticed by Top Employers!Download Now!

Q. What is the difference between ESB and JMS? 
ESB provides the middleware and interfaces that allow businesses to connect their applications without writing code.

JMS provides messaging capability and facilitates communication between the modules/applications.

Q. Why the Mulesoft is preferred than other ESB implementations? 
Mule is lightweight but highly scalable, allowing you to start small and connect more applications over time. The ESB manages all the interactions between applications and components transparently, regardless of whether they exist in the same virtual machine or over the Internet, and regardless of the underlying transport protocol used.

Several commercial ESB implementation provide limited functionality or built on top of an existing application server or messaging server, locking you into that specific vendor. Mule is vendor-neutral, so different vendor implementations can plug in to it. You are never locked in to a specific vendor when you use Mule.