Top 30 Advanced Data Science & Analytics Concepts Quiz
30 advanced multiple-choice Data Science & Analytics concept questions, the corners that separate having used it from understanding it: internals, edge cases, and the reasons behind the design. They come from 30 bites in the Data Science & Analytics library, the hardest slice of the 148 Data Science & Analytics concept questions in the library. Answer them here or read straight down. Every question carries the correct option, why it is correct, and a link to the bite it came from.
Analysis, notebooks, visualization, pandas, statistics
30 questions. Pick an answer, or open “Show the answer” to read it.
Answers are graded in your browser. Nothing is saved, and no XP or streak is earned here. The app keeps score.
Question 1 of 30
Which core concept allows causal inference to distinguish cause-and-effect from mere association?
Show the answer
Answer: c · The estimation of a counterfactual outcome
The card explicitly states that causal inference's mental model is to create a 'counterfactual'—what would have happened if the cause had not been introduced—to determine the causal effect. While identifying confounders and using RCTs are crucial methods in causal inference, the counterfactual is the underlying conceptual tool for distinguishing causation from association. Analyzing correlations is what causal inference aims to move beyond.
Read the full bite: Causal Inference: Proving Cause, Not Just Correlation
Question 2 of 30
What is the primary advantage of using uplift modeling over a traditional conversion prediction model?
Show the answer
Answer: b · It enables targeting of individuals whose conversion probability is significantly increased by a specific intervention.
Uplift modeling's core purpose is to identify 'Persuadables'—those whose behavior will change due to an intervention, maximizing the incremental impact of costly resources. Option C is incorrect because uplift's advantage is not just general prediction accuracy, but specifically predicting causal impact.
Read the full bite: Uplift Modeling: Who to Target, Not Just Who Will Convert
Question 3 of 30
An engineer fits a distribution to server latency using MLE and reports tight confidence intervals. If the chosen distribution family does not match the true data-generating process, what best describes the result?
Show the answer
Answer: b · The estimates maximize likelihood within the wrong family and can be precisely misleading
C is correct because MLE finds the parameters that make the observed data most probable within the assumed model, so a wrong family yields a precise but misleading fit. D is tempting but wrong because misspecification does not automatically inflate uncertainty; the method can be confidently wrong.
Read the full bite: MLE: Find the Parameters That Make Data Likely
Question 4 of 30
According to the card, what is the primary reason SVD can decompose any real or complex matrix while eigendecomposition cannot?
Show the answer
Answer: c · SVD represents any matrix as rotation, scaling, and rotation, whereas eigendecomposition requires a square normal matrix with an orthonormal eigenbasis.
The card explicitly states that eigendecomposition is restricted to square normal matrices with orthonormal eigenbases, while SVD factors any matrix as rotation, scaling, rotation. Option A describes an external computational fact not mentioned in the card, and option D confuses normal matrices with length-preserving transformations.
Question 5 of 30
Which statement accurately describes the primary role of the Jacobian matrix for a differentiable multi-variable function at a specific point?
Show the answer
Answer: d · It provides the best linear approximation of the function's local behavior.
The card states that "The Jacobian matrix is the best linear approximation of a function at a specific point," capturing its local, first-order behavior. Option B is incorrect because the card explicitly mentions that the Jacobian does not provide second-order derivative information like curvature or concavity.
Read the full bite: The Jacobian Matrix: A Derivative for Multiple Dimensions
Question 6 of 30
After chaining several Dask DataFrame operations, why might a user observe no immediate data processing or results?
Show the answer
Answer: b · Dask operations are lazily evaluated, building a task graph that requires an explicit .compute() call to execute.
Dask uses lazy evaluation, meaning operations only build a task graph without immediate execution. The actual computation is triggered by an explicit call to methods like .compute(). Option D is incorrect because while data loading can take time, the lack of immediate processing after operations is due to lazy evaluation, not just loading.
Read the full bite: Dask: Parallel Computing with Familiar APIs
Question 7 of 30
Which scenario is LEAST suitable for leveraging Reticulate's capabilities?
Show the answer
Answer: a · Performing a simple, isolated Python script execution.
The card states that for simple, one-off script execution, a system() call might be simpler than using Reticulate. The other options (A, B, D) are explicitly mentioned as key scenarios where Reticulate is beneficial for bridging R and Python environments.
Read the full bite: R & Python Interoperability with Reticulate
Question 8 of 30
When scraping a dynamic website, what is the primary reason to prioritize finding its hidden API calls over using a headless browser?
Show the answer
Answer: a · To efficiently retrieve data that is loaded by JavaScript and not present in the initial HTML response.
The card states that finding API calls is for when data is missing from the initial HTML but visible in the browser, offering a faster and more reliable alternative. Headless browsers are generally used for complex interactions or when the API is too difficult to replicate, making them a 'last resort'.
Read the full bite: Scraping Dynamic Sites: Find the API, Not Just Render
Question 9 of 30
Which statement best describes the core function of streaming ingestion in a real-time data architecture?
Show the answer
Answer: a · It ensures data is reliably captured from sources and delivered to stream storage for subsequent processing.
Streaming ingestion's primary role is to reliably capture data from various sources and deliver it to stream storage, acting as the 'loading dock' for the data pipeline. It is distinct from stream processing, which is responsible for analyzing or transforming the data.
Read the full bite: Streaming Ingestion: Catching Data as It Happens
Question 10 of 30
What is a key benefit of using gRPC for internal microservice communication compared to REST/JSON?
Show the answer
Answer: a · It enforces a strict, language-agnostic contract, leading to higher performance and fewer integration issues.
The card highlights that gRPC enforces a strict contract via Protocol Buffers, which prevents data mismatch errors and, combined with efficient binary transport, leads to high performance. Options A and D describe attributes that are either benefits of REST/JSON or scenarios where gRPC is not recommended.
Read the full bite: gRPC: High-Performance RPC with Contracts
Question 11 of 30
What is the most significant benefit of combining log aggregation with log parsing in a distributed system?
Show the answer
Answer: b · It transforms raw log entries into structured, queryable data for centralized analysis and alerting.
The card emphasizes that parsing transforms unstructured text into structured, searchable data, enabling engineers to run queries and create alerts for specific conditions across the entire system. Option D describes log aggregation, but misses the critical value that parsing adds by making the collected data truly useful for analysis.
Read the full bite: Log Aggregation and Parsing: From Chaos to Clarity
Question 12 of 30
According to the card, what is the core objective of feature engineering?
Show the answer
Answer: b · To transform raw data into more effective and predictive input signals for a model.
The card states feature engineering "transforms raw inputs into a more effective set of predictive signals" to enhance a model's decision-making. While deep learning models can learn features automatically, this is presented as a scenario where manual feature engineering might be reduced, not its primary objective.
Read the full bite: Feature Engineering: Better Inputs, Better Models
Question 13 of 30
Which of the following represents a significant constraint or drawback of applying the standard Box-Cox transformation?
Show the answer
Answer: d · It requires all data points to have strictly positive values.
The card explicitly states that the standard Box-Cox transformation requires all data to be strictly positive, making this a key constraint. The transformation does not alter the underlying information, only its statistical shape, and the optimal lambda parameter is automatically selected by an algorithm, not manually.
Read the full bite: Box-Cox Transformation: Forcing Skewed Data to Look Normal
Question 14 of 30
Which practice is most critical for preventing data leakage when applying target encoding to a categorical feature?
Show the answer
Answer: d · Calculating the target statistics exclusively from the training dataset.
The most critical step to prevent data leakage is to calculate the target statistics (encodings) only from the training data and then apply these derived values to the validation and test sets. While cross-validation (A) is a robust method used within the training set to further refine encodings and mitigate leakage, the fundamental principle is that the test data must not influence the encoding process at all. Smoothing (B) is for robustness of rare categories, not primary leakage prevention. High cardinality (C) is a condition for when to use target encoding, not a leakage prevention method.
Read the full bite: Target Encoding: Replacing Categories with Target Stats
Question 15 of 30
What is the primary mechanism by which feature selection enhances machine learning model performance?
Show the answer
Answer: c · It systematically identifies and removes input variables that are irrelevant, redundant, or noisy.
The card explicitly states that feature selection works by "identifying and removing unneeded, irrelevant, and redundant features." While other options describe related techniques, feature selection specifically focuses on discarding original features rather than transforming them or creating new ones.
Read the full bite: Feature Selection: Making Models Better With Less Data
Question 16 of 30
After initializing a FacetGrid object with a dataset and faceting variables, what is the essential next step to visualize the data?
Show the answer
Answer: d · Calling the .map() or .map_dataframe() method with a plotting function.
The card explicitly states that after initializing the FacetGrid (which creates an empty grid), the "key second step is calling the .map() or .map_dataframe() method" to draw the plots. While FacetGrid is a "visual GROUP BY," it draws complete plots for each subset rather than calculating aggregates like SUM() or AVG(), making option C incorrect.
Read the full bite: Facet Grid: A Visual GROUP BY for Your Data
Question 17 of 30
After visualizing 500-dimensional data with t-SNE, you measure a 5-unit gap between two clusters. Which conclusion is best supported?
Show the answer
Answer: b · The clusters are likely dissimilar, but the 5-unit gap should not be treated as a precise geometric measurement
t-SNE preserves local similarity probabilities rather than exact geometry, so large separations suggest dissimilarity but exact gap sizes are unreliable. Distractor A is wrong because the card explicitly warns against reading precise distances from a t-SNE plot.
Read the full bite: t-SNE: Map High-Dimensional Similarity to 2D
Question 18 of 30
When interpreting a UMAP projection, which of the following conclusions is explicitly cautioned against due to potential misleading artifacts?
Show the answer
Answer: b · The precise geometric size of a cluster or the absolute distance between different clusters.
The card explicitly states that 'The size of a cluster, its apparent density, and the absolute distance between two separate clusters in a UMAP plot are often misleading artifacts of the projection.' UMAP prioritizes local structure, often distorting global distances and cluster metrics, making precise geometric interpretations unreliable. Options A, B, and C describe core strengths or intended uses of UMAP.
Read the full bite: UMAP: Visualizing High-Dimensional Data's Shape
Question 19 of 30
When would a parallel coordinates plot most likely become unreadable and ineffective for identifying patterns?
Show the answer
Answer: b · When there is a very large number of individual data records.
The card explicitly states that parallel coordinates plots should be avoided for datasets with a very large number of records because 'The plot quickly becomes a solid, unreadable block of color due to 'overplotting', which obscures all patterns.' While categorical data can be less intuitive (option D), it doesn't render the plot unreadable in the same way overplotting does.
Read the full bite: Parallel Coordinates Plot: Untangling High-Dimensional Data
Question 20 of 30
How does regularization primarily prevent a machine learning model from overfitting?
Show the answer
Answer: b · By adding a penalty to the loss function for large model weights, favoring simpler models.
Regularization works by adding a penalty term to the model's loss function based on the magnitude of its weights, which encourages the model to find simpler explanations that generalize better. While L1 regularization can lead to feature selection, it does so by penalizing weights during training, not by pre-selecting features.
Read the full bite: Regularization: Penalizing Complexity to Prevent Overfitting
Question 21 of 30
What is the primary advantage of a Random Forest over a single, deep decision tree?
Show the answer
Answer: c · It significantly reduces the risk of overfitting to training data.
The card states that Random Forests were created to address a single decision tree's tendency to overfit and fail to generalize. By using an ensemble of decorrelated trees, it corrects for this brittleness. Option A is incorrect because the card explicitly lists low interpretability as a reason not to use Random Forests.
Read the full bite: Random Forest: Many Weak Learners Make One Strong Model
Question 22 of 30
When dealing with a dataset containing significant noise, which ensemble method is more prone to overfitting, and what is the primary reason?
Show the answer
Answer: b · Boosting, because its sequential models are designed to correct errors, leading it to model the noise as if it were meaningful patterns.
Boosting's sequential nature means each model focuses on correcting the errors of the previous ones. With noisy data, Boosting will diligently try to fit this noise as if it were a true pattern, leading to severe overfitting. Bagging, by contrast, reduces variance by averaging independent models, which helps smooth out the effects of noise.
Question 23 of 30
Which scenario best exemplifies a violation of SUTVA's 'no interference' assumption?
Show the answer
Answer: c · A social media platform introduces a new sharing feature, causing users who received the feature to influence their friends (in the control group) to also share more.
Option C describes a situation where the treatment given to one group (new sharing feature) directly influences the outcomes of individuals in the control group (friends sharing more), which is the definition of 'no interference' violation. Options A, C, and D all describe issues where the treatment itself is not uniformly applied or experienced by all individuals within the treatment group, which is a violation of SUTVA's 'consistency' assumption, not 'no interference'.
Read the full bite: SUTVA: The Assumption That Your Treatment Isn't Leaking
Question 24 of 30
What is a critical limitation of Propensity Score Matching (PSM) when attempting to infer causal effects?
Show the answer
Answer: a · It cannot account for unmeasured confounding variables that influence both treatment assignment and outcome.
The card states PSM is inappropriate if there are strong, unmeasured confounding variables, making this its primary limitation for causal inference. While PSM aims for balance, perfect balance is not a fundamental limitation, and PSM is specifically used when randomization is unethical or impractical.
Read the full bite: Propensity Score Matching: Simulating a Randomized Trial
Question 25 of 30
What is the most significant advantage of constructing a Causal DAG before conducting a statistical analysis?
Show the answer
Answer: c · It visually represents assumptions about causal pathways, guiding the selection of control variables.
Causal DAGs serve as a map of your assumptions about causal links, helping you identify confounders and decide which variables to control for to isolate a specific causal effect. They are not designed to discover causal relationships from scratch, nor do they quantify effect strength or validate statistical significance.
Question 26 of 30
What core mechanism lets Transformers capture long-range dependencies more effectively than recurrent networks?
Show the answer
Answer: c · Self-attention, where every token directly attends to every other token
Self-attention connects any two tokens directly in a single step, regardless of distance, enabling parallel global context. Recurrence (option B) is exactly what the Transformer replaced because long-range signals degrade across many steps.
Question 27 of 30
When is it most critical to avoid relying on a Large Language Model (LLM)?
Show the answer
Answer: d · When absolute factual accuracy and reliability are non-negotiable.
The card explicitly states to "Avoid using an LLM in situations where absolute factual accuracy and reliability are non-negotiable" because its output can reflect biases and inaccuracies from its training data. LLMs are designed to handle large, complex text data and can perform creative generation and translation.
Question 28 of 30
When is a Policy Gradient method generally preferred over a Value-Based method like Q-learning?
Show the answer
Answer: d · When the agent needs to select actions from an infinite or continuous range of possibilities.
The card states that Policy Gradient methods excel in continuous action spaces and were invented to address the limitations of value-based methods in such environments. Option C describes a scenario where value-based methods are often more suitable. Option A describes a common weakness of policy gradient methods (high variance, slow training). Option B describes a condition that makes policy gradient methods inapplicable, as they require a differentiable policy.
Read the full bite: Policy Gradient: Teach an Agent What to Do, Not What's Valuable
Question 29 of 30
What core problem does Apache ZooKeeper primarily aim to solve for distributed systems?
Show the answer
Answer: c · Ensuring consistent agreement on shared metadata like configuration, leadership, and service locations.
ZooKeeper's primary role is to provide a consistent, highly available service for managing critical metadata, enabling distributed systems to agree on shared state for tasks like leader election and configuration. It is explicitly not designed for large application datasets or high-throughput operations, making option A incorrect.
Read the full bite: Apache ZooKeeper: A Coordinator for Distributed Systems
Question 30 of 30
Which scenario is LEAST suited for an interactive data visualization?
Show the answer
Answer: a · A public report aiming to persuade stakeholders with a clear, singular finding.
The card explicitly states that interactive visualizations should not be used "when you need to convey a single, specific, unambiguous message" or "if the goal is persuasion or simple reporting." The other options describe situations where interactive visualizations are ideal for exploration and diverse questioning.
Read the full bite: Interactive Data Viz: Let Users Explore the Data
Could you explain these out loud?
That is what an interview actually tests. Tezvyn gives you questions like these with what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.