Salesforce-MuleSoft-Developer-I Practice Test Questions

234 Questions


What payload is returned by a Database SELECT operation that does not match any rows in the database?


A. false


B. null


C. Exception


D. Empty Array





D.
  Empty Array

Explanation: Empty array is returned when no rows are matched.

Refer to the exhibit.



What is a valid expression for the Choice router’s when expression to route events to the documenticShipping flow?


A. 0#[ payload = 'US' ]


B. #[ payload == 'US' J


C. #[ if(payload = 'US') J


D. #[ if(payload == "US") ]





B.
  #[ payload == 'US' J

Explanation: Choice Router The Choice router dynamically routes messages through a flow according to a set of DataWeave expressions that evaluate message content. Each expression is associated with a different routing option. The effect is to add conditional processing to a flow, similar to an if/then/else code block in most programming languages.
Only one of the routes in the Choice router executes, meaning that the first expression that evaluates to true triggers that route’s execution and the others are not checked. If none of the expressions are true, then the default route executes.
Properties of PropertyDescription Expression (expression)
Expression in DataWeave language to evaluate input.If the expression evaluates to true, this routing option is used:

With respect to above information ,
Option 1 is the correct syntax as others are incorrect because of below reasons
* Single = is not the correct syntax to validate the condition. It should be ==
* If keyword is not required in when condition.

What valid RAML retrieves details on a specific by its orderld as a URL parameter?




A. Option A


B. Option B


C. Option C


D. Option D





A.
  Option A

What is the purpose of the api:router element in APIkit?


A. Creates native connectors using a 3rd party Java library


B. Serves as an API implementation


C. Validates requests against RAML API specifications and routes them to API implementations


D. Validates responses returned from API requests and routes them back to the caller





C.
  Validates requests against RAML API specifications and routes them to API implementations

Explanation: The APIkit Router is a key message processor that validates requests against the provided definition, enriches messages (for example by adding default values to the messages) and routes requests to a particular flow. Also, the Router raises errors messages if errors occurs while routing, validating or processing the user request.

What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?


A. Data layer


B. Process layer


C. Experience layer


D. System layer





D.
  System layer

Explanation:
Correct answer is System layer System APIs provide a means for insulating the data consumers from the complexity or changes to the underlying backend systems.
MuleSoft recommends three-layered approach to API-led connectivity, highlighting the three layers:
* System APIs
* Process APIs
* Experience APIs
System APIs are the core systems of record underlying core systems of record (e.g. ERPs, key customer and billing systems, databases, etc.). Process APIs allow you to define a common process which the organization can share, and these APIs perform specific functions, provide access to non-central data, and may be built by either Central IT or Line of Business IT. And finally, the Experience APIs are the means by which data can be reconfigured so that it is most easily consumed by its intended audience, all from a common data source.
The three-layered structure allows for a seamless flow of data from systems of record to new experiences, and allows for reusability of assets rather than point to point connections. This approach provides a distributed and tailored approach to architecture, greater flexibility through loose coupling, and deeper operational visibility into what is being built.

An HTTP Request operation sends an HTTP request with a non-empty JSON object payload to an external HTTP endpoint. The response from the external HTTP endpoint returns an XML body. The result is stored in a target named the Result.
What is the payload at the event processor after the HTTP Request?


A. The XML response body


B. null


C. The original JSON request body


D. A non-empty Java object





C.
  The original JSON request body

How does APIkit determine the number of flows to generate from a RAML specification?


A. How does APIkit determine the number of flows to generate from a RAML specification?


B. Creates a separate flow for each HTTP method


C. Creates a separate flow for each response status code


D. Creates a separate flow for each resource that contains child resources





B.
  Creates a separate flow for each HTTP method

According to Mulesoft, how are Modern APIs treated as?


A. Products


B. SOAP API's


C. Rest API's


D. Code





A.
  Products

Explanation:
Correct answer is Products
Modern API has three features 1) Treated as products for easy consumption 2) Discoverable and accessible through self-service 3) Easily managed for security , scalability and performance

Refer to the exhibits.



What payload and quantity are togged at the end of the main flow?


A. [[order1, order2, order3, order4], 14]


B. [[1,2,3,4], 10]


C. [[1,2,3,4], 14]


D. [orderlorder2order3order4, 14]





C.
  [[1,2,3,4], 14]

An organization's Center for enablement (C4E)has built foundational assets (API specifications and implementation templates, common frameworks, and best practices guides) and published them to Anypoint Exchange.

What is a metric related to these foundational assets that helps the organization measure the success of it's C4E efforts?


A. Utilization counts of foundational assets in production applications


B. Correlation of each foundational asset with the counts of developers that download such asset


C. Correlation of key performance indicators (KPI) of production applications with foundational assets


D. Count how many Lines Of Business (LoBs) onsumed each foundational asset





C.
  Correlation of key performance indicators (KPI) of production applications with foundational assets

Explanation:
Below are the Key performance indicators (KPIs), to measure and track the and success ofthe C4E and its activities, as well as the growth and health of the application network. Most of the metrics can be extracted automatically, through REST APIs, from Anypoint Platform.
• # of assets published to Anypoint Exchange
• # of interactions with Anypoint Exchange assets
• # of APIs managed by Anypoint Platform
• # of System APIs managed by Anypoint Platform
• # of API clients registered for access to APIs
• # of API implementations deployed to Anypoint Platform
• # of API invocations
• # or fraction of lines of code covered by automated tests in CI/CD pipeline
• Ratio of info/warning/critical alerts to number of API invocations

Refer to the exhibits. APIKit router is used to generate the flow components for RAML pecification.
The Mule application must be available to REST clients using the two URL's
http://localhost:8081/internal and http://localhost:8081/external
How many APIKit Router components are generated to handle requests to every endpoint defined in RAML specification?

1. Library.raml
2./books
3. get:
4. post:
5./order:
6. get
7. patch 8./members
9. get:


A. 1


B. 2


C. 3


D. 5





A.
  1

What is minimal requirement in a flow for a Mule application to compile?


A. Event Source


B. Event Processors


C. Error handlers


D. Source and processors both





B.
  Event Processors

Explanation: Process section is must to get compiles. Process section must have one or more processors


Page 8 out of 20 Pages
Previous