Docsity

Teradata Vantage Analytics V2 Practice Exam, Exams of Technology

Toggle sidebar
bg1
Teradata Vantage Analytics V2 Practice Exam
**Question 1.** Which Teradata Vantage function would you use to remove common
stop‑words from a text column?
A) TOKENIZE() B) STEM() C) REMOVE_STOPWORDS() D) TRIM()
Answer: C
Explanation: REMOVE_STOPWORDS() is the dedicated function for eliminating stop‑words
during text preprocessing.
**Question 2.** In a histogram that shows a long right tail, the distribution is best described as:
A) Symmetric B) Negatively skewed C) Positively skewed D) Uniform
Answer: C
Explanation: A long tail to the right indicates a positively (right) skewed distribution.
**Question 3.** Which SQL clause is most efficient for eliminating duplicate rows in a large
Teradata table?
A) WHERE B) GROUP BY C) DISTINCT D) QUALIFY
Answer: C
Explanation: DISTINCT removes duplicate rows directly during SELECT and is optimized in
Vantage.
**Question 4.** When interpreting a p‑value of 0.03 for a predictor in a regression model, you
should:
A) Fail to reject the null hypothesis B) Reject the null hypothesis at α = 0.05 C) Consider the
predictor insignificant D) Increase the sample size
Answer: B
Explanation: A p‑value < 0.05 indicates statistical significance, so the null hypothesis is rejected.
**Question 5.** Which of the following best describes the purpose of the CFilter function?
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

Partial preview of the text

Download Teradata Vantage Analytics V2 Practice Exam and more Exams Technology in PDF only on Docsity!

Question 1. Which Teradata Vantage function would you use to remove common stop‑words from a text column? A) TOKENIZE() B) STEM() C) REMOVE_STOPWORDS() D) TRIM() Answer: C Explanation: REMOVE_STOPWORDS() is the dedicated function for eliminating stop‑words during text preprocessing. Question 2. In a histogram that shows a long right tail, the distribution is best described as: A) Symmetric B) Negatively skewed C) Positively skewed D) Uniform Answer: C Explanation: A long tail to the right indicates a positively (right) skewed distribution. Question 3. Which SQL clause is most efficient for eliminating duplicate rows in a large Teradata table? A) WHERE B) GROUP BY C) DISTINCT D) QUALIFY Answer: C Explanation: DISTINCT removes duplicate rows directly during SELECT and is optimized in Vantage. Question 4. When interpreting a p‑value of 0.03 for a predictor in a regression model, you should: A) Fail to reject the null hypothesis B) Reject the null hypothesis at α = 0.05 C) Consider the predictor insignificant D) Increase the sample size Answer: B Explanation: A p‑value < 0.05 indicates statistical significance, so the null hypothesis is rejected. Question 5. Which of the following best describes the purpose of the CFilter function?

A) Time‑series forecasting B) Market‑basket lift calculation C) Sentiment scoring D) Row‑level security Answer: B Explanation: CFilter computes lift and other association‑rule metrics for market‑basket analysis. Question 6. To connect Teradata Vantage to an external Oracle database, you would primarily use: A) FOREIGN TABLE B) MERGE INTO C) HASH BY D) QUALIFY Answer: A Explanation: FOREIGN TABLE creates a virtual table that references an external data source such as Oracle. Question 7. Which window function returns the previous row’s sales amount? A) LEAD(sales) B) LAG(sales) C) ROW_NUMBER() D) RANK() Answer: B Explanation: LAG() accesses data from the preceding row within the window frame. Question 8. In a scatter plot where points form a tight upward line, the correlation is: A) Strong positive linear B) Strong negative linear C) Weak positive nonlinear D) No correlation Answer: A Explanation: A tight upward line indicates a strong positive linear relationship. Question 9. Which metric is calculated as TP ÷ (TP + FP) in a confusion matrix? A) Recall B) Precision C) Specificity D) Accuracy Answer: B Explanation: Precision measures the proportion of true positives among all predicted positives.

