MuleSoft Interview Questions Answer
MuleSoft Interview Questions Answer
How you start the Flow when you get the requirement? what are factors you will consider?
When we start the new flow, we will consider the following.
What’s the source system?
What’s the target system?
What’s the mapping when we need to while connecting the system?
What data format we need to change
What’s the file size and do we need to batch
Serial processing / concurrent processing required
How do we need to handle error?
Explain about the Data wave, have you used Java coding in Data wave?
Dataweave is MuleSoft expression language for accessing and transforming data that travels through a Mule app.
This helps to modify and process the data.
How you validate the RAML and Explain about the RAML Flow?
When we actually create project using RAML file in any point studio, it also creates the API console and REST router kit. Whenever request received to
the flow, it goes to the api console and validate the configuration what we have specified in the RAML specification.
Have you used Java in your project? where you have used
For Existing methods which already developed.
What is Scatter-Gather?
Scatter gather, receive the requests and it sends the same data /payload to all flows which are available in the scatter gather scope and its works in parallel.
Fragments:
API fragmentation used to specific/create the reusable blocks, so that same fragments can be referred from the multiple flow.
RAML
What is traits in RAML?
Fragments: Instead of including all code in one RAML file, you can modularize it and compose it of reusable fragments (examples).
Traits: Traits is like function and is 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.
Traits can be called by resources using the "is" keyword.
is: [responseMessage]
more details available at https://dzone.com/articles/understanding-resourcetypes-and-traits-with-raml
we can make a flow to process in single thread, there is an option to define the Max Concurrency you can configure the same as 1 to process
only one message at a time
on-error-continue and on-error-propagate.
Batch Aggregator scope is used to accumulate a subset of records from a batch step and process them to external source or service for example rather than
processing single record to target system you can use batch aggregate to process all the records at once
Anypoint Exchange provides the benefit of being able to discover, share, and incorporate assets and resources into your applications.
What are the different types of APIs in API led architecture
Experience API
Process API
System API
What is Cloudhub?
Cloudhub is an (IPass) Integrated platform as a service which is multitenant, secure, highly available service where we can deploy our integration application on
also integrate on-premise application with cloud services
Transformation
Mediation
Choice Router dynamically routes messages using a flow. It is based on a set of DataWeave expressions to evaluate the message content.
What is API?
APIs provides product or service to communicate with other products and services without having to know how they're implemented.
Private Flow: a flow that does not have source. This means a private flow cannot start of its own on receiving the inbound message as it does not
have an inbound connector, A private flow can only be called using flow-ref same as sub-flow.
Transform Message
A transformer takes care of translating the content of a message from one form to another.
Fast
Different data format like XML, JSON
Language and platform independent.
In the Mule project where the package dependencies details are stored.
POM. XML file
What is Munit?
MUnit is a Mule application testing framework that allows you to easily build automated tests for your integrations and APIs.
How do you draw architecture diagram in your enterprise and what are the diagram which you draw
• Tools: Confluence – Gliffy diagram , Archimate, Draw.io, SmartDraw
• Diagrams: Sequence, Flow, Activity, Deployment
What is connector?
Connector is a module which talks to external system. If its not available in the module, then it needs to be download it from Exchange. Its
better to download it from Exchange, so that we can get the latest version.
What is DataSense ?
Data Sense is a feature of Anypoint Studio that uses Mule event metadata to help you design applications. Rather than forcing you to manually
discover this metadata, Anypoint Studio automatically acquires it so that you can map or use this data in your application.
How will you get the current date/time in Data weave (DW)
now()
Sample result : "2020-09-17T04:39:45.129Z"
For more videos->https://www.youtube.com/c/TechLightning
What is Thru MFT
Thru MFT is third party Managed File transfer framework certified by Mule Soft. We can use Thru MFT connector to send/receive the files Thru MFT
for processing.
Why Socket module gets added by Default while creating new project.
It needs by HTTP
AnyPoint Visualizer
Displays views of different aspects of an application network graph. You can use the graph to explore your application network. To see how
the transaction going inside your application.
CloudHub Workers
Applications on CloudHub are run by one or more instances of Mule, called workers. Each worker is a dedicated instance of Mule that runs
your integration application. We can specify worker size (0.1vcore = 500 MB Heap memory, 8 GB storage)
What is the difference – mule3 vs mule4? This question might come when you worked in both version!
Mule event structure got changed
Variables (flow, session, record var) changed to 1 variable.
Mule3 – we use enricher, and Mule4 it is target variable
We are using post method to send the data to mule flow from restclient/postman, but we are not sending any data in the payload
while sending the request ? What will happen to your flow?
Mule flow will receive your request with empty payload and also with other http related attributes/headers
Mule flow is defined to accept only post method. But source is sending the request to your endpoint using get method.
Method not allowed for endpoint: <endpoint name> with http status 405 Method Not allowed.
For more videos->https://www.youtube.com/c/TechLightning
How to do string to integer conversion and send it back to source as integer ?
%dw 2.0
output application/json
---
{
"inta" : attributes.queryParams.inta ,
"intb" : attributes.queryParams.intb ,
"result" : ((attributes.queryParams.inta as Number) + (attributes.queryParams.intb as Number) )
}
Input:
localhost:8081/demo?inta=22&intb=11
Output:
{
"inta": "22",
"intb": "11",
"result": 33
}
File connector:
Handles files (read,write,list,copy,move) and folders on a locally mounted file system
What is scatter gather. What will happen one of flow is failing in scatter gather in Mule4. How can we handle it.
Scatter-Gather executes concurrently.
All the failed and successful payload available at the end of the scatter gather. We can use the payload 0 1 and so on.
Organisation
Top level, one per customer. Link to external identity provider (open id connect, SAML 2.0)
Business group
It comes under an organisation (or business group). Can be used for mini orgs within the overall org. LOB or region specific/autonomy, each
need different users/roles/environments
First successful
Fails over to other child routes if it gets a failure.
Try scope
allows catching errors
Round robin
Load balance by cycling through routes
Scheduler
Fixed schedule or CRON syntax scheduler - kicks off a flow as an event source
Batch job
allows processing of thousands+ messages through a set of steps using many threads
Batch aggregator
allows chunking of the records to do bulk operations or streaming
Batch step
defines one part of the sequence of processing that a record will go through. Note: each record will go through these in order.
Secure properties
To secure properties in mule configurations
Streaming in mule 4
This will help to stream large XML.
Watermark
last retrieved id/date/some value which we can store it and we can use the value at the next time to retrieve the delta from the next time.
Splunk/elk
This is for log consumption and reporting/search/dashboarding for your logs. Logs from lots of systems/infra brought
together.
Maven
build, test, deployment (cloudhub, RTF, on-prem)
What is HA ?
Highly Available
Teams use the agile development methodology to minimize risk (such as bugs,
cost overruns, and changing requirements) when adding new functionality. In all
agile methods, teams develop the software in iterations that contain mini-
increments of the new functionality
Roles : ProductOwner, Scurm Master, Scurm Team
Other scrum terminologies:
Sprint – generally 2 weeks.
User story, scrum meetings (demo,retrospective)
What is monolithic Architecture: In layman terms, you can say that its similar to a big container wherein all the
software components of an application are assembled together and tightly packaged.
Example Mule Runtime in On-premise instance.
Example: application is running in cloudhub. Each worker will have one application and its independent.