Tutorials A to Z » April 27, 2020

Daily Archives: April 27, 2020

Mule 3 Mule 4 Mule Interview Question Mulesoft Basics Mulesoft Tutorial

RAML Interview Questions For Mulesoft Developers Advanced

Published by:

RAML Interview Questions ADVANCED.

Here are the  advanced interview questions and answers about RAML during Mulesoft interviews. This are just a list of some common questions but not the entire list.

1.  How to use RAML in anypoint studio?

RAML can be imported while creating a new application from scratch either from local machine or from Anypoint Design Center which will create flows and error handlers using APIKit module. RAML can also be imported into existing applications by right clicking on the application and  selecting “Anypoint Platform” -> “Import form Design Center” (in Anypoint Studio 7.* and Mule 4.*).

2. What are Traits in RAML?

Traits are functions in RAML which defines common properties for HTTP methods, can be declared once and used at multiple places by keyword “is“. traits should be defined in a separate file and import it into the main RAML to follow Best practices.

3. Explain Request/Response lifecycle in mule based on RAML? 

ApiKit router plays a key role in mapping the resources(RAML) and Mule flows. Any Request entering into mule app through the inbound will hit ApiKit router and the request will be validated according to the RAML description.

Success Requests will be mapped to their corresponding flow and Bad requests will be mapped to their corresponding exception flow and respond back with appropriate HTTP Status code.

4.  What are the parameters defined for methods in RAML?

URI parameters and Query parameters can be defined in RAML.

URI Parameters: Unique Resource Identifier as the name suggests, it should get a unique resource. It is sent as a part of URL and expects unique id each time. They are defined by using keyword “uriParameters”.

Query Parameters: The question mark, the parameter, and its real value make what is referred to as the query string. Query parameters come with two distinguishing features from the hierarchy parameters: They are optional. They are non-unique, in the sense that they can be used to specify any one parameter multiple times. They are defined by using keyword “queryParameters”.

5.Difference between POST and PUT?

POST is used while Inserting or creating a new record in the Database or System of record where as PUT is used while editing or updating an existing record. Both methods will support URI and Query parameters.