1.
What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?
Correct Answer
C. System
Explanation
The MuleSoft API-led connectivity layer called "System" is intended to expose part of a backend database without business logic. This layer focuses on providing access to the underlying system and its data, without any additional processing or manipulation. It allows developers to directly interact with the database and retrieve the required information without having to go through any business logic or rules.
2.
What HTTP method in a RESTful web service is typically used to replace a resource completely?
Correct Answer
B. PUT
Explanation
In a RESTful web service, the PUT method is typically used to replace a resource completely. This means that when a client sends a PUT request to a specific resource endpoint, the server replaces the existing resource with the new representation provided in the request payload. Unlike the PATCH method which is used to partially update a resource, PUT replaces the entire resource. POST is used to create a new resource, while GET is used to retrieve a resource.
3.
What statement is part of Mulesoft’s description of an application network?
Correct Answer
A. Create reusable APIs and assets designed to be consumed by other business units
Explanation
Mulesoft's description of an application network includes the statement "Create reusable APIs and assets designed to be consumed by other business units." This means that Mulesoft focuses on creating APIs and assets that can be reused by different parts of a business, allowing for easier integration and collaboration between different units. This approach promotes efficiency and flexibility in the development and management of applications within an organization.
4.
According to MuleSoft, what is the Center for Enablement's role in the new IT operating model?
Correct Answer
A. Creates and manages assets to be consumed by of business developers
Explanation
The Center for Enablement's role in the new IT operating model is to create and manage assets that can be used by business developers. This means that the center is responsible for providing resources, tools, and support to enable business developers to effectively carry out their tasks and projects. By doing so, the center plays a crucial role in facilitating the development and implementation of business solutions within the organization.
5.
What is a core characteristic of the Modern API?
Correct Answer
A. API is designed first using an API specification for rapid feedback
Explanation
The core characteristic of the Modern API is that it is designed first using an API specification for rapid feedback. This means that before any coding or implementation takes place, the API is planned and documented using a specification. This allows for early feedback and validation from stakeholders, ensuring that the API meets their requirements and expectations. By designing the API first, potential issues and improvements can be identified and addressed early in the development process, saving time and resources in the long run.
6.
Refer to the exhibit.
ENDPOINT:
https://www.searchworld.org/s/api.php
QUERY PARAMETERS:
action - Action type - required
options: compare, delete, save, search
query - Search string - required
profile - Search profile to use
options: strict, normal, classic
format - The format of the output
options: xml, xmlfm, json, jsonfm
namespace - Namespace to search
options: 1,2,3,4
HEADERS:
AUTH - Authentication token - required
The API specification supports searching for articles on the searchworld.org site.
What is the most idiomatic (used for its intended purpose) URL and method to retrieve articles about "einstein" in XML format?
Correct Answer
A. GET Method
api.pHp?action=search&query=einstein&format=xml
AUTH
Explanation
The most idiomatic URL and method to retrieve articles about "einstein" in XML format is to use the GET method with the following URL: api.php?action=search&query=einstein&format=xml. Additionally, the request should include the AUTH header for authentication.
7.
What is the main purpose of flow designer in Design Center?
Correct Answer
B. To design and Develop fully functional Mule applications in a hosted development environment
Explanation
The main purpose of flow designer in Design Center is to design and develop fully functional Mule applications in a hosted development environment. It provides a graphical interface that allows users to visually create, configure, and manage the flow of data and integration processes within their Mule applications. This eliminates the need for manual coding and allows for faster and more efficient development of Mule applications.
8.
Where does a deployed flow designer application run in Anypoint Platform?
Correct Answer
B. Clouhhub Worker
Explanation
A deployed flow designer application runs on the CloudHub worker in Anypoint Platform. The CloudHub worker is responsible for executing the application and handling the incoming requests and data processing. It provides a scalable and reliable runtime environment for running applications in the cloud.
9.
What MuleSoft product enables publishing, sharing, and searching of APIs?
Correct Answer
C. Anypoint Exchange
Explanation
Anypoint Exchange is the correct answer because it is a MuleSoft product that enables publishing, sharing, and searching of APIs. It provides a centralized platform where organizations can publish their APIs, making them easily discoverable and accessible to developers. Anypoint Exchange also allows for collaboration and sharing of APIs within an organization or with external partners. It includes features such as API documentation, versioning, and the ability to rate and review APIs.
10.
What asset can NOT be created using Anypoint Platform Design Center?
Correct Answer
D. API portals
Explanation
Anypoint Platform Design Center is a tool that allows users to design and create various assets related to API development. API Specifications, Mule Applications, and API Fragments can all be created using the Design Center. However, API Portals cannot be created using this tool. API Portals are separate components that provide a user-friendly interface for developers and consumers to interact with APIs. They are typically created using specialized portal software or platforms, rather than the Design Center.
11.
A web client submits a GET request to a Mule 4 application to the endpoint /customers?id=48493. Where is the id stored in the Mule event by the HTTP Listener?
Correct Answer
C. Attributes
Explanation
The id is stored in the Mule event by the HTTP Listener in the Attributes.
12.
An API has been created in Design Center. What is the next step to make the API discoverable?
Correct Answer
D. Publish the API to Anypoint Exchange
Explanation
To make the API discoverable, it needs to be published to Anypoint Exchange. Anypoint Exchange is a platform where organizations can publish and share their APIs, connectors, templates, and other reusable assets. By publishing the API to Anypoint Exchange, it becomes visible and accessible to other developers and users who can discover and consume the API.
13.
- Refer to the exhibit:
#%RAML 1.0
title: ACME Medical API
baseUri: http://dev.acme.com/api
/patients:
GET:
queryParameters:
year:
type: integer
example: 2017
What is the correct URL to perform a GET request to /patients?
Correct Answer
D. Http://dev.acme.com/api/patients?year=2016
Explanation
The correct URL to perform a GET request to /patients is "http://dev.acme.com/api/patients?year=2016". This is because the base URI is "http://dev.acme.com/api" and the endpoint is "/patients". The query parameter "year" is set to 2016, so it should be included in the URL as a query string.
14.
A RAML example fragment named BankAccountsExample.raml is placed in the examples folder in an API specification project. What is the correct syntax to reference the fragment?
Correct Answer
C. Example: !include examples/BankAccountsExample.raml
Explanation
The correct syntax to reference the fragment is "example: !include examples/BankAccountsExample.raml". This syntax uses the "!include" directive to import the BankAccountsExample.raml file located in the examples folder of the API specification project.
15.
Refer to the exhibit:
1 #%RAML 1.0
2 title: American Flights API
3 version: 10
4
5 /flights:
6 get:
7
8 /{flight_id}:
9
10 get:
There is an error in the flight_id resource’s GET method. What needs to be done to fix the problem?
Correct Answer
C. Indent the get method under the {flight_id} resource
Explanation
The correct answer is to indent the get method under the {flight_id} resource. This means that line 10 should be indented to align with line 9. This is necessary to ensure that the get method is properly nested within the {flight_id} resource and follows the correct structure of the RAML specification.
16.
Refer to the exhibit.
This RAML specification includes an XML example that matches the Records data type defined
in another RAML file named recordsDataType.raml.
Using the Records type, how can this XML example be represented in RAML?
Correct Answer
D. Option 4
17.
What is the purpose of the api:router element in APIkit?
Correct Answer
C. Validates requests against RAML API specifications and routes them to API implementations
Explanation
The api:router element in APIkit is responsible for validating requests against RAML API specifications and routing them to API implementations. It ensures that the incoming requests adhere to the defined API specifications before forwarding them to the appropriate implementation. This helps in maintaining the integrity and consistency of the API by validating the requests against the specified rules and constraints.
18.
What is the minimum required configuration in a flow for a Mule application to compile?
Correct Answer
A. An event processor/A message processor in the Process section of a flow
Explanation
The minimum required configuration in a flow for a Mule application to compile is an event processor or a message processor in the Process section of a flow. This means that there must be at least one processor that will handle the incoming event or message in order for the flow to be valid and compile successfully.
19.
An inbound Database connector is configured to select rows from a MySQL database. What is the format of results returned from the database query?
Correct Answer
A. Java
Explanation
The format of results returned from the database query is in Java. This means that the data retrieved from the MySQL database will be in a format that is compatible with the Java programming language.
20.
What is NOT part of a Mule 4 event?
Correct Answer
C. InboundProperties
Explanation
: In Mule 4, the concept of inboundProperties from Mule 3 has been replaced by attributes within the message. The Mule 4 event is composed of a message and variables, where the message contains the payload and attributes. Attributes can include metadata such as headers from an HTTP request, but the specific term "inboundProperties" is not used as part of the Mule 4 event structure. This change is part of the simplification and improvement in the handling of messages and event data between Mule 3 and Mule 4.
21.
How does APIkit determine the number of flows to generate from a RAML specification?
Correct Answer
A. Creates a separate flow for each HTTP method
Explanation
APIkit determines the number of flows to generate from a RAML specification by creating a separate flow for each HTTP method. This means that for each different method (GET, POST, PUT, DELETE, etc.) defined in the RAML specification, APIkit will generate a separate flow to handle that specific method. This allows for better organization and separation of logic for each individual method in the API.
22.
What is the purpose of API autodiscovery?
Correct Answer
D. Allows a deployed Mule application to connect with API Manager to download policies and act as its own API proxy
Explanation
API autodiscovery is a mechanism that allows a deployed Mule application to automatically connect with API Manager. Through this connection, the application can download and apply any policies defined in API Manager and act as its own API proxy. This enables the enforcement of runtime policies and allows the API to be managed directly within API Manager without requiring separate proxy applications. Autodiscovery simplifies API management by automating the association between a Mule application and its corresponding API in API Manager.
23.
What is the maximum number of Mule applications that can run in a Cloud Hub Worker?
Correct Answer
A. At most one
Explanation
The maximum number of Mule applications that can run in a Cloud Hub Worker is at most one. This means that a single Cloud Hub Worker can only run one Mule application at a time.
24.
What does an API proxy application NOT do?
Correct Answer
D. Measure the traffic flowing through the proxy
Explanation
An API proxy primarily serves as an intermediary between clients and the actual API, managing and controlling access and requests. It can determine which requests or responses are allowed to pass through to the API backend service and apply runtime policies to enforce governance, such as security measures, rate limiting, and other access controls. However, measuring the traffic flowing through the proxy, while it can be a function associated with API management tools, is not the primary role of an API proxy application itself. The primary focus of an API proxy is on managing access and enforcing policies rather than traffic measurement or analytics, which are typically handled by other components within an API management solution.
25.
What does the Mule runtime use to enforce policies and limit access to APIs?
Correct Answer
D. The Mule runtime’s embedded API Gateway
Explanation
The Mule runtime uses its embedded API Gateway to enforce policies and limit access to APIs. This API Gateway acts as a proxy and provides security features such as authentication, authorization, and rate limiting. It allows organizations to control and manage access to their APIs, ensuring that only authorized users and applications can interact with them. By using the embedded API Gateway, the Mule runtime provides a secure and scalable solution for API management and enforcement of policies.
26.
API Manager has been configured to enforce an SLA policy and the RAML spec has been updated with the required client_id and client_secret header requirements. The new RAML spec has been published to Anypoint Exchange. What is the next step to gain access to the API?
Correct Answer
B. Request access to the API in Anypoint Exchange
Explanation
The next step to gain access to the API is to request access to the API in Anypoint Exchange. This is because the RAML spec has been updated with the required client_id and client_secret header requirements, and the new RAML spec has been published to Anypoint Exchange. By requesting access in Anypoint Exchange, the user can follow the necessary steps to gain access to the API.
27.
What happens to the attributes of a Mule event in a flow after an outbound HTTP Request is made?
Correct Answer
D. Attributes are replaced with new attributes from the HTTP Request response (which might be null)
Explanation
After making an outbound HTTP request in a Mule flow, the attributes of the Mule event are replaced with new attributes from the HTTP request response. These new attributes may contain information from the response, but it is possible for them to be null if the response does not provide any relevant attributes. The previous attributes of the Mule event are completely replaced and no longer available.
28.
A Set Variable component saves the current payload to a variable with the name images. What is the DataWeave expression to access the images variable?
Correct Answer
D. #[vars.images] (vars is a DataWeave predefined variable)
Explanation
The correct answer is #[vars.images] because "vars" is a predefined variable in DataWeave that allows us to access variables saved within the flow. In this case, the payload is saved to a variable named "images" using the Set Variable component, and we can access it using #[vars.images].
29.
A web service implements an API to handle requests to http://acme.com/customers/{state}. A web client makes a request to this API implementation at http://acme.com/customers/CA. What is the correct DataWeave expression to retrieve the value CA?
Correct Answer
C. #[attributes.uriParams.state]
Explanation
The correct DataWeave expression to retrieve the value "CA" is #[attributes.uriParams.state]. This expression accesses the "state" parameter from the URI parameters of the incoming message.
30.
A flow contains an HTTP Listener as the event source. What is the DataWeave expression to log the Content-Type header using a Logger component?
Correct Answer
A. #[“Content-Type: “ ++ attributes.headers.’content-type’]
Explanation
The correct answer is #[“Content-Type: ” ++ attributes.headers.’content-type’]. This DataWeave expression concatenates the string "Content-Type: " with the value of the "content-type" header from the attributes.headers object. This will log the Content-Type header using a Logger component.
31.
Refer to the exhibit.
What is the correct DataWeave expression for accessing the city Cleveland from the JSON payload?
Correct Answer
B. #[payload[1].city]
Explanation
The correct DataWeave expression for accessing the city Cleveland from the JSON payload is #[payload[1].city]. This expression uses the index 1 to access the second element in the payload array, and then accesses the city property within that element.
32.
What is NOT part of a Mule 4 event?
Correct Answer
B. OutboundProperties
Explanation
The outboundProperties are not part of a Mule 4 event. Mule 4 events consist of a message, attributes, variables, and payload. The outboundProperties refer to the properties that are set on an outbound message, which means they are not inherently part of the event itself.
33.
A Mule application has two flows named parentFlow and childFlow. The childFlow begins with an HTTP Listener. A variable is defined in parentFlow, then an HTTP Request is made to childFlow’s HTTP Listener with some headers set. What is the scope of the variable and attributes in the parentFlow after childFlow returns a response?
Correct Answer
A. The variable is accessible. All the attributes passed to childFlow are removed or replaced
Explanation
After the childFlow returns a response, the variable defined in the parentFlow is still accessible. However, all the attributes that were passed to the childFlow are removed or replaced. This means that any modifications made to the attributes within the childFlow will not be reflected in the parentFlow.
34.
A Mule application has a flow named parentFlow. The parentFlow contains an HTTP Request operation at the end of the flow. The parentFlow also contains a Set Variable operation right before the HTTP Request operation. What is the scope of the variable to the server receiving the HTTP Request from parentFlow?
Correct Answer
C. The variable is NOT accessible in the server
Explanation
The variable is not accessible in the server because the scope of the variable is limited to the parentFlow only. It is set right before the HTTP Request operation, which means it is only available within that flow and not outside of it. Therefore, the server receiving the HTTP Request from parentFlow will not have access to this variable.
35.
A Mule application has two flows named parentFlow and childFlow. A variable is defined in parentFlow. What is the scope of the variable when the parentFlow calls childFlow using a Flow Reference?
Correct Answer
B. The flow variable is accessible in childFlow, can be changed, and changes are seen back in parentFlow
Explanation
When the parentFlow calls childFlow using a Flow Reference, the flow variable defined in parentFlow is accessible in childFlow. Additionally, the variable can be changed within the childFlow, and any changes made to the variable will be seen back in the parentFlow. Therefore, the correct answer is "The flow variable is accessible in childFlow, can be changed, and changes are seen back in parentFlow."
36.
Refer to the exhibit.
In the deployable archive's /classes folder, there are two properties files named dev.properties and prod.properties. The Mule application fails to deploy to CloudHub through Runtime Manager with the following error message.
What could be causing this error?
Correct Answer
B. The env property is NOT set in the Runtime Manager in the Mule application's Properties tab
Explanation
The error message suggests that the Mule application fails to deploy to CloudHub due to the env property not being set in the Runtime Manager in the Mule application's Properties tab. This means that the necessary environment property is missing, causing the deployment to fail.
37.
What reserved property can be defined and used in a Mule application to allow an HTTPS Listener to be accessed by external web clients after the Mule application is deployed to CloudHub?
Correct Answer
D. ${https.port}
Explanation
The correct answer is ${https.port}. This property can be defined and used in a Mule application to allow an HTTPS Listener to be accessed by external web clients after the application is deployed to CloudHub. By specifying this property, the application will use the corresponding port for the HTTPS Listener, enabling external clients to access the application securely over HTTPS.
38.
Why must a Mule application’s deployable archive package all its dependencies in order to be deployed to CloudHub?
Correct Answer
B. CloudHub workers CANNOT download ALL possible project dependencies a project may contain
Explanation
CloudHub workers cannot download all possible project dependencies a project may contain because CloudHub is a platform as a service (PaaS) that runs applications in a managed environment. In order to ensure that the application runs smoothly and without any issues, all dependencies need to be packaged and included in the deployable archive. This ensures that the application has access to all the required resources and libraries it needs to function properly. If the dependencies were not included, CloudHub workers would not be able to download them and the application may fail to run or encounter errors.
39.
In what file does the Mule project keep track of all of its dependencies?
Correct Answer
B. Pom.xml
Explanation
The Mule project keeps track of all of its dependencies in the "pom.xml" file. This file is commonly used in Maven projects to manage project dependencies, including external libraries and modules. It contains information about the project, such as its name, version, and dependencies, which are specified using XML tags. The "pom.xml" file plays a crucial role in building and managing the Mule project, ensuring that all required dependencies are properly included and resolved during the development and deployment processes.
40.
What can ONLY be done with VM connectors, and NOT with Flow References, in a single Mule application?
Correct Answer
D. Allow a flow to pass events to another flow asynchronously
Explanation
VM connectors in Mule allow a flow to pass events to another flow asynchronously. This means that the flow does not have to wait for a response from the second flow before continuing with its execution. On the other hand, Flow References do not support asynchronous event passing. They are used for synchronous communication, where the flow waits for a response from the referenced flow before proceeding. Therefore, only VM connectors can be used to enable asynchronous event passing in a single Mule application.
41.
What file type is required to configure a Web Service Consumer to consume a SOAP web service?
Correct Answer
B. WSDL
Explanation
To configure a Web Service Consumer to consume a SOAP web service, the required file type is WSDL (Web Services Description Language). WSDL is an XML-based language that provides a standardized way to describe the functionalities of a web service. It specifies the location of the web service, the operations it supports, the input and output parameters, and other relevant details. By using the WSDL file, the Web Service Consumer can understand the structure and behavior of the SOAP web service and communicate with it effectively.
42.
How are query parameters dynamically passed to an outbound REST request using an HTTP Request operation?
Correct Answer
A. As query parameters in the HTTP Request operation
Explanation
Query parameters are dynamically passed to an outbound REST request using an HTTP Request operation by including them as query parameters in the URL of the HTTP Request operation. This allows the request to be customized and specific data to be retrieved from the server.
43.
Refer to the exhibit.
The flow calls a SOAP endpoint using the Consume operation of the Web Service Consumer. The SOAP service has a required input parameter. What event processor can be used to build the SOAP envelope with the required argument to pass to the SOAP service?
Correct Answer
C. Transform Message
Explanation
The Transform Message event processor can be used to build the SOAP envelope with the required argument to pass to the SOAP service. Transform Message allows for the transformation of the message payload, headers, and properties. In this case, it can be used to transform the input parameter into the appropriate SOAP envelope format, including any necessary SOAP headers and body elements.
44.
An HTTP Request operation returns a JSON array of objects. In the Transform Message component, what is the process to convert the array of objects to an array of custom Java Account objects?
Correct Answer
A. Add the Account object metadata to the output and use the drag-and-drop feature to transform the incoming JSON data
Explanation
To convert the JSON array of objects to an array of custom Java Account objects in the Transform Message component, the process is to add the Account object metadata to the output and use the drag-and-drop feature to transform the incoming JSON data. This means that the metadata for the Account object needs to be added to the output message structure, and then the drag-and-drop feature can be used to map the incoming JSON data to the Account object fields. By doing this, the Transform Message component will automatically convert the JSON objects to Account objects based on the defined metadata.
45.
What is the process to create a connector using REST Connect?
Correct Answer
C. Design the API In Design Center and publish the API to Exchange
Explanation
The correct answer is to design the API in Design Center and publish the API to Exchange. This is the correct process to create a connector using REST Connect. Design Center is a web-based tool that allows users to design APIs visually, and once the API is designed, it can be published to Exchange. Exchange is a platform where APIs can be shared and discovered by other users. This process ensures that the API is properly designed and available for others to use. Developing the API in flow designer, Anypoint Studio, or exporting it as a jar file are not the correct steps for creating a connector using REST Connect.
46.
How are multiple conditions used in a Choice router to route events?
Correct Answer
C. To find the FIRST true condition, then distribute the event to the ONE matched route
Explanation
The correct answer explains that in a Choice router, multiple conditions are used to find the FIRST true condition. Once the first true condition is found, the event is distributed to the ONE matched route. This means that only one route will be selected based on the first condition that evaluates to true.
47.
A Scatter-Gather processes three separate HTTP requests. Each request returns a Mule event with a JSON payload. What is the final output of the Scatter-Gather?
Correct Answer
A. An Object containing all three Mule event Objects
Explanation
The Scatter-Gather component processes three separate HTTP requests and returns a Mule event with a JSON payload for each request. The final output of the Scatter-Gather is an Object containing all three Mule event Objects. This means that the output will include the Mule event Objects for all three requests, allowing further processing or manipulation of the data.
48.
An event contains a payload that is an array of Objects. How is the event routed in a Scatter-Gather?
Correct Answer
D. The ENTIRE event is sent to each route and processed in PARALLEL
Explanation
In a Scatter-Gather, the entire event is sent to each route and processed in parallel. This means that the event payload, which is an array of objects, is replicated and sent to each route simultaneously. Each route then processes the event independently and in parallel, allowing for concurrent execution and potentially faster processing time.
49.
What module and operation will throw an error if a Mule event's payload is not a number?
Correct Answer
A. Validation module's Is number operation
Explanation
The Validation module's Is number operation will throw an error if a Mule event's payload is not a number. This operation is specifically designed to check if the payload is a number, and if it is not, it will trigger an error.
50.
Refer to the exhibits.
What happens to this flow when the Validation module's Is not null operation throws an error?
Correct Answer
B. The flow stops processing its Mule event and returns an error message to the HTTP Listener operation
Explanation
When the Validation module's "Is not null" operation throws an error, the flow will stop processing its Mule event and return an error message to the HTTP Listener operation. This means that the flow will not continue processing the event and will instead notify the HTTP Listener operation about the error that occurred.