TALEND-CORE-DEVELOPER practice question 4 of 15

You are using a tRESTClient component to call a REST service. Which advanced option should you use to convert the response from the server to the document type?

Full set: 55 questions
Answer options
A: Convert Response To XML Document
B: Convert Response To JSON Document
C: Convert Response To DOM Document Correct answer
D: Convert Response To HTML Document
Correct Answer:
C. Convert Response To DOM Document
Explanation

In the tRESTClient component the only built-in feature that changes the returned entity into a Java org.w3c.dom.Document object is the Advanced-settings check box called “Convert response to DOM Document”. When selected, Talend parses the HTTP response (if it is XML) and stores it in the flow as a Document type so that downstream components can handle it with Talend’s Document-oriented metadata. No other “Convert response to …” options (XML, JSON, HTML) exist in the component palette, therefore option C is the sole valid choice.

Why Incorrect

A. “Convert Response To XML Document” – This option does not exist in tRESTClient Advanced settings.
B. “Convert Response To JSON Document” – tRESTClient offers no JSON-to-Document auto-conversion checkbox.
D. “Convert Response To HTML Document” – There is no feature with this label in the component; HTML is not converted to Document automatically.

References

1. Talend Component Reference Guide 8.0 (R2023-06)

“tRESTClient” → Advanced settings

page 516: lists “Convert response to DOM Document”.

2. Talend ESB Studio User Guide 7.3

chap. “Calling REST services”

subsection “tRESTClient advanced parameters”

p. 312: describes the checkbox “Convert response to DOM Document” and its effect.

3. Talend Open Studio for Data Integration 7.1 Component Reference

p. 397: same parameter description

clarifying that no XML/JSON/HTML options exist.

Scroll to Top