ExamGecko
Home Home / MuleSoft / MCPA - Level 1

MuleSoft MCPA - Level 1 Practice Test - Questions Answers, Page 6

Question list
Search
Search

List of questions

Search

Related questions











What is true about API implementations when dealing with legal regulations that require all data processing to be performed within a certain jurisdiction (such as in the USA or the EU)?

A.
They must avoid using the Object Store as it depends on services deployed ONLY to the US East region
A.
They must avoid using the Object Store as it depends on services deployed ONLY to the US East region
Answers
B.
They must use a Jurisdiction-local external messaging system such as Active MQ rather than Anypoint MQ
B.
They must use a Jurisdiction-local external messaging system such as Active MQ rather than Anypoint MQ
Answers
C.
They must te deployed to Anypoint Platform runtime planes that are managed by Anypoint Platform control planes, with both planes in the same Jurisdiction
C.
They must te deployed to Anypoint Platform runtime planes that are managed by Anypoint Platform control planes, with both planes in the same Jurisdiction
Answers
D.
They must ensure ALL data is encrypted both in transit and at rest
D.
They must ensure ALL data is encrypted both in transit and at rest
Answers
Suggested answer: A, B, C, D

Explanation:

Answer: They must be deployed to Anypoint Platform runtime planes that are managed by Anypoint Platform control planes, with both planes in the same Jurisdiction.

*****************************************

>> As per legal regulations, all data processing to be performed within a certain jurisdiction.

Meaning, the data in USA should reside within USA and should not go out. Same way, the data in EU should reside within EU and should not go out.

>> So, just encrypting the data in transit and at rest does not help to be compliant with the rules. We need to make sure that data does not go out too.

>> The data that we are talking here is not just about the messages that are published to Anypoint MQ. It includes the apps running, transaction states, application logs, events, metric info and any other metadata. So, just replacing Anypoint

MQ with a locally hosted ActiveMQ does NOT help.

>> The data that we are talking here is not just about the key/value pairs that are stored in Object Store. It includes the messages published, apps running, transaction states, application logs, events, metric info and any other metadata. So, just avoiding using Object Store does NOT help.

>> The only option left and also the right option in the given choices is to deploy application on runtime and control planes that are both within the jurisdiction.

An API has been updated in Anypoint Exchange by its API producer from version 3.1.1 to 3.2.0 following accepted semantic versioning practices and the changes have been communicated via the API's public portal.

The API endpoint does NOT change in the new version.

How should the developer of an API client respond to this change?

A.
The update should be identified as a project risk and full regression testing of the functionality that uses this API should be run
A.
The update should be identified as a project risk and full regression testing of the functionality that uses this API should be run
Answers
B.
The API producer should be contacted to understand the change to existing functionality
B.
The API producer should be contacted to understand the change to existing functionality
Answers
C.
The API producer should be requested to run the old version in parallel with the new one
C.
The API producer should be requested to run the old version in parallel with the new one
Answers
D.
The API client code ONLY needs to be changed if it needs to take advantage of new features
D.
The API client code ONLY needs to be changed if it needs to take advantage of new features
Answers
Suggested answer: D

Explanation:

Reference: https://docs.mulesoft.com/exchange/to-change-raml-version

Mule applications that implement a number of REST APIs are deployed to their own subnet that is inaccessible from outside the organization.

External business-partners need to access these APIs, which are only allowed to be invoked from a separate subnet dedicated to partners - called Partner-subnet. This subnet is accessible from the public internet, which allows these external partners to reach it.

Anypoint Platform and Mule runtimes are already deployed in Partner-subnet. These Mule runtimes can already access the APIs.

What is the most resource-efficient solution to comply with these requirements, while having the least impact on other applications that are currently using the APIs?

A.
Implement (or generate) an API proxy Mule application for each of the APIs, then deploy the API proxies to the Mule runtimes
A.
Implement (or generate) an API proxy Mule application for each of the APIs, then deploy the API proxies to the Mule runtimes
Answers
B.
Redeploy the API implementations to the same servers running the Mule runtimes
B.
Redeploy the API implementations to the same servers running the Mule runtimes
Answers
C.
Add an additional endpoint to each API for partner-enablement consumption
C.
Add an additional endpoint to each API for partner-enablement consumption
Answers
D.
Duplicate the APIs as Mule applications, then deploy them to the Mule runtimes
D.
Duplicate the APIs as Mule applications, then deploy them to the Mule runtimes
Answers
Suggested answer: A

