




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Question 1. What is the primary purpose of a primary index in Teradata? A) To uniquely identify each row in a table B) To improve join performance between tables C) To provide quick access paths based on frequently used columns D) To enforce referential integrity constraints Answer: C Explanation: A primary index in Teradata provides a data access path based on specified columns, improving query performance for those columns by physically ordering data. Question 2. Which privilege allows a user to create tables in a specific database? A) SELECT B) CREATE C) INSERT D) DROP Answer: B Explanation: The CREATE privilege enables a user to create new database objects, such as tables, within a specified database. Question 3. What is the main difference between a temporary table and a permanent table in Teradata?
A) Temporary tables are stored in the data warehouse B) Temporary tables are session-specific and dropped automatically at session end C) Permanent tables cannot have constraints D) Permanent tables do not support indexes Answer: B Explanation: Temporary tables are session-specific, exist only during the session, and are automatically dropped when the session ends, unlike permanent tables stored persistently. Question 4. Which index type is most suitable for joining large tables efficiently? A) Primary index B) Secondary index C) Join index D) Primary Time Index Answer: C Explanation: Join indexes are designed to optimize join operations by pre- joining tables, thus improving query performance. Question 5. What is the purpose of Multi-Value Compression (MVC) in Teradata? A) To compress multiple columns into one
Answer: C Explanation: Logical data models are designed for data architects and developers to understand and design the logical relationships and structure of data. Question 8. Which normalization form eliminates redundancy by ensuring dependencies are only on the primary key? A) 1NF B) 2NF C) 3NF D) BCNF Answer: C Explanation: Third Normal Form (3NF) eliminates transitive dependencies, ensuring non-key attributes depend solely on the primary key, reducing redundancy. Question 9. In an Explain plan, which step indicates data retrieval from disk? A) Join operation B) Scan or access step C) Sort phase D) Aggregate function Answer: B
Explanation: The scan or access step in an Explain plan shows data being retrieved from disk or memory for processing. Question 10. Which lock type is used to prevent other users from reading data during a write operation? A) Read lock B) Write lock C) Exclusive lock D) Shared lock Answer: C Explanation: An exclusive lock prevents other users from reading or writing the data until the lock is released, ensuring data integrity during writes. Question 11. What is the key characteristic of the BTET transaction mode in Teradata? A) Supports ANSI SQL transaction semantics B) Uses a read-committed isolation level C) Implements a two-phase commit protocol D) Provides read stability but not cursor stability Answer: D Explanation: BTET (BEFORE-TIME-EQUAL-TO) mode provides read stability but does not guarantee cursor stability, differing from ANSI mode.
Answer: B Explanation: VARCHAR stores variable-length character data, making it efficient for strings with varying sizes. Question 15. Which constraint ensures that a column must have unique values across all rows in a table? A) PRIMARY KEY B) NOT NULL C) UNIQUE D) FOREIGN KEY Answer: C Explanation: The UNIQUE constraint enforces uniqueness of values in a column but allows NULLs unless specified otherwise. Question 16. Which statement correctly defines a referential integrity constraint? A) Ensures data in one table matches data in another table B) Prevents deletion of parent records C) Enforces that foreign key values exist in the referenced primary key
D) Guarantees unique values in a column Answer: C Explanation: Referential integrity ensures that foreign key values in a child table correspond to existing primary key values in the parent table. Question 17. Which temporal data type is used to store date and time with fractional seconds precision? A) DATE B) TIME C) TIMESTAMP D) PERIOD Answer: C Explanation: TIMESTAMP stores date and time with fractional seconds precision in Teradata. Question 18. What is an identity column primarily used for? A) To define a primary key with auto-incrementing values B) To store large objects C) To enforce referential integrity D) To hold date values Answer: A
Question 21. Which view type allows updates to the underlying tables? A) Nested view B) Base (1:1) view C) Updatable view D) Materialized view Answer: C Explanation: Updatable views allow DML operations to be performed directly on the underlying tables. Question 22. When should volatile tables be used? A) For persistent storage of large datasets B) For temporary, session-specific data during complex transformations C) For data that needs to be shared across sessions D) For data that requires indexing Answer: B Explanation: Volatile tables are session-specific and ideal for temporary, complex computations during a session. Question 23. What is a derived table in SQL? A) A temporary table created with CREATE TABLE B) A subquery in the FROM clause acting as a table C) A view based on multiple base tables
D) An external table imported into the database Answer: B Explanation: Derived tables are subqueries within the FROM clause, functioning as temporarily created tables for query purposes. Question 24. Which clause is used in SQL to limit the number of rows returned? A) FILTER B) LIMIT C) TOP D) ROWS Answer: C Explanation: The TOP clause limits the number of rows returned by a query in Teradata. Question 25. Which SQL function is used to replace NULL values with a specified value? A) COALESCE B) NULLIF C) CASE D) ISNULL Answer: A
Question 28. Which function is used to parse JSON data in Teradata? A) JSON_PARSE B) JSON_EXTRACT C) JSON_VALUE D) JSON functions such as JSON_VALUE and JSON_QUERY Answer: D Explanation: Teradata provides functions like JSON_VALUE and JSON_QUERY to extract data from JSON documents. Question 29. What is the purpose of PERIOD data types in Teradata? A) To store date ranges with start and end points B) To aggregate data over time intervals C) To maintain version control D) To track temporal changes in data Answer: A Explanation: PERIOD data types store date or timestamp ranges, useful for temporal data modeling. Question 30. Which set operation returns only common rows between two result sets? A) UNION
Answer: B Explanation: INTERSECT returns only the rows present in both result sets. Question 31. Which subquery type is used within the WHERE clause to filter data based on another query? A) Correlated subquery B) Non-correlated subquery C) Derived table D) Inline view Answer: B Explanation: A non-correlated subquery is independent of the outer query and used in WHERE clauses for filtering. Question 32. Which statement is used to merge data from two tables based on a condition? A) UPDATE B) MERGE C) JOIN D) UNION
Question 35. What is a key benefit of using TPT's STREAM operator? A) To perform bulk data loads B) To export data from Teradata C) To facilitate continuous data transfer or replication D) To perform data transformations Answer: C Explanation: STREAM is used for continuous or real-time data transfer, often for replication or streaming data. Question 36. Which error handling feature in TPT allows logging of errors during job execution? A) Error logging table B) Error handler script C) Error rate threshold D) Error capture clause in scripting Answer: A Explanation: TPT supports logging errors into tables for review and troubleshooting during job execution. Question 37. What is the primary purpose of FastLoad utility? A) To load large volumes of data rapidly into empty tables B) To update existing data
C) To export data D) To perform incremental loads Answer: A Explanation: FastLoad is optimized for fast, bulk loading of data into empty tables in Teradata. Question 38. Which component is essential in TPT scripting? A) Control file B) Data file C) Log file D) Error file Answer: A Explanation: The control file defines the operations, data sources, and processing instructions for TPT scripts. Question 39. Which component of the access layer primarily handles query optimization? A) Query optimizer B) Data dictionary C) Index manager D) Connection pooler Answer: A
Question 42. Which advanced tuning method involves partitioning data to optimize query execution? A) Hash partitioning B) Range partitioning C) Partition elimination D) Indexing Answer: C Explanation: Partition elimination reduces the data scanned during queries by skipping partitions that do not meet criteria. Question 43. What is a characteristic of an optimized application in Teradata? A) Rigid schema design B) Use of flexible and extensible data models C) Avoidance of statistics collection D) Minimal indexing Answer: B Explanation: Flexible, extensible data models allow for easier maintenance and scalability, characteristic of optimized applications. Question 44. Which process helps in identifying data quality issues? A) Data profiling B) Data normalization
C) Data partitioning D) Index creation Answer: A Explanation: Data profiling examines data to identify anomalies, inconsistencies, and quality issues. Question 45. Which is a typical output of data profiling? A) Data distribution statistics B) Index recommendations C) Query plans D) Storage allocation Answer: A Explanation: Data distribution statistics reveal how data values are spread, which aids in tuning and validation. Question 46. When analyzing high-volume workloads, which factor is most critical for performance tuning? A) Query complexity B) Number of users C) Data archival strategies D) Network latency Answer: A