Docsity

Teradata Vantage Advanced Developer V1 Practice Exam, Exams of Technology

Toggle sidebar
bg1
Teradata Vantage Advanced Developer V1 Practice
Exam
**Question 1.** Which Teradata object is used to enforce row‑level security by granting
privileges to a group of users?
A) Profile
B) Role
C) Schema
D) Database
Answer: B
Explanation: A role aggregates privileges and can be granted to multiple users, providing
row‑level security management.
**Question 2.** In Teradata Vantage, what does a USI (Unique Secondary Index) guarantee?
A) No duplicate values in the indexed column(s)
B) Faster join performance than a NUSI
C) Automatic partition elimination
D) Compression of indexed columns
Answer: A
Explanation: A USI enforces uniqueness on the indexed columns, preventing duplicate entries.
**Question 3.** Which index type is most appropriate for a table that is frequently joined on a
non‑primary key column?
A) Primary Index (PI)
B) Unique Secondary Index (USI)
C) Join Index (JI)
D) Primary Time Index (PTI)
Answer: C
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

Partial preview of the text

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

Exam

Question 1. Which Teradata object is used to enforce row‑level security by granting privileges to a group of users? A) Profile B) Role C) Schema D) Database Answer: B Explanation: A role aggregates privileges and can be granted to multiple users, providing row‑level security management. Question 2. In Teradata Vantage, what does a USI (Unique Secondary Index) guarantee? A) No duplicate values in the indexed column(s) B) Faster join performance than a NUSI C) Automatic partition elimination D) Compression of indexed columns Answer: A Explanation: A USI enforces uniqueness on the indexed columns, preventing duplicate entries. Question 3. Which index type is most appropriate for a table that is frequently joined on a non‑primary key column? A) Primary Index (PI) B) Unique Secondary Index (USI) C) Join Index (JI) D) Primary Time Index (PTI) Answer: C

Exam

Explanation: A Join Index pre‑joins tables on the specified columns, improving join performance for non‑PI columns. Question 4. What is the effect of enabling Block‑Level Compression (BLC) on a table that already has Multi‑Value Compression (MVC)? A) MVC is disabled automatically B) Both compressions work together, reducing storage further C) BLC overrides MVC, causing loss of MVC benefits D) The table must be recreated to use both Answer: B Explanation: BLC and MVC operate at different levels; they can be combined to achieve greater compression. Question 5. Which of the following is a characteristic of a Global Temporary Table (GTT) in Teradata? A) Data persists after the session ends B) Data is visible to all sessions simultaneously C) Definition is stored in the DBC tablespace D) Data is automatically dropped at the end of the transaction Answer: D Explanation: GTT rows are session‑specific and are automatically removed when the transaction ends. Question 6. What does the “Isolated Loading” table attribute control? A) Whether the table can be accessed by multiple users simultaneously B) Whether the table is locked during a bulk load operation C) Whether the table uses row‑level or block‑level compression

Exam

B) Data is being sorted in memory Sorting and temporary storage are performed in a spool; it may reside in memory or on disk. Question 10. Which lock level is acquired when a user performs a SELECT … WITH LOCKED statement? A) Access lock (READ UNCOMMITTED) B) Read lock (READ) C) Write lock (WRITE) D) No lock is acquired Answer: C Explanation: WITH LOCKED forces a WRITE lock on the selected rows, preventing other sessions from modifying them. Question 11. In Teradata, what distinguishes an ANSI transaction mode from BTET (Teradata) mode? A) ANSI uses implicit commits after each statement B) BTET allows nested transactions C) ANSI enforces SERIALIZABLE isolation by default D) BTET does not support rollback Answer: C Explanation: ANSI mode defaults to SERIALIZABLE isolation, whereas BTET defaults to READ COMMITTED. Question 12. Which session characteristic determines the default character set for string literals? A) DATEFORM B) CHARSET

Exam

C) SESSIONTIMEZONE

D) LOCKING MODE

Answer: B Explanation: The CHARSET session variable defines the default character set for string literals. Question 13. Which data type is used to store geographic coordinates in Teradata Vantage? A) ST_Geometry B) PERIOD C) BLOB D) VARBYTE Answer: A Explanation: ST_Geometry stores spatial data such as points, lines, and polygons. Question 14. Which syntax correctly creates an identity column that starts at 1000 and increments by 10? A) CREATE TABLE t (id INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1000 INCREMENT BY 10)); B) CREATE TABLE t (id INTEGER IDENTITY (1000,10)); C) CREATE TABLE t (id INTEGER AUTO_INCREMENT = 1000, STEP = 10); D) CREATE TABLE t (id INTEGER GENERATED ALWAYS AS IDENTITY (START 1000 STEP 10)); Answer: A Explanation: The proper Teradata syntax uses GENERATED BY DEFAULT AS IDENTITY with START WITH and INCREMENT BY. Question 15. Which object type is used to capture rows that cause errors during a bulk load?

Exam

