Courseiva

CCNA Connecting to and Preparing Data Questions

38 questions · Connecting to and Preparing Data · All types, answers revealed

1
Multi-Selectmedium

Which TWO of the following are valid ways to combine data from different sources in Tableau?

Select 2 answers
A.Blending
B.Data Mining
C.Relationships
D.Data Sorting
E.Extracting
AnswersA, C

Blending is a method to query two different data sources separately and then aggregate the results at the visualization level. It is useful for sources that cannot be joined or related, or when data is at different granularities and you need to perform quick, ad-hoc comparisons without heavy modeling.

Why this answer

Understanding how to integrate data is fundamental to Tableau. Blending and Relationships are the primary methods for combining data from multiple sources. Choosing the right one depends on the nature of the data, the desired level of granularity, and performance requirements.

Relationships are generally preferred for their flexibility and intelligence, while blending serves as a useful secondary tool for quick, high-level analysis when more complex modeling is not feasible.

Exam trap

Candidates often include 'Data Extract' or 'Data Source' as a way to combine data, confusing the storage format with the actual methodology used to associate data from multiple sources.

2
MCQeasy

What is the purpose of the 'Relationships' feature in Tableau's logical layer?

A.To physically merge two tables into one.
B.To create a flexible, multi-table logical model.
C.To force a strict inner join on all fields.
D.To replace the need for data extracts.
AnswerB

Relationships allow you to relate tables without merging them physically. This creates a flexible model where Tableau automatically joins only the necessary tables based on the specific fields present in the current visualization, ensuring correct aggregation levels and preventing common issues like data fan-out.

Why this answer

Relationships are dynamic, flexible connections that allow Tableau to join data sources intelligently based on the fields used in a visualization. By preserving the original tables, they prevent data loss (fan-out) and enable context-aware aggregations. Understanding this is essential for modern Tableau users, as it simplifies data modeling compared to the traditional, more rigid physical join methods that often caused data duplication.

Exam trap

Candidates frequently confuse relationships with physical joins, assuming relationships permanently merge tables or force a specific join type for every single visualization regardless of context.

3
MCQeasy

You have a single data source connected to a SQL database. You want to see the total sum of sales for each region. Where should you drag the 'Region' and 'Sales' fields?

A.Drag 'Region' to the Filters shelf and 'Sales' to the Pages shelf.
B.Drag 'Region' to the Rows shelf and 'Sales' to the Text mark.
C.Drag 'Region' to the Detail mark and 'Sales' to the Rows shelf.
D.Drag both fields to the Filters shelf.
AnswerB

Dragging 'Region' to Rows creates a vertical list of headers, and dragging 'Sales' to Text displays the aggregated numerical value next to each region. This is the simplest configuration to view a summary table of regional performance metrics in Tableau Desktop.

Why this answer

To see the total sum of sales for each region, you must place 'Region' on a shelf to create the visual headers (rows or columns) and 'Sales' on the marks card (text or label) to display the aggregated metric. This foundational movement of fields is the core mechanism of Tableau's drag-and-drop interface, which automatically aggregates measures based on the dimensions provided.

Exam trap

Candidates often drag 'Sales' to the Rows shelf instead of the Text mark, which creates a bar chart or axis instead of the requested text-based summary.

4
MCQhard

You have a dataset where each row represents a student's final grade in a class. You want to calculate the average grade per department, but you discover that the data is at the individual student level. What is the most efficient way to prepare this for your view?

A.Create a new table in the source database containing averages.
B.Use the 'Group' function to combine student grades.
C.Use the default aggregation 'Average' within the view.
D.Use an LOD expression to fix the average for each student.
AnswerC

Tableau is built to aggregate data dynamically based on the dimensions in the view. By using the default 'Average' aggregation on the measure, you let Tableau perform the calculation based on the department dimension, which is the most efficient and standard way to handle this requirement.

Why this answer

Tableau's aggregation capabilities allow you to perform calculations like averages at any level of detail without needing to pre-aggregate the data. By simply dragging the 'Grade' measure onto the view and selecting the 'Average' aggregation, Tableau handles the math dynamically. This is the most efficient approach because it maintains the granularity of the underlying data for further exploration or drill-downs.

Exam trap

Candidates often create a calculated field using an LOD expression or a fixed calculation, not realizing that simply changing the measure aggregation to 'Average' is the most efficient, native solution.

5
MCQmedium

Refer to the exhibit. You are attempting to join several tables in a physical layer and receive the error shown. What is the most likely cause?

A.The data files are too large for the extract engine
B.You have joined tables in a way that creates an infinite loop
C.The primary keys are missing from all tables
D.The join condition involves incompatible data types
AnswerB

Circular dependencies are caused by join logic where Table A connects to B, B to C, and C back to A. This creates a loop that the database engine cannot resolve. You must restructure the joins to be linear or use relationships, which handle multi-table links much better.

Why this answer

