ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 35 - Certified MuleSoft Developer II discussion

Report
Export

A Mule API receives a JSON payload and updates the target system with the payload. The developer uses JSON schemas to ensure the data is valid.

How can the data be validation before posting to the target system?

A.
Use a DataWeave 2.09 transform operation, and at the log of the DataWeave script, add: %dw 2.0 Import.json-moduls
Answers
A.
Use a DataWeave 2.09 transform operation, and at the log of the DataWeave script, add: %dw 2.0 Import.json-moduls
B.
Using the DataWeave if Else condition test the values of the payload against the examples included in the schema
Answers
B.
Using the DataWeave if Else condition test the values of the payload against the examples included in the schema
C.
Apply the JSON Schema policy in API Manager and reference the correct schema in the policy configuration
Answers
C.
Apply the JSON Schema policy in API Manager and reference the correct schema in the policy configuration
D.
Add the JSON module dependency and add the validate-schema operation in the flow, configured to reference the schema
Answers
D.
Add the JSON module dependency and add the validate-schema operation in the flow, configured to reference the schema
Suggested answer: D

Explanation:

To validate the data before posting to the target system, the developer should add the JSON module dependency and add the validate-schema operation in the flow, configured to reference the schema. The JSON module provides a validate-schema operation that validates a JSON payload against a JSON schema and throws an error if the payload is invalid.

Reference: https://docs.mulesoft.com/json-module/1.1/json-validate-schema

asked 23/09/2024
Aejaz Rab
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first