An organization uses CloudHub to deploy all of its applications. How can a common-global-handler flow be configured so that it can be reused across all of the organization's deployed applications?
-
A
Create a Mule plugin project Create a common-global-error-handler flow inside the plugin project. Use this plugin as a dependency in all Mute applications. Import that configuration file in Mute applications.
-
B
Create a common-global-error-handler flow in all Mule Applications Refer to it flow-ref wherever needed.
-
C
Create a Mule Plugin project Create a common-global-error-handler flow inside the plugin project. Use this plugin as a dependency in all Mule applications
-
D
Create a Mule daman project. Create a common-global-error-handler flow inside the domain project. Use this domain project as a dependency.
Reveal answer details
Close answer details
Correct answerC
ExplanationTo configure a common-global-handler flow that can be reused across all of the organization's deployed applications, the developer should create a Mule Plugin project, create a common-globalerror-handler flow inside the plugin project, and use this plugin as a dependency in all Mule applications. This way, the developer can import the common-global-error-handler flow in any application that needs it and avoid duplicating the error handling logic. References: https://docs.mulesoft.com/mule-runtime.3/error-handling#global-error-handler
The flow is invoicing a target API. The API's protocol is HTTPS. The TLS configuration in the HTTP Request Configuration global element is set to None. A web client submits a request to http:localhost:8081/ vehicles. If the certificate of the target API is signed by a certificate authority (CA), what is true about the HTTP Request operation when the flow executes?
-
A
The HTTP Request operation will succeed if the CA'S certificate is present in the JRE's default keystore
-
B
The HTTP Request operation will succeed if the CA's certificate is present in the JRE's default truststore.
-
C
The HTTP Request operation will always succeed regardless of the CA
-
D
The HTTP Request operation will always fail regardless of the CA
Reveal answer details
Close answer details
Correct answerB
ExplanationThe HTTP Request operation will use the default truststore of the JRE to validate the certificate of the target API. If the CA's certificate is present in the truststore, the operation will succeed. Otherwise, it will fail with a handshake exception. https://docs.mulesoft.com/mule-runtime.3/tlsconfiguration# tls-default
A developer is working on a project that requires encrypting all data before sending it to a backend application. To accomplish this, the developer will use PGP encryption in the Mule 4 Cryptography module. What is required to encrypt the data before sending it to the backend application?
-
A
The application needs to configure HTTPS TLS context information to encrypt the data
-
B
The application needs to both the private and public keys to encrypt the data
-
C
The application needs the public key from the backend service to encrypt the data
-
D
The application needs the private key from the backend service to encrypt the data
Reveal answer details
Close answer details
Correct answerC
ExplanationTo encrypt the data before sending it to the backend application using PGP encryption, the application needs the public key from the backend service. PGP encryption uses a public-key cryptography system, which means that each party has a pair of keys: a public key and a private key. The public key is used to encrypt data, and the private key is used to decrypt data. Therefore, to encrypt data for a specific recipient (the backend service), the application needs to use the recipient's public key. The recipient can then use its own private key to decrypt the data. References: https://docs.mulesoft.com/mule-runtime.3/cryptography-pgp
An API has been developed and deployed to CloudHub Among the policies applied to this API is an allowlist of IP addresses. A developer wants to run a test in Anypoint Studio and does not want any policies applied because their workstation is not included in the allowlist. What must the developer do in order to run this test locally without the policies applied?
-
A
Create a properties file specifically for local development and set the API instance ID to a value that is not used in API Manager
-
B
Pass in the runtime parameter "-Danpow.platform.gatekeeper=disabled''
-
C
Deactivate the API in API Manager so the Autodiscovery element will not find the application when it runs in Studio
-
D
Run the test as-s, with no changes because the Studio runtime will not attempt to connect to API Manager
Reveal answer details
Close answer details
Correct answerB
ExplanationTo run a test locally without the policies applied, the developer should create a properties file specifically for local development and set the API instance ID to a value that is not used in API Manager. This way, the developer can use different configuration properties for different environments and avoid triggering API autodiscovery when running tests locally. API autodiscovery is a mechanism that associates an API implementation with its corresponding API specification and policies in API Manager based on its API instance ID. By setting this ID to a value that does not exist in API Manager, the developer can prevent API autodiscovery from finding and applying any policies to the local test. https://docs.mulesoft.com/api-manager.x/api-auto-discovery-newconcept#configuring-api-autodiscovery https://docs.mulesoft.com/mule-runtime.3/configuringproperties
Mule application A is deployed to CloudHub and is using Object Store v2. Mute application B is also deployed to CloudHub. Which approach can Mule application B use to remove values from Mule application A'S Object Store?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerA
ExplanationTo remove values from Mule application A's Object Store v2, Mule application B can use Object Store v2 REST API. This API allows performing operations on Object Store v2 resources using HTTP methods, such as GET, POST, PUT, and DELETE. Mule application B can use the DELETE method to remove values from Mule application A's Object Store v2 by specifying the object store ID and the key of the value to delete. https://docs.mulesoft.com/object-store/osv2-apis
A system API that communicates to an underlying MySQL database is deploying to CloudHub. The DevOps team requires a readiness endpoint to monitor all system APIs. Which strategy should be used to implement this endpoint?
-
A
Create a dedicated endpoint that responds with the API status and reachability of the underlying systems
-
B
Create a dedicated endpoint that responds with the API status and health of the server
-
C
Use an existing resource endpoint of the API
-
D
Create a dedicated endpoint that responds with the API status only
Reveal answer details
Close answer details
Correct answerA
ExplanationTo implement a readiness endpoint to monitor all system APIs, the developer should create a dedicated endpoint that responds with the API status and reachability of the underlying systems. This way, the DevOps team can check if the system API is ready to receive requests and if it can communicate with its backend systems without errors. https://docs.mulesoft.com/muleruntime/4.3/deployment-strategies#readiness-probes
A company has been using CI/CD. Its developers use Maven to handle build and deployment activities. What is the correct sequence of activities that takes place during the Maven build and deployment?
-
A
Initialize, validate, compute, test, package, verify, install, deploy
-
B
Validate, initialize, compile, package, test, install, verify, verify, deploy
-
C
Validate, initialize, compile, test package, verify, install, deploy
-
D
Validation, initialize, compile, test, package, install verify, deploy
Reveal answer details
Close answer details
Correct answerC
ExplanationThe correct sequence of activities that takes place during the Maven build and deployment is validate, initialize, compile, test package, verify, install, deploy. These are Maven lifecycle phases that define a sequence of goals to execute during a build process. Each phase represents a stage in the build lifecycle and can have zero or more goals bound to it. References: https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
A mule application exposes and API for creating payments. An Operations team wants to ensure that the Payment API is up and running at all times in production. Which approach should be used to test that the payment API is working in production?
-
A
Create a health check endpoint that listens on a separate port and uses a separate HTTP Listener configuration from the API
-
B
Configure the application to send health data to an external system
-
C
Create a health check endpoint that reuses the same port number and HTTP Listener configuration as the API itself
-
D
Monitor the Payment API directly sending real customer payment data
Reveal answer details
Close answer details
Correct answerA
ExplanationTo test that the payment API is working in production, the developer should create a health check endpoint that listens on a separate port and uses a separate HTTP Listener configuration from the API. This way, the developer can isolate the health check endpoint from the API traffic and avoid affecting the performance or availability of the API. The health check endpoint should return a simple response that indicates the status of the API, such as OK or ERROR. References: https://docs.mulesoft.com/api-functional-monitoring/afm-create-monitor#create-a-monitor
A Mule application includes a subflow containing a Scatter.Gather scope. Within each log of the Scatter.Gatter. an HTTP connector calls a PUT endpoint to modify records in different upstream system. The subflow is called inside an Unit successful scope to retry if a transitory exception is raised. A technical spike is being performed to increase reliability of the Mule application. Which steps should be performed within the Mule flow above the ensure idempontent behavior?
-
A
Change the PUT requests inside the Scatter-Gather to POST requests
-
B
Ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails
-
C
Remove the Put requests from the Scatter-Getter and perform them sequentially
-
D
None, the flow already exhibits idempotent behavior
Reveal answer details
Close answer details
Correct answerB
ExplanationTo ensure idempotent behavior within a Mule flow that contains a subflow with a Scatter-Gather scope, the developer should ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails. Idempotency means that multiple identical requests have the same effect as a single request. Therefore, if one of the HTTP requests inside the Scatter-Gather fails, the error-handling flow should undo any changes made by other successful requests to ensure consistency and avoid partial updates. https://docs.mulesoft.com/muleruntime/4.3/scatter-gather-concept https://docs.mulesoft.com/mule-runtime.3/error-handling
|