A circular dependency occurs when tables are linked in a way that creates an infinite loop or a closed path of joins. In the physical layer, Tableau requires a linear or hierarchical structure. This error is common when users create complex join paths that don't follow a logical, tree-like hierarchy, and resolving it requires simplifying the join structure or using relationships instead of physical joins.

Exam trap

Candidates often assume the error is due to missing join keys or incorrect data types, overlooking the logical structure of their schema which may contain circular dependencies preventing a valid join path.

6
MCQhard

Refer to the exhibit. Why is the 'Revenue' field failing to aggregate as a sum?

A.The currency formatting is set to a locale that isn't supported.
B.The field contains non-numeric characters like symbols.
C.The data source requires a live connection for aggregation.
D.Tableau automatically treats all revenue fields as dimensions.
AnswerB

Characters like '$' and ',' are non-numeric. When these are present, Tableau interprets the entire field as a string to preserve the characters. Since arithmetic operations are not possible on string data, the 'Sum' aggregation is unavailable. The field must be cast as a number to allow aggregation.

Why this answer

Tableau requires numerical data types to perform mathematical aggregations like 'Sum' or 'Average'. When a field contains currency formatting characters (like the dollar sign or commas), Tableau often imports it as a string. Because strings cannot be mathematically summed, the aggregate function is disabled.

Converting the field to a numeric type, or cleaning the string to remove symbols, is the standard requirement for correcting this common data import error.

Exam trap

Candidates often blame the aggregation settings or the measure itself, failing to realize that Tableau interprets fields containing currency symbols or letters as 'Strings' rather than numeric data.

7
MCQhard

Refer to the exhibit. You are connected to an Oracle database. You can see the tables list, but when you drag a table onto the canvas, you receive this error. What is the most likely cause?

A.The database is currently offline.
B.The user lacks permissions to read the table metadata.
C.The data table is empty.
D.The Oracle driver is incompatible with the version.
AnswerB

Metadata extraction requires the ability to query information schema or system tables to identify column names and types. If the database user is restricted, Tableau cannot retrieve these details, resulting in the failure. This is a security configuration issue on the database side, not a Tableau error.

Why this answer

Metadata extraction failure often indicates that while the connection to the server succeeds, the user lacks the necessary read permissions for the specific schema or table metadata. This is a common issue in enterprise environments where database administrators restrict access to system catalogs. Without metadata, Tableau cannot query the column definitions required to build the join or extract structure.

Exam trap

Candidates often assume the error is due to a bad network connection or a driver issue, rather than recognizing it as a permission-based metadata access failure.

8
MCQmedium

You are preparing a data source and need to pivot multiple columns representing 'Month' into a single column. What is the primary requirement for this action?

A.The columns must be adjacent in the data source
B.The columns must have the same data type
C.The data must be in a live connection
D.The columns must contain only numeric values
AnswerB

Pivoting requires that the selected columns share a consistent data type because the resulting single column will hold all the values from those original columns. If types differ, Tableau cannot successfully flatten them into a single coherent field without creating inconsistencies that violate database structure integrity rules.

Why this answer

Pivoting is essential for reshaping wide data into tall data, which Tableau prefers for visualization. Ensuring data types are consistent is the most critical constraint because the new field generated by the pivot must hold values from all participating columns uniformly. Mastering this process is vital for converting Excel-style cross-tab data into a format that allows for flexible analysis, filtering, and aggregation in Tableau.

Exam trap

Candidates often think they can pivot columns with mixed data types, such as integers and strings, forgetting that the resulting pivoted column must have a single consistent data type for all rows.

9
MCQeasy

Which of the following describes the purpose of a 'Data Extract' in Tableau?

A.To keep data updated in real-time.
B.To improve performance and enable local access.
C.To automatically join different data sources.
D.To increase the security of the data connection.
AnswerB

Extracts store data locally in a highly optimized file format (.hyper). This significantly improves the speed of visualizations by reducing the reliance on external database performance. It also allows for data analysis when the original database is offline or unreachable, providing a more robust and responsive environment.

Why this answer

Data extracts are local, optimized snapshots of data that allow Tableau to store data in a highly compressed and performant .hyper format. By moving data from a source (like a slow database) into an extract, you significantly improve query speed and offload processing from the source system. This is an essential technique for ensuring that end users have a fast, responsive dashboard experience, regardless of the latency of the underlying source.

Exam trap

Candidates frequently mistake extracts for security permission settings or live database connectors, confusing performance optimization with live data streaming capabilities.

10
MCQhard

Refer to the exhibit. You are trying to establish a relationship between two tables, but receive this error. What is the best way to fix this?

A.Change the database schema of the original source
B.Use a calculation to cast both fields to the same type
C.Delete the Relationship and use a join instead
D.Restart the Tableau instance
AnswerB

Creating a calculated field, such as STR([ID]) or INT([ID]), allows you to align the data types within Tableau without needing to modify the source database. This is the standard, best-practice approach for resolving type mismatches in a non-destructive manner that keeps your workbook flexible and functional.

