Courseiva

CCNA Data Querying And Analysis Questions

39 questions · Data Querying And Analysis · All types, answers revealed

1
MCQeasy

Which SQL function is used to convert a NULL value in a query result into a default value, such as 0?

A.NVL
B.COALESCE
C.IFNULL
D.ISNULL
AnswerB

COALESCE is the standard ANSI SQL function for handling NULLs.

Why this answer

COALESCE is a standard function used to return the first non-null value in a list, often used to replace NULLs.

2
MCQhard

Which of the following is a limitation of the 'Star Schema' design compared to a fully normalized schema?

A.Inability to store large data volumes
B.Slower query performance
C.Increased data redundancy
D.Difficulty in writing joins
AnswerC

Denormalization in dimensions introduces redundancy.

Why this answer

Star schemas increase redundancy by duplicating attributes in dimension tables, which can lead to larger storage footprints.

3
Multi-Selecthard

Which TWO of the following actions are considered best practices for maintaining data integrity in a data pipeline?

Select 2 answers
A.Automated schema validation
B.Using only manual entry
C.Hardcoding credentials in scripts
D.Ignoring error logs
E.Logging data quality metrics
AnswersA, E

Ensures data matches expected structure.

Why this answer

Implementing automated schema validation and logging data quality metrics are critical for identifying and fixing issues early.

4
Multi-Selecthard

Which THREE of the following represent common data transformation tasks in a preparation workflow?

Select 3 answers
A.Data cleaning
B.Renaming columns
C.Database deletion
D.Data filtering
E.Hardware installation
AnswersA, B, D

Fixing errors or missing values.

Why this answer

Data cleaning, data filtering, and column renaming are standard tasks to ready data for analysis.

5
Multi-Selecteasy

Which TWO of the following are benefits of using a data warehouse?

Select 2 answers
A.Complete replacement of all source systems
B.Optimization for complex analytical queries
C.Centralized data storage
D.Automated AI decision making
E.Low cost for real-time transactional updates
AnswersB, C

Designed for heavy analytical loads.

Why this answer

Data warehouses provide a centralized source of truth and are optimized for complex query performance.

6
MCQmedium

When performing sentiment analysis on customer feedback, which preprocessing step is most critical to ensure words like 'Running' and 'run' are treated as the same base concept?

A.Stop-word removal
B.Tokenization
C.Feature scaling
D.Lemmatization
AnswerD

Lemmatization maps variations of a word to a root lemma.

Why this answer

Lemmatization or stemming reduces words to their root or base form.

7
Multi-Selecteasy

Which THREE of the following are common data types in relational databases?

Select 3 answers
A.BOOLEAN
B.PIVOT
C.DASHBOARD
D.VARCHAR
E.INTEGER
AnswersA, D, E

Stores true/false values.

Why this answer

Integer, Varchar, and Boolean are foundational data types in most database systems.

8
Multi-Selectmedium

Which THREE of the following are examples of descriptive statistics?

Select 3 answers
A.Standard deviation
B.Mean
C.Machine learning
D.Median
E.Linear regression
AnswersA, B, D

Measures variability.

Why this answer

Mean, median, and standard deviation describe the central tendency and spread of a dataset.

9
MCQhard

A report needs to identify the 'top 10' customers by total spend. In SQL, which clause would you use to return only the first 10 results after sorting by spend descending?

A.WHERE
B.LIMIT
C.OFFSET
D.HAVING
AnswerB

LIMIT is commonly used to restrict the number of rows returned.

Why this answer

The LIMIT clause (or TOP/FETCH FIRST depending on dialect) restricts the result set to the specified number of rows.

10
MCQhard

An analyst is using a CTE (Common Table Expression) to pre-aggregate sales data before performing a join. What is the primary benefit of using a CTE instead of a subquery in this scenario?

A.Better readability and recursive capability
B.Automatic indexing of the result set
C.Performance is always superior to subqueries
D.Lower memory consumption during execution
AnswerA

CTEs provide logical structure and allow for recursive self-referencing queries.

Why this answer

CTEs improve readability and maintainability of complex queries by allowing the logic to be defined in a named temporary result set.

11
Multi-Selectmedium

Which THREE of the following are types of data joins in SQL?

Select 3 answers
A.INNER JOIN
B.UPPER JOIN
C.LEFT JOIN
D.RIGHT JOIN
E.FAST JOIN
AnswersA, C, D

Standard intersection join.

Why this answer

INNER, LEFT, and RIGHT joins are all standard SQL join types.

12
MCQmedium

When working with time-series data, what does a 'lag' feature represent in an analysis?

A.The time taken to query the data
B.The difference between two time stamps
C.The value of a variable from a previous period
D.The sampling rate of the sensors
AnswerC

Lags are used to compare current values with past values.

Why this answer

A lag feature represents the value of a variable at a previous time step, which is useful for trend analysis.

13
Multi-Selectmedium

Which TWO of the following are legitimate ways to optimize SQL query performance?

Select 2 answers
A.Using a single large table
B.Selecting all columns (SELECT *)
C.Creating indexes on frequently filtered columns
D.Replacing subqueries with JOINs where possible
E.Deleting all system statistics
AnswersC, D

