Salesforce certification · Exam Salesforce-Tableau-Data-Analyst

Salesforce-Tableau-Data-Analyst Mock Exam Page 3

Salesforce Tableau Data Analyst

Free Salesforce-Tableau-Data-Analyst mock exam questions 21–30, each with the answer and an explanation.

20 questions · 35 minutes · free, no sign-up

Free Salesforce-Tableau-Data-Analyst questions

21–30 of 62 free
Question 21 Choose 1
You have the following Map.

You need the map to appear as shown in the following visualization.

What should you do?
Show answerHide answer

Correct answer: D Change the mark type to Density.

Explanation

Explanation

The visualization shown, which typically presents areas with a high concentration of data points as a smooth, darker color gradient, is achieved by setting the mark type to Density. This mark type is specifically designed for visualizing many overlapping data points on a map (or other chart types) where individual marks are less important than the overall pattern of concentration.

✅ Correct Option: D (Change the mark type to Density.)
Density mark type is specifically used in Tableau to analyze data distribution patterns where many data points cluster in geographic areas. Instead of drawing individual circles (the default Automatic or Circle mark), Tableau calculates the density of points and uses a color gradient to show concentration. This feature effectively visualizes the geographic heat map or "hot spots" that are often required when analyzing spatial data, which matches the required visualization.

❌ Incorrect Option: A (Drag Location to Size on the Marks card.)
Location (which is usually a geographic role like Latitude/Longitude, State, or City) is already used to place the points on the map. Dragging it to the Size card would likely result in an error or an unintuitive size encoding, as location fields are typically categorical or positional, not quantitative measures used for sizing.

❌ Incorrect Option: B (Change the opacity to 75%.)
Changing the opacity affects the transparency of the marks (e.g., circles) but keeps them as discrete marks. While it can help reduce clutter, it does not transform the visualization into a smooth, heat-map-like density view, which requires a specific density calculation engine.

❌ Incorrect Option: C (Drag Population to Size on the Marks card.)
Dragging a measure like Population to the Size card would result in a Proportional Symbol Map, where the size of each individual mark (e.g., circle) is scaled by its population value. This creates discrete, sized bubbles, not the continuous, overlapping, smooth-gradient visualization characteristic of a density map.

❌ Incorrect Option: E (Change the mark type to Map.)
Map is not a mark type option in Tableau Desktop. The available mark types include Automatic, Bar, Line, Circle, Square, Shape, Text, Polygon, and Density. The base visualization is already a map that uses geographic fields; you change the way marks are rendered, not the map itself.

🔗 Reference
Build with Density Marks (Heatmap)
Question 22 Choose 1
Which function should a Data Analyst use to average sales at a less-granular level of detail than is in the view?
Show answerHide answer

Correct answer: D EXCLUDE

Explanation

Explanation:

This question tests the understanding of Level of Detail (LOD) expressions, which are used to compute values at dimensions that are not present in the view. The key requirement is to calculate an average at a level less granular (i.e., more summarized) than what is currently shown in the visualization.

Correct Option:

✔️ D. EXCLUDE:
The EXCLUDE LOD expression is used specifically to remove a dimension from the view's level of detail for a calculation. If your view contains a highly granular breakdown (e.g., Sales by [Product] and [Month]), using { EXCLUDE [Month] : AVG([Sales]) } would calculate the average sales per product across all months. This creates a result that is less granular than the view, which is precisely what the question requires.

Incorrect Options

❌ A. RUNNING_AVG:
This is a table calculation function that computes a moving average along the table based on the current view's level of detail. It does not change the underlying granularity of the calculation; it only performs a computation across the rows that are already present.

❌ B. INCLUDE:
The INCLUDE LOD expression does the opposite of what is needed. It makes a calculation more granular than the view by adding a dimension that isn't currently in the visualization. This would increase, not decrease, the granularity.

❌ C. AVG:
The basic AVG function is an aggregation that respects the granularity of the view. It will simply average the data at the level of detail already present in the worksheet and will not create a less granular result on its own.

Summary:
To compute a value at a broader, more summarized level than the current view, you must use an LOD expression that removes dimensions. EXCLUDE is the correct function for this purpose, while INCLUDE adds granularity, and AVG alone respects the view's current detail.

Reference:
Based on the official Tableau documentation on Level of Detail Expressions, which defines EXCLUDE as an LOD expression that "removes dimensions from the view's level of detail."
Question 23 Choose 1
In a dataset, you have a string field named Name that contains unnecessary semicolons.
Which function should you use to remove the semicolons from the Name field?
Show answerHide answer

