




























































































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. Which Teradata Vantage function is used to calculate the haversine distance between two latitude/longitude points? A) ST_Distance B) ST_Haversine C) ST_GeogFromText D) ST_Length Answer: B Explanation: ST_Haversine computes the great‑circle distance (haversine) between two geographic coordinates. Question 2. In a Vantage SQL script, which clause is required to specify the target table for a trained model when scoring new data? A) MODEL INTO B) USING MODEL C) APPLY MODEL D) FROM MODEL Answer: C Explanation: The APPLY MODEL clause tells Vantage to use the trained model to score the input rows. Question 3. Which sampling method guarantees that each class proportion in the training set mirrors the original dataset? A) Simple random sampling B) Systematic sampling C) Stratified sampling
D) Cluster sampling Answer: C Explanation: Stratified sampling draws samples from each class proportionally, preserving class distribution. Question 4. When using the UnivariateStatistics function, which output indicates that the data follows a normal distribution? A) Skewness ≈ 0 and Kurtosis ≈ 3 B) Skewness > 1 C) Kurtosis < 1 D) Mean = Median Answer: A Explanation: For a normal distribution, skewness is near zero and excess kurtosis is near three. Question 5. Which Teradata Vantage function is designed to fill gaps in a time‑series using linear interpolation? A) INTERPOLATE_LINEAR B) TIMEFILL C) INTERPOLATOR D) SERIES_IMPUTE Answer: C Explanation: INTERPOLATOR provides various interpolation methods, including linear, to impute missing time‑series values.
Answer: A Explanation: PCA_ANALYZE performs principal component analysis and returns eigenvalues, eigenvectors, and scores. Question 9. Which metric is most appropriate for evaluating a binary classification model when class imbalance is severe? A) Accuracy B) ROC‑AUC C) Mean Squared Error D) R‑squared Answer: B Explanation: ROC‑AUC evaluates ranking ability and is insensitive to class prevalence, making it suitable for imbalanced data. Question 10. In Vantage, the CFilter function is primarily used for: A) Collaborative filtering recommendation generation B) Filtering outliers from a dataset C) Clustering high‑dimensional data D) Conducting causal inference Answer: A
Explanation: CFilter implements collaborative filtering algorithms to generate user‑item recommendations. Question 11. Which of the following best describes heteroscedasticity in regression diagnostics? A) Constant variance of residuals across fitted values B) Residuals increase or decrease systematically with fitted values C) Residuals are normally distributed D) Residuals are independent of each other Answer: B Explanation: Heteroscedasticity occurs when the variance of the residuals changes with the level of the predicted variable. Question 12. Which Vantage function can be used to detect structural breaks (change points) in a time‑series? A) CHANGEPOINT_DETECT B) CHANGEPOINTDETECTION C) TIME_BREAKS D) VARIANCE_SHIFT Answer: B Explanation: CHANGEPOINTDETECTION identifies points where statistical properties of a series change abruptly. Question 13. When creating a custom dictionary for text mining, which step must be performed first?
Answer: D Explanation: FETCH FIRST N ROWS ONLY is the ANSI‑standard way to limit rows in Teradata Vantage. Question 16. Which statistical test is appropriate for comparing the means of three independent groups with normally distributed data? A) Two‑sample t‑test B) ANOVA C) Kruskal‑Wallis test D) Paired t‑test Answer: B Explanation: ANOVA (Analysis of Variance) tests mean differences across three or more independent groups. Question 17. Which Vantage function creates a binary indicator for whether a value falls within a specified time window? A) TIME_BUCKET B) BETWEEN_TIME C) TIME_IN_RANGE D) TIME_WINDOW_FLAG Answer: C Explanation: TIME_IN_RANGE returns 1 if a timestamp lies within the defined start‑end interval, otherwise 0.
Question 18. Which clustering algorithm in Vantage is most appropriate for very high‑dimensional sparse data such as text vectors? A) KMEANS B) CANOPY C) MINHASH D) DBSCAN Answer: C Explanation: MinHash clustering approximates Jaccard similarity and works well with high‑dimensional sparse vectors. Question 19. In Vantage, the LARS algorithm is primarily used for: A) Solving Lasso regression paths efficiently B) Performing hierarchical clustering C) Generating random forests D) Conducting time‑series forecasting Answer: A Explanation: Least Angle Regression (LARS) computes the entire Lasso solution path with low computational cost. Question 20. Which of the following best describes the purpose of the POS Tagger function? A) Identifies the sentiment polarity of a sentence B) Assigns grammatical categories (noun, verb, etc.) to each token C) Detects named entities such as persons or locations
Question 23. Which evaluation metric is most suitable for a regression model where large errors are particularly undesirable? A) Mean Absolute Error (MAE) B) Mean Squared Error (MSE) C) R‑squared D) Median Absolute Deviation Answer: B Explanation: MSE squares the residuals, penalizing larger errors more heavily than MAE. Question 24. In Vantage, which function would you use to standardize a numeric column to have zero mean and unit variance? A) NORMALIZE B) ZSCORE C) SCALE_STANDARD D) STDIZE Answer: B Explanation: ZSCORE returns (value − mean)/standard deviation, achieving standardization. Question 25. Which of the following best characterizes a “type I” error in model evaluation? A) Failing to reject a false null hypothesis (false negative) B) Incorrectly rejecting a true null hypothesis (false positive) C) Overfitting the training data D) Underfitting the training data
Answer: B Explanation: Type I error is a false positive—detecting an effect that does not exist. Question 26. Which Vantage function is used to compute the Jaccard similarity between two sets? A) SET_SIMILARITY B) JACCARD_SIM C) INTERSECT_COUNT D) SIMILARITY_JACCARD Answer: B Explanation: JACCARD_SIM returns the size of the intersection divided by the size of the union of two sets. Question 27. When performing feature engineering on a timestamp column, which derived feature is most likely to improve a model predicting weekend sales? A) Hour of day B) Day of week (numeric) C) Month of year D) Unix epoch Answer: B Explanation: Day‑of‑week captures whether a date falls on a weekend, directly affecting weekend sales.
D) It is a non‑parametric method that makes no distributional assumptions. Answer: D Explanation: LDA is a parametric technique that assumes multivariate normality and equal covariances. Question 31. Which Vantage function is used to compute a rolling (moving) average over a specified window? A) MOVING_AVG B) ROLLING_MEAN C) WINDOW_AVG D) AVG_OVER Answer: A Explanation: MOVING_AVG calculates the average of a numeric expression over a defined number of preceding rows. Question 32. Which clustering algorithm in Vantage uses a probabilistic model assuming data points are generated from a mixture of Gaussian distributions? A) KMEANS B) GMM C) DBSCAN D) CANOPY Answer: B Explanation: Gaussian Mixture Models (GMM) model data as a mixture of Gaussian components, assigning soft cluster memberships.
Question 33. In the context of model versioning, which practice is essential for traceability? A) Overwriting the previous model file each time a new model is trained. B) Storing model metadata (training date, parameters, data version) alongside the model artifact. C) Using random file names for each model. D) Deleting old models after deployment. Answer: B Explanation: Recording metadata enables reproducibility and auditability of model lineage. Question 34. Which of the following is a correct interpretation of a ROC curve that hugs the top‑left corner? A) The model performs worse than random guessing. B) The model has high true‑positive rate and low false‑positive rate across thresholds. C) The model has low sensitivity. D) The model’s predictions are perfectly calibrated. Answer: B Explanation: A ROC curve near the top‑left indicates strong discriminative ability (high TPR, low FPR). Question 35. Which Vantage function would you use to transform a categorical variable into a set of binary dummy variables? A) ONE_HOT_ENCODE B) CATEGORICAL_DUMMY
Question 38. Which Vantage function is used to compute the cosine similarity between two vectors stored as arrays? A) COSINE_SIM B) VECTOR_SIMILARITY C) DOT_PRODUCT_NORMALIZED D) ANGLE_DISTANCE Answer: A Explanation: COSINE_SIM returns the cosine of the angle between two numeric arrays, measuring similarity. Question 39. Which of the following is a correct statement about K‑Fold cross‑validation? A) It evaluates the model on the same data used for training. B) It reduces variance of the performance estimate by averaging results over K different train‑test splits. C) It can only be used with linear models. D) It always uses K = 10. Answer: B Explanation: K‑Fold CV partitions data into K folds, training on K‑1 and testing on the remaining fold, then averages the metrics. Question 40. Which Vantage function would you use to extract the year component from a DATE column? A) YEAR_EXTRACT B) EXTRACT(YEAR FROM date_col)
Answer: B Explanation: The ANSI‑standard EXTRACT function retrieves the year component from a DATE or TIMESTAMP. Question 41. In a Vantage SQL query, which clause allows you to create a temporary named result set that can be referenced later in the same session? A) CREATE TEMP TABLE B) WITH (Common Table Expression) C) SAVE AS D) DEFINE VIEW Answer: B Explanation: A WITH clause defines a CTE that can be used throughout the query. Question 42. Which algorithm is most appropriate for predicting the probability of a customer churn event when the dataset contains many categorical predictors? A) Linear regression B) Naïve Bayes C) Decision tree ensemble (e.g., Random Forest) D) K‑means Answer: C
Answer: C Explanation: JSON_FLATTEN expands nested JSON objects into rows and columns. Question 46. Which of the following is a primary benefit of using Teradata ML Libraries (e.g., TDPLYR) over external Python scripts? A) Automatic GPU acceleration. B) Seamless in‑database execution, reducing data movement. C) Unlimited model interpretability. D) Built‑in hyper‑parameter optimization for all algorithms. Answer: B Explanation: TDPLYR enables data scientists to run Python‑style code directly inside the database engine. Question 47. In Vantage, which statistic from UnivariateStatistics indicates the presence of outliers when it is substantially larger than the mean absolute deviation? A) Median B) Standard deviation C) Skewness D) Kurtosis Answer: D
Explanation: High kurtosis (> 3) signals heavy tails and potential outliers. Question 48. Which of the following correctly explains why multicollinearity is problematic for linear regression models? A) It inflates the model’s R‑squared value. R² is unaffected; multicollinearity makes coefficient estimates unstable and standard errors large, reducing interpretability. Question 49. Which Vantage function would you use to compute a rolling window correlation between two time‑series columns? A) ROLLING_CORR B) CORR_OVER C) WINDOW_CORRELATION D) TIME_SERIES_CORR Answer: A Explanation: ROLLING_CORR calculates correlation over a moving window of rows. Question 50. Which of the following is a correct description of the Canopy clustering algorithm? A) It creates spherical clusters based on Euclidean distance. B) It first forms overlapping “canopies” using a loose distance threshold, then refines with a stricter algorithm. C) It uses density‑based connectivity to define clusters. D) It requires the number of clusters to be specified in advance. Answer: B