When could the API data model of a System API reasonably mimic the data model exposed by the corresponding backend system, with minimal improvements over the backend system's data model?

A.
When there is an existing Enterprise Data Model widely used across the organization
A.
When there is an existing Enterprise Data Model widely used across the organization
Answers
B.
When the System API can be assigned to a bounded context with a corresponding data model
B.
When the System API can be assigned to a bounded context with a corresponding data model
Answers
C.
When a pragmatic approach with only limited isolation from the backend system is deemed appropriate
C.
When a pragmatic approach with only limited isolation from the backend system is deemed appropriate
Answers
D.
When the corresponding backend system is expected to be replaced in the near future
D.
When the corresponding backend system is expected to be replaced in the near future
Answers
Suggested answer: A, B, C, D

Explanation:

Answer: When a pragmatic approach with only limited isolation from the backend system is deemed appropriate.

*****************************************

General guidance w.r.t choosing Data Models:

>> If an Enterprise Data Model is in use then the API data model of System APIs should make use of data types from that Enterprise Data Model and the corresponding API implementation should translate between these data types from the Enterprise Data Model and the native data model of the backend system.

>> If no Enterprise Data Model is in use then each System API should be assigned to a Bounded Context, the API data model of System APIs should make use of data types from the corresponding Bounded Context Data Model and the corresponding API implementation should translate between these data types from the Bounded Context Data Model and the native data model of the backend system. In this scenario, the data types in the Bounded Context Data Model are defined purely in terms of their business characteristics and are typically not related to the native data model of the backend system. In other words, the translation effort may be significant.

>> If no Enterprise Data Model is in use, and the definition of a clean Bounded Context Data Model is considered too much effort, then the API data model of System APIs should make use of data types that approximately mirror those from the backend system, same semantics and naming as backend system, lightly sanitized, expose all fields needed for the given System API's functionality, but not significantly more and making good use of REST conventions.

The latter approach, i.e., exposing in System APIs an API data model that basically mirrors that of the backend system, does not provide satisfactory isolation from backend systems through the System API tier on its own. In particular, it will typically not be possible to "swap out" a backend system without significantly changing all System APIs in front of that backend system and therefore the API implementations of all Process APIs that depend on those System APIs! This is so because it is not desirable to prolong the life of a previous backend system's data model in the form of the API data model of System APIs that now front a new backend system. The API data models of System APIs following this approach must therefore change when the backend system is replaced.

On the other hand:

>> It is a very pragmatic approach that adds comparatively little overhead over accessing the backend system directly

>> Isolates API clients from intricacies of the backend system outside the data model (protocol, authentication, connection pooling, network address, …)

>> Allows the usual API policies to be applied to System APIs

>> Makes the API data model for interacting with the backend system explicit and visible, by exposing it in the RAML definitions of the System APIs

>> Further isolation from the backend system data model does occur in the API implementations of the Process API tier

Refer to the exhibit.

An organization uses one specific CloudHub (AWS) region for all CloudHub deployments.

How are CloudHub workers assigned to availability zones (AZs) when the organization's Mule applications are deployed to CloudHub in that region?

A.
Workers belonging to a given environment are assigned to the same AZ within that region
A.
Workers belonging to a given environment are assigned to the same AZ within that region
Answers
B.
AZs are selected as part of the Mule application's deployment configuration
B.
AZs are selected as part of the Mule application's deployment configuration
Answers
C.
Workers are randomly distributed across available AZs within that region
C.
Workers are randomly distributed across available AZs within that region
Answers
D.
An AZ is randomly selected for a Mule application, and all the Mule application's CloudHub workers are assigned to that one AZ
D.
An AZ is randomly selected for a Mule application, and all the Mule application's CloudHub workers are assigned to that one AZ
Answers
Suggested answer: A, B, C, D

Explanation:

Answer: Workers are randomly distributed across available AZs within that region.

*****************************************

>> Currently, we only have control to choose which AWS Region to choose but there is no control at all using any configurations or deployment options to decide what Availability Zone (AZ) to assign to what worker.

>> There are NO fixed or implicit rules on platform too w.r.t assignment of AZ to workers based on environment or application.