Indexes speed up data retrieval.

Why this answer

Creating appropriate indexes and avoiding redundant subqueries significantly improve query efficiency.

14
MCQeasy

In Power BI, which visualization component is best suited to show the relationship between two numerical variables and identify potential trends or clusters?

A.Gauge Chart
B.Scatter Plot
C.Pie Chart
D.Clustered Column Chart
AnswerB

Scatter plots effectively reveal relationships between two numerical dimensions.

Why this answer

A Scatter Plot is specifically designed to plot two numerical variables to show correlations.

15
MCQmedium

When creating an ETL pipeline, which stage involves validating that the data meets business rules (e.g., age must be positive)?

A.Extraction
B.Loading
C.Reporting
D.Transformation
AnswerD

Transformation is where data is cleaned and validated.

Why this answer

Data validation or quality checks occur during the transformation phase to ensure data integrity.

16
Multi-Selectmedium

Which THREE of the following SQL aggregate functions are commonly supported in most relational databases?

Select 3 answers
A.SUM
B.CONCAT
C.AVG
D.SUBSTR
E.COUNT
AnswersA, C, E

Calculates the total.

Why this answer

SUM, COUNT, and AVG are fundamental aggregate functions supported across virtually all SQL standards.

17
MCQeasy

Which dashboarding practice helps prevent users from being overwhelmed by too much data at once?

A.Removing all tooltips
B.Using interactive filters
C.Adding more charts per page
D.Increasing font size
AnswerB

Interactivity allows users to control the volume of data displayed.

Why this answer

Progressive disclosure or the use of filters allows users to drill down into details only as needed.

18
MCQeasy

Which SQL command is used to add new records to an existing table?

A.UPDATE
B.SELECT
C.ALTER
D.INSERT
AnswerD

INSERT adds new records.

Why this answer

INSERT INTO is the standard command for adding new rows to a database table.

19
MCQmedium

You are performing data transformation in Python using Pandas. You have a 'DataFrame' with missing values in the 'Revenue' column. Which method should be used to replace these missing values with the column mean?

A.replace()
B.fillna()
C.dropna()
D.interpolate()
E.map()
AnswerB

fillna() allows replacement of missing values with a specified statistic.

Why this answer

The fillna() method is the standard way to replace NaN values in a Pandas DataFrame.

20
MCQmedium

When cleaning a dataset, you notice that column names contain inconsistent casing (e.g., 'Name', 'NAME', 'name'). Which transformation step should be prioritized to facilitate join operations?

A.String Normalization
B.One-hot encoding
C.Data Binning
D.Data deduplication
AnswerA

Normalizing casing ensures consistency for joins.

Why this answer

Standardizing string casing (normalization) is a fundamental prerequisite for accurate merging and joining.

21
MCQhard

When using Python's 'Matplotlib' library, which function is used to add a new figure to the canvas?

A.plt.axis()
B.plt.plot()
C.plt.figure()
D.plt.show()
AnswerC

This creates a new figure container.

Why this answer

The plt.figure() function initializes a new figure, allowing multiple plots to be managed.

22
MCQeasy

Which of the following is a 'categorical' variable?

A.Product category
B.Time taken to complete a task
C.Temperature in Celsius
D.Price in dollars
AnswerA

Categories are discrete groups.

Why this answer

A categorical variable represents qualitative information, such as department, color, or gender.

23
MCQmedium

In the context of data quality, what does 'Completeness' refer to?

A.The consistency of data across sources
B.The absence of missing values
C.The timeliness of the data
D.The accuracy of values
AnswerB

Completeness confirms all necessary fields are populated.

Why this answer

Completeness measures whether all required data is present in the dataset without missing values.

24
MCQeasy

A data analyst is writing a SQL query to retrieve unique department names from the 'Employees' table. Which keyword should be utilized to ensure the results do not contain duplicate entries?

A.GROUP BY
B.DISTINCT
C.UNIQUE
D.FILTER
AnswerB

DISTINCT effectively filters out duplicate rows in a result set.

Why this answer

The DISTINCT keyword is used to return only unique values from a specific column.

25
MCQhard

When troubleshooting a performance bottleneck in a visualization, which action is most effective if the data source is a large SQL view?

A.Changing the chart color
B.Materializing the view
C.Increasing the number of filters
D.Using a different visualization software
AnswerB

Materialization pre-calculates the results and allows for indexing.

Why this answer

Materializing the view (creating a physical table with indexes) or optimizing the view's underlying query is the most effective way to resolve performance issues.

26
MCQhard

An analyst notices that a database query is performing full table scans even though a WHERE clause is present on a indexed column. What is a likely reason for this?

A.Too many rows match the criteria
B.The table is too small
C.The index is fragmented
D.Using a function on the indexed column
AnswerD

Non-SARGable queries (those using functions on the left side of the operator) force index misses.

Why this answer

Applying a function (like UPPER() or YEAR()) to an indexed column in the WHERE clause prevents the database from using the index effectively.

27
MCQmedium

When normalizing a database, what is the primary goal of moving data into a third normal form (3NF)?