Why this answer

Tableau's relationship engine requires consistent data types for the related fields. If one is an integer and the other is a string, the engine cannot establish a valid relationship. This is a common issue when pulling data from disparate systems.

The solution is to create a calculated field to cast the data to a matching type, ensuring logical consistency for the underlying query engine to execute successfully.

Exam trap

Candidates often try to change the data type of the underlying source files directly or ignore the mismatch, assuming Tableau will automatically cast fields during a relationship setup.

11
MCQeasy

When connecting to a flat file, you notice that Tableau is interpreting a 'Date' column as a String. Which action should you take to ensure the field is recognized correctly for time-series analysis?

A.Create a calculated field using the DATE() function
B.Click the data type icon in the Data Source tab and change it to Date
C.Split the column into Year, Month, and Day segments
D.Filter the data to remove non-date entries
AnswerB

This is the most efficient and direct way to resolve data type issues. By modifying the metadata in the Data Source tab, you inform Tableau how to interpret the underlying values, enabling automatic date recognition and unlocking advanced date functions without needing complex formulas or transformations.

Why this answer

Changing the data type is a fundamental step in data preparation. Tableau's ability to create hierarchies and perform date-part aggregations relies on the field being recognized as a date. If the data type remains a string, you lose the ability to use continuous date axes or drill-down functionality, which are essential for visualizing trends over time and performing accurate year-over-year or month-over-month comparisons.

Exam trap

Candidates frequently attempt to create a calculated field using DATEPARSE or DATE() functions instead of simply changing the metadata type, which is unnecessary and prone to syntax errors.

12
MCQmedium

You are connecting to a large Excel file with 20 sheets. You need to combine data from three sheets that share the same structure into a single table. Which method is most efficient for data preparation?

A.Create a cross-database join on all three sheets.
B.Use the Data Interpreter to automatically merge the sheets.
C.Use the Union feature to append the sheets.
D.Create a relationship between the three sheets.
AnswerC

The Union feature allows you to stack rows from multiple tables that share identical headers. This is the most efficient method for preparing data stored in separate sheets with the same columns, ensuring a single continuous data set for analysis without duplicating rows or requiring complex join logic.

Why this answer

The Union feature in Tableau is designed specifically to append data from multiple tables with identical structures into a single, longer table. This is the standard approach for normalized data stored across multiple tabs. Using relationships or joins would create unnecessary complexity or data duplication, whereas unions preserve the integrity of the original structure while providing a singular set of rows for downstream analysis in your worksheets.

Exam trap

Candidates frequently try to use joins or relationships to combine multiple sheets with the exact same structure, leading to complex models instead of a simple vertical append.

13
Multi-Selectmedium

You have a dataset with columns 'Date', 'Region', 'Sales', and 'Profit'. You need to reshape the data so that 'Sales' and 'Profit' are in a single column called 'Measure Name' and their values are in a 'Measure Value' column. Which TWO steps should you take?

Select 2 answers
A.Select 'Sales' and 'Profit' columns in the Data Source tab.
B.Right-click the selected columns and select Pivot.
C.Create a calculated field to join the columns.
D.Drag 'Measure Names' to the filter shelf.
E.Use the Split function on the 'Date' column.
AnswersA, B

Selecting the columns is the mandatory first step to initiate the pivot transformation. By highlighting these specific columns, you inform Tableau which data points need to be reshaped into rows to facilitate easier analysis of multiple metrics simultaneously within your visualization environment.

Why this answer

To convert wide data into long format, use the Pivot function in the Data Source tab. Selecting the columns and applying the pivot operation creates the necessary long-form structure. This is critical for creating charts that compare multiple measures effectively, as it allows Tableau to treat 'Sales' and 'Profit' as values within a single categorical dimension.

Exam trap

Candidates frequently attempt to use a calculated field or a join to reshape data. They overlook the Pivot feature in the Data Source tab, which is specifically designed for this wide-to-long transformation.

14
MCQeasy

What is the purpose of the 'Data Interpreter' in the Tableau Data Source tab?

A.To translate between different database dialects
B.To identify and clean formatting issues in spreadsheets
C.To perform statistical analysis on the data
D.To automatically join tables based on column names
AnswerB

Data Interpreter is specifically designed to handle common formatting quirks in flat files, such as multi-row headers, sub-totals, or empty rows. By identifying the true data range, it structures the spreadsheet into a clean, analytical-ready table that Tableau can easily interpret for building visualizations.

Why this answer

The Data Interpreter is an automated cleanup tool for Excel, CSV, or Google Sheets files that have headers starting on non-first rows, nested tables, or empty cells. It simplifies the preparation process by detecting these common formatting issues and automatically promoting the correct headers and cleaning up the structure, saving time and reducing errors for users dealing with messy, non-standardized spreadsheet data.

Exam trap

Candidates often waste time manually deleting extra rows, renaming default columns, or restructuring messy spreadsheets in Excel before connecting them to Tableau.

15
MCQmedium