Correct answer: C REPLACE

Explanation

Explanation:

The task requires cleaning a string field by removing specific unwanted characters (semicolons) that may appear anywhere within the text values. The REPLACE function is specifically designed for targeted character substitution within strings, making it the ideal solution for this data cleaning scenario.

Why This is Correct

✔️ C. REPLACE:
This function systematically searches through each string value for a specified target substring (the semicolon ;) and replaces every occurrence with a replacement string (an empty string ""). By executing REPLACE([Name], ";", ""), you effectively scan the entire field and remove all semicolons while preserving all other characters in their original positions, achieving clean text without the unwanted punctuation.

Why Others Are Incorrect

❌ A. TRIM:
This function is limited to removing only leading and trailing characters (spaces by default, or other specified characters) from the start and end of a string. It has no capability to detect or remove characters like semicolons that appear anywhere within the middle of the text content, making it insufficient for this cleaning requirement.

❌ B. CONTAINS:
This is strictly a Boolean function that returns only TRUE or FALSE if a string contains a specified substring. While it can identify records with semicolons, it performs no data modification and cannot remove or alter any characters, serving only for conditional testing rather than data transformation.

❌ D. SPLIT:
This function divides a string into multiple segments based on a specified delimiter (like a semicolon) and returns the parts as separate fields or array elements. Rather than cleaning the original field, it creates additional data fragments and doesn't actually remove semicolons from the source data, complicating the data structure instead of simplifying it.

📚 Summary:
To systematically remove unwanted characters embedded within string values, the REPLACE function is specifically designed to locate and substitute targeted character sequences. TRIM only affects string endpoints, CONTAINS merely tests conditions, and SPLIT creates additional data fragments rather than cleaning the original field.

Reference:
Based on the official Tableau documentation for string functions, which specifies REPLACE for "replacing all occurrences of a substring with a new substring" within text values.
Question 24 Choose 1
You have a Tableau workbook that contain three worksheets named Sheet1 Sheet2 and Sheet3.
You create several filters.
From the Data Source page you plan to add data source fillers
When type of filter will appear in the Edit Data Source Filters dialog box?
Show answerHide answer

Correct answer: D A dimension filter on all the sheets

Explanation

Explanation

The Edit Data Source Filters dialog box is designed to manage filters that are applied to the entire data connection before any worksheet processing occurs. These filters are global and affect all worksheets using that data source. When you choose to apply a dimension filter from the Filters shelf to "All Using This Data Source," Tableau promotes this filter to the data source level, and it is subsequently listed in the Edit Data Source Filters dialog box.

Options Analysis

✔️ Correct Option: [D] A dimension filter on all the sheets
When an analyst applies a dimension filter on the Filters shelf of a worksheet and changes its scope to "All Using This Data Source," it is automatically recognized and listed in the Edit Data Source Filters dialog box. This is because a filter applied to all sheets using the same source functions as a data source filter, limiting the underlying data before it reaches any view.

❌ Incorrect Option: [A] A table calculation filter used on Sheet
Table calculation filters operate at the very last step of Tableau's Order of Operations, long after the data has been loaded and the view table has been created. They filter what is displayed based on aggregated results, but they do not filter the underlying data source. Therefore, a table calculation filter would never appear in the Edit Data Source Filters dialog.

❌ Incorrect Option: [B] A top N condition filter on a dimension in Sheet 1 and Sheet2
A Top N filter is a type of Dimension filter applied on the Filters shelf. However, it is fundamentally a worksheet-level filter unless its scope is explicitly set to "All Using This Data Source." Even when applied to a select set of sheets like Sheet 1 and Sheet 2, it remains a global filter, which is a separate scope from a true data source filter that applies to all sheets and is listed in the dedicated dialog.

❌ Incorrect Option: [C] A context filter on a dimension in Sheet3
A Context Filter is executed early in the query pipeline, but it is still a worksheet-level filter (or set of filters) designed to work within the confines of a single worksheet's data table before dimension filters are applied. It is not a global filter that applies to all worksheets equally and therefore does not get listed or managed in the Data Source Filters dialog box.

Reference 🔗
Tableau Help: Filter Data from Your Data Source: The official documentation states that when you create a data source filter, any global filters that use that data source are displayed automatically in the Edit Data Source Filters dialog box.
Question 25 Choose 1
A colleague provides a Data Analyst with access to a folder that has the following files:

Sales.csv
Book1.json
Sales.tds
Export.mdb

Which file can contain information for connecting to an external data source, such as an SQL Server database?
Show answerHide answer

Correct answer: B Sales.tds

Explanation

Explanation

The file extension .tds stands for Tableau Data Source. This is a proprietary Tableau file type designed to save the connection information to data, without saving the actual data itself. A .tds file stores details like the database server name (e.g., SQL Server), port, credentials (or prompt for them), and any customized settings, folders, calculations, or hierarchies applied within Tableau. This file type is specifically used to share and reuse a standardized connection setup.

✅ Correct Option: B. Sales.tds
The .tds (Tableau Data Source) file is an XML file created by Tableau Desktop. Its primary function is to store the full definition of a data connection, including the type of database (e.g., SQL Server), server address, authentication requirements, and any metadata customizations specific to Tableau. It acts as a shortcut or template, allowing an analyst to easily reconnect to the external data source without having to rebuild the connection from scratch.

❌ Incorrect Option: A. Sales.csv
A .csv (Comma Separated Values) file is a plain text file that contains the raw, delimited data itself. It does not contain any connection information to an external, live data source like an SQL Server database. The data within a CSV is already static and local to the file, and it is not designed to maintain a dynamic connection.

❌ Incorrect Option: C. Export.mdb
A .mdb file is a file format used by Microsoft Access Database. While it is a database that contains both data and database objects, it is a local, file-based database. It does not contain the connection instructions for a separate, external SQL Server database, which is typically accessed via an ODBC/JDBC driver and a .tds or similar connection file.

❌ Incorrect Option: D. Book1.json
A .json (JavaScript Object Notation) file is a standard text-based format for transmitting and storing data, often used by web applications. Similar to a CSV, a JSON file contains the raw data itself, structured in key-value pairs. It does not contain the necessary connection instructions, drivers, or metadata to establish a live connection to an external SQL Server database.

📚 Reference
You can find the official documentation for Tableau file types:
Tableau Help: Tableau File Types and Folders
Question 26
You are developing a data source in Tableau Prep.
You have two tables named Orders and Employees.
The Orders table was created in 2019 and contains the following columns.

The Employees table contains all the employee information for the various sales teams in the sales department and contains the following columns

You want to prepare the data so that you can analyze sales trends over time for every sales team. Which three actions should you perform in order? (Place the three correct options in order. Use the arrows to move Options to Answer Area. Use Answer Area arrows to re-order the options.)

Show answerHide answer

Explanation



Explanation:

To successfully combine the Orders and Employees tables using a horizontal join in Tableau Prep Builder, the matching keys from both sources must share the exact same data type signature.

