Mulesoft Interview Q&A
1. input[a,a,b,b]--> out put should be like {a:2,b:2}
2. can we restrict number of input parameters at RAML level, any validation at RAML level?
3. difference btwn put and patch[5:57 pm, 19/04/2021] Mulesoft Bala: diff btwn post and put?
4. explain securities policies you worked on?
5. OpenAM OAuth 2.0 Token Enforcement.
6. Rate Limiting.
7. Rate-Limiting SLA.
8. Tokenization.
9. patch for only one single filed put for total
10. PUT/PATCH — modify
11.: considet that u dont have api manager component, if we want secur our api , how can we
secure?
12. which cloud of salesforce you worked on and use cases ?
13. a flow has 2 child flows, in one child flow there is on error propagate component and another is
child has issue of internal server error 500 and on error continue, now explain the execution?
14. child has on error continue and parent has on error propagate, explain execution?
15. both parent and child has both on error continue and once has external error occured while
connecting?
16. reading a file of 100 MB of dat, any problem if u process directly, explain?
17. reading a data from file and inserting into salesforce, while insertion error occured in between so
how can u ensure the reliability that my data inserts successfully?
18. if target system is down for sometime and how can u ensure the data reaches to target system?
19. in scatter gather there are 3 routes , in 3rd route error occured then what would be output?
20. in choice componet, 3 (2 routes are true and 3rd is default), if my request is true then what will
be output?
21. by mistakenly(sensitive info) commited one file in git, want to revert that file from central repo
how you do it?
22. Why do you use esb in your payment app looks like it doesn’t need mule esb this question asked
by l n t after explaining project... how to justify our ans...
23. Explain api manager n auto discovery steps
24. In which scenario u used reduce function and what is $$, $ in it.
25. What is your api type you developed and how many types u created so far?
26. How to find count of number elements in array in dw expn
27. What connectors u used in your payment project ?.. pls guide to tell more connectors as part of
our proj because mostly interviewers focusing on proj part more?
28. What contracts you used in project?
29. What is the best practices you followed in your project implementation? And when writing raml
too?
30. Difference b/w Traits and Resource Type?
31. have u used bulk operation in sfdc ? when do you used?
32. what Kind of security policies?
33. tell me about Scaling
34. Life Cycle of raml?
35. Deployment Method?
36. When do u used map and map object?
37. Sfdc Operation ?
38. what about sap?
39. The difference between microservices and SOA ESB?
40. Raml consists of what?
41. client id enforcement
42. basic authentication
43. oauth policy
44. Most of the interviewers asking recent days what is difference between For each and parallel For
each?
45. I have a requirment to access private network data from my cloud application how can I do
access that? For example I have SAP is on private network and my mule application is on cloud how
can I access Onprem SAP system from cloud?
46. I am using a connector and do not want to wait until the processing completes as it taking more
time , In the mean time i want to send the response back to client,how will do that?
47. while sending records to SFDC, in each record there is a chance to have sfdcId and no sfdcid if
sfdcId is there we need to process those recrods as update otherwise new, how will you do in the
code?
48. I have a requirement to process the transactions to database without disturbing the main flow.
How you will achieve this?
49. How you will filter the records? Let’s say i want to process the records where age > 18. How you
will achieve that in Batch Job?
50. How to reprocess failed records in mule?
51. How do we store the encrypt value in the Configuration file?
52. Have you used file connector? How to handle if file size is 1 GB and heap space is only 712 MB;
how will you process that file.
53. I hope this questions will help you in future .
54. what is the life cycle of api in Mulesoft?
55. suppose I'm sending one request from postman to our api and that request in JSON payload so
how you validate that request in api?
56. what is difference between for each and parallel for each?
57. what is system parameters and when we used?
58. witch type of issues were you faced while developing in your previous project and how you
overcome with that?
59. explain your project in detail and what all interface you developed?
60. suppose I'm sending one json request in postman that is in array each consists of objects and
each objects consists of properties like 1,first-name 2, Last name 3,age so I want only these
properties, if I send 4th r 5th one then it shouldn't be accepte my api just I want to restricte the
number of api how you can restrict ?
61. what is resource type?
62. how you creat that resource type?
63. what is the difference between resource type and library?
64. suppose I'm having a 1000 record in a file and I want insert those 1000 record in my database
how you insert that file into database?
65. how many modules we have in database?
66. what is the past template?
67. what is the difference between uri parameters and query parameters?
68. suppose team committed one code but I want remove that code so how you remove?
69. what is the connection pooling?
70. what is the acknowledgement and how many types of acknowledgement modes are there?
71. Small introduction and then about past company and a bit about project.
72. Not much from project but they asked me about my role and responsibility, how I am getting
work, which project development model I am following, how we do deployment
i am working as individual contributor, taking requirements from onsite team and do development
based on requirements. Once on-site team take requirements from business people or clients they
create jira story for us. Based on that we create RAML and publish on exchange. Then ba people
valued RAML on exchange and parallely we start development also. Once we complete development
we use bit bucket for code checking and do unit testing. After unit testing we deploy this code and
Dev environment and do testing. Then deploy on sit and testing team do testing.
We follow agile approach of development and use to get 3-4 api in a sprint of 2 weeks. For
deployment I mentioned we do manual deployment but we are working on cicd part, still in
progress.
73. Then question on mulesoft components and connectors.
74. What all operations you used in salesforce , I answered salesforce query operation and
salesforce apex rest api call. Apart of that I used http request to call there native api. To call netave
api we need to call salesforce first time to get token and second time to get data
75. When you will use batch processing and when you will use for each
Ans: Will use batch processing to process huge amount of data and if we have scenario even if some
records processing fail continue process other record. For each we use when we want to process
payload having reapting element in sequential way.
76. What is spike control and throttling policy
Ans: Spike control is api policy to limit Number of requests and after limit we put msg in queue .
Throttling is process where we cache external call and next call we take data from cache instead of
calling api
77. we have experience api can handle 5k request in a day , how you will handle if you get 8k
request?
Ans: We can handle in two way. 1) apply rate limiting policy and handle 5k request and discard 3k
request or 2) do horizontal scaling and deploy one more instance of that project. Now we have two
worker so can handle 5k + 5k request , total 10k
78. we have expressed api having rate limiting policy and can handle 100 requests in a minute and
related system api have sla and can call external api max 75 time in a minute. How you will handle
this
Ans: Either we can apply spike control in system api or we can do msg thoratling( store response in
cache and for same request get response from cache instead of doing external call)
79. What all policy you used in your project
Ans: I worked on jwt token, rate limiting, basic with, and spike control. I mentioned custom policy
but you don’t mention, very difficult process . I don’t think for you guy for now easy to explain but
custom policy in short if we create out on policy and deploy on cloudhub
80. How to remove one element from Json object
81. How to concat all data of json object
82. How to reduce 1 day from datetime or now function
Ans: Now() - | PT1d|
83. How to convert time in particular time zone
Ans: Now() >> Asia/Kolkata
84. if target system is not ready then how you complete your development
Ans: We can create mock api in soapui or other tool and will call that or will put that external call
inside try block with on error continue and will mock payload using message transform and will
continue development
85. In RAML if you add new resources how you add in you project
86. How to monitor API’s other than logs
87. How to skip null values from payload?
88. Api led architecture
89. Foreach payload before and after
90. Foreach variable before and after
91. Same variable changed inside foreach then what is value of payload after foreach
92. When to use scatter gather
93. Have u worked on MQ's
94. What is $ and $$
95. What are functions u have used in dw
96. What is the process u follow api life cycle
97. Do u follow cicd or how do u deploy
98. What are type of policies
99. What is diff between ratelimitting and throttling
100. How to use splitby
101. What are types of error handling
102. Explain munit
103. Can you handle errors in munit testing
104. What is parallel foreach.
105. When to use parallel foreach and scatter gather
106. If in scatter gather a,b,c flows are there and variable is modified in flow B then what is variable
outside
107. If variable is modified in a and b flows then what is variable outside
108. What is async scope
109. Gave dataweave payload in object form and asked to upper of only keys from it
110. What is diff between pluck and map object
111. How to skip null values
112. How to skip one key value pair in output payload
We can use - to remove specific key:value pairs. for example,
Ans:
%dw 2.0
output application/json
var details = {
"name": "NaGG",
"ssn": "ABCD1234",
"company": "MuleSoft",
"age": "25 Years"
---
empDetails : details - "age"
113.He asked me about RDBMS
114.Data modelling
115.Cananonical data modelling
116.How much u rate urself in sql
117.Then he asked about api life cycle
118.How to create custom connectors
119.how to disable logs in cloudhub deployment
120. How to enable logs
121. What is the code expression you write for enable and disable of logs
122. How do you disable few components or few connectors during your deployment in cloudhub
123. What is batch processing
124. Explain whole process happening in the background for batch processing
125. What is aggregator
126. Whats output in on complete phase in batch processer
127. What are security policies used by you
128. What is spike control
129. Give example for spike control and rate limitting
130. What are components used by you in raml
131. What is library
132. What is fragment
133. What is data type
134. What is security schemes
135. How to call trait in raml
136. What is microservice
137. What are the rules for considering ur feature as microservice
138. Exact theortical definition of microservice and rules
139. What is api url semantics
140. Which resource need to be taken first in ur path... Which end point should come first how will
you decide that.
141. What are permutation and combinations you do in selecting the end points in your api url
142. what is thread pooling and auto tuning?
143. what are resource level poilicies an explain?
144. what is salesforcebulk api?
145. how you process ftp to salesforce with bulk api?
146. Project explanation
147. Horizontal and vertical scaling and advantages
148. Ratelimiting
149. Api life cycle
150. How many types of deployment
151. How many ways to deploy
152. where do you deploy
153. agile or waterfall
154. agile methodologies followed
155. scrum retro
156. sprint planning
157. user stories
158. choice
159. Error handling
160. scatter gather
161. Batch processing
162. flow referenece
163. munit testing
164. challenges faced
165. domain
166. security policies
167. api monitoring
168. Difference between cloud-Hub and On-premise deployment modal
169. he gave a simple requirement and asked me to explain all xpapi and sapi creation raml ,
development, deployment
User gives employee id and you need to send employee details for that id. How will u write ur raml
and what is ur sapi and what is ur bapi and xpapi and how do u deploy
170. Oauth policy
171. How many ways to deploy ur api
172. How are u calling ur apis in different layers
173. Object store
174. How to handle errors in batch processing
175. Anypoint monitoring
176. How do you do logging
177. What are the response codes
400
404
500
200
202
178. What operations and functions used in dataweave
179. Have two payloads with one id as primary key and few duplicates. How do you get data from
two payloads by removing duplicates.
180. Scatter gather
2 nodes successful
1 node failed
Whats output
181. Choice
2 true conditions satisfy which node will be processed
182. There are 2 insert statements
1 insert is successfully completed
2nd insert failed
For whatever records second insert failed, i want to rollback insert from 1st inserted table also how
do u do
183. 2 inserts are there... suddenly application crashed... how do you handle with missing records
184. I have a input payload before foreach 1,2,3
I have done addition like payload + 10
What is output payload of foreach
185. Same in parallel foreach
186. I have a variable a c oustide scatter gather
I modfied variable a in node 1
I added another varuable b in node 2
Whats variable a value outside
And how many variables will be there
187.same
I modified variable a in node 1
Modified variable a in node 2
Whats variable a value after scattergather
188. I am expecting 100mb files as input to my payload
Suddenly i got 1 gb payload
How to handle that large payload
189. I have a variable before parallel foreach and a variable inside parallel foreach
How many variables will be after parallel foreach
190. I have two tables from where i wanted to retrieve data which are not dependent on each other
Then how do i handle it
191. I am getting multiple similar requests from end users... i have ratelimiting policy as 100 requests
for 1 minute
I dont want to keep waiting users or i dont want to send too many requests error to users how to
handle
192. In batch processing i have 100 records and 10 records failed, i want to send the failed records
status to end users how to do
193. What is HTTP caching?
194. What is Resource type and Trait in RAML, how do you use it?
195. What is library in RAML,how to use it.
196. why we use Map and give a scenario?
197. why we use Map object?
198. what is difference b/w mapObject and Pluck.?
199. what are flatten and Reduce give some examples.
200. how to call subflow using dataweave
201. Explian about API LED architecture
202. what are the layers you worked upon.
203. what security policies used at APIL level.
204. Explain about Object store, why use it?
205. what all authentications used?
206. How do you call configuration properties in dataweave?
207. when to use VM connector flow?
208. how do you do Load balancing
209. when to use Persistent queues
210. what is output of batch processing on complete phase?