ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 51 - Certified MuleSoft Developer II discussion

Report
Export

Refer to the exhibit.

Based on the code snippet, schema,json file, and payload below, what is the outcome of the given code snippet when a request is sent with the payload?

A.
The Mule flow will execute successfully with status code 200, and the response will be the JSON sent in request
Answers
A.
The Mule flow will execute successfully with status code 200, and the response will be the JSON sent in request
B.
The Mule flow will execute successfully with status code 204
Answers
B.
The Mule flow will execute successfully with status code 204
C.
The Mule flow will throw the exception 'JSON:SCHEMA_NOT_HONOURED
Answers
C.
The Mule flow will throw the exception 'JSON:SCHEMA_NOT_HONOURED
D.
The Mule flow will execute successfully with status code 200m and a response will display the message '' Age in years which must equal to or greater than zero.''
Answers
D.
The Mule flow will execute successfully with status code 200m and a response will display the message '' Age in years which must equal to or greater than zero.''
Suggested answer: C

Explanation:

Based on the code snippet, schema.json file, and payload below, the outcome of the given code snippet when a request is sent with the payload is that the Mule flow will throw the exception 'JSON:SCHEMA_NOT_HONOURED'. This is because the payload does not conform to the schema.json file, which specifies that age must be a number greater than or equal to zero. The payload has age as a string with a negative value, which violates the schema. Therefore, the validate-schema operation throws an error with type 'JSON:SCHEMA_NOT_HONOURED'.

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

asked 23/09/2024
SULIMAN ALGHURAIR
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first