Docsity

Teradata Vantage Data Science V2 Practice Exam, Exams of Technology

Toggle sidebar
bg1
Teradata Vantage Data Science V2 Practice Exam
**Question 1.** Which SQL function is most appropriate for imputing missing numeric values
with the median in a Teradata Vantage query?
A) AVG()
B) MEDIAN()
C) SUM()
D) MAX()
**Answer:** B
**Explanation:** The MEDIAN() function directly computes the median, which can be used to
replace missing values with the median of the column.
**Question 2.** In Teradata, which data type should be used to store a range of dates
representing a fiscal quarter?
A) DATE
B) TIMESTAMP
C) PERIOD(DATE)
D) INTERVAL DAY TO SECOND
**Answer:** C
**Explanation:** PERIOD(DATE) stores a start and end DATE, ideal for representing a time range
such as a fiscal quarter.
**Question 3.** Which of the following is a benefit of running analytic functions in‑database
with Vantage?
A) Requires data export to Python
B) Reduces network latency and leverages parallelism
C) Limits scalability to a single node
D) Increases storage costs dramatically
**Answer:** B
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

Partial preview of the text

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

Question 1. Which SQL function is most appropriate for imputing missing numeric values with the median in a Teradata Vantage query? A) AVG() B) MEDIAN() C) SUM() D) MAX() Answer: B Explanation: The MEDIAN() function directly computes the median, which can be used to replace missing values with the median of the column. Question 2. In Teradata, which data type should be used to store a range of dates representing a fiscal quarter? A) DATE B) TIMESTAMP C) PERIOD(DATE) D) INTERVAL DAY TO SECOND Answer: C Explanation: PERIOD(DATE) stores a start and end DATE, ideal for representing a time range such as a fiscal quarter. Question 3. Which of the following is a benefit of running analytic functions in‑database with Vantage? A) Requires data export to Python B) Reduces network latency and leverages parallelism C) Limits scalability to a single node D) Increases storage costs dramatically Answer: B

Explanation: In‑database analytics execute where the data resides, minimizing data movement and using Vantage’s parallel processing. Question 4. When detecting outliers using the IQR method, which rule defines an outlier? A) Value > mean + 2stddev B) Value < Q1 – 1.5IQR or > Q3 + 1.5IQR C) Value > median + IQR D) Value < Q2 – 0.5IQR Answer: B Explanation: The IQR rule flags points below Q1‑1.5IQR or above Q3+1.5IQR as outliers. Question 5. Which sampling technique ensures each class is represented proportionally to its size in the original dataset? A) Simple random sampling B) Systematic sampling C) Stratified sampling D) Cluster sampling Answer: C Explanation: Stratified sampling divides the data by class (strata) and samples proportionally from each. Question 6. Which Teradata function extracts the latitude from a GEOGRAPHY point? A) ST_X() B) ST_Y() C) ST_LATITUDE() D) ST_LONGITUDE() Answer: C

Explanation: Spearman’s rho assesses monotonic relationships for ranked (ordinal) variables. Question 10. Principal Component Analysis (PCA) primarily helps to: A) Increase multicollinearity B) Reduce dimensionality while preserving variance C) Perform non‑linear classification D) Estimate time‑series forecasts Answer: B Explanation: PCA transforms correlated variables into a smaller set of uncorrelated components that capture most variance. Question 11. In a GLM output, a positive coefficient for a predictor indicates: A) The predictor decreases the response variable B) No effect on the response C) The predictor is statistically insignificant D) An increase in the predictor is associated with an increase in the response (holding other variables constant) Answer: D Explanation: Positive coefficients imply a direct relationship between predictor and response. Question 12. Heteroscedasticity in regression residuals means: A) Residuals have constant variance B) Residual variance changes with the level of an independent variable C) Residuals are normally distributed D) Model is perfectly linear

Answer: B Explanation: Heteroscedasticity occurs when error variance is not constant across values of a predictor. Question 13. Which classification algorithm in Vantage is based on boosting multiple weak learners? A) KNN B) DecisionTreeClassifier C) AdaBoostClassifier D) NaiveBayes Answer: C Explanation: AdaBoost builds an ensemble of weak learners, re‑weighting misclassified instances. Question 14. The KMeans algorithm in Vantage requires which of the following as input? A) Number of clusters (k) only B) Initial centroids only C) Number of clusters and distance metric D) A pre‑trained model file Answer: C Explanation: KMeans needs the desired number of clusters and a distance metric (e.g., Euclidean) to compute centroids. Question 15. Which clustering method is particularly suited for large, high‑dimensional text data due to its use of MinHash signatures? A) KMeans B) Gaussian Mixture Model

