MuleSoft-Integration-Architect-I Practice Test Questions

268 Questions


Cloud Hub is an example of which cloud computing service model?


A. Platform as a Service (PaaS)


B. Software as a Service (SaaS)


C. Monitoring as a Service (MaaS)


D. Infrastructure as a Service (laaS)





A.
  Platform as a Service (PaaS)

Explanation:

CloudHub, part of MuleSoft's Anypoint Platform, is an example of a Platform as a Service (PaaS) offering. PaaS provides a cloud-based platform that allows developers to build, deploy, and manage applications without dealing with the complexities of maintaining the underlying infrastructure. CloudHub provides the necessary tools and services to develop and deploy Mule applications and APIs in the cloud, offering features such as scalability, high availability, monitoring, and management. This allows developers to focus on writing code and developing applications rather than managing servers and infrastructure.

References

MuleSoft CloudHub Documentation

Overview of Cloud Computing Service Models

What API policy would LEAST likely be applied to a Process API?


A. Custom circuit breaker


B. Client ID enforcement


C. Rate limiting


D. JSON threat protection





D.
  JSON threat protection

Explanation

Key to this question lies in the fact that Process API are not meant to be accessed directly by clients. Lets analyze options one by one. Client ID enforcement : This is applied at process API level generally to ensure that identity of API clients is always known and available for API-based analytics Rate Limiting : This policy is applied on Process Level API to secure API's against degradation of service that can happen in case load received is more than it can handle Custom circuit breaker : This is also quite useful feature on process level API's as it saves the API client the wasted time and effort of invoking a failing API. JSON threat protection : This policy is not required at Process API and rather implemented as Experience API's. This policy is used to safeguard application from malicious attacks by injecting malicious code in JSON object. As ideally Process API's are never called from external world , this policy is never used on Process API's Hence correct answer is JSON threat protection MuleSoft Documentation Reference : https://docs.mulesoft.com/api-manager/2.x/policy-mule3-json-threat

A global organization operates datacenters in many countries. There are private network links between these datacenters because all business data (but NOT metadata) must be exchanged over these private network connections.

The organization does not currently use AWS in any way.

The strategic decision has Just been made to rigorously minimize IT operations effort and investment going forward.

What combination of deployment options of the Anypoint Platform control plane and runtime plane(s) best serves this organization at the start of this strategic journey?


A. MuleSoft-hosted Anypoint Platform control plane CloudHub Shared Worker Cloud in multiple AWS regions


B. Anypoint Platform - Private Cloud Edition Customer-hosted runtime plane in each datacenter


C. MuleSoft-hosted Anypoint Platform control plane Customer-hosted runtime plane in multiple AWS regions


D. MuleSoft-hosted Anypoint Platform control plane Customer-hosted runtime plane in each datacenter





D.
  MuleSoft-hosted Anypoint Platform control plane Customer-hosted runtime plane in each datacenter

Explanation

Correct answer is MuleSoft-hosted Anypoint Platform control plane Customer-hosted runtime plane in each datacenter There are two things to note about the question which can help us figure out correct answer.. * Business data must be exchanged over these private network connections which means we can not use MuleSoft provided Cloudhub option. So we are left with either customer hosted runtime in external cloud provider or customer hosted runtime in their own premises. As customer does not use AWS at the moment. Hence that don't have the immediate option of using Customer-hosted runtime plane in multiple AWS regions. hence the most suitable option for runtime plane is Customer-hosted runtime plane in each datacenter * Metadata has no limitation to reside in organization premises. Hence for control plane MuleSoft hosted Anypoint platform can be used as a strategic solution.

Hybrid is the best choice to start. Mule hosted Control plane and Customer hosted Runtime to start with.Once they mature in cloud migration, everything can be in Mule hosted.

A retail company is implementing a MuleSoft API to get inventory details from two vendors by Invoking each vendor's online applications. Due to network issues, the invocations to the vendor applications are timing out intermittently, but the requests are successful after re-invoking each vendor application.

What is the most performant way of implementing the API to invoke each vendor application and to retry invocations that generate timeout errors?


A. Use a For-Each scope to invoke the two vendor applications in series, one after the other. Place the For-Each scope inside an Until-Successful scope to retry requests that raise timeout errors.


B. Use a Choice scope to Invoke each vendor application on a separate route. Place the Choice scope inside an Until-Successful scope to retry requests that raise timeout errors.


C. Use a Scatter-Gather scope to invoke each vendor application on a separate route. Use an Until-Successful scope in each route to retry requests that raise timeout errors.


