Docsity

Teradata Vantage Developer V1 Practice Exam, Exams of Technology

Toggle sidebar
bg1
Teradata Vantage Developer V1 Practice Exam
**Question 1. Which of the following best describes a Unique Primary Index (UPI) in
Teradata?**
A) Guarantees row uniqueness and distributes rows evenly across AMPs
B) Allows duplicate values and distributes rows based on a hash function
C) Is created automatically for every table without specifying columns
D) Is only used for temporary tables
Answer: A
Explanation: A UPI enforces uniqueness on the indexed columns and the hash of those columns
determines the AMP on which each row is stored, resulting in even data distribution.
**Question 2. What is the primary purpose of a Non‑Unique Primary Index (NUPI)?**
A) To enforce referential integrity between tables
B) To provide a deterministic row location for updates
C) To distribute rows across AMPs without guaranteeing uniqueness
D) To create a secondary index automatically
Answer: C
Explanation: A NUPI distributes rows based on a hash of the indexed columns but does not
enforce uniqueness, allowing duplicate values.
**Question 3. Which statement about a Secondary Index (SI) is true?**
A) It replaces the Primary Index for data retrieval
B) It is always unique for every table
C) It creates a separate B‑Tree structure that speeds up look‑ups on non‑PI columns
D) It can only be defined on volatile tables
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Teradata Vantage Developer V1 Practice Exam and more Exams Technology in PDF only on Docsity!

Question 1. Which of the following best describes a Unique Primary Index (UPI) in Teradata? A) Guarantees row uniqueness and distributes rows evenly across AMPs B) Allows duplicate values and distributes rows based on a hash function C) Is created automatically for every table without specifying columns D) Is only used for temporary tables Answer: A Explanation: A UPI enforces uniqueness on the indexed columns and the hash of those columns determines the AMP on which each row is stored, resulting in even data distribution. Question 2. What is the primary purpose of a Non‑Unique Primary Index (NUPI)? A) To enforce referential integrity between tables B) To provide a deterministic row location for updates C) To distribute rows across AMPs without guaranteeing uniqueness D) To create a secondary index automatically Answer: C Explanation: A NUPI distributes rows based on a hash of the indexed columns but does not enforce uniqueness, allowing duplicate values. Question 3. Which statement about a Secondary Index (SI) is true? A) It replaces the Primary Index for data retrieval B) It is always unique for every table C) It creates a separate B‑Tree structure that speeds up look‑ups on non‑PI columns D) It can only be defined on volatile tables

Answer: C Explanation: An SI creates a separate B‑Tree that references the Primary Index, allowing fast access to rows based on columns that are not part of the PI. Question 4. A Unique Secondary Index (USI) differs from a Non‑Unique Secondary Index (NUSI) in that it: A) Stores data in a different file format B) Enforces uniqueness of the indexed column(s) C) Can only be created on columnar tables D) Is automatically dropped after a session ends Answer: B Explanation: A USI enforces that the indexed column(s) contain unique values, whereas a NUSI allows duplicates. Question 5. Which type of Join Index is most appropriate for pre‑aggregating sales totals by region? A) Single‑table Join Index B) Multi‑table Join Index C) Aggregate Join Index D) No‑Join Index Answer: C Explanation: An Aggregate Join Index stores pre‑computed aggregates, such as sales totals per region, improving query performance for those calculations. Question 6. What is a Primary Time Index (PTI) primarily used for?

Explanation: GTTs are visible to all sessions (subject to transaction isolation) and can be used to share temporary data among sessions, whereas Volatile Tables are session‑specific. Question 9. Which compression method reduces storage by storing repeated values only once per column? A) Block Compression (BC) B) Multi‑Value Compression (MVC) C) Row‑Level Compression (RLC) D) Dictionary Compression (DC) Answer: B Explanation: MVC replaces repeated values within a column with a reference to a single stored value, reducing storage for low‑cardinality columns. Question 10. What is a Partitioned Primary Index (PPI) used for? A) To enforce uniqueness across the entire table B) To divide a table into logical partitions based on the values of the primary index columns C) To automatically create secondary indexes on all columns D) To store data in a columnar format Answer: B Explanation: PPI partitions a table into separate logical partitions according to the values of the primary index, which can improve maintenance and query performance. Question 11. Which of the following is a benefit of Multi‑Level PPI (MLPPI)? A) It allows a table to be partitioned on multiple columns with hierarchical sub‑partitions B) It automatically generates a unique primary key for each partition

