Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Salesforce MuleSoft Developer II Topic 2 Question 6 Discussion

Actual exam question for Salesforce's Salesforce MuleSoft Developer II exam
Question #: 6
Topic #: 2
[All Salesforce MuleSoft Developer II Questions]

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?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Jody
6 months ago
Wait, there's a 'json-moduls' import? I'm pretty sure that's not a real thing. This question is getting weirder by the minute.
upvoted 0 times
...
Tien
6 months ago
I'm leaning towards option A, but I'm a bit concerned about the 'log of the DataWeave script' part. Seems a bit sketchy to me.
upvoted 0 times
...
Marguerita
6 months ago
Haha, I'm not sure if the 'Mule API' is a real thing or just a made-up name for the question. Either way, option B seems like a good way to validate the payload.
upvoted 0 times
Dana
5 months ago
I agree, it's important to test the values against the schema examples.
upvoted 0 times
...
Domonique
5 months ago
Yeah, using the DataWeave if Else condition makes sense.
upvoted 0 times
...
Polly
5 months ago
I think option B is a good choice for validating the payload.
upvoted 0 times
...
...
Nancey
6 months ago
Option D looks interesting, but I'm not sure if adding the JSON module dependency is necessary if we're already using DataWeave.
upvoted 0 times
Sheldon
5 months ago
I agree, using the validate-schema operation with the correct schema reference can help with validation.
upvoted 0 times
...
Keshia
5 months ago
Option D seems like a good choice to ensure the data is valid.
upvoted 0 times
...
Moira
5 months ago
B: I agree, using the JSON Schema policy in API Manager seems like a secure way to ensure data validity.
upvoted 0 times
...
Erick
5 months ago
A: Yeah, that could be a good way to ensure the data is valid before updating the target system.
upvoted 0 times
...
Amos
6 months ago
B: I think Option C is more efficient, using the JSON Schema policy in API Manager.
upvoted 0 times
...
Andree
6 months ago
A: Option A seems like a good way to validate the data before posting.
upvoted 0 times
...
Fairy
6 months ago
A: I think option C is the best way to validate the data before posting.
upvoted 0 times
...
...
Nobuko
7 months ago
I think option C is the way to go. Using the API Manager to apply the JSON schema policy is a clean and straightforward approach.
upvoted 0 times
Caprice
6 months ago
D) Add the JSON module dependency and add the validate-schema operation in the flow, configured to reference the schema
upvoted 0 times
...
Marget
6 months ago
B) Using the DataWeave if Else condition test the values of the payload against the examples included in the schema
upvoted 0 times
...
Casandra
6 months ago
C) Apply the JSON Schema policy in API Manager and reference the correct schema in the policy configuration
upvoted 0 times
...
Huey
6 months ago
Yes, using the JSON Schema policy in API Manager simplifies the process and ensures the data is valid.
upvoted 0 times
...
Ena
6 months ago
I agree, option C seems like the most efficient way to validate the data before posting it.
upvoted 0 times
...
...

Save Cancel