You are connecting to a large SQL Server database and notice that performance is sluggish when dragging measures onto the canvas. You need to improve performance while still maintaining access to all historical data. Which action should you take?

A.Filter the data source to include only the current year.
B.Change the connection from Live to Extract.
C.Enable 'Assume Referential Integrity' in the Data Source tab.
D.Convert all dimensions to measures.
AnswerB

Extracts utilize the Hyper data engine, which is highly optimized for analytical queries. By localizing the data, you eliminate network overhead and database query latency. This is the standard method for improving interactivity in Tableau Desktop without sacrificing the integrity or availability of the full historical data set.

Why this answer

Switching from a live connection to an extract improves performance by pulling data into Tableau's high-performance Hyper engine. This local, compressed snapshot reduces query latency against the source database. This is a foundational practice for optimizing large datasets where real-time updates are not strictly required, allowing analysts to interact with dashboards without waiting for long network round-trips to the SQL Server.

Exam trap

Candidates mistakenly choose to filter out historical data to improve speed, losing valuable context instead of leveraging extracts.

16
MCQmedium

You need to connect to a CSV file that is updated daily. To maintain the most up-to-date data while keeping the file lightweight, which connection strategy should you use?

A.Always use a Live connection.
B.Use an Extract with a scheduled refresh.
C.Use a Data Source Filter on every field.
D.Import the CSV as a new data source every day.
AnswerB

An extract provides high performance through the Hyper engine, while a scheduled refresh ensures that the data stays current. This is the best practice for CSV-based data sources, as it eliminates the performance overhead of live connections while maintaining the accuracy of the reporting.

Why this answer

Using an Extract with a refresh schedule ensures that the data is periodically updated without requiring the user to manually trigger the import. This balance between performance and freshness is key in professional environments where users expect real-time or near-real-time data without the performance penalty of a live connection, which can be unstable with local CSV files.

Exam trap

Candidates often choose a 'Live' connection thinking it is the only way to get fresh data, forgetting that an extract with a refresh schedule provides both performance and freshness.

17
MCQeasy

Which file type should you use if you want to save a Tableau data source that includes the connection information and the underlying data in a single compressed file?

A..tds
B..tdsx
C..twb
D..tde
AnswerB

The .tdsx file is a packaged data source that includes both the connection metadata and the physical data extract. It is the most robust format for sharing data sources because it ensures that the recipient has everything they need to interact with the data immediately upon opening.

Why this answer

A Tableau Packaged Data Source (.tdsx) encapsulates the data connection parameters along with the actual data file itself. This is highly beneficial for portability, as it allows users to share a complete, self-contained dataset with colleagues who may not have access to the original underlying database or local file, ensuring the workbook remains fully functional without broken connections.

Exam trap

Candidates often confuse '.tds' with '.tdsx'. They forget that a standard '.tds' file contains only the connection information, not the actual data, making it non-portable for others.

18
MCQmedium

You have connected to a database and need to combine two tables based on a shared ID, but you also need to ensure that no records are lost from the 'Primary' table. Which join type should you use?

A.Full Outer Join.
B.Inner Join.
C.Left Join.
D.Cross Join.
AnswerC

A left join is specifically designed to include every row from the primary (left) table and any matching rows from the secondary (right) table. If no match exists for a row in the primary table, Tableau returns null for the secondary table's columns, thus preserving the primary table's integrity.

Why this answer

A left join is the correct choice to preserve all rows from the primary table. It ensures that every record from the left table is included in the resulting set, regardless of whether a matching record exists in the right table. This is critical for data completeness in reporting, especially when you are counting base events and need to see where data might be missing from secondary lookup or reference tables.

Exam trap

Candidates often confuse join types, mistakenly choosing an 'Inner Join' which would drop records from the primary table that lack a corresponding match in the secondary table.

19
MCQmedium

You are creating a data source that combines a large Sales table with a smaller Regions mapping table. You want to ensure that only rows from the Sales table that have a corresponding match in the Regions table are kept. Which join type should you use?

A.Left Join
B.Right Join
C.Inner Join
D.Full Outer Join
AnswerC

An inner join specifically returns only the records where the join key exists in both the primary sales table and the regions mapping table. This effectively filters out any sales transactions that cannot be associated with a valid region, satisfying the requirement to maintain data integrity through exclusion.

Why this answer

An inner join is the appropriate choice when you only want to return records that have matching values in both tables. This filtering behavior is essential for cleaning data where incomplete or unmatched records could skew performance metrics or create null values that interfere with visualization aggregations, ensuring the dataset remains focused only on valid, mapped geographic regions.

Exam trap

Candidates often default to a 'Left Join', forgetting that the question specifically mandates filtering out rows that do not have a match, which requires an 'Inner Join'.

20
MCQmedium

Refer to the exhibit. You are attempting to join a local Excel file with a live connection to a secured Salesforce object. Why is this error occurring?