>> They are completely assigned in random. However, cloudhub definitely ensures that HA is achieved by assigning the workers to more than on AZ so that all workers are not assigned to same AZ for same application.

Reference: https://help.mulesoft.com/s/question/0D52T000051rqDj/one-cloudhub-aws-region-howcloudhub-workers-are-assigned-to-availability-zones-azs-

What is most likely NOT a characteristic of an integration test for a REST API implementation?

A.
The test needs all source and/or target systems configured and accessible
A.
The test needs all source and/or target systems configured and accessible
Answers
B.
The test runs immediately after the Mule application has been compiled and packaged
B.
The test runs immediately after the Mule application has been compiled and packaged
Answers
C.
The test is triggered by an external HTTP request
C.
The test is triggered by an external HTTP request
Answers
D.
The test prepares a known request payload and validates the response payload
D.
The test prepares a known request payload and validates the response payload
Answers
Suggested answer: A, B, C, D

Explanation:

Answer: The test runs immediately after the Mule application has been compiled and packaged *****************************************

>> Integration tests are the last layer of tests we need to add to be fully covered.

>> These tests actually run against Mule running with your full configuration in place and are tested from external source as they work in PROD.

>> These tests exercise the application as a whole with actual transports enabled. So, external systems are affected when these tests run.

So, these tests do NOT run immediately after the Mule application has been compiled and packaged.

FYI... Unit Tests are the one that run immediately after the Mule application has been compiled and packaged.

Reference: https://docs.mulesoft.com/mule-runtime/3.9/testing-strategies#integration-testing

An API implementation is updated. When must the RAML definition of the API also be updated?

A.
When the API implementation changes the structure of the request or response messages
A.
When the API implementation changes the structure of the request or response messages
Answers
B.
When the API implementation changes from interacting with a legacy backend system deployed on-premises to a modern, cloud-based (SaaS) system
B.
When the API implementation changes from interacting with a legacy backend system deployed on-premises to a modern, cloud-based (SaaS) system
Answers
C.
When the API implementation is migrated from an older to a newer version of the Mule runtime
C.
When the API implementation is migrated from an older to a newer version of the Mule runtime
Answers
D.
When the API implementation is optimized to improve its average response time
D.
When the API implementation is optimized to improve its average response time
Answers
Suggested answer: A, C

Explanation:

Answer: When the API implementation changes the structure of the request or response messages

*****************************************

>> RAML definition usually needs to be touched only when there are changes in the request/response schemas or in any traits on API.

>> It need not be modified for any internal changes in API implementation like performance tuning, backend system migrations etc..

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/1.x
A.
A Mule application that accepts requests over HTTP/1.x
Answers
B.
A Mule application that accepts JSON requests over TCP but is NOT required to provide a response
B.
A Mule application that accepts JSON requests over TCP but is NOT required to provide a response
Answers
C.
A Mute application that accepts JSON requests over WebSocket
C.
A Mute application that accepts JSON requests over WebSocket
Answers
D.
A Mule application that accepts gRPC requests over HTTP/2
D.
A Mule application that accepts gRPC requests over HTTP/2
Answers
Suggested answer: A

Explanation:

Answer: Option A

*****************************************

>> Anypoint API Manager and API policies are applicable to all types of HTTP/1.x APIs.

>> They are not applicable to WebSocket APIs, HTTP/2 APIs and gRPC APIs

Reference: https://docs.mulesoft.com/api-manager/2.x/using-policies

What Anypoint Connectors support transactions?

A.
Database, JMS, VM
A.
Database, JMS, VM
Answers
B.
Database, 3MS, HTTP
B.
Database, 3MS, HTTP
Answers
C.
Database, JMS, VM, SFTP
C.
Database, JMS, VM, SFTP
Answers
D.
Database, VM, File
D.
Database, VM, File
Answers
Suggested answer: A

A REST API is being designed to implement a Mule application.

What standard interface definition language can be used to define REST APIs?

A.
Web Service Definition Language(WSDL)
A.
Web Service Definition Language(WSDL)
Answers
B.
OpenAPI Specification (OAS)
B.
OpenAPI Specification (OAS)
Answers
C.
YAML
C.
YAML
Answers
D.
AsyncAPI Specification
D.
AsyncAPI Specification
Answers
Suggested answer: B
Total 95 questions
Go to page: of 10