Talend Data Integration Certified Developer — Question 2
You need to create a reusable framework in all of your Jobs to capture the number of records loaded to a database and send it as an email to the customer.
What is the best method to achieve this use case?
Answer options
- A. Add the logic within a Unix shell script and call it using tsystem component.
- B. Add the logic as a Routine, then call the Routine at the end of all the Jobs.
- C. Add the logic to a Joblet and reuse the Joblet in all of the Jobs.
- D. Add the necessary components and logic in one Job and copy it to the other Jobs.
Correct answer: C
Explanation
The best method is to create the logic in a Joblet (Option C) because it allows for easy reuse across multiple Jobs, ensuring consistency and reducing redundancy. Option A, while feasible, doesn't provide a straightforward way to integrate the logic directly within the Jobs. Option B limits the logic's reuse to only the end of the Jobs, while Option D results in multiple Jobs containing duplicated logic, complicating maintenance.