A.The Excel file is missing the primary key column.
B.The Salesforce API has a row limit.
C.The join requires data to be in the same data source context.
D.The user lacks permissions to export Salesforce data.
AnswerC

Tableau's join engine requires tables to be brought into the same connection context. When mixing local files with server connections, you are creating a cross-database join. If the environment or driver doesn't support the cross-database join, Tableau will throw this specific error during the configuration process.

Why this answer

Tableau requires that all tables in a join reside within the same data source connection to perform a native join. When mixing a local file with an existing live server connection, you are initiating a cross-database join. If the specific combination or driver configuration doesn't support this, you must rely on Data Blending or extract all sources first to merge them within the Hyper engine.

Exam trap

Candidates assume any two data files can be joined instantly regardless of where they are hosted, forgetting physical architecture constraints.

21
MCQmedium

When connecting to an Excel file with multiple sheets, you need to combine the data into a single table structure using the Data Source tab. Which feature allows you to stack these sheets vertically if they share the same column headers?

A.Join
B.Relationship
C.Union
D.Data Blending
AnswerC

A union is the standard method for stacking data from multiple sheets or files that share identical column headers. By performing a union, Tableau creates a unified table containing all rows from each sheet, enabling comprehensive analysis across the entire dataset without requiring manual file manipulation.

Why this answer

The Union feature in Tableau is designed specifically to combine tables with the same structure by appending rows from one table to the bottom of another. This is critical for users who receive periodic extracts—such as monthly sales reports—that need to be analyzed as a single continuous time series without manually merging files in Excel before connecting to Tableau.

Exam trap

Candidates often confuse 'Union' with 'Join'. They try to perform a join to stack data, which results in columns being added horizontally rather than rows being appended vertically.

22
MCQhard

Refer to the exhibit. Why are the sales records being duplicated in the output?

A.The join condition uses an incorrect join type.
B.The join condition involves a many-to-many relationship.
C.The connection is set to Live instead of Extract.
D.The data contains null values in the join key.
AnswerB

A join operation physically merges rows. When a single row in the Sales table matches multiple rows in the Targets table, the result set duplicates the Sales row for each match. This is a classic 'fan-trap' issue caused by joining tables that are not at the same level of detail.

Why this answer

The exhibit illustrates a common issue when joining tables at different granularities. A left join on 'Sales' and 'Targets' where multiple rows in 'Targets' exist for a single row in 'Sales' will cause the 'Sales' data to replicate for every match found in 'Targets'. Understanding this behavior is vital for maintaining data accuracy, as it demonstrates why relationships are often preferred over physical joins to avoid fan-traps and data duplication.

Exam trap

Candidates often blame incorrect aggregation formulas in calculated fields, failing to recognize that the root cause of the data inflation is a physical many-to-many join condition.

23
MCQmedium

When creating an extract, what is the impact of choosing 'Aggregate data for visible dimensions'?

A.It keeps all original rows in the extract.
B.It summarizes the data to reduce extract size.
C.It only affects the metadata, not the physical data.
D.It removes all measures from the extract.
AnswerB

By aggregating data based on the visible dimensions, Tableau creates a much smaller, pre-summarized dataset. This is highly effective for improving dashboard performance, especially when the goal is high-level reporting where individual row-level transaction detail is not required for the specific visualization being built.

Why this answer

This option reduces the size of the extract by summarizing data at the level of the dimensions currently in the view. This is an excellent optimization strategy for very large datasets where row-level granularity is not required for the dashboard. By storing only the necessary aggregates, the extract becomes much faster to query and takes up significantly less disk space, improving the overall efficiency of the analytical application.

Exam trap

Candidates mistakenly believe aggregating extracts keeps all row-level detail intact, confusing summary aggregation with complete data preservation.

24
MCQmedium

You are joining two tables: 'Sales' and 'Targets'. The 'Targets' table has only one row per region, while the 'Sales' table has multiple rows per region. What join type should you use to preserve all sales data while adding target information?

A.Inner Join
B.Left Join
C.Right Join
D.Full Outer Join
AnswerB

A Left Join is the correct choice because it includes all rows from the left table ('Sales') and matches the corresponding rows from the right table ('Targets'). This ensures that no sales data is lost while effectively appending the target figures to each record for regional analysis.

Why this answer

A Left Join is appropriate here because it keeps every row from the primary 'Sales' table and adds matching 'Targets' data where available. Since 'Targets' is at a higher level of aggregation (region level), this join preserves the transaction-level granularity of the 'Sales' table while associating each transaction with its corresponding target for performance comparison. This correctly models the one-to-many relationship often found in business intelligence.

Exam trap

Candidates frequently confuse inner joins with left joins, accidentally dropping sales rows that do not have a matching target entry in the secondary table.

25
MCQeasy

When you have a large dataset that is slow to load, what is the 'first' step you should take to improve performance in Tableau?

A.Add a dashboard filter.
B.Create a hide/unhide dashboard action.
C.Hide unused columns and apply a data source filter.
D.Increase the number of CPU cores on the machine.
AnswerC

