Deal of The Day! 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 Certified MuleSoft Developer II exam
Question #: 6
Topic #: 2
[All Salesforce Certified 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
2 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
2 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
2 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
1 months ago
User 3: I agree, it's important to test the values against the schema examples.
upvoted 0 times
...
Domonique
2 months ago
User 2: Yeah, using the DataWeave if Else condition makes sense.
upvoted 0 times
...
Polly
2 months ago
User 1: I think option B is a good choice for validating the payload.
upvoted 0 times
...
...
Nancey
3 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
2 months ago
User 2: I agree, using the validate-schema operation with the correct schema reference can help with validation.
upvoted 0 times
...
Keshia
2 months ago
User 1: Option D seems like a good choice to ensure the data is valid.
upvoted 0 times
...
Moira
2 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
2 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
2 months ago
B: I think Option C is more efficient, using the JSON Schema policy in API Manager.
upvoted 0 times
...
Andree
2 months ago
A: Option A seems like a good way to validate the data before posting.
upvoted 0 times
...
Fairy
2 months ago
A: I think option C is the best way to validate the data before posting.
upvoted 0 times
...
...
Nobuko
3 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
2 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
2 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
3 months ago
C) Apply the JSON Schema policy in API Manager and reference the correct schema in the policy configuration
upvoted 0 times
...
Huey
3 months ago
Yes, using the JSON Schema policy in API Manager simplifies the process and ensures the data is valid.
upvoted 0 times
...
Ena
3 months ago
I agree, option C seems like the most efficient way to validate the data before posting it.
upvoted 0 times
...
...

Save Cancel