C) Named entity recognition D) Text summarization Answer: B Explanation: LDA infers a set of topics and the distribution of topics across documents. Question 19. In a Naive Bayes text classification output, a high posterior probability for class “Spam” means: A) The document is definitely not spam B) The model is uncertain C) The document contains many spam‑indicative words D) The prior probability of “Spam” was set to zero Answer: C Explanation: Naive Bayes multiplies likelihoods; a high posterior indicates many features associated with “Spam”. Question 20. Which combination of Vantage functions would you use to (1) tokenize, (2) remove stop words, and (3) compute TF‑IDF vectors? A) TOKENIZE, STOPWORD_REMOVE, TFIDF B) SPLIT, FILTER, COSINE_SIM C) REGEXP_REPLACE, STEM, PCA D) UNNEST, GROUP BY, COUNT Answer: A Explanation: TOKENIZE creates tokens, STOPWORD_REMOVE filters them, and TFIDF computes weighted vectors. Question 21. The VARMAX model extends ARIMA by: A) Adding exogenous variables and multiple interrelated time series (vector)

B) Using only moving averages C) Ignoring seasonality D) Being limited to univariate data Answer: A Explanation: VARMAX handles vector autoregression with moving averages and exogenous regressors. Question 22. In the ARIMA SQL syntax, the parameter “p” denotes: A) Number of moving‑average terms B) Number of differencing operations C) Number of autoregressive terms D) Seasonal period length Answer: C Explanation: “p” is the order of the autoregressive component. Question 23. ChangePointDetection in Vantage is used to: A) Forecast future values B) Identify moments where statistical properties of a series shift C) Smooth a time series D) Compute autocorrelation Answer: B Explanation: It detects structural breaks where mean, variance, or trend changes. Question 24. Symbolic Aggregate Approximation (SAX) primarily converts a time series into: A) Frequency domain representation B) A symbolic string preserving shape

C) Computing shortest paths D) Performing community detection Answer: B Explanation: PageRank distributes rank scores through the link structure until convergence. Question 28. To calculate the great‑circle distance between two latitude/longitude points in Vantage, which function is appropriate? A) ST_DISTANCE_SPHERE() B) ST_LENGTH() C) ST_AREA() D) ST_BUFFER() Answer: A Explanation: ST_DISTANCE_SPHERE computes spherical distance between two geospatial points. Question 29. Which function would you use to find all customers within 10 km of a store location? A) ST_WITHIN_DISTANCE() B) ST_INTERSECTS() C) ST_CONTAINS() D) ST_OVERLAPS() Answer: A Explanation: ST_WITHIN_DISTANCE filters rows based on a distance threshold. Question 30. Type I error in a binary classification context corresponds to: A) False Positive – predicting positive when true label is negative B) False Negative – predicting negative when true label is positive

C) Correct classification of positives D) Correct classification of negatives Answer: A Explanation: Type I error is a false alarm (FP). Question 31. Cross‑validation primarily helps to: A) Increase training time B) Estimate out‑of‑sample performance and reduce overfitting C) Remove outliers automatically D) Convert regression to classification Answer: B Explanation: By rotating validation folds, it provides a robust performance estimate. Question 32. In a ROC curve, a model with an AUC of 0.5 is equivalent to: A) Perfect classifier B) Random guessing C) Always predicting the majority class D) Overfitted model Answer: B Explanation: AUC = 0.5 indicates no discriminative ability, same as random chance. Question 33. When communicating model results to a CFO, which metric is most intuitive for financial impact? A) R‑squared B) Lift over baseline conversion rate C) Confusion matrix

Answer: B Explanation: Kubernetes manages container lifecycles, scaling, and load balancing. Question 37. ModelOps in Vantage refers to: A) Model training only B) End‑to‑end lifecycle management including deployment, monitoring, and governance C) Data ingestion pipelines D) Query optimization Answer: B Explanation: ModelOps covers operational aspects of models post‑training. Question 38. Query Grid enables Vantage to: A) Run only on local disks B) Access and process data across heterogeneous external systems transparently C) Replace SQL with Python D) Enforce row‑level security only Answer: B Explanation: Query Grid federates queries across multiple data sources. Question 39. The TDPLYR library in Vantage is analogous to which R package? A) dplyr B) ggplot C) caret D) shiny Answer: A Explanation: TDPLYR provides dplyr‑style data manipulation functions for Vantage.