C) It eliminates the need for a Primary Index altogether D) It provides built‑in data encryption Answer: A Explanation: MLPPI enables hierarchical partitioning, where a table can be partitioned on a primary column and then sub‑partitioned on additional columns. Question 12. Dynamic Partition Elimination (DPE) works by: A) Removing partitions that contain no rows during a query execution B) Skipping the scan of partitions that cannot satisfy the query predicates C) Merging small partitions into larger ones automatically D) Rebuilding the Primary Index at runtime Answer: B Explanation: DPE allows the optimizer to eliminate entire partitions from the scan if the query predicates cannot be satisfied by those partitions, reducing I/O. Question 13. In a conceptual data model, the focus is on: A) Physical storage structures and indexing strategies B) Business entities and high‑level relationships without technical details C) Detailed column definitions and data types D) SQL query optimization techniques Answer: B Explanation: Conceptual models capture the business view of data, emphasizing entities and relationships without implementation specifics.

Explanation: A Hash Join requires both inputs to be redistributed (hashed) on the join columns so that matching rows reside on the same AMP. Question 17. Which lock level is the most granular in Teradata? A) Database lock B) Table lock C) Row‑Hash lock D) Block lock Answer: C Explanation: Row‑Hash locks protect individual hash buckets (rows) and are the finest granularity, allowing high concurrency. Question 18. In ANSI mode, a transaction is ended by: A) COMMIT or ROLLBACK statements only B) End of the request automatically C) Using the LOGOFF command D) Switching to BTET mode Answer: A Explanation: In ANSI mode, explicit COMMIT or ROLLBACK statements delimit transaction boundaries. Question 19. In Teradata (BTET) mode, a request is automatically committed when: A) The user issues a COMMIT statement B) The request finishes successfully and the session is in “AUTOCOMMIT” mode C) The session is terminated

D) A deadlock is detected Answer: B Explanation: In BTET mode, each request is a transaction that is automatically committed upon successful completion unless AUTOCOMMIT is turned off. Question 20. Which session characteristic determines the default character set for string literals? A) DATEFORM B) CHARACTERSET C) SESSIONTIMEZONE D) LOCKMODE Answer: B Explanation: The CHARACTERSET session parameter defines the default character set used for string literals and column definitions. Question 21. Which of the following objects can be used to capture error rows during a LOAD operation? A) A volatile table B) An error table created with the “ERRORTABLE” clause C) A view with a WHERE clause filtering errors D) A macro that redirects rows Answer: B Explanation: The ERRORTABLE clause in a LOAD statement directs rows that cause errors to a dedicated error table for later analysis.

Answer: B Explanation: Stored procedures include full procedural capabilities, allowing variables, control‑flow statements, and exception handling. Question 25. Which data type is used to store a range of dates and times in Teradata? A) TIMESTAMP B) PERIOD C) DATE D) INTERVAL Answer: B Explanation: The PERIOD data type represents a start and end point (e.g., PERIOD(DATE)) and is used for temporal range data. Question 26. What does the FORMAT attribute on a column control? A) Physical storage layout on disk B) How the column value is displayed in client tools C) The compression algorithm applied to the column D) The default value for the column Answer: B Explanation: FORMAT defines the display format (e.g., ‘$###,###.##’) when the column is retrieved by client applications. Question 27. The SAMPLE clause in a SELECT statement is primarily used for: A) Updating rows in a deterministic order B) Retrieving a random subset of rows for testing or analysis

C) Sorting the result set alphabetically D) Enforcing row‑level security Answer: B Explanation: SAMPLE returns a random sample of rows based on a percentage or number, useful for exploratory analysis. Question 28. Which function converts a value to a different data type? A) CAST B) COALESCE C) TOP D) RANDOM Answer: A Explanation: CAST explicitly changes the data type of an expression (e.g., CAST(col AS VARCHAR(20))). Question 29. The COALESCE function returns: A) The first non‑NULL argument in its argument list B) The sum of all numeric arguments C) The maximum value among its arguments D) A random value from the list Answer: A Explanation: COALESCE evaluates arguments sequentially and returns the first that is not NULL. Question 30. ROW_NUMBER() OVER (PARTITION BY dept ORDER BY salary DESC) returns:

Question 33. A scalar subquery differs from a non‑scalar subquery because it: A) Returns exactly one column and at most one row B) Can be used only in the FROM clause C) Must be correlated with the outer query D) Returns multiple rows and columns Answer: A Explanation: Scalar subqueries are guaranteed to return a single value (one row, one column) and can be used wherever an expression is allowed. Question 34. Which regular expression function extracts the first match of a pattern? A) REGEXP_SUBSTR B) REGEXP_REPLACE C) REGEXP_COUNT D) REGEXP_INSTR Answer: A Explanation: REGEXP_SUBSTR returns the substring that matches the regular expression pattern. Question 35. What is the purpose of a CHECK constraint? A) To enforce referential integrity between tables B) To ensure that column values satisfy a specified Boolean expression C) To automatically generate a primary key D) To create an index on the constrained column