A) COALESCE(column, AVG(column)) B) CASE WHEN column IS NULL THEN AVG(column) END C) NULLIF(column, AVG(column)) D) NVL(column, AVG(column)) Answer: A Explanation: COALESCE returns the first non‑NULL argument; using AVG(column) provides the replacement. Question 15. Which visualization is most appropriate for showing the distribution of a single continuous variable? A) Bar chart B) Scatter plot C) Histogram D) Pie chart Answer: C Explanation: Histograms display frequency counts across intervals for a continuous variable. Question 16. In a Vantage nPath statement, the pattern ‘A->B->C’ specifies: A) A filter on column C B) A sequence where A occurs before B before C C) A join between three tables D) A window frame of three rows Answer: B Explanation: nPath tracks ordered event sequences; ‘A->B->C’ means A followed by B followed by C. Question 17. Which of the following best describes the effect of multicollinearity on regression coefficients? A) Coefficients become more stable B) Standard errors increase C) R‑squared decreases D) Model becomes linear Answer: B Explanation: Multicollinearity inflates standard errors, making coefficients less reliable. Question 18. To create a categorical variable based on age ranges (0‑18, 19 ‑35, 36+), which SQL construct is most suitable?

A) GROUP BY B) CASE WHEN C) HAVING D) QUALIFY

Answer: B Explanation: CASE WHEN allows conditional logic to assign categories based on age values. Question 19. Which metric is defined as (2 × Precision × Recall) ÷ (Precision + Recall)? A) F1‑score B) Gini C) Lift D) AUC Answer: A Explanation: The F1‑score is the harmonic mean of precision and recall. Question 20. When visualizing a hierarchical dataset (e.g., sales by region, country, city), the most effective chart type is: A) Line chart B) Treemap C) Scatter plot D) Stacked bar chart Answer: B Explanation: Treemaps display hierarchical relationships using nested rectangles sized by value. Question 21. Which Teradata function extracts the year component from a DATE column? A) MONTH() B) DAY() C) EXTRACT(YEAR FROM date) D) DATEPART() Answer: C Explanation: EXTRACT(YEAR FROM ...) returns the year portion of a DATE value. Question 22. In a Vantage SESSIONIZE function, setting TIMEOUT to 15 minutes means: A) Sessions end after 15 rows B) A new session starts if the gap between events exceeds 15 minutes C) All sessions are truncated to 15 minutes D) Only events within the first 15 minutes are considered Answer: B Explanation: TIMEOUT defines the maximum inactivity period before a new session is created.

Answer: B Explanation: LPAD pads the left side of a string with a specified character until the desired length. Question 28. The Gini coefficient in model evaluation is derived from: A) ROC curve B) Lift chart C) Confusion matrix D) Mean absolute error Answer: A Explanation: Gini = 2 × AUC − 1; it is calculated from the ROC curve. Question 29. Which of the following is a characteristic of a uniform distribution? A) Most values cluster around the mean B) All intervals have equal probability C) Long tails on both sides D) Skewed to the right Answer: B Explanation: In a uniform distribution, every outcome in the range is equally likely. Question 30. To identify rows where the column email does not contain an “@” symbol, you would use: A) WHERE email LIKE ‘%@%’ B) WHERE POSITION(‘@’, email) = 0 C) WHERE email = NULL D) WHERE REGEXP_LIKE(email, ‘@’) Answer: B Explanation: POSITION returns 0 when the substring is not found, indicating a missing “@”. Question 31. Which of the following best describes “binning” in data preparation? A) Removing duplicate rows B) Aggregating values into intervals C) Normalizing data D) Encrypting columns Answer: B Explanation: Binning groups continuous values into discrete intervals (e.g., age groups).

Question 32. In Vantage, the EXPLAIN statement is used to: A) Create a view B) Show query execution plan C) Compress a table D) Generate sample data Answer: B Explanation: EXPLAIN returns the optimizer’s plan, helping identify performance bottlenecks. Question 33. Which statistical test is appropriate for comparing the means of two independent groups? A) Chi‑square test B) Paired t‑test C) Two‑sample t‑test D) ANOVA Answer: C Explanation: A two‑sample t‑test evaluates the difference between means of two independent samples. Question 34. When visualizing a time series with seasonal patterns, the most suitable chart is: A) Scatter plot B) Box plot C) Line chart with multiple series D) Pie chart Answer: C Explanation: Line charts can display trends and seasonal fluctuations over time. Question 35. Which function would you use to calculate the median of a numeric column in Teradata? A) AVG() B) MEDIAN() C) STDDEV() D) SUM() Answer: B Explanation: MEDIAN() returns the middle value of the ordered dataset. Question 36. In a model evaluation, a high sensitivity (recall) but low precision indicates:

Question 41. Which of the following is a sign of overfitting in a predictive model? A) High training accuracy, low test accuracy B) Low training accuracy, high test accuracy C) Similar performance on both sets D) High AUC on both sets Answer: A Explanation: Overfitting yields excellent performance on training data but poor generalization to unseen data. Question 42. To calculate the range of a numeric column, you would use: A) MAX() − MIN() B) AVG() C) STDDEV() D) SUM() Answer: A Explanation: Range is defined as the difference between the maximum and minimum values. Question 43. Which of the following best describes a “confounding variable”? A) A variable that causes the dependent variable B) A variable that is correlated with both independent and dependent variables, potentially biasing the effect estimate C) A variable that has no effect D) A variable that is always omitted from the model Answer: B Explanation: Confounders can distort the apparent relationship between predictor and outcome. Question 44. In a Vantage QUERYGRID environment, data movement between nodes is minimized by: A) Using local tables only B) Broadcast joins C) Hash‑distributed tables D) Materialized views on remote nodes Answer: C Explanation: Hash distribution aligns rows with the same hash value on the same AMP, reducing inter‑node traffic.

Question 45. Which chart type is most suitable for showing the relationship between two quantitative variables and identifying outliers? A) Bar chart B) Scatter plot C) Box plot D) Line chart Answer: B Explanation: Scatter plots display point‑wise relationships and make outliers visible. Question 46. To replace all occurrences of the string “NY” with “New York” in a column, you would use: A) REPLACE(column, ‘NY’, ‘New York’) B) SUBSTR(column, ‘NY’) C) TRIM(column) D) CAST(column AS VARCHAR) Answer: A Explanation: REPLACE substitutes one substring for another throughout the string. Question 47. In a logistic regression model, the odds ratio for a predictor is 2.5. This means: A) The predictor decreases odds by 2.5 times B) The predictor increases odds by 2.5 times C) The predictor has no effect D) The predictor is not significant Answer: B Explanation: An odds ratio > 1 indicates the predictor multiplies the odds of the outcome by that factor. Question 48. Which of the following best explains “data drift”? A) Changes in the schema over time B) Gradual change in data distribution that can degrade model performance C) Loss of rows during ETL D) Increasing data volume Answer: B Explanation: Data drift refers to shifts in the underlying data distribution, affecting model accuracy.

Question 53. When using the TOKENIZE() function, the default delimiter is: A) Comma B) Space C) Tab D) Semicolon Answer: B Explanation: TOKENIZE() splits text on whitespace characters by default. Question 54. To assess whether two categorical variables are independent, you would use: A) Pearson correlation B) Chi‑square test of independence C) T‑test D) ANOVA Answer: B Explanation: The chi‑square test evaluates independence between categorical variables. Question 55. Which SQL construct is most efficient for loading large CSV files into a Vantage table? A) INSERT B) MERGE C) FASTLOAD D) SELECT INTO Answer: C Explanation: FASTLOAD streams data directly to AMPs, bypassing the transaction log for bulk loads. Question 56. In a box plot, the line inside the box represents: A) Mean B) Median C) Mode D) Standard deviation Answer: B Explanation: The central line denotes the median of the distribution. Question 57. Which of the following best describes “precision” in a classification context? A) True positives ÷ (False positives + True positives) B) True positives ÷ (True positives + False negatives) C) True negatives ÷ (False negatives + True negatives) D) (Recall + Specificity) ÷ 2 Answer: A Explanation: Precision measures the proportion of predicted positives that are correct.

Question 58. To detect outliers using the IQR method, you would flag values that are: A) Beyond 1.5 × IQR above the third quartile or below the first quartile B) Beyond 2 × standard deviation C) Beyond the mean ± range D) Outside the min‑max interval Answer: A Explanation: The 1.5 × IQR rule is a common approach for identifying outliers. Question 59. Which Vantage function extracts the domain part of an email address? A) SUBSTR(email, POSITION(‘@’, email) + 1) B) LEFT(email, POSITION(‘@’, email) ‑ 1) C) REGEXP_SUBSTR(email, ‘@’) D) TRIM(email) Answer: A Explanation: SUBSTR with POSITION after “@” returns the substring following the symbol, i.e., the domain. Question 60. In a ROC curve, the point (0,1) corresponds to: A) Maximum false‑positive rate, minimum true‑positive rate B) Minimum false‑positive rate, maximum true‑positive rate C) Random guessing D) No classification made Answer: B Explanation: (0,1) indicates 0 % false positives and 100 % true positives – perfect classification. Question 61. Which statistical measure quantifies the strength and direction of a linear relationship? A) Covariance B) Correlation coefficient C) Standard error D) Mean absolute deviation Answer: B Explanation: The Pearson correlation coefficient ranges from – 1 to 1, indicating direction and strength. Question 62. To perform a left outer join in Teradata, which syntax is used?