Question 18. In a UPSERT (MERGE) statement, which keyword specifies the rows to be inserted when no match is found? A) WHEN MATCHED THEN UPDATE B) WHEN NOT MATCHED THEN INSERT C) ON CONFLICT DO INSERT D) ELSE INSERT Answer: B Explanation: The WHEN NOT MATCHED clause defines the INSERT action for rows without a match. Question 19. Which window function returns the cumulative sum of a column ordered by a date column? A) ROW_NUMBER() B) SUM(col) OVER (ORDER BY date_col) C) CUME_DIST() D) LAG(col) Answer: B Explanation: SUM() used as a window function with ORDER BY computes a running total. Question 20. What does the “GROUP BY ALL” clause do? A) Groups all rows into a single group ignoring the specified columns B) Includes rows with NULL values in the grouping C) Forces the optimizer to use a hash aggregation D) Groups by all columns in the SELECT list automatically Answer: D

Exam

Explanation: GROUP BY ALL automatically groups by every column that appears in the SELECT list. Question 21. Which of the following statements about Referential Integrity (RI) in Teradata is true? A) RI constraints are always enforced at load time only B) RI can be defined as “NO ACTION” to prevent cascade deletes C) RI errors are automatically written to the error table of the target table D) RI cannot be revalidated after being disabled Answer: B Explanation: “NO ACTION” prevents automatic cascade updates or deletes, preserving referential integrity. Question 22. Which ALTER TABLE option adds a column with a default value without rebuilding the table? A) ADD COLUMN … WITH DEFAULT … NOT NULL B) ALTER TABLE … ADD COLUMN … DEFAULT … WITH NO REBUILD C) ADD COLUMN … DEFAULT … NOT NULL WITH NO REBUILD D) ALTER TABLE … ADD COLUMN … DEFAULT … (NO REBUILD) Answer: C Explanation: Adding a column with DEFAULT and NOT NULL using the WITH NO REBUILD clause avoids a full table rebuild. Question 23. Which TPT operator is responsible for moving data from a source file into a Teradata table? A) LOAD B) EXPORT

Exam

B) Executing filters and joins on the AMPs rather than the PE C) Moving aggregation logic to the database engine during ETL D) Compressing data before it is sent over the network Answer: B Explanation: PDO pushes filtering and join operations down to the Access Module Processors (AMPs), reducing data movement. Question 27. Which technique helps avoid data skew when loading a NoPI (No Primary Index) table? A) Using a random hash function on a surrogate key B) Defining a Primary Index on a high‑cardinality column C) Specifying a partitioned primary index (PPI) D) Loading data in a single session Answer: A Explanation: Adding a random hash column distributes rows evenly across AMPs for NoPI tables. Question 28. Which of the following is a key benefit of using QueryGrid? A) Automatic data compression across all nodes B) Transparent query execution across heterogeneous platforms C) Real‑time replication of data between Teradata and Oracle D) Built‑in machine learning model training Answer: B Explanation: QueryGrid enables federated queries across different systems, allowing cross‑platform data access.

Exam

Question 29. In Teradata, what is the primary purpose of the MAPS (Massively Parallel Query Scheduler) feature? A) To schedule batch jobs during off‑peak hours B) To allocate CPU resources dynamically for concurrent queries C) To enforce row‑level security policies D) To compress large result sets before returning to the client Answer: B Explanation: MAPS dynamically distributes resources among concurrent queries to improve overall throughput. Question 30. Which Dynamic Explain option provides an IPE (Incremental Plan Evaluation) report? A) EXPLAIN USING IPE B) EXPLAIN USING PRPD C) EXPLAIN USING ALL D) EXPLAIN USING ITERATIVE Answer: A Explanation: The IPE option generates an incremental plan evaluation showing step‑by‑step cost estimates. Question 31. Which compression algorithm is recommended for mixed numeric and character data to achieve the best space savings? A) ZLIB B) LZ C) ZSTD D) NONE (no compression) Answer: C

Exam

D) WITH RECURSIVE

Answer: A Explanation: The LATERAL clause enables correlation between the outer query and a subquery in the SELECT list. Question 35. Which type of constraint ensures that a column’s values fall within a specific range? A) UNIQUE B) NOT NULL C) CHECK D) PRIMARY KEY Answer: C Explanation: CHECK constraints define a Boolean expression that must be true for each row, such as a range condition. Question 36. When creating a Column‑Partitioned Table (CPT), which attribute must be defined? A) Primary Index B) Partitioning column list with RANGE or LIST definitions C) Secondary Index on the partition column D) Row‑level security profile Answer: B Explanation: CPTs require explicit definition of column partitions using RANGE or LIST specifications. Question 37. Which of the following best describes the effect of “Dynamic Partition Elimination” on query performance?

Exam