A.Remove transitive dependencies
B.Enable multi-dimensional analysis
C.Increase data redundancy
D.Increase read speed
E.Combine multiple tables
AnswerA

3NF focuses on eliminating transitive dependencies.

Why this answer

3NF removes transitive dependencies to ensure that every non-key attribute depends only on the primary key.

28
Multi-Selectmedium

Which TWO of the following are commonly used methods for handling outliers during data analysis?

Select 2 answers
A.Normalization to 0-1 range
B.Ignoring the data quality
C.Deleting all rows containing outliers
D.Winsorization (capping)
E.Increasing the number of dimensions
AnswersC, D

Removing extreme values is a valid, though sometimes risky, strategy.

Why this answer

Capping (winsorizing) and imputation are standard techniques to manage extreme values that might skew analytical results.

29
MCQhard

You are debugging a SQL query that uses an aggregate function. You receive an error stating that a column in your SELECT list is not part of an aggregate or a GROUP BY clause. What is the cause?

A.Missing WHERE clause
B.Incorrect join type
C.Missing column in GROUP BY
D.Using an alias in WHERE
AnswerC

Columns in SELECT that are not aggregated must be grouped.

Why this answer

Standard SQL requires every non-aggregated column in the SELECT clause to be included in the GROUP BY clause to ensure deterministic results.

30
Multi-Selecthard

Which THREE of the following are components of a standard SQL SELECT statement?

Select 3 answers
A.DROP
B.GRANT
C.WHERE
D.FROM
E.GROUP BY
AnswersC, D, E

Filters rows.

Why this answer

The FROM, WHERE, and GROUP BY clauses are fundamental components used to define the source, filter criteria, and aggregation groups.

31
MCQeasy

What is the benefit of using a 'Dashboard' over a static report?

A.Simplified data security
B.Lower storage requirements
C.Dynamic exploration and interactivity
D.Easier to print
AnswerC

Interactivity is the defining feature of dashboards.

Why this answer

Dashboards offer real-time or near-real-time interactivity, allowing users to explore data dynamically.

32
MCQeasy

In data visualization, what is the 'Data-Ink Ratio' intended to improve?

A.Chart rendering speed
B.Color palette selection
C.Data compression
D.Chart readability and clarity
AnswerD

It focuses on reducing chart junk to clarify data trends.

Why this answer

The Data-Ink Ratio, a concept by Edward Tufte, aims to maximize the information-carrying ink while minimizing non-essential decorations.

33
MCQhard

When analyzing JSON data stored in a relational database using SQL, how do you typically access nested key-value pairs?

A.Using path-based operators
B.Converting to XML first
C.Using the SELECT * command
D.Using standard JOINs
AnswerA

JSON path accessors are required to traverse hierarchies.

Why this answer

Modern SQL engines provide specific operators or functions (like the '->>' operator in PostgreSQL) to navigate JSON paths.

34
MCQmedium

When joining two tables in SQL where you need to return all records from the left table even if there is no match in the right table, which JOIN type is appropriate?

A.LEFT JOIN
B.CROSS JOIN
C.INNER JOIN
D.FULL OUTER JOIN
AnswerA

LEFT JOIN preserves all data from the primary table.

Why this answer

A LEFT JOIN returns all rows from the left table and the matched rows from the right table, filling with NULL if no match exists.

35
Multi-Selecteasy

Which TWO of the following are common types of data visualizations used to represent trends over time?

Select 2 answers
A.Histogram
B.Scatter Plot
C.Line Chart
D.Area Chart
E.Pie Chart
AnswersC, D

Line charts are the standard for temporal trends.

Why this answer

Line charts and area charts are the most effective visual representations for showing changes over continuous time intervals.

36
Multi-Selecthard

Which TWO of the following are common issues encountered when integrating data from disparate sources?

Select 2 answers
A.Excessive storage space
B.Inconsistent data formats
C.Fast network speeds
D.Conflicting identifiers
E.Over-documentation
AnswersB, D

Example: date formats differing between systems.

Why this answer

Inconsistent data formats and conflicting identifiers are the most common barriers to effective data integration.

37
MCQeasy

Which of the following is an example of an unstructured data source that a data analyst might need to ingest?

A.An email message body
B.An XML file with defined tags
C.A relational SQL table
D.A CSV file with fixed columns
AnswerA

Textual content in emails is unstructured.

Why this answer

Emails are considered unstructured because they contain free-form text that does not follow a strict relational schema.

38
MCQhard

A database administrator needs to ensure that a query calculating running totals is performant. Which window function clause is essential to order the calculation sequence?

A.GROUP BY
B.PARTITION BY
C.ROWS BETWEEN
D.ORDER BY
AnswerD

ORDER BY is required to define the sequential nature of a running total.

Why this answer

The ORDER BY clause inside the OVER() function determines the sequence for running calculations.

39
MCQeasy

What does the 'P' in the acronym 'KPI' stand for?

A.Product
B.Process
C.Performance
D.Planning
AnswerC

Correct terminology.

Why this answer

KPI stands for Key Performance Indicator.

Ready to test yourself?

Try a timed practice session using only Data Querying And Analysis questions.