You need to create a centralized metadata connection to database server for an application. Which steps should you take before building a Job that reads from that database? Choose 3 answers
Correct Answer: B,C,D
Explanation To create a centralized metadata connection to a database server for an application, you need to take the following steps before building a job that reads from that database: Create DB Connections metadata to describe the database connection. You can do this by right-clicking on the DB Connections node in the Repository and selecting Create Connection. You can then enter the connection details, such as host, port, database, username, password, etc., and test the connection. Retrieve schemas from the database connection. You can do this by expanding the DB Connections node in the Repository and right-clicking on the connection you created. You can then select Retrieve Schema and choose the tables or views you want to import as metadata schemas. You can also edit or customize the schemas as needed. Drag the DB Connection metadata into the Designer to read from the database component. You can do this by dragging the connection or a specific schema from the Repository to the Designer workspace. This will automatically create a database input component (such as tMysqlInput) that is configured with the connection and schema properties. You can then use this component to read data from the database in your job. You do not need to add a tMap component to handle and convert DB Types, nor a tCreateTable component to create a table in the database. These components are not required for reading data from an existing database, but they can be used for other purposes, such as transforming or writing data. References: Talend Open Studio: Open-source ETL and Free Data Integration | Talend, [DB Connections - 7.3], [tMap properties - 7.3], [tCreateTable properties - 7.3]
Question 12
How are contexts defined?
Correct Answer: C
Explanation Contexts are a way of defining different sets of values for variables that are used in a job. For example, you can define a context for testing and another context for production, with different values for the database connection parameters, file paths, etc. You can then switch between the contexts easily without modifying the job design. Contexts are not automatically defined by the types of components used in the job, nor by Talend Studio. You must define the contexts yourself in the Contexts tab of your job. You can also create context groups in the Repository and reuse them in multiple jobs. References: Talend Data Integration - Software to Connect, Access, and Transform Data | Talend,
Question 13
You designing a Job that can run in two contexts, Test and Production. You want to run it as a standalone job outside Talend Studio. How do you accomplish this?
Correct Answer: D
Explanation To design a job that can run in two contexts, Test and Production, and run it as a standalone job outside Talend Studio, you need to do the following steps: Define the context variables and values for each context in the Contexts tab of your job. A context variable is a variable that can store a value that can be changed at runtime or between different contexts. You can use context variables to parameterize the properties or expressions of your job components. Build the job with the desired context selected in the Build Job window. You can access this option by right-clicking on your job in the Repository tree view and selecting Build Job. This will open a dialog box where you can configure the build settings, such as destination folder, archive name, context, etc. You need to select the context that you want to use for your job execution from the drop-down menu. Extract the content of the archive file that contains your job executable files and libraries. The archive file also contains two executable files: a batch file (.bat) for Windows platforms and a shell script (.sh) for Linux platforms. You need to run the appropriate file for your platform by double-clicking on it or using a command line tool. This will launch the job and display its output in a console window. If you need to run the job in a different context, you need to build a separate copy of the job with the other context selected in the Build Job window. You cannot change the context of an already built job without rebuilding it. You do not need to build the job with the Context scripts option selected in the Build Job window, edit the script according to the context in which you want to run the job, set the desired context as the default, rebuild the job if you need to run it in a different context, or be prompted for the context. These methods are not correct or available in Talend Studio and may cause errors or unexpected results. References: Talend Open Studio: Open-source ETL and Free Data Integration | Talend, [Build Job - 7.3], [Contexts - 7.3]
Question 14
How do you create an empty Joblet?
Correct Answer: C
Explanation To create an empty Joblet, you need to right-click on the Joblet Designs node in the Repository tree view and select Create Joblet option. This will open a dialog box whereyou can enter the name and description of your Joblet and select an icon for it. You can then design your Joblet by adding components and links to it in the Designer workspace. You cannot create an empty Joblet by creating an empty job, then exporting it as a Joblet by right-clicking it in the Repository, creating an empty job and using the file menu to save it as Joblet, or right-clicking a space in the Designer and selecting refactor to Joblet. These methods are not available in Talend Studio and may cause errors or unexpected results. References: Talend Open Studio: Open-source ETL and Free Data Integration | Talend, [Joblets - 7.3]
Question 15
You have two Talend Jobs. Job A need to call Job B. After Job B is complete, processed data stored in the tBufferOutput buffer memory must be transferred back to Job A. How can you achieve this requirement?
Correct Answer: C
Explanation To call a different job within a job you are developing, you can use the tRunJob component. This component allows you to execute another job as a subjob within a parent job. To pass the parameters to the job you want to call, you can use the context parameters. Context parameters are variables that can store values that can be changed at runtime or between different contexts. You can define context parameters in the Contexts tab of your job and assign them values for each context. You can also pass context parameters from the parent job to the child job by using the Context Param tab of the tRunJob component. This way, you can parameterize the properties or expressions of the child job with the values from the parent job. To transfer processed data stored in the tBufferOutput buffer memory back to the parent job, you need to select the Propagate the child result to output schema option in the Advanced settings of the tRunJob component. This option allows you to retrieve the data from the tBufferOutput component of the child job and send it to an output row of the parent job. The tBufferOutput component is used to store data in memory without writing it to disk or database. You can use this component to optimize the performance and memory usage of your job. You do not need to select the Transmit whole context option in either Basic or Advanced settings of the tRunJob component. This option allows you to pass all the context parameters from the parent job to the child job without specifying them individually. This option does not affect the data transfer from the tBufferOutput component. You also do not need to select the Propagate the child result to output schema option in Basic settings of the tRunJob component, as this option is only available in Advanced settings. References: Talend Open Studio: Open-source ETL and Free Data Integration | Talend, [tRunJob properties - 7.3], [tBufferOutput properties - 7.3], [Contexts - 7.3]