Question 40. TeradataML primarily offers: A) Real‑time streaming analytics only B) In‑database machine learning algorithms with SQL‑like syntax C) Visualization widgets D) Data encryption utilities Answer: B Explanation: TeradataML enables building and scoring models directly inside Vantage using SQL. Question 41. Shapley values in model explainability are used to: A) Optimize hyper‑parameters automatically B) Quantify each feature’s contribution to a specific prediction C) Reduce dimensionality D) Perform clustering Answer: B Explanation: Shapley values allocate the prediction difference among features fairly. Question 42. Which input is required by the attribution function to compute feature contributions using Shapley values? A) Raw training data only B) Model coefficients, feature values for the instance, and baseline expectation C) Only the model name D) Confusion matrix Answer: B Explanation: Attribution needs the model, instance feature values, and the expected output to allocate contributions.

Question 46. In a time‑series table with a PERIOD column, which function returns the length of each period in days? A) PERIOD_LENGTH() B) EXTRACT(DAY FROM period) C) INTERVAL_LENGTH() D) DATE_DIFF() Answer: A Explanation: PERIOD_LENGTH() computes the duration of a period in the specified unit. Question 47. Which statistical test is appropriate for comparing means of two independent groups with non‑normal distributions? A) Paired t‑test B) ANOVA C) Mann‑Whitney U test D) Chi‑square test Answer: C Explanation: Mann‑Whitney is a non‑parametric alternative to the independent t‑test. Question 48. The term “monotonicity” in modeling refers to: A) Errors having constant variance B) A predictor’s effect consistently increasing or decreasing the response C) Predictors being uncorrelated D) Model coefficients summing to one Answer: B Explanation: Monotonic relationships mean the response moves in one direction as the predictor changes.

Question 49. Which of the following best describes the difference between PCA and LARS? A) PCA is a supervised dimensionality reduction; LARS is unsupervised clustering. B) PCA reduces dimensions based on variance; LARS performs regression with a stepwise selection of predictors. C) Both are identical techniques under different names. D) LARS is used for time‑series; PCA for text mining. Answer: B Explanation: PCA is unsupervised variance‑based reduction; LARS (Least Angle Regression) selects variables for regression. Question 50. In Vantage, which function would you use to compute the cosine similarity between two TF‑IDF vectors? A) COSINE_SIM() B) DOT_PRODUCT() C) EUCLIDEAN_DISTANCE() D) JACCARD_INDEX() Answer: A Explanation: COSINE_SIM returns the cosine of the angle between two vectors, measuring similarity. Question 51. Which of the following is a correct way to remove duplicate rows based on a key column in a Vantage SELECT statement? A) SELECT DISTINCT * FROM table; B) SELECT * FROM table GROUP BY key; C) SELECT * FROM (SELECT *, ROW_NUMBER() OVER (PARTITION BY key ORDER BY key) AS rn FROM table) t WHERE rn = 1; D) SELECT * FROM table WHERE key IS NOT NULL;

D) Density‑based outlier detection Answer: B Explanation: Canopy creates overlapping subsets using a fast distance metric before more expensive clustering. Question 55. The “INTERPOLATOR” function in Vantage is primarily used for: A) Filling missing time‑series values using linear or spline interpolation B) Sorting data C) Encrypting columns D) Converting strings to numbers Answer: A Explanation: INTERPOLATOR estimates missing observations based on surrounding values. Question 56. When using the “MODEL_ANALYZE” procedure, which output helps you assess multicollinearity? A) VIF (Variance Inflation Factor) table B) Confusion matrix C) ROC curve D) Lift chart Answer: A Explanation: VIF quantifies how much variance of a coefficient is inflated due to collinearity. Question 57. Which SQL clause can be used to create a stratified sample of 10% from each class in a table? A) SAMPLE 0. B) SAMPLE BY class 0.

C) SELECT * FROM table WHERE RANDOM() < 0. D) SAMPLE CLASS(class) 0. Answer: B Explanation: SAMPLE BY performs stratified sampling based on the specified column. Question 58. In a GLM with a log‑link function, the predicted outcome is: A) Log of the expected value B) Exponential of the linear predictor C) Direct sum of coefficients D) Square root of the linear predictor Answer: B Explanation: With a log link, μ = exp(β0 + ΣβiXi). Question 59. Which Vantage function returns the top‑N rows based on a ranking expression? A) RANK() B) ROW_NUMBER() C) QUALIFY ROW_NUMBER() <= N D) TOP N SELECT … Answer: C Explanation: QUALIFY filters after window functions, allowing “ROW_NUMBER() <= N”. Question 60. What does the “KELLY” function compute in a classification context? A) Optimal betting fraction based on odds and probabilities B) Model’s log‑likelihood C) Feature importance scores