Basic Interview Question
Basic Interview Question
A. Explain the interfaces (how mule is involved in the integration & transformation) and APIs
flow of your project. Also, explain the various connectors you have used for the implementation.
A. Based on your experience you can tell either Mule 3.9 or Mule 4.
A. Explain the frontend application which sends the payload to Mule and the backend
application to which the payload is sent.
SOAP API, on the other hand, has an official standard because it is a protocol.
REST APIs use multiple standards like HTTP, JSON, URL, and XML while SOAP APIs
are largely based on HTTP and XML.
SOAP API defines too many standards, and its implementer implements the things in a
standard way only. In the case of miscommunication from service, the result will be the
error. REST API, on the other hand, doesn’t make emphasize on too many standards and
results in corrupt API in the end.
REST API uses Web Application Description Language, and SOAP API used Web
Services Description language for describing the functionalities being offered by web
services.
REST APIs are more convenient with JavaScript and can be implemented easily as well.
SOAP APIs are also convenient with JavaScript but don’t support for greater
implementation.
What is Mule ESB?
Mule ESB is a Java-based enterprise service bus (ESB) and integration platform, a developer can
connect their application with ESB. Mule use service-oriented architecture. Apart from 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 provides a messaging framework that enables the
exchange of data among application.
A. URI parameter is basically used to identify a specific resource or resources whereas a query
parameter is used to sort/filter those resources
Non-functional consistency — The way monitoring and security policies are applied as well as
implemented should be consistent
A flow is the construct within which you link together several individual elements to handle the
receipt, processing, and eventual routing of a message.
A Flow is a sequence of message-processing events. A message that enters a flow may pass
through a wide variety of processors. In the example diagram below, Mule receives the message
through a request-response inbound endpoint, transforms the content into a new format, and
processes the business logic in a component before returning a response via the message source.
A batch job is a top-level element in Mule ESB which exists outside all Mule flows. Batch jobs
split large messages into records which Mule processes asynchronously; just as flows process
messages, batch jobs process records.
A batch job contains one or more batch steps which, in turn, contain any number of message
processors that act upon records.
A batch job executes when triggered by either a batch executor in a Mule flow or a
message source in a batch-accepting input. when triggered, Mule creates a new batch job
instance. When all records have passed through all batch steps, the batch job instance ends and
the batch job result can be summarized in a report to indicate which records succeeded and
which failed during processing.
A. 201
What is Mule Cache Scope and what are its storage types?
Caching in Mule ESB can be done by Mule Cache Scope. Mule Cache Scope has 3 storage types
–
In-memory: This store the data inside system memory. The data stored with In-memory is non-
persistent which means in case of API restart or crash, the data been cached will be lost.
Configuration Properties:
Store Name
Maximum number of entries
TTL (Time to live)
Expiration Interval
Managed-store: This stores the data in a place defined by ListableObjectStore. The data stored
with Managed-store is persistent which means in case of API restart or crash, the data been
cached will no be lost.
1xx Informational.
2xx Success scenarios
3xx Redirection Errors
4xx Client Errors
5xx Server Errors
RAML can be used in a multitude of ways: to implement interactive API consoles, create
documentation, describing an API you are planning to build, and more. Regardless of the name,
RAML can describe APIs that do not follow all of the REST rules
A. Traits are like function and are used to define common attributes for HTTP method (GET,
PUT, POST, PATCH, DELETE, etc) such as whether or not they are filterable, searchable, or
pageable
ResourceType is like a template that is used to specify the descriptions, methods, and parameters
that can be used by multiple other resources without the need to rewrite the duplicate code or
repeating code.
A. VM Transport is for intra JVM communication between Mule flows. We can use VM
transport to communicate with different flows of the same application whereas JMS is used for
communicating with the external applications also.
A. Scheduler, For Each, Logger, Batch (Batch Aggregator, Batch Job, Batch Step), Flow
reference, Transform message, Error handling Routers, Scopes and Transformers. Refer Core
components of Mule
Private flow does not use a source. It can be synchronous or asynchronous based on the
processing strategy selected. Also, has its own exception handling strategy. Allows you to define
different threading profile.
A. Navigate to File > New > API custom policy Project(Beta) in Anypoint Studio
Async Flow: Async Flow is a transactional flow in which the requestor does not wait for the
response from the target service and processes the flow
Async scope: The Async scope is a branch processing block that executes simultaneously with
the main flow. The main flow continues to execute while it initiates and processes the Async
scope
A. Using the Web Service Consumer component. Configure the connector with WSDL or SOAP
web service configuration details like Service name, URL, Binding port, etc.
At first, Create a properties file for each development environment in your application.
Configure a properties placeholder in your app to look for the environment upon launch. Set an
environment variable to point to a specific development environment during application
deployment.