




























































































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 of the following best describes the purpose of an ETL pipeline? A) To visualize data in dashboards B) To extract, transform, and load data into a target system C) To train machineâlearning models directly on raw data D) To monitor model performance in production Answer: B Explanation: ETL stands for Extract, Transform, Load; it moves data from source systems, cleans or reshapes it, and loads it into a destination such as a data warehouse. Question 2. In Apache Spark, which abstraction represents an immutable distributed collection of objects that can be processed in parallel? A) DataFrame B) RDD C) Hive Table D) SQL View Answer: B Explanation: Resilient Distributed Datasets (RDDs) are the lowâlevel immutable collections Spark uses for parallel operations. Question 3. Which SQL clause is used to retrieve only unique rows from a result set? A) DISTINCT B) UNIQUE C) GROUP BY D) HAVING
Answer: A Explanation: The DISTINCT keyword eliminates duplicate rows in the query output. Question 4. Which NoSQL database model is most suitable for representing socialânetwork relationships? A) Document store B) Keyâvalue store C) Column family store D) Graph database Answer: D Explanation: Graph databases (e.g., Neo4j) excel at storing and traversing nodes and edges, which model relationships naturally. Question 5. When handling missing values, which technique preserves the original distribution of a numeric feature? A) Deleting rows with missing values B) Mean imputation C) Median imputation D) Multiple imputation using predictive models Answer: D Explanation: Multiple imputation models the missingness based on other variables, better preserving the underlying distribution than simple mean/median substitution.
Answer: B Explanation: Gradient descent moves opposite to the gradient (steepest ascent) to minimize the loss. Question 9. Bayesâ theorem is most useful for which type of inference? A) Frequentist confidence intervals B) Updating prior beliefs with new evidence C) Calculating pâvalues D) Determining sample size Answer: B Explanation: Bayesâ theorem combines prior probability with likelihood to produce a posterior probability. Question 10. Which hypothesis test is appropriate for comparing the means of two independent normally distributed samples with unknown but equal variances? A) Paired tâtest B) Oneâsample tâtest C) Twoâsample tâtest (pooled) D) Chiâsquare test Answer: C Explanation: The pooled twoâsample tâtest assumes equal variances and independent samples.
Question 11. In exploratory data analysis, a histogram that is heavily skewed to the right indicates: A) A symmetric distribution B) Positive skewness (long tail on the right) C) Negative skewness (long tail on the left) D) Uniform distribution Answer: B Explanation: Rightâskewed histograms have a long tail on the highâvalue side. Question 12. Which metric is most appropriate for evaluating a binary classifier on an imbalanced dataset where the minority class is the focus? A) Accuracy B) Precision C) Recall (Sensitivity) D) Specificity Answer: C Explanation: Recall measures the proportion of actual positives captured, which is critical when the positive class is rare. Question 13. In linear regression, multicollinearity among predictors primarily inflates: A) The intercept term B) The residual sum of squares C) Standard errors of coefficients D) Râsquared
Question 16. In KâNearest Neighbors classification, increasing the value of K generally leads to: A) Higher variance and lower bias B) Higher bias and lower variance C) No change in biasâvariance tradeâoff D) Overfitting Answer: B Explanation: Larger K smooths the decision surface (higher bias) and reduces sensitivity to noise (lower variance). Question 17. Which of the following statements about NaĂŻve Bayes classifiers is true? A) They require features to be continuous only B) They assume conditional independence between features given the class C) They cannot handle categorical data D) They always outperform logistic regression Answer: B Explanation: NaĂŻve Bayes simplifies computation by assuming feature independence conditioned on the class label. Question 18. Which clustering algorithm can automatically determine the number of clusters based on density? A) KâMeans B) Hierarchical Agglomerative Clustering C) DBSCAN
D) Gaussian Mixture Models Answer: C Explanation: DBSCAN groups points based on density and marks outliers, without needing a predefined cluster count. Question 19. Principal Component Analysis (PCA) is primarily used for: A) Supervised classification B) Dimensionality reduction while preserving variance C) Generating synthetic data D) Handling missing values Answer: B Explanation: PCA transforms correlated variables into orthogonal components that capture the maximum variance. Question 20. The tâSNE algorithm is best suited for: A) Reducing dimensionality for visualization of highâdimensional data B) Training deep neural networks C) Performing timeâseries forecasting D) Estimating probability densities Answer: A Explanation: tâSNE maps highâdimensional data to 2â or 3âdimensional space, preserving local structure for visualization.
Answer: C Explanation: ROCâAUC measures the ability to rank positive instances higher than negatives irrespective of class distribution. Question 24. In the biasâvariance tradeâoff, a model that is too simple typically suffers from: A) High bias, low variance B) Low bias, high variance C) Both high bias and high variance D) Neither bias nor variance Answer: A Explanation: Underâfitting models cannot capture underlying patterns, leading to systematic error (high bias) but stable predictions (low variance). Question 25. Which activation function is most commonly used in hidden layers of deep neural networks because it mitigates the vanishing gradient problem? A) Sigmoid B) Tanh C) ReLU D. Linear Answer: C Explanation: ReLU (Rectified Linear Unit) outputs zero for negative inputs and a linear positive slope, preserving gradients for deep networks.
Question 26. Convolutional Neural Networks (CNNs) are particularly effective for: A) Timeâseries forecasting B) Natural language generation C) Image and spatial data processing D. Tabular data regression Answer: C Explanation: CNNs exploit local connectivity and weight sharing, making them ideal for extracting spatial hierarchies in images. Question 27. In recurrent neural networks, the LSTM cell introduces which mechanism to combat longâterm dependency loss? A) Dropout layer B) Gating (input, forget, output gates) C) Batch normalization D. Maxâpooling Answer: B Explanation: LSTM gates regulate information flow, preserving gradients over long sequences. Question 28. Which component of the Transformer architecture enables parallel processing of sequence tokens? A) Recurrent connections B) Convolutional filters C) Selfâattention mechanism D. Embedding lookup
Question 31. In word embeddings such as Word2Vec, the relationship âking â man + woman â queenâ demonstrates: A) Overfitting B) Semantic linearity in the embedding space C) Random noise D. Dimensionality reduction Answer: B Explanation: Vector arithmetic captures analogical relationships due to linear structures learned during training. Question 32. Which preprocessing step is essential before feeding raw images into a CNN? A) Removing stop words B) Normalizing pixel values (e.g., scaling to [0,1]) C. Encoding categorical labels with oneâhot vectors D. Applying PCA Answer: B Explanation: Normalizing pixel intensities stabilizes training and speeds convergence. Question 33. Docker containers differ from virtual machines primarily because: A) They emulate hardware B) They share the host OS kernel, leading to lighter weight C. They require a hypervisor D. They cannot run on cloud platforms
Answer: B Explanation: Containers use OSâlevel isolation, avoiding the overhead of full guest OS emulation. Question 34. In Kubernetes, a âDeploymentâ object is used to: A) Store raw data files B) Define and manage replica sets of pods for a stateless application C. Perform batch ETL jobs D. Monitor model drift Answer: B Explanation: Deployments declaratively manage the desired state of replicated pods, handling scaling and rollouts. Question 35. Which Python web framework is specifically designed for building highâperformance asynchronous APIs, making it a popular choice for model serving? A) Flask B) Django C) FastAPI D. Pyramid Answer: C Explanation: FastAPI leverages ASGI and Pydantic for fast, typeâchecked asynchronous endpoints. Question 36. When versionâcontrolling large datasets, which tool integrates with Git to track data file changes efficiently?
Answer: B Explanation: SageMaker offers notebooks, training jobs, hyperparameter tuning, and endpoint deployment. Question 39. Model drift is best detected by monitoring: A) CPU utilization of the serving instance B) Changes in input data distribution compared to training data C. Number of API calls D. Disk I/O Answer: B Explanation: Drift occurs when the statistical properties of live data diverge from the training set, degrading model performance. Question 40. Which metric would you monitor to detect latency issues in a realâtime prediction API? A) ROCâAUC B) Mean Squared Error C) 95thâpercentile response time D. Model accuracy Answer: C Explanation: Percentile latency captures tailâend response times, crucial for realâtime SLAs.
Question 41. In a streaming data pipeline using Apache Kafka, what is the role of a âconsumer groupâ? A) To produce messages to a topic B) To store data permanently on disk C) To enable parallel consumption while ensuring each message is processed by only one member of the group D. To encrypt messages Answer: C Explanation: Consumer groups allow loadâbalanced, faultâtolerant processing where each partition is read by a single consumer in the group. Question 42. Which of the following is a common technique for handling categorical variables with high cardinality? A) Oneâhot encoding all categories B) Dropping the variable entirely C) Target encoding (mean encoding) D. Scaling with MinâMax Answer: C Explanation: Target encoding replaces categories with the mean of the target variable, reducing dimensionality while preserving predictive power. Question 43. In timeâseries crossâvalidation, the ârolling forecast originâ approach ensures that: A) Future data leaks into training folds B) Each validation set is ahead in time of its corresponding training set
Explanation: In highâdimensional spaces, distances between points converge, reducing the effectiveness of nearestâneighbor and clustering algorithms. Question 46. Which loss function is appropriate for binary classification when using a neural network with a sigmoid output? A) Mean Squared Error B) Hinge loss C) Binary CrossâEntropy (Log Loss) D. Poisson loss Answer: C Explanation: Binary crossâentropy measures the divergence between predicted probabilities and binary labels. Question 47. In the context of model interpretability, SHAP values provide: A) Global feature importance only B) Local explanations based on gameâtheoretic Shapley values C. Model coefficients for linear models D. Confusion matrices Answer: B Explanation: SHAP attributes each prediction to feature contributions using Shapley concepts, offering both local and aggregated insights. Question 48. Which of the following best describes âearly stoppingâ in model training? A) Halting training after a fixed number of epochs regardless of performance
B) Stopping when validation loss stops improving for a predefined patience period C. Reducing learning rate to zero D. Pruning neurons after training Answer: B Explanation: Early stopping monitors validation metrics and terminates training to prevent overfitting when improvements plateau. Question 49. When deploying a model as a Docker container, which file defines the environment and dependencies needed at build time? A) requirements.txt B) Dockerfile C. docker-compose.yml D. .env Answer: B Explanation: The Dockerfile contains instructions for constructing the image, including base image, packages, and copy commands. Question 50. In a feature store, the âonlineâ layer is primarily used for: A) Batch processing of historical data B) Realâtime feature retrieval during inference C. Data archival D. Model training Answer: B