Action 1 (Fixing the Data Type Mismatch):Looking at the source tables, the ID column in the Orders table is currently stored as a text string (indicated by the Abc icon in image_c08ba9.png), whereas Employee ID in the Employees table is stored as an integer (indicated by the # icon in image_c08bae.png). Attempting to join a string field directly to an integer field will cause an error or result in zero matched records. Therefore, you must add a Clean step first to cast the ID field into a Whole number.

Action 2 (Renaming for Alignment): In the same Clean step, renaming the ID column to match the target field name (Employee ID) ensures data clarity and allows Tableau Prep to automatically recognize and pair the join keys.

Action 3 (Executing the Join): With data types aligned, dragging the Orders flow branch and dropping it on top of the Employees block to select Join creates the relational link needed to bring Sales Team information into the orders stream.

Why Other Options Are Incorrect:

Creating a Union: A Union appends data vertically (stacking rows). Because these tables represent entirely different entity attributes (transactional orders vs. staff directories), a union is fundamentally incorrect.

Filtering out null rows:
While filtering nulls can be useful for cleanup, it does not address the fundamental structural data type mismatch preventing the table join from running.

References:

Tableau Prep Documentation (Join Data): "To join tables, the fields that make up the join clause must have the same data type. If the data types are different, you must convert them in a Clean step before joining."
Question 27 Choose 1
A Data Analyst would like to receive the draft results of a colleague's Tableau Prep flow to start work on a dashboard before it has been published.
What should the analyst do to accomplish this?
Show answerHide answer

Correct answer: D Have the colleague output the results of the flow to a .hyper file. On the Tableau Desktop Connect page, under To a File, choose "More ...", and browse for the .hyper file on the local file system.

Explanation

Explanation

To access the results of a Tableau Prep flow before it's published or shared via Tableau Server/Cloud, the most direct and efficient method is for the colleague to output the data to a local file. Tableau Prep's standard output format is the .hyper file, which is optimized for Tableau Desktop connections. The analyst can then take this file, typically shared over a network or local drive, and connect to it directly as a data source within Tableau Desktop to begin building the dashboard.

Options Analysis

🟢 Correct Option: [D] Have the colleague output the results of the flow to a .hyper file. On the Tableau Desktop Connect page, under To a File, choose "More ...", and browse for the .hyper file on the local file system.
This is the standard and correct workflow for sharing unpublished Prep results. The colleague sets the flow's Output step to save the cleaned data as a .hyper file (a highly optimized file format for Tableau). The analyst then receives this file and uses the Connect to Data page in Tableau Desktop, selecting To a File and then choosing the .hyper file. This action creates a live connection to the prepared data, allowing dashboard development to start immediately.

❌ Incorrect Option: [A] On the Tableau Desktop Connect page, under To a File, choose "More ...", and browse for the colleague's .tf file on the local file system.
The .tfl or .tflx file extension is for the Tableau Prep Flow logic itself, not the data output. Tableau Desktop is designed to connect to data sources (like .hyper files, databases, or spreadsheets), not to the flow definition file. Connecting to a .tfl file would be incorrect and would not provide the analyst with the prepared data to build a dashboard.

❌ Incorrect Option: [B] Have the colleague output the results of the flow to a .hyper file. Create a new workbook in Tableau Cloud, choose Files on the Connect to Data page, and upload the .hyper file from the computer.
While this method will work, it's less direct than using Tableau Desktop for an analyst who wants to start work on a dashboard immediately on their local machine. More importantly, this process introduces an unnecessary step of uploading to Tableau Cloud. The question implies a local data exchange to "start work," making the local connection via Tableau Desktop (Option D) the most appropriate and common first step.

❌ Incorrect Option: [C] Open Tableau Desktop and make a connection to Tableau Prep, then choose the colleague's flow that the analyst wants to connect to.
There is no direct, native connector in Tableau Desktop labeled "Connect to Tableau Prep." Tableau Desktop connects to the output of a flow (a .hyper file or a published data source), not to the running flow application itself. The flow must be run first, and its output saved or published for Tableau Desktop to be able to access the results.

Reference 🔗
Tableau Help: Save and Share Your Work
Question 28 Choose 2
You connect to a database server by using Tableau Prep. The database server has a data role named Role1. You have the following field in the data. You need to apply the Role1 data role to the Material field.

Which two actions should you perform? Choose two.
Show answerHide answer

Correct answer: B, C For the data type of the Material field, select Custom, and then select Role1.From the More actions menu of Materials, select Group Values, and then select Spelling.

Explanation

Explanation

Applying a data role in Tableau Prep involves two key steps: first assigning the predefined role to the field, and then cleaning any invalid values that don't conform to the role's standards. Data roles help maintain data quality by ensuring field values match expected patterns or predefined lists.

✅ Correct Options

B. For the data type of the Material field, select Custom, and then select Role1.
This action assigns the predefined Role1 from your database server to the Material field. Tableau Prep will then validate all field values against Role1's standards and flag any non-conforming values for cleanup.

C. From the More actions menu of Materials, select Group Values, and then select Spelling.
After applying Role1, this action cleans invalid values by using fuzzy matching to identify and group similar spellings. This automatically fixes common data entry errors and standardizes values to match Role1's requirements.

❌ Incorrect Options

A. From the More actions menu of Materials, select Valid in the Show values section. ❌
This action merely filters the view to display only values that currently pass Role1 validation, effectively hiding problematic entries from view. While useful for temporary analysis, this approach doesn't actually clean or fix invalid values - it simply conceals them, leaving underlying data quality issues unresolved.

D. From the More actions menu of Materials, filter the selected values. ❌
Filtering permanently removes selected values from your dataset rather than correcting or standardizing them according to Role1 standards. This approach results in data loss and doesn't leverage the intelligent cleaning capabilities of data roles, making it an inappropriate solution for applying and enforcing Role1 validation.

📝 Summary
The correct approach involves first assigning Role1 through the data type menu to activate validation, then using spelling-based grouping to intelligently clean invalid values. Filtering or hiding invalid values avoids rather than solves the underlying data quality issues.

📚 Reference
Tableau Help: Create and Use Data Roles - Official documentation on implementing predefined data roles for automated field validation and data standardization processes.
Question 29 Choose 1
You have a dashboard that contains a parameter named Start Date.
You need to create an extract from a Microsoft Excel file. The extract must be filtered based on Start Date.
What should you do?
Show answerHide answer

Correct answer: A Create a data source based on the Excel worksheet and create a calculated field based on Start Date. Add the calculated field to the extract filter.

Explanation

Explanation

A Tableau Data Extract (a .hyper file) is a static snapshot of data. To filter this extract using a dynamic value like a parameter, you must define the filter criteria using a calculated field. This calculated field creates a boolean condition (e.g., [Date] >= [Start Date]). Adding this calculation to the Extract Filter and setting it to True permanently locks the extract to the records that satisfy the condition based on the parameter's value at the time of extraction.

✅ Correct Option: A (Create a data source based on the Excel worksheet and create a calculated field based on Start Date. Add the calculated field to the extract filter.)
The first step is establishing the connection to the Excel file to create a data source. A calculated field, such as [Order Date] >= [Start Date], is necessary to compare the data field against the parameter value. This calculated field is then applied in the Extract Filter dialog box, selected to filter for the True condition, ensuring only the qualifying records are included in the extract file.

❌ Incorrect Option: B (Create a custom SQL query to define the data source and create a calculated field based on Start Date. Add the calculated field to the extract filter.)
Microsoft Excel files, which are flat files, do not typically support the use of Custom SQL queries to define the data source connection in Tableau. Custom SQL is a feature generally reserved for connections to relational databases (e.g., SQL Server, PostgreSQL) where a query language is required to define the data input.

❌ Incorrect Option: C (Create a custom SQL query that references Start Date in the WHERE clause.)
This approach fails for two reasons: Custom SQL is not applicable to Excel data sources, and Tableau parameters cannot be directly referenced by name within the text of a Custom SQL query for filtering in this context. This method is only valid for some database connections via a Data Source Filter, but not for an Excel extract.

❌ Incorrect Option: D (Create a data source based on the Excel worksheet and create a calculated field based on Start Date. From the Data pane, add the calculated field to the data source filter)
While using a Data Source Filter (as opposed to an Extract Filter) achieves the exact same result (the filter is applied before the extract is saved), the most precise control for defining the contents of the extract file is specifically through the Extract Filter configuration dialog, which is the mechanism referenced in Option A.

🔗 Reference
Extract Your Data - Tableau Help
Question 30 Choose 1
A colleague provides you with access to a folder that contains the following files:

• Sates.csv
• Bookl.twb
• Sates.hyper
• Export.mdb

Which He contains an extract?
Show answerHide answer

Correct answer: C Sales.hyper

Explanation

Explanation

A Tableau extract is a highly compressed, optimized snapshot of data stored locally on your machine. This local copy, which uses Tableau's proprietary high-performance engine, improves visualization speed, reduces the load on the original database, and allows for offline work. Since Tableau version 10.5, the modern file extension for a data extract is .hyper (replacing the older .tde extension).

✅ Correct Option: C. Sales.hyper
The .hyper extension specifically denotes a Tableau Data Extract file. This file type contains the actual data from the source, compressed and stored in a columnar format that is highly optimized for fast querying within Tableau. It functions as an independent, local copy of the data, which is the definition of an extract.

❌ Incorrect Option: A. Export.mdb
The .mdb extension is associated with a Microsoft Access Database file. While Tableau can connect to this file type to access data, the .mdb file itself is the original data source, not a Tableau-created or optimized data extract. It is a proprietary database format separate from Tableau's extract technology.

❌ Incorrect Option: B. Book1.twb
The .twb (Tableau Workbook) extension contains the design and logic of your visualization, such as worksheets, dashboards, and connection information. Crucially, a standard .twb file does not contain the actual underlying data. It requires live access to the original data source (like the .csv or a database).

❌ Incorrect Option: D. Sales.csv
A .csv (Comma Separated Values) file is a plain-text file containing raw data, which serves as a simple data source. Tableau can connect to this file type, but the file itself is the original source of data, not a compressed, optimized Tableau extract file.

🌐 Reference
Tableau File Types and Folders
Full mock exam

Sit the Salesforce-Tableau-Data-Analyst exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real Salesforce-Tableau-Data-Analyst exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full Salesforce-Tableau-Data-Analyst mock exam
  • 60questions per mock
  • 105 mintime limit
  • 212questions in the bank
  • Newmock on every attempt