Hiding unused columns reduces memory consumption, while data source filters reduce the row count processed. Together, these actions drastically shrink the data footprint, leading to the fastest possible initial load times. This is the industry-standard 'first step' for any performance-tuning effort in Tableau Desktop.

Why this answer

Minimizing data before it reaches the dashboard is the fundamental rule of Tableau performance. By excluding unnecessary columns and applying data source filters early, you reduce the workload on both the local environment and the underlying database. These initial steps are the most impactful, as they prevent unnecessary data from being processed and stored, leading to a much snappier user experience in the final interactive dashboards.

Exam trap

Candidates often choose dashboard-level actions like hiding fields in the view or using quick filters, forgetting that performance optimization must happen at the data source level before data is loaded.

26
MCQhard

Refer to the exhibit. You are trying to create a calculated field for sales performance. Why is this formula failing?

A.The fields must be joined in the physical layer first.
B.Calculations cannot reference dimension fields.
C.Mixing aggregate and non-aggregate fields is illegal.
D.The data source requires a live connection.
AnswerC

Tableau requires consistent aggregation levels in expressions. Since 'Sales' is a measure (aggregated) and 'Target' is a dimension (non-aggregated), you must wrap 'Target' in an aggregation like SUM or AVG to ensure the math evaluates correctly. Failure to do this prevents the formula from producing a valid result.

Why this answer

In Tableau, you cannot mix aggregate and non-aggregate values in a calculation unless all non-aggregate fields are wrapped in an aggregation function. This ensures that the calculation is performed consistently across the entire dataset. Recognizing this rule is vital for creating accurate ratios and percentages, as calculations that mix grains often result in unexpected errors or logically incorrect outputs that can ruin dashboards.

Exam trap

Candidates often try to subtract a raw row value from an aggregated sum, forgetting that Tableau requires all operands in a calculation to be at the same aggregation level.

27
MCQmedium

You are working with a CSV file and want to ensure that Tableau treats certain columns as numbers, even though they look like categories. What should you do?

A.Use a filter to remove categories.
B.Manually change the data type to 'Number' in the Data Source page.
C.Create a group from the column.
D.Change the file connection to a live connection.
AnswerB

Manually changing the data type is the intended way to correct Tableau's interpretation of a field. By setting it to 'Number', you enable mathematical operations like sum and average. This is the standard best practice for handling data that has been incorrectly inferred as a category.

Why this answer

Tableau's data type detection is usually accurate, but occasionally it misinterprets data, especially if a column contains mostly categories with a few numeric values. Manually overriding the data type in the Data Source page is the standard procedure to force the correct behavior. Ensuring the correct data type is foundational for enabling appropriate aggregations and sorting, which prevents subtle errors in charts and calculations later in the development cycle.

Exam trap

Candidates often try to use a calculation to convert the data type, which is unnecessary and inefficient compared to simply changing the data type directly on the Data Source page.

28
MCQmedium

You are connecting to a CSV file that contains dates in the format 'DD-MM-YYYY'. When you drag the date field into the view, Tableau interprets it as a string. How can you fix this?

A.Change the data type to Date in the Data Source pane.
B.Convert the column to a Measure.
C.Use the Split function to separate the date parts.
D.Rename the column to start with 'Date'.
AnswerA

In the Data Source tab, clicking the icon for the column and selecting 'Date' triggers Tableau's internal parsing logic. For many standard formats, this is sufficient to convert the data type. It is the first and simplest step to ensure temporal functionality without writing custom calculations.

Why this answer

Tableau needs specific formatting to recognize dates. If a format isn't standard, it defaults to a string. You can change the data type to Date in the Data Source tab.

If the format remains unrecognized, you can use a calculated field with the DATEPARSE function to explicitly define the format, ensuring Tableau correctly interprets the temporal information for time-series analysis.

Exam trap

Candidates try to change the date format inside a worksheet instead of modifying the data type at the data source level.

29
MCQeasy

What is the primary difference between a Data Extract and a Live connection in Tableau?

A.Extracts are always faster but cannot be scheduled for refresh.
B.Live connections automatically aggregate data at the source.
C.Extracts provide a local, optimized snapshot of the data.
D.Live connections are only available for cloud-based sources.
AnswerC

Extracts create a high-performance, compressed file that is stored locally. This snapshot allows for rapid visualization updates by offloading the workload from the source database, which is the defining characteristic that distinguishes extracts from live connections in an analytical workflow.

Why this answer

A Live connection queries the source database directly each time a view is updated, ensuring data is always current but potentially slow. An Extract is a local copy of data that provides faster performance and offloads processing from the source database. Choosing between them is a fundamental decision that balances the need for real-time data against the requirement for system responsiveness.

Exam trap

Candidates often confuse the purpose of an extract, thinking it is only for offline use. They miss that the primary benefit is performance optimization through local, columnar data storage.

30
MCQmedium

You are connecting Tableau Desktop to a large transactional database containing millions of rows. You need to improve workbook performance and reduce query load on the live database during exploratory analysis. What is the most effective connection and data storage strategy to achieve this?

A.Switch the connection type to Live and apply custom SQL with heavy aggregation
B.Maintain a live connection and enable serial execution mode for all queries
C.Convert the connection to an extract and store the resulting hyper file locally
D.Use an incremental refresh schedule on a live connection without creating an extract
AnswerC

A Tableau extract materialises the query results into a local hyper file, so exploratory analysis reads from that columnar in-memory store rather than issuing repeated queries against the live transactional database, directly reducing query load and improving workbook performance.

Why this answer

Creating a Tableau extract compresses the data, stores it locally, and utilizes columnar storage technology, which significantly enhances query performance for large datasets. This approach reduces network latency and frees up transactional database resources. While live connections ensure real-time accuracy, extracts are the industry standard for optimizing desktop performance during complex exploratory analysis sessions involving millions of rows.

Exam trap

Candidates suggest using live connections to keep data fresh, ignoring that this causes severe performance degradation on large datasets. They fail to recognize extracts as the standard solution for scale.

31
MCQmedium

You have a dataset with a 'Date' field that is recognized as a string. What is the best way to convert it to a Date type so you can use it in a time-series chart?

A.Change the Data Type to 'Date' in the Data Source page.
B.Create a new column using the 'Split' function.
C.Use a group to change the date format.
D.Use an extract filter to change the data type.
AnswerA

The most straightforward approach is to change the data type directly in the Data Source page. Tableau attempts to automatically parse the string into a date format based on common patterns. This is the first step before resorting to more complex solutions like calculated fields for custom date formats.

Why this answer

Converting strings to Date objects is a frequent step in data preparation. Using the 'Change Data Type' option in the interface is the most direct method. If the format is non-standard, using the DATEPARSE function is the robust, programmatic way to ensure Tableau maps the string correctly to its internal date representation.

This allows for hierarchical drill-downs (Year, Quarter, Month), which are essential for effective time-series analysis in business intelligence.

Exam trap

Candidates often overcomplicate this by building a 'DATEPARSE' calculation, not realizing that changing the metadata type in the Data Source page is the standard, non-destructive way to handle this.

32
MCQmedium

You have a large CSV file with millions of rows. You want to keep the data updated every morning. What is the best strategy?

A.Use a live connection to the CSV
B.Create an extract and schedule an incremental refresh
C.Manually refresh the extract every morning
D.Convert the CSV into a JSON file
AnswerB

An incremental refresh only adds new records to the existing extract instead of re-processing the entire multi-million row file. This is the most efficient strategy for keeping large datasets current, significantly reducing the time and computational resources required for daily data updates on the Tableau platform.

Why this answer

Scheduled refreshes for extracts are the standard way to maintain data freshness for large files. By creating an extract, you optimize performance. By publishing it to Tableau Server or Cloud, you can leverage automated refresh tasks.

This ensures that users always have the latest data without needing to manually refresh the file, balancing performance requirements with the need for timely, up-to-date business intelligence.

Exam trap

Candidates often suggest a full refresh every morning for massive datasets, which wastes processing time and system resources by reloading unchanged historical data.

33
MCQmedium

You are a data analyst at a retail company. You have a Tableau data source that combines two tables: Orders (containing order ID, customer ID, order date, and product ID) and Returns (containing return ID, order ID, return date, and reason). You need to analyze the return rate by product category. After connecting to the data, you notice that when you drag Order ID to the view, some orders appear multiple times. What is the most likely cause of this duplication?

A.The join between Orders and Returns is a one-to-many relationship, so each order with multiple returns appears multiple times.
B.The join between Orders and Returns is a many-to-many relationship because an order can have multiple returns, causing duplicate order rows.
C.The Orders table contains duplicate records for the same Order ID due to data quality issues.
D.The Returns table is joined to Orders using an incorrect join key, such as Customer ID instead of Order ID.
AnswerA

In a one-to-many join, each order with multiple returns will produce multiple rows—one for each return. This causes the Order ID to appear multiple times. This is the expected behavior when joining tables with a one-to-many relationship without aggregating first.

Why this answer

When you join Orders and Returns on Order ID, and an order has multiple returns, the result set includes one row per return. This is the classic one-to-many join behavior. To analyze return rate by product category, you would need to aggregate returns or use a relationship instead of a join to avoid duplication.

Exam trap

The trap here is assuming that any duplication indicates a many-to-many join, when a one-to-many join with multiple matching records also produces duplicate rows.

34
MCQmedium

You have a dataset containing sales information for different years. You want to connect to this data but only need to keep records from the last two years. Which approach is the most efficient?

A.Use a Data Source filter to exclude older years
B.Use a hide field command on the Year column
C.Create a worksheet-level filter for every view
D.Delete the old data from the source file
AnswerA