Explanation: CUME_DIST() gives the proportion of rows with values less than or equal to the current row. Question 67. Which metric is directly derived from the confusion matrix and measures the proportion of actual negatives correctly identified? A) Sensitivity B) Specificity C) Precision D) Recall Answer: B Explanation: Specificity = TN ÷ (TN + FP). Question 68. To calculate the variance of a column, you would use: A) VAR_POP() B) VAR_SAMP() C) STDDEV() D) All of the above (depending on population vs. sample) Answer: D Explanation: VAR_POP computes population variance; VAR_SAMP computes sample variance; both are valid variance functions. Question 69. Which of the following best describes the purpose of “sessionization” in web analytics? A) Aggregating page views by user‑defined time windows B) Normalizing click counts C) Removing bots D) Generating heat maps Answer: A Explanation: Sessionization groups events into sessions based on inactivity timeouts. Question 70. In a line chart, overlapping lines with similar slopes can cause which issue? A) Chartjunk B) Misleading axis C) Overplotting D) Incorrect legend Answer: C Explanation: Overplotting makes it hard to distinguish individual series.

Question 71. Which of the following is NOT a typical step in data cleansing? A) Imputing missing values B) Standardizing date formats C) Creating surrogate keys D) Removing duplicate records Answer: C Explanation: Creating surrogate keys is a data modeling task, not a cleansing operation. Question 72. When using the CASE WHEN statement to create a flag for sales > 1000, the correct syntax is: A) CASE WHEN sales > 1000 THEN 1 ELSE 0 END B) IF sales > 1000 THEN 1 ELSE 0 C) SELECT IF(sales>1000,1,0) D) WHEN sales > 1000 THEN 1 END Answer: A Explanation: CASE WHEN … THEN … ELSE … END is the proper conditional expression. Question 73. Which of the following visualizations is most effective for comparing distributions across multiple groups? A) Histogram B) Box plot C) Pie chart D) Scatter plot Answer: B Explanation: Box plots show median, quartiles, and outliers for each group side‑by‑side. Question 74. In a regression model, a high VIF (Variance Inflation Factor) for a predictor indicates: A) Strong predictive power B) Multicollinearity with other predictors C) Low residual variance D) Model underfitting Answer: B Explanation: VIF > 10 (commonly) signals that the predictor is highly correlated with others. Question 75. Which Teradata function extracts the first word from a string?

Explanation: Uniform distribution yields roughly equal frequencies across intervals. Question 80. To compute the lift of a rule using CFilter, you need: A) Support and confidence values B) Only confidence C) Only support D) AUC value Answer: A Explanation: Lift = confidence / (overall probability of consequent), requiring both support and confidence. Question 81. Which of the following is a recommended practice when dealing with highly skewed numeric data before modeling? A) Leave it as‑is B) Apply log transformation C) Convert to categorical D) Drop the column Answer: B Explanation: Log transformation reduces right‑skewness, stabilizing variance for many models. Question 82. In a time‑series aggregation using INTERVAL ‘1 DAY’ preceding, the function calculates: A) Daily totals for each day B) Cumulative total from the start C) Rolling 1‑day sum (i.e., current day only) D) Weekly totals Answer: C Explanation: INTERVAL ‘1 DAY’ PRECEDING includes only the current row’s day, effectively non‑rolling. Question 83. Which chart type is most appropriate for showing changes in a metric across multiple categories over time? A) Stacked bar chart B) Line chart with multiple series C) Scatter plot D) Pie chart Answer: B Explanation: Multiple line series allow tracking each category’s trend over time.

Question 84. When using FASTEXPORT to unload data, the output is: A) Inserted into another table B) Written to a flat file on the client C) Stored in a temporary table D) Sent to a message queue Answer: B Explanation: FASTEXPORT streams data to the client’s file system. Question 85. Which of the following best describes “precision‑recall trade‑off”? A) Increasing precision always increases recall B) Improving one often reduces the other C) They are independent D) Both are maximized by the same threshold Answer: B Explanation: Adjusting the classification threshold typically improves precision at the cost of recall, or vice versa. Question 86. To identify rows where a numeric column contains negative values, you would use: A) WHERE column < 0 B) WHERE column = ‘-’ C) WHERE SIGN(column) = - 1 D) WHERE ABS(column) <> column Answer: A Explanation: The simple comparison operator correctly filters negative numbers. Question 87. Which of the following is a typical outcome of applying the STEM() function to the word “running”? A) run B) running C) runn D) runned Answer: A Explanation: STEM reduces “running” to its root “run”. Question 88. In a confusion matrix, the term “false negative” refers to: