TALEND-CORE-DEVELOPER practice question 6 of 15

Which statements are true when comparing a Joblet to a tRunJob component? Choose 3 answers

Full set: 55 questions
Answer options
A: The performance of tRunJob component is better than running an equivalent Job using a Joblet.
B: A Joblet uses the same context variables of the Job in which it is used, unlinke a tRunJob component. Correct answer
C: The performance of a Joblet if better than running an equivalent Job using a tRunJob component. Correct answer
D: Building a Joblet typically requires the use of generic input, and trigger component. Correct answer
E: The nested Job called by a tRunJob component cannot use the same context variable of the Job in which it is used.
Correct Answer:
B. A Joblet uses the same context variables of the Job in which it is used, unlinke a tRunJob component.; C. The performance of a Joblet if better than running an equivalent Job using a tRunJob component.; D. Building a Joblet typically requires the use of generic input, and trigger component.
Explanation

• A Joblet becomes native code inside the parent Job, so no extra task or JVM context is started, giving it a lighter-weight, faster execution path than an equivalent child Job invoked through tRunJob.
• All context variables already declared in the parent Job are instantly visible inside the Joblet; no configuration is required. A tRunJob, in contrast, passes no context variables unless the designer explicitly enables “Transmit whole context” or maps individual variables.
• When you design a Joblet you usually add at least one generic input component such as tFixedFlowInput (to expose the data connector) and create OnComponent/OnSubjob triggers to define the Joblet’s technical inlet and outlet, before replacing the placeholders with the real logic.

Why Incorrect

A. tRunJob starts a separate task (or thread), adding overhead; it is generally slower than an inline Joblet.
E. tRunJob can share all parent-job context variables by selecting “Transmit whole context,” so it is not prohibited from using the same variables.

References

1. Talend Studio User Guide 8.0

“Developing Joblets”

§ Working with context variables in Joblets

p. 1725–1726.

2. Talend Studio User Guide 8.0

“About performance of Joblets vs. tRunJob”

p. 1731.

3. Talend Studio User Guide 8.0

“Creating a Joblet”

steps 3-6 (use of tFixedFlowInput and trigger links)

p. 1718–1720.

4. Talend Studio User Guide 8.0

component reference “tRunJob”

option “Transmit whole context”

p. 1120.

Scroll to Top