




























































































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 “Volume” characteristic of Big Data? A) The speed at which data is generated B) The number of different data sources C) The sheer amount of data stored and processed D) The reliability of data sources Answer: C Explanation: Volume refers to the massive size of datasets that exceed the capacity of traditional storage and processing systems. Question 2. In the context of Big Data, “Velocity” primarily concerns: A) The variety of data formats B) The rate at which data is created and needs to be processed C) The accuracy of data D) The monetary value derived from data Answer: B Explanation: Velocity addresses the speed of data generation, ingestion, and real‑time processing requirements. Question 3. Which “V” of Big Data focuses on the trustworthiness and quality of data? A) Volume
B) Variety C) Veracity D) Value Answer: C Explanation: Veracity deals with data quality, uncertainty, and noise, impacting downstream analytics. Question 4. Data locality in distributed computing is important because: A) It reduces network latency by moving computation to where data resides B) It ensures all nodes have identical copies of data C) It increases the number of replicas for fault tolerance D) It simplifies data encryption across the cluster Answer: A Explanation: Data locality minimizes data movement, improving performance and reducing network overhead. Question 5. Which of the following is a key difference between a Data Lake and a Data Warehouse? A) Data Lakes store only structured data, while Data Warehouses store only unstructured data B) Data Lakes retain raw data in its native format, whereas Data Warehouses store transformed, schema‑on‑write data C) Data Lakes require a fixed schema before ingestion, Data Warehouses do not
Question 8. The primary limitation of classic MapReduce for iterative machine‑learning algorithms is: A) Lack of support for Python B) Inability to shuffle data between nodes C) High overhead of writing intermediate results to disk after each iteration D) No fault‑tolerance mechanisms Answer: C Explanation: Iterative ML requires many passes over data; MapReduce’s disk‑based shuffle makes this inefficient. Question 9. In Spark, the “Driver” program is responsible for: A) Storing data on disk across the cluster B) Executing user code, scheduling tasks, and maintaining the SparkContext C) Managing the physical network connections between nodes D) Persisting RDDs in memory on executor nodes Answer: B Explanation: The Driver coordinates the application, creates the DAG, and schedules tasks on executors. Question 10. Which Spark abstraction provides the most optimized execution for structured data and benefits from the Catalyst optimizer? A) RDD
B) DataFrame C) Broadcast variable D) Accumulator Answer: B Explanation: DataFrames (and Datasets) are built on Spark SQL and leverage Catalyst for query planning and optimization. Question 11. A Resilient Distributed Dataset (RDD) is characterized by: A) Eager evaluation of transformations B) Automatic schema inference C) Immutable, partitioned collection of objects that can be recomputed on failure D) Built‑in support for relational joins only Answer: C Explanation: RDDs are immutable, lazily evaluated, and can be reconstructed from lineage in case of node failures. Question 12. Which of the following is a lazy transformation in Spark? A) count() B) collect() C) filter() D) saveAsTextFile() Answer: C
A) Streaming sensor data to Kafka B) Importing/exporting bulk data between relational databases and Hadoop C) Real‑time replication of NoSQL stores D) In‑memory caching of Spark RDDs Answer: B Explanation: Sqoop automates bulk transfer of data between structured databases (e.g., MySQL) and Hadoop ecosystems. Question 16. Which NoSQL database model is optimized for wide‑column storage and is commonly used with Hadoop? A) Document store (MongoDB) B) Key‑Value store (Redis) C) Graph database (Neo4j) D) Column‑family store (Apache HBase) Answer: D Explanation: HBase provides a sparse, distributed, persistent multidimensional sorted map, fitting the column‑family model. Question 17. Apache Kafka’s concept of a “topic” refers to: A) A single message stored in the broker B) A logical channel to which producers write and consumers subscribe C) The configuration file for the broker D) The security protocol for encryption
Answer: B Explanation: Topics are categories or feeds to which records are published and from which consumers read. Question 18. In Spark, which operation would you use to obtain a statistically representative sample of a large DataFrame without loading the full dataset into driver memory? A) take(1000) B) collect() C) sample(withReplacement = false, fraction = 0.01) D) cache() Answer: C Explanation: sample() creates a distributed random sample based on a fraction, avoiding driver‑side data collection. Question 19. When handling missing values in a massive Spark DataFrame, which method scales best? A) Using pandas’ fillna() after converting to local DataFrame B) Applying the Spark SQL function na.fill() or na.replace() directly on the DataFrame C) Manually iterating rows with a Python for‑loop D) Exporting the data to CSV, editing, and re‑importing Answer: B
Question 22. One‑Hot Encoding high‑cardinality categorical features in Spark can lead to: A) Reduced model accuracy due to loss of information B) Exponential increase in feature dimensionality, causing memory pressure C) Automatic handling of missing categories D) No impact on training time Answer: B Explanation: One‑Hot Encoding creates a binary column per distinct category; many categories explode the feature space. Question 23. Target Encoding differs from One‑Hot Encoding because it: A) Replaces each category with the overall mean of the target variable for that category B) Generates binary columns for each category C) Requires no training data D) Is only applicable to regression problems Answer: A Explanation: Target Encoding maps categories to aggregated target statistics, reducing dimensionality while preserving predictive signal. Question 24. Principal Component Analysis (PCA) in Spark is implemented as a: A) Transformer that reduces dimensionality using singular value decomposition on a RowMatrix
B) Action that returns the top‑k rows of a DataFrame C) Data source for reading CSV files D) Streaming sink for Kafka Answer: A Explanation: Spark’s PCA uses SVD on distributed RowMatrix to compute principal components for dimensionality reduction. Question 25. Which of the following is a common technique for generating features from textual data at scale in Spark? A) Converting text to binary blobs B) Using HashingTF to create fixed‑size term frequency vectors C) Storing raw strings in Parquet without transformation D) Applying regular expressions on the driver node only Answer: B Explanation: HashingTF maps terms to a fixed‑size vector using a hash function, enabling scalable text vectorization. Question 26. In time‑series feature engineering, a “lag feature” represents: A) The moving average over a sliding window B) The difference between consecutive timestamps C) The value of the series at a previous time step D) The Fourier transform of the series Answer: C
Question 29. In Spark, which algorithm implements Gradient‑Boosted Trees for classification and regression? A) GBTClassifier and GBTRegressor in the spark.ml package B) RandomForestClassifier only C) KMeans D) LinearSVC Answer: A Explanation: Spark’s GBTClassifier/GBTRegressor provide distributed gradient‑boosted decision tree implementations. Question 30. Which of the following statements about Mini‑Batch K‑Means in Spark is TRUE? A) It requires the entire dataset to be loaded into memory on a single node B) It updates centroids incrementally using small random subsets of data, making it scalable C) It cannot be used with streaming data D) It always converges faster than standard K‑Means regardless of data size Answer: B Explanation: Mini‑Batch K‑Means processes data in small batches, reducing memory footprint and accelerating convergence on large datasets. Question 31. The Apriori algorithm for association rule mining is challenging to run on Big Data because: A) It requires GPU acceleration
B) It generates an exponential number of candidate itemsets, leading to high memory and compute costs C) It only works with image data D) Spark does not support any association rule algorithms Answer: B Explanation: Apriori’s candidate generation step can explode combinatorially, making it unsuitable without optimizations for massive data. Question 32. In collaborative filtering using Alternating Least Squares (ALS) in Spark, the “implicit” flag indicates that the input data represents: A) Explicit ratings (e.g., 1‑5 stars) B) Binary or count‑based interactions (e.g., clicks, purchases) C) Textual reviews D) Time‑stamped events only Answer: B Explanation: Implicit ALS treats user‑item interactions as confidence levels derived from frequencies, not explicit ratings. Question 33. Distributed training of deep neural networks with TensorFlow on a Spark cluster typically uses which library to coordinate workers? A) SparkSQL B) Horovod C) Mahout
Explanation: ROC AUC measures the trade‑off between true positive rate and false positive rate across thresholds, remaining informative under class imbalance. Question 36. For regression problems, the coefficient of determination (R‑squared) indicates: A) The proportion of variance in the dependent variable explained by the model B) The average absolute error of predictions C) The probability that the model will overfit D) The number of features used Answer: A Explanation: R‑squared quantifies how well the regression predictions capture the variability of the target. Question 37. Which cross‑validation strategy is most suitable for time‑series data in a distributed Spark environment? A) Random K‑fold cross‑validation B) Stratified K‑fold C) TimeSeriesSplit (forward chaining) that respects temporal order D) Leave‑One‑Out cross‑validation on the driver Answer: C Explanation: TimeSeriesSplit preserves chronological order, preventing leakage from future data into training folds.
Question 38. In Spark ML, the CrossValidator class performs hyperparameter tuning by: A) Exhaustively trying all possible parameter combinations on a single node B) Randomly sampling a subset of parameters without evaluation C) Training models for each parameter grid, evaluating them with a specified evaluator, and selecting the best D) Using genetic algorithms to evolve parameters Answer: C Explanation: CrossValidator runs the pipeline for each grid point, computes metrics, and returns the model with the highest score. Question 39. Which of the following hyperparameter search methods is generally more efficient for high‑dimensional spaces? A) Grid Search B) Random Search C) Exhaustive Enumeration D) Manual Tuning only Answer: B Explanation: Random Search explores a broader region with fewer evaluations, often finding good configurations faster than grid search in many dimensions. Question 40. Optuna improves hyperparameter optimization over basic random search by: A) Using a deterministic schedule that never changes
Answer: B Explanation: SHAP (SHapley Additive exPlanations) assigns each feature an importance value that explains its impact on a model’s output. Question 43. Which model serialization format is language‑agnostic and supports deep‑learning models across frameworks? A) PMML B) Pickle C) ONNX D) HDFS block file Answer: C Explanation: ONNX (Open Neural Network Exchange) provides a common representation for models from TensorFlow, PyTorch, etc., enabling cross‑framework deployment. Question 44. In a batch prediction pipeline using Spark, the typical steps are: A) Deploy a REST API, stream data, and write results to a NoSQL store B) Load trained model with MLflow, transform input DataFrame, apply model.transform(), and write predictions to HDFS C) Convert model to TensorFlow Lite and run on mobile devices D) Use Docker to containerize the model and run locally only Answer: B Explanation: Batch prediction leverages Spark’s distributed processing: load model, transform data, generate predictions, and store results.
Question 45. Which container orchestration platform is most commonly paired with Kubernetes for serving scalable ML inference services? A) Apache Flink B) Docker Swarm C) KServe (formerly KFServing) D) Hadoop MapReduce Answer: C Explanation: KServe provides model serving on Kubernetes, handling autoscaling, traffic splitting, and versioning for ML workloads. Question 46. In MLOps, a “model registry” primarily provides: A) Real‑time feature extraction B) Centralized storage, versioning, and lifecycle management of trained models C) Automatic hyperparameter tuning D) Data encryption at rest only Answer: B Explanation: A model registry tracks model artifacts, metadata, and stages (e.g., staging, production), enabling controlled deployments. Question 47. Continuous training (CT) in an MLOps pipeline is triggered when: A) The code repository receives a new commit