Answer: B Explanation: CHECK constraints validate that data entered into a column meets the defined condition (e.g., salary > 0). Question 36. In Teradata, a foreign key constraint: A) Guarantees that referenced rows exist in the parent table, but is not enforced by default for performance reasons B) Automatically creates a secondary index on the child table C) Is required for all tables that have a primary key D) Prevents any updates to the parent table Answer: A Explanation: Teradata stores foreign key definitions for documentation and optional enforcement; by default they are not enforced to avoid overhead. Question 37. How does Teradata treat NULL values in a UNIQUE constraint? A) NULLs are considered equal, so only one NULL is allowed B) NULLs are ignored, allowing multiple NULLs in a unique column C) NULLs cause the constraint to be disabled D) NULLs are automatically converted to zero Answer: B Explanation: Teradata permits multiple NULLs in a UNIQUE column because NULL is not considered equal to any other value. Question 38. Which TPT operator is used to load data from flat files into a Teradata table? A) EXPORT

Explanation: The DDL operator runs Data Definition Language statements (CREATE, DROP, ALTER) within a TPT job. Question 41. When loading data with TPT, which option helps to capture rows that violate constraints without aborting the job? A) FASTLOAD mode B) ERRORTABLE clause C) MULTILOAD option D) NO‑COMMIT Answer: B Explanation: Specifying an ERRORTABLE directs offending rows to a separate table, allowing the load to continue. Question 42. What is a primary advantage of using Access Modules (AM) in a data integration workflow? A) They provide automatic data encryption at rest B) They enable parallel loading of data from heterogeneous sources with built‑in transformation logic C) They replace the need for any SQL statements D) They guarantee zero‑latency data replication Answer: B Explanation: Access Modules allow parallel extraction, transformation, and loading from multiple source types, improving throughput. Question 43. Which feature enables Teradata Vantage to query data stored in Amazon S without moving it?

A) Native Object Store (NOS) B) QueryGrid C) TPT EXPORT D) FastLoad Answer: A Explanation: NOS provides a virtual table interface to data in object storage like S3, allowing in‑place querying. Question 44. QueryGrid is primarily used for: A. Compressing JSON data B. Executing distributed queries across heterogeneous data sources C. Managing user privileges D. Automating statistics collection Answer: B Explanation: QueryGrid enables federated queries that span Teradata and external systems (e.g., Hadoop, Oracle). Question 45. In an event‑driven architecture, Vantage can consume events via: A. Stored procedures only B. Native Cloud Functions and external messaging services like Kafka C. Manual data loads only D. Static CSV files Answer: B

B. Non‑Unique Secondary Index (NUSI) C. Join Index D. Primary Index Answer: B Explanation: A NUSI on a low‑cardinality column can reduce I/O by locating rows quickly, even though the index is not unique. Question 49. Intelligent Partition Elimination (IPE) works best when: A. The partitioning column is part of the WHERE clause with a constant predicate B. The query uses a full table scan without filters C. The table has no primary index D. The query accesses only aggregated data Answer: A Explanation: IPE can prune partitions when the filter predicates reference the partitioning column with constant values. Question 50. Partial Row/Partition Delete (PRPD) improves delete performance by: A. Deleting rows one at a time with row‑level locks B. Marking entire partitions or rows as deleted without physically removing them immediately C. Rebuilding the primary index after each delete D. Compressing the table after deletion Answer: B Explanation: PRPD logically deletes rows/partitions, deferring physical removal, which reduces I/O and lock contention.

Question 51. Which DBQL field provides the total number of rows read by a query? A. ACCESSTIME B. ROWS_PROCESSED C. CPU_TIME D. IOSTAT Answer: B Explanation: ROWS_PROCESSED records the number of rows the optimizer estimated (or actually processed) during execution. Question 52. In a multi‑step stored procedure, which statement is used to handle an error and continue processing? A. TRY…CATCH (not supported) B. DECLARE CONTINUE HANDLER C. SIGNAL SQLSTATE D. ROLLBACK Answer: B Explanation: Teradata stored procedures support DECLARE CONTINUE HANDLER to catch exceptions and allow the procedure to continue. Question 53. Which of the following is true about the ANSI transaction isolation level “READ COMMITTED”? A. It allows dirty reads B. It prevents non‑repeatable reads but allows phantom rows C. It locks the entire table for the duration of the transaction