Teradata Interview Questions and Answers
Q1. How do you outline Teradata? Give some of the primary characteristics of the same.
Ans: Teradata is essentially an RDMS that's used to force the Datamart, Datawarehouse, OLAP, OLTP, as well as DSS Appliances of the enterprise. Some of the primary traits of Teradata are given below.
Is capable of jogging on Single-nodes, as well as multi-nodes.
Parallelism is constructed into the machine.
Very lots compatible with the requirements of ANSI.
Tends to behave in the identical way as a server.
It is an Open System that basically executes for UNIX MR-RAS, Suse Linux ETC, WIN2K, and so forth.
Q2. What are the newly developed functions of Teradata?
Ans: Some of the newly evolved features of Teradata are: –
Automated temporal analytics
Extension within the compression talents which allows flexible compression of records about 20 instances more data than the previous version.
Customer associated innovation like tetradata standpoint
Q3. Highlight most of the important components of Teradata.
Ans: Some of the critical components of Teradata are: –
Access Module Processor (AMP)
Parsing Engine (PE)
Virtual Disk (vDisk)
Virtual Storage System (VSS)
Q4. Mention the technique via which, we are able to run Teradata jobs in a UNIX environment?
All you have to do is carry out execution in UNIX inside the way as referred to below.
$Sh > BTEQ < [Script Path] > [Logfile Path]
$Sh > BTEQ < [Script Path] TEE [Logfile Path]
Q5. In Teradata, how do we Generate Sequence?
Ans: In Teradata, we Generate Sequence by making use of Identity Column
Q7. During the Display time, how is the sequence generated by Teradata?
Ans: All you have to do is use CSUM.
Q8. A certain load is being imposed on the table and that too, every hour. The traffic in the morning is relatively low, and that of the night is very high. As per this situation, which is the most advisable utility and how is that utility supposed to be loaded?
Ans: The most suggestible utility here has to be Tpump. By making use of packet size decreasing or increasing, the traffic can be easily handled.
Q9. If Fast Load Script fails and only the error tables are made available to you, then how will you restart?
Ans: There are basically two ways of restarting in this case.
Making the old file to run – Make sure that you do not completely drop the error tables. Instead, try to rectify the errors that are present in the script or the file and then execute again.
Running a new file – In this process, the script is executed simply using end loading and beginning statements. This will help in removing the lock that has been put up on the target table and might also remove the given record from the fast-log table. Once this is done, you are free to run the whole script once again.
Q10. Mention a few of the ETL tools that come under Teradata.
Ans: Some of the ETL tools which are commonly used in Teradata are DataStage, Informatica, SSIS, etc.
Q12. Highlight a few of the advantages that ETL tools have over TD.
Ans: Some of the advantages that ETL tools have over TD are: –
Multiple heterogeneous destinations, as well as sources can be operated.
Debugging process is much easier with the help of ETL tools owing to full-fledged GUI support.
Components of ETL tools can be easily reused, and as a result, if there is an update to the main server, then all the corresponding applications connected to the server are updated automatically.
De-pivoting and pivoting can be easily done using ETL tools.
Q13. What is the meaning of Caching in Teradata?
Ans: Caching is considered as an added advantage of using Teradata as it primarily works with the source which stays in the same order i.E. Does not change on a frequent basis. At times, Cache is usually shared amongst applications.
Q14. How can we check the version of Teradata that we are using currently?
Ans: Just give the command .SHOW VERSION.
Q15. Give a justifiable reason why Multi-load supports NUSI instead of USI.
Ans: The index sub-table row happens to be on the same Amp in the same way as the data row in NUSI. Thus, each Amp is operated separately and in a parallel manner.
Q16. How is MLOAD Client System restarted after execution?
Ans: The script has to be submitted manually so that it can easily load the data from the checkpoint that comes last.
Q17. How is MLOAD Teradata Server restarted after execution?
Ans: The process is basically carried out from the last known checkpoint, and once the data has been carried out after execution of MLOAD script, the server is restarted.
Q18. What is meant by a node?
Ans: A node basically is termed as an assortment of components of hardware and software. Usually a server is referred to as a node.
Q19. Let us say there is a file that consists of 100 records out of which we need to skip the first and the last 20 records. What will the code snippet?
Ans: We need to use BTEQ Utility in order to do this task. Skip 20, as well as Repeat 60 will be used in the script.
Q20. Explain PDE.
Ans: PDE basically stands for Parallel Data Extension. PDE basically happens to be an interface layer of software present above the operation system and gives the database a chance to operate in a parallel milieu.
Q21. What is TPD?
Ans: TPD basically stands for Trusted Parallel Database, and it basically works under PDE. Teradata happens to be a database that primarily works under PDE. This is the reason why Teradata is usually referred to as Trusted Parallel or Pure Parallel database.
Q22. What is meant by a Channel Driver?
Ans: A channel driver is software that acts as a medium of communication between PEs and all the applications that are running on channels which are attached to the clients.
Q23. What is meant by Teradata Gateway?
Ans: Just like channel driver, Teradata Gateway acts as a medium of communication between the Parse Engine and applications that are attached to network clients. Only one Gateway is assigned per node.
Q24. What is meant by a Virtual Disk?
Ans: Virtual Disk is basically a compilation of a whole array of cylinders which are physical disks. It is sometimes referred to as disk Array.
Q25. Explain the meaning of Amp?
Ans: Amp basically stands for Access Module Processor and happens to be a processor working virtually and is basically used for managing a single portion of the database. This particular portion of database cannot be shared by any other Amp. Thus, this form of architecture is commonly referred to as shared-nothing architecture.
Q26. What does Amp contain and what are all the operations that it performs?
Ans: Amp basically consists of a Database Manager Subsystem and is capable of performing the operations mentioned below.
Implementing Aggregations and Joins.
Releasing and applying locks, etc.
Q27. What is meant by a Parsing Engine?
Ans: PE happens to be a kind Vproc. Its primary function is to take SQL requests and deliver responses in SQL. It consists of a wide array of software components that are used to break SQL into various steps and then send those steps to AMPs.
Q28. What do you mean by parsing?
Ans: Parsing is a process concerned with analysis of symbols of string that are either in computer language or in natural language.
Q29. What are the functions of a Parser?
Ans: A Parser: –
Checks semantics errors
Checks syntactical errors
Checks object existence
Q30. What is meant by a dispatcher?
Ans: Dispatcher takes a whole collection of requests and then keeps them stored in a queue. The same queue is being kept throughout the process in order to deliver multiple sets of responses.
Q31. How many sessions of MAX is PE capable of handling at a particular time?
Ans: PE can handle a total of 120 sessions at a particular point of time.
Q32. Explain BYNET.
Ans: BYNET basically serves as a medium of communication between the components. It is primarily responsible for sending messages and also responsible for performing merging, as well as sorting operations.
Q33.What is meant by a Clique?
Ans: A Clique is basically known to be an assortment of nodes that is being shared amongst common disk drives. Presence of Clique is immensely important since it helps in avoiding node failures.
Q34.What happens when a node suffers a downfall?
Ans: Whenever there is a downfall in the performance level of a node, all the corresponding Vprocs immediately migrate to a new node from the fail node in order to get all the data back from common drives.
Q35. List out all forms of LOCKS that are available in Teradata.
Ans: There are basically four types of LOCKS that fall under Teradata. These are: –
Q36. What is the particular designated level at which a LOCK is liable to be applied in Teradata?
Table Level – All the rows that are present inside a table will certainly be locked.
Database Level Lock – All the objects that are present inside the database will be locked.
Row Hash Level Lock – Only those rows will be locked which are corresponding to the particular row.
Q37. In the Primary Index, what is the score of AMPs that are actively involved?
Ans: Only one AMP is actively involved in a Primary Index.
Q38.In Teradata, what is the significance of UPSERT command?
Ans: UPSERT basically stands for Update Else Insert. This option is available only in Teradata.
Q39.Highlight the advantages of PPI(Partition Primary Index).
Ans: PPI is basically used for Range-based or Category-based data storage purposes. When it comes to Range queries, there is no need of Full table scan utilization as it straightaway moves to the consequent partition thus skipping all the other partitions.
Q40. Give the sizes of SMALLINT, BYTEINT and INTEGER.
Ans: SMALLINT – 2 Bytes – 16 Bites -> -32768 to 32767
BYTEINT – 1 Bytes – eight Bits -> -128 to 127
INTEGER – 4 Bytes – 32 Bits -> -2,147,483,648 to 2,147,483,647
Q41. What is meant by way of a Least Cost Plan?
Ans: A Least Cost Plan basically executes in much less time across the shortest path.
Q42. Highlight the points of variations among the database and user in Teradata.
A database is largely passive, whereas a consumer is energetic.
A database normally stores all of the gadgets of database, while a person can keep any item whether that is a macro, desk, view, and so forth.
Database does now not has password while the user has to go into password.
Q43. Highlight the differences between Primary Key and Primary Index.
Primary index is quite mandatory, while Primary Key is elective.
Primary Index has a limit of 64 tables/columns, whereas Primary Key does no longer have any restriction.
Primary Index lets in duplicates and nulls, whereas Primary Key doesn’t.
Primary Index is a bodily mechanism, while Primary Key is only logical mechanism.
Q44. Explain how spool space is used.
Ans: Spool area in Teradata is essentially used for strolling queries. Out of the whole space that is available in Teradata, 20% of the distance is basically allocated to spool space.
Q45.Highlight the want for Performance Tuning.
Ans: Performance tuning in Teradata is essentially done to become aware of all the bottlenecks and then resolve them.
Q46. Comment whether or not bottleneck is an mistakes or now not.
Ans: Technically, bottleneck is not a form of mistakes, however it truely reasons a certain quantity of postpone in the gadget.
Q47. How can bottlenecks be recognized?
Ans: There are basically four ways of figuring out a bottleneck. These are: –
Teradata Visual Explain
Explain Request Modifier
Q48. What is supposed via a Highest Cost Plan?
Ans: As per Highest Cost Plan, the time taken to execute the method is greater, and it takes the longest direction available.
Q49. Highlight all of the modes which are gift underneath Confidence Level.
Ans: Low, No, High and Join are the 4 modes which can be gift below Confidence Level.
Q50. Name the 5 phases that come under MultiLoad Utility.
Ans: Preliminary Phase, DML Phase, Data Acquisition Phase, Application Phase and End Phase.
Q51. Highlight the restrictions of TPUMP Utility.
Ans: Following are the constraints of TPUMP application: –
We cannot use SELECT assertion.
Data Files can't be concatenated.
Aggregate and Exponential operators aren't supported.
Arithmetic functions cannot be supported.
Q52. In BTEQ, how are the session-mode parameters being set?
.Set consultation transaction BTET -> Teradata transaction mode
.Set consultation transaction ANSI -> ANSI mode
These instructions will paintings most effective while they're entered before logging into the consultation.