A) It reduces the number of rows scanned by skipping irrelevant partitions at runtime B) It permanently removes unused partitions from the table definition C) It forces the optimizer to use a hash join instead of a merge join D) It automatically creates new partitions based on query predicates Answer: A Explanation: Dynamic Partition Elimination evaluates predicates during execution and skips partitions that cannot contain matching rows. Question 38. Which statement correctly describes a Volatile Table? A) It is stored in the user’s permanent space and survives session termination B) It is automatically replicated across all nodes for high availability C) It exists only for the duration of the session and does not require DBC privileges to create D) It can be accessed by other users concurrently without explicit grants Answer: C Explanation: Volatile tables are session‑specific, reside in temporary space, and can be created without DBC privileges. Question 39. Which of the following is true about a Primary Time Index (PTI)? A) It enforces uniqueness on a TIMESTAMP column B) It enables efficient temporal queries based on a time period column C) It can only be defined on a column of DATE datatype D) It automatically compresses the time column using delta encoding Answer: B Explanation: PTIs are designed for temporal tables, allowing fast retrieval of rows based on time intervals.

Exam

Explanation: Hash Joins distribute rows based on hash values, which can better manage skew compared to Merge Joins that rely on sorted streams. Question 43. Which of the following statements about the “QUALIFY” clause is FALSE? A) It can reference window function results B) It is evaluated after the SELECT list is processed C) It can be used together with GROUP BY in the same query D) It replaces the need for a HAVING clause in all scenarios Answer: D Explanation: QUALIFY cannot replace HAVING when filtering on aggregate functions that are not windowed. Question 44. Which Teradata feature allows you to store JSON data in a native format for efficient querying? A) JSONB column type B) XML data type with JSON functions C) BLOB column with custom parsing D) JSON data type introduced in Vantage 5. Answer: D Explanation: Vantage introduced a native JSON data type that supports indexing and optimized functions. Question 45. When defining a stored procedure that calls an external script, which language option is required? A) LANGUAGE SQL B) LANGUAGE C C) LANGUAGE PYTHON

Exam

D) LANGUAGE JAVA

Answer: C Explanation: External stored procedures can be written in Python, allowing integration with external scripts. Question 46. Which type of UDF returns a scalar value for each input row? A) Scalar UDF B) Table‑returning UDF C) Aggregate UDF D) Set‑returning UDF Answer: A Explanation: A scalar UDF processes each row individually and returns a single value. Question 47. Which of the following is true about a Recursive Common Table Expression (CTE) in Teradata? A) It cannot reference itself in the FROM clause B) It must include a UNION ALL between the anchor and recursive members C) It is limited to 10 recursion levels D) It automatically creates a temporary table to store intermediate results Answer: B Explanation: Recursive CTEs require UNION ALL to combine the anchor query with the recursive query. Question 48. What does the “ROW_NUMBER() OVER (PARTITION BY col ORDER BY date_col)” function compute? A) The total number of rows for each partition

Exam

Question 51. Which of the following options improves the performance of a query that selects a small subset of columns from a large table? A) Creating a USI on the selected columns B) Using a Covered Index that includes those columns C) Adding a Primary Index on a different column D) Enabling row‑level compression on the table Answer: B Explanation: A Covered Index stores the needed columns, allowing the optimizer to avoid accessing the base table. Question 52. What is the effect of setting the session variable “LOCKING MODE = ACCESS”? A) All SELECT statements acquire WRITE locks B) SELECT statements acquire ACCESS (READ UNCOMMITTED) locks, allowing dirty reads C) UPDATE statements are blocked until all READ locks are released D) No locks are taken for any statement Answer: B Explanation: ACCESS mode permits READ UNCOMMITTED, enabling dirty reads for SELECTs. Question 53. Which of the following is a valid reason to use a “Primary Index on a No‑PI table” (i.e., a NoPI table with a PI defined via a secondary index)? A) To guarantee row distribution across AMPs without a PI column in the base table B) To allow duplicate rows in the table C) To enable automatic compression of the PI column D) To enforce referential integrity on the PI column Answer: A

Exam

Explanation: Defining a PI via a secondary index on a NoPI table provides controlled data distribution without altering the base table definition. Question 54. Which of the following statements about “Data Skew” is TRUE? A) Skew occurs only when using a Primary Index on a low‑cardinality column B) Skew can be eliminated by increasing the number of AMPs C) Skew leads to uneven workload distribution, causing some AMPs to become bottlenecks D) Skew is automatically corrected by the optimizer during query execution Answer: C Explanation: Data skew creates uneven data distribution, causing some AMPs to process more rows than others, degrading performance. Question 55. Which Teradata feature allows you to store multiple versions of a row for temporal analysis? A) Multi‑Value Compression B) Period data type with a Temporal Table C) Primary Time Index (PTI) only D) Versioned Join Index Answer: B Explanation: Temporal tables use PERIOD columns to retain historical versions of rows. Question 56. Which clause must be included when creating a table that will be used as a “Queue” for the QueryGrid? A) WITH NO LOG B) WITH PRIMARY INDEX (queue_id) C) AS QUEUE