Câu 2: Salesforce Certified MuleSoft Developer II
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 validated before posting to the target system?
Nội dung câu hỏi
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 validated before posting to the target system?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Apply the JSON Schema policy in API Manager and reference the correct schema in the policy configuration
- B. Use a DataWeave 2.0 transform operation, and at the top of the DataWeave script, add:%dw 2.0import json-module
- C. Add the JSON module dependency and add the validate-schema operation in the flow, configured to reference the schema — đáp án hiện tại
- D. Using the DataWeave If Else condition, test the values of the payload against the examples included in the schema
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.