A data source filter is applied before the data is fully loaded, meaning Tableau never processes the unnecessary older records. This makes the workbook lighter and faster, as the underlying query is constrained at the source, preventing the system from reading and storing irrelevant historical data.

Why this answer

Data source filters allow you to limit the data loaded into the Tableau environment at the connection level. By applying a filter before the data is ingested, you reduce the size of the extract or the volume of data queried live. This improves performance, reduces memory usage, and ensures that the workbook only processes the records relevant to the current analytical scope.

Exam trap

Candidates often select standard worksheet filters or global filters, which still require Tableau to query or load all historical data before filtering it out in the view.

35
MCQhard

Refer to the exhibit. You are receiving a calculation error when trying to aggregate a 'Revenue' field. What is the most efficient way to resolve this in the Data Source tab?

A.Create a new parameter to force numeric conversion.
B.Change the data type of the field using the icon in the data grid.
C.Use a hide and unhide operation to refresh the schema.
D.Export the data to CSV and re-import it.
AnswerB

Clicking the data type icon at the top of the column in the Data Source tab allows you to convert the field to a 'Number (decimal)' or 'Number (whole)'. This is the standard, most efficient way to fix type issues immediately upon connecting to your data.

Why this answer

Tableau requires numerical data to perform aggregate calculations like Sum or Average. If a field is imported as a string, it must be cast to a number. Understanding data type conversion is crucial because incorrect types prevent the use of fundamental features like filters and color-coding, which rely on the underlying mathematical properties of the data to generate accurate visual representations.

Exam trap

Candidates often try to create a calculated field using functions like INT() or FLOAT() in the worksheet, missing the prompt's instruction to resolve the issue directly within the Data Source tab.

36
MCQmedium

You are connecting to a large database and only need a small subset of the data based on a specific geographic region. How can you limit the amount of data brought into Tableau?

A.Use a Context Filter.
B.Use a Data Source Filter.
C.Use a Global Filter.
D.Use a Hide field option.
AnswerB

Data Source Filters are applied immediately upon connection, before any data is loaded into the workbook. By filtering at the source, you reduce memory consumption and speed up query performance, which is ideal for limiting data to specific regions or time periods.

Why this answer

Using a Data Source Filter allows you to restrict the data at the connection level, meaning only the relevant subset is loaded into Tableau's memory. This is a critical performance optimization technique, as it prevents the unnecessary processing of large volumes of irrelevant data, resulting in faster dashboard load times and a more streamlined user experience for regional-specific reporting tasks.

Exam trap

Candidates confuse Data Source Filters with standard worksheet filters, failing to realize that only data source filters restrict the actual volume of data brought into the file.

37
MCQeasy

You have connected to a CSV file and notice that the headers are not being correctly identified, resulting in column names like F1, F2, and F3. What is the fastest way to fix this in the Data Source page?

A.Manually rename each column in the Data Source tab.
B.Enable the Data Interpreter.
C.Change the file type to Excel.
D.Create a calculated field for each column.
AnswerB

The Data Interpreter is specifically designed to handle common spreadsheet formatting issues like header identification. It analyzes the file structure to detect where the actual headers are located and shifts the data accordingly, effectively cleaning the data source and providing meaningful column names without requiring manual configuration or data manipulation.

Why this answer

Tableau's Data Interpreter is designed to detect and resolve common data formatting issues, such as missing headers or extra rows above the header. By enabling the Data Interpreter, Tableau attempts to identify the actual header row and promote it to the field name level automatically. This saves significant time compared to manual renaming of dozens of columns and ensures the data types are interpreted correctly based on the content.

Exam trap

Candidates attempt to manually rename columns like F1 and F2 one by one, completely overlooking the automated cleaning tool designed specifically for this issue.

38
MCQmedium

An analyst needs to combine two tables from a local PostgreSQL database. The tables share a common identifier, but one table contains transactional rows at a granular date level while the other contains monthly aggregate targets. What joining strategy best prevents metric inflation caused by data duplication?

A.Perform an inner join on the common identifier to drop any unmatched target values.
B.Create a relationship between the two tables using the common identifier field.
C.Write a custom SQL query using a full outer join and multiple window functions.
D.Blend the data sources by setting up a primary and secondary data connection.
AnswerB

Relationships join tables at the visualisation layer using the common identifier, matching transactional rows to monthly targets without duplicating aggregate values across each date. This satisfies the stem's requirement to prevent metric inflation, unlike a physical join that would repeat monthly targets for every transaction row.

Why this answer

Aggregating or properly relating tables at different levels of detail prevents duplication. While standard joins replicate matching rows and inflate additive metrics, Relationships handle mismatched levels dynamically by querying each table at its native grain before aggregation, preserving accurate totals without requiring manual pre-aggregation steps or complex custom SQL scripts in the workspace.

Exam trap

Candidates frequently select traditional joins for tables at different granularities, forgetting that standard physical joins cause row duplication and inflate additive metrics like sales or targets.

Ready to test yourself?

Try a timed practice session using only Connecting to and Preparing Data questions.