D. Use a Round-Robin scope to invoke each vendor application on a separate route. Use a Try-Catch scope in each route to retry requests that raise timeout errors.





C.
  Use a Scatter-Gather scope to invoke each vendor application on a separate route. Use an Until-Successful scope in each route to retry requests that raise timeout errors.

Explanation:

To efficiently handle the invocation of vendor applications and retry requests that generate timeout errors, the most performant way is:

Scatter-Gather Scope: Use a Scatter-Gather scope to invoke each vendor application in parallel. This approach allows the API to send requests to both vendors simultaneously, reducing overall processing time.

Until-Successful Scope: Inside each route of the Scatter-Gather scope, use an Until-Successful scope to handle retries. The Until-Successful scope will retry the request in case of timeout errors until the request succeeds or the maximum retry limit is reached.

This combination ensures that the API can handle intermittent network issues efficiently while minimizing redundant transactions and maximizing performance.

References

MuleSoft Documentation on Scatter-Gather Scope
MuleSoft Documentation on Until-Successful Scope and Error Handling

In which order are the API Client, API Implementation, and API interface components called in a typical REST request?


A. API Client > API implementation > API Interface


B. API interface > API Client > API Implementation


C. API Client > API Interface > API implementation


D. API Implementation > API Interface > API Client





C.
  API Client > API Interface > API implementation

Explanation:

In a typical REST request, the order of interaction is:

API Client: The client initiates the request to access data or functionality exposed by the API. API Interface: This represents the contract or the definition of the API, often specified in OpenAPI or RAML. It defines the endpoints, request/response formats, and other API details. API Implementation: This is the actual backend logic that processes the request and returns the response. It interacts with databases, other services, or performs business logic to fulfill the request.

References:

Understanding REST APIs

API Design and Implementation

Mule application A receives a request Anypoint MQ message REQU with a payload containing a variable-length list of request objects. Application A uses the For Each scope to split the list into individual objects and sends each object as a message to an Anypoint MQ queue.

Service S listens on that queue, processes each message independently of all other messages, and sends a response message to a response queue.

Application A listens on that response queue and must in turn create and publish a response Anypoint MQ message RESP with a payload containing the list of responses sent by service S in the same order as the request objects originally sent in REQU.

Assume successful response messages are returned by service S for all request messages.

What is required so that application A can ensure that the length and order of the list of objects in RESP and REQU match, while at the same time maximizing message throughput?


A. Use a Scatter-Gather within the For Each scope to ensure response message order Configure the Scatter-Gather with a persistent object store


B. Perform all communication involving service S synchronously from within the For Each scope, so objects in RESP are in the exact same order as request objects in REQU


C. Use an Async scope within the For Each scope and collect response messages in a second For Each scope in the order In which they arrive, then send RESP using this list of responses


D. Keep track of the list length and all object indices in REQU, both in the For Each scope and in all communication involving service Use persistent storage when creating RESP





D.
  Keep track of the list length and all object indices in REQU, both in the For Each scope and in all communication involving service Use persistent storage when creating RESP

Explanation

Correct answer is Perform all communication involving service S synchronously from within the For Each scope, so objects in RESP are in the exact same order as request objects in REQU Explanation : Using Anypoint MQ, you can create two types of queues: Standard queue These queues don’t guarantee a specific message order. Standard queues are the best fit for applications in which messages must be delivered quickly. FIFO (first in, first out) queue These queues ensure that your messages arrive in order. FIFO queues are the best fit for applications requiring strict message ordering and exactly-once delivery, but in which message delivery speed is of less importance Use of FIFO queue is no where in the option and also it decreased throughput. Similarly persistent object store is not the preferred solution approach when you maximizing message throughput. This rules out one of the options. Scatter Gather does not support ObjectStore. This rules out one of the options. Standard Anypoint MQ queues don’t guarantee a specific message order hence using another for each block to collect response wont work as requirement here is to ensure the order. Hence considering all the above factors the feasible approach is Perform all communication involving service S synchronously from within the For Each scope, so objects in RESP are in the exact same order as request objects in REQU

According to MuteSoft, which principle is common to both Service Oriented Architecture (SOA) and API-led connectivity approaches?


A. Service centralization


B. Service statefulness


C. Service reusability


D. Service interdependence





C.
  Service reusability

Explanation:

Both Service Oriented Architecture (SOA) and API-led connectivity emphasize the principle of service reusability. This principle involves designing services and APIs in a way that they can be reused across different applications and use cases, reducing redundancy and improving efficiency. By creating reusable services, organizations can accelerate development, maintain consistency, and reduce costs associated with developing and maintaining multiple similar services.

References:

MuleSoft's API-led Connectivity Approach

Service-Oriented Architecture (SOA) Principles

An API client makes an HTTP request to an API gateway with an Accept header containing the value’’ application’’. What is a valid HTTP response payload for this request in the client requested data format?


A. healthy


B. {"status" "healthy"}


C. status(‘healthy")


D. status: healthy





B.
  {"status" "healthy"}

Explanation:

When an API client makes an HTTP request to an API gateway with an Accept header containing the value "application/json", the valid HTTP response payload should be in JSON format. The correct JSON format for indicating a healthy status is {"status": "healthy"}. This format uses a JSON object with a key-value pair where the key is "status" and the value is "healthy".

Other options provided are not valid JSON responses:

healthy is XML format.

status('healthy') and status: healthy are not valid JSON syntax.

References

HTTP Content Negotiation and Accept Headers

JSON Formatting and Syntax Rules

An organization is designing Mule application which connects to a legacy backend. It has been reported that backend services are not highly available and experience downtime quite often. As an integration architect which of the below approach you would propose to achieve high reliability goals?


A. Alerts can be configured in Mule runtime so that backend team can be communicated when services are down


B. Until Successful scope can be implemented while calling backend API's


C. On Error Continue scope to be used to call in case of error again


D. Create a batch job with all requests being sent to backend using that job as per the availability of backend API's





B.
  Until Successful scope can be implemented while calling backend API's

Explanation

Correct answer is Untill Successful scope can be implemented while calling backend API's The Until Successful scope repeatedly triggers the scope's components (including flow references) until they all succeed or until a maximum number of retries is exceeded The scope provides option to control the max number of retries and the interval between retries The scope can execute any sequence of processors that may fail for whatever reason and may succeed upon retry

What Mule application can have API policies applied by Anypoint Platform to the endpoint exposed by that Mule application?


A. A Mule application that accepts requests over HTTP/1x


B. A Mule application that accepts JSON requests over TCP but is NOT required to provide a response.


C. A Mule application that accepts JSON requests over WebSocket


D. A Mule application that accepts gRPC requests over HTTP/2





A.
  A Mule application that accepts requests over HTTP/1x

Explanation

* HTTP/1.1 keeps all requests and responses in plain text format.

* HTTP/2 uses the binary framing layer to encapsulate all messages in binary format, while still maintaining HTTP semantics, such as verbs, methods, and headers. It came into use in 2015, and offers several methods to decrease latency, especially when dealing with mobile platforms and server-intensive graphics and videos

* Currently, Mule application can have API policies only for Mule application that accepts requests over HTTP/1x

A developer is examining the responses from a RESTful web service that is compliant with the Mypertext Transfer Protocol (HTTP/1.1) a8 defined by the Internet Engineering Task Force (IETF). In this HTTP/1.1-compliant web service, which class of HTTP response status codes should be specified to indicate when client requests are successfully received, understood, and accepted by the web service?


A. 3xx


B. 2xx


C. 4xx


D. 5xx





B.
  2xx

Explanation:

In an HTTP/1.1-compliant web service, the class of HTTP response status codes that indicates successful client requests is the 2xx class. These status codes signify that the client's request was successfully received, understood, and accepted by the web service. Common 2xx status codes include:

200 OK: The request was successful.

201 Created: The request was successful and a new resource was created.

202 Accepted: The request has been accepted for processing, but the processing is not yet complete.

Other status code classes like 3xx (redirection), 4xx (client errors), and 5xx (server errors) indicate different types of responses and do not signify successful request processing.

References

IETF RFC 2616: HTTP/1.1 Specification

HTTP Status Code Definitions

A Mule application uses APIkit for SOAP to implement a SOAP web service. The Mule application has been deployed to a CloudHub worker in a testing environment.

The integration testing team wants to use a SOAP client to perform Integration testing. To carry out the integration tests, the integration team must obtain the interface definition for the SOAP web service.

What is the most idiomatic (used for its intended purpose) way for the integration testing team to obtain the interface definition for the deployed SOAP web service in order to perform integration testing with the SOAP client?


A. Retrieve the OpenAPI Specification file(s) from API Manager


B. Retrieve the WSDL file(s) from the deployed Mule application


C. Retrieve the RAML file(s) from the deployed Mule application


D. Retrieve the XML file(s) from Runtime Manager





D.
  Retrieve the XML file(s) from Runtime Manager

Explanation:

Reference: [Reference: https://docs.spring.io/spring-framework/docs/4.2.x/spring-framework-reference/html/integration-testing.html , , , ]


Page 7 out of 23 Pages
Previous