Connecting to Data
Connecting to Data Interview with follow-up questions
1. Can you explain how to connect to a data source in Tableau?
To connect to a data source in Tableau Desktop, follow these steps:
Open the Connect pane: On the Start page, the left panel lists connection types. You can also go to Data > New Data Source from within an open workbook.
Select your connector: Choose the appropriate connector type — file-based (Excel, CSV, JSON, PDF, Spatial), database (MySQL, PostgreSQL, SQL Server, Oracle, Snowflake, BigQuery, Redshift), or a cloud/SaaS application (Salesforce, Google Analytics, Google Sheets). If your source is not listed, look under "More..." for the full connector library or use a Web Data Connector.
Provide connection details: For file sources, browse to the file location. For database sources, enter the server hostname, port, database name, and authentication credentials (username/password or Kerberos/OAuth as supported).
Configure the data model in the Data Source tab: After connecting, drag tables onto the canvas. Tableau defaults to creating Relationships between tables — a flexible, context-aware model that avoids pre-merging data. You can switch to the physical layer to define explicit joins if needed.
Choose live or extract: Decide whether to query the source directly (live connection) or create a Hyper extract for performance. Extracts store data in the
.hyperformat.Name the data source and go to a sheet: Click the sheet tab at the bottom to start building visualizations. Your fields will appear in the Data pane, organized into Dimensions and Measures.
Tip: For Tableau Cloud deployments where the data lives on-premises, Tableau Bridge must be installed and configured to relay queries between the cloud and the local source.
Follow-up 1
What are the different types of data sources that can be connected to Tableau?
Tableau can connect to a wide range of data sources, including:
- Files: Excel, CSV, JSON, PDF, etc.
- Databases: SQL Server, MySQL, Oracle, PostgreSQL, etc.
- Cloud-based data sources: Google Sheets, Salesforce, Amazon Redshift, etc.
- Web data connectors: Tableau can connect to web-based APIs and scrape data from websites.
- Big data sources: Hadoop, Spark, etc.
These are just a few examples, and Tableau supports many more data sources. You can also create custom connections using Tableau's APIs and SDKs.
Follow-up 2
What is the difference between a live connection and a data extract?
In Tableau, a live connection refers to a direct connection to the data source, where Tableau queries the data source in real-time to retrieve the latest data. This means that any changes in the data source will be immediately reflected in Tableau.
On the other hand, a data extract is a static snapshot of the data source that is stored locally in Tableau's proprietary format. When you create a data extract, Tableau retrieves the data from the data source and saves it in a compressed and optimized format. This allows for faster performance and offline access to the data, but it also means that the data extract needs to be refreshed periodically to reflect any changes in the data source.
The choice between a live connection and a data extract depends on factors such as the size of the data, the need for real-time updates, and the performance requirements of your analysis.
Follow-up 3
Can you connect to multiple data sources in a single Tableau workbook?
Yes, you can connect to multiple data sources in a single Tableau workbook. Tableau allows you to blend and join data from different sources to create a unified view for analysis and visualization.
To connect to multiple data sources, follow these steps:
- Connect to the first data source using the steps mentioned earlier.
- In the 'Data' pane, click on the 'Add' button to add another connection.
- Repeat the steps to connect to the second data source.
- Once you have connected to multiple data sources, you can blend the data by defining relationships between the tables or join the data using common fields.
By connecting to multiple data sources, you can combine data from different systems and sources to gain deeper insights and create comprehensive visualizations.
Follow-up 4
What are the steps to refresh a data source in Tableau?
To refresh a data source in Tableau, follow these steps:
- Open the Tableau workbook that contains the data source you want to refresh.
- In the 'Data' pane, locate the data source you want to refresh.
- Right-click on the data source and select 'Extract' or 'Refresh'.
- If you choose 'Extract', Tableau will retrieve the latest data from the data source and update the data extract.
- If you choose 'Refresh', Tableau will query the data source in real-time and update the workbook with the latest data.
You can also schedule automatic refreshes for your data sources in Tableau Server or Tableau Online, ensuring that your analysis is always based on up-to-date data.
2. What is a live connection in Tableau?
A live connection in Tableau is a direct, real-time connection to the underlying data source. Every time a user interacts with the view — applying a filter, hovering for a tooltip, or loading a dashboard — Tableau sends a query to the source and returns the latest results.
Key characteristics:
- Always current: Because queries run against the live source, any inserts, updates, or deletes made to the data are immediately visible without any refresh step.
- Relies on source performance: Query speed depends entirely on the database's response time. Well-indexed, high-performance databases (Snowflake, BigQuery, Redshift) are well-suited for live connections. Slower or heavily loaded databases can make dashboards feel sluggish.
- No local storage: Data is not stored in Tableau — the workbook holds only the query definitions and visual specifications.
When to use a live connection:
- The data changes frequently and stakeholders need real-time or near-real-time accuracy.
- The dataset is too large to extract and the underlying database is optimized for analytical queries.
- Data governance requires that all access go through the source system (e.g., for audit trail purposes).
Live vs. extract trade-off: Extracts (.hyper files) offer faster interaction and offline availability but require scheduled refreshes to stay current. Live connections sacrifice some speed for currency. Many teams use live connections to governed cloud warehouses (where query pushdown handles performance) and extracts for file-based or slower sources.
Follow-up 1
What are the advantages and disadvantages of using a live connection?
Advantages of using a live connection in Tableau include:
- Real-time data: With a live connection, you can access the most up-to-date data from the data source.
- Dynamic updates: Any changes or updates made to the data source will be immediately reflected in Tableau.
Disadvantages of using a live connection include:
- Performance: Live connections can be slower compared to using a data extract, especially when dealing with large datasets or complex queries.
- Dependency on data source: A live connection requires a stable and reliable connection to the data source. If the connection is lost, you won't be able to access the data in Tableau.
Follow-up 2
In what scenarios would you prefer to use a live connection over a data extract?
You might prefer to use a live connection over a data extract in the following scenarios:
- Real-time analysis: If you need to analyze real-time data and want to see the most up-to-date information, a live connection is the best option.
- Large datasets: If your dataset is too large to fit into memory or if it's constantly changing, a live connection allows you to work with the data without the need to create and refresh a data extract.
- Data source dependencies: If your analysis heavily relies on calculations or features that are only available in the data source, using a live connection ensures that you have access to all the necessary functionality.
Follow-up 3
How does Tableau handle updates in the data source when using a live connection?
When using a live connection, Tableau automatically queries the data source in real-time to retrieve the latest data. This means that any updates or changes made to the data source will be immediately reflected in Tableau.
Tableau uses a combination of techniques to optimize performance when working with live connections, such as query caching and query optimization. Additionally, Tableau provides options to control the frequency of data updates, allowing you to balance real-time data with performance considerations.
It's important to note that the behavior of Tableau when handling updates in the data source can vary depending on the specific data source and its capabilities. Some data sources may support real-time updates, while others may have limitations or require additional configuration.
3. What is a data extract in Tableau?
A data extract in Tableau is a local snapshot of data saved in Tableau's Hyper format (.hyper), stored either on disk or in Tableau Server/Cloud. Instead of querying the source system on every interaction, Tableau reads from the optimized extract file, dramatically improving dashboard responsiveness.
How extracts work:
- When you create an extract, Tableau queries the source, applies any extract filters you have defined, and saves the result as a
.hyperfile using Tableau's Hyper in-memory columnar engine. - The Hyper engine uses columnar storage and vectorized processing to execute analytical queries very fast — often returning results in milliseconds even for datasets with hundreds of millions of rows.
Extract options:
- Full extract: All rows matching the extract filter are loaded on each refresh.
- Incremental refresh: Only rows added since the last refresh (based on a date or integer column you specify) are appended. Much faster for large, append-only datasets.
- Extract filters: Pre-filter rows or columns at extract creation time to reduce file size and improve performance.
File format note: The current format is .hyper (introduced in Tableau 10.5). The older .tde (Tableau Data Extract) format is legacy and no longer generated by modern versions of Tableau.
When to use an extract:
- The source database is slow or has limited query concurrency.
- Users need offline access to data.
- You want to pre-aggregate data for a simplified published data source.
- Dashboard performance needs to be maximized regardless of source capabilities.
Trade-off: Extracts require a refresh schedule to stay current — they are a point-in-time snapshot, not a live view of the data.
Follow-up 1
What are the benefits of using data extracts?
Using data extracts in Tableau offers several benefits:
Improved performance: Data extracts are optimized for Tableau's analytical engine, resulting in faster query response times.
Offline access: Data extracts can be used to work with data when you are not connected to the data source.
Reduced data transfer: Extracts contain only the necessary data, reducing the amount of data transferred between Tableau and the data source.
Aggregation and calculations: Extracts allow you to pre-aggregate data and perform calculations, enabling faster analysis.
Data source independence: Extracts can be used as standalone data sources, allowing you to work with data from multiple sources without the need for live connections.
Follow-up 2
How can you create a data extract in Tableau?
To create a data extract in Tableau, follow these steps:
Connect to your data source in Tableau.
In the Data Source tab, select the data you want to include in the extract.
Right-click on the data source in the Connections pane and select Extract Data.
In the Extract Data dialog box, choose the options for your extract, such as filters, aggregation, and sorting.
Click Extract to create the data extract.
Note: You can also create a data extract by selecting Extract Data from the Data menu.
Follow-up 3
Can you schedule automatic updates for data extracts?
Yes, you can schedule automatic updates for data extracts in Tableau. To do this, follow these steps:
Open the workbook that contains the data extract.
In the Data Source tab, click on the Extract menu and select Extract Options.
In the Extract Options dialog box, select the Schedule tab.
Enable the Extract Refresh option and choose the frequency and time for the automatic updates.
Click OK to save the schedule.
Note: Automatic updates can only be scheduled for extracts that are published to Tableau Server or Tableau Online.
Follow-up 4
What happens when you refresh a data extract?
When you refresh a data extract in Tableau, the extract is updated with the latest data from the data source. This process involves querying the data source, retrieving the updated data, and replacing the existing data in the extract. Any changes made to the extract, such as filters or calculations, are preserved during the refresh. Refreshing a data extract can be done manually or scheduled to occur automatically at specified intervals.
4. How can you connect to a SQL database in Tableau?
To connect to a SQL database in Tableau, follow these steps:
Open a new data source: From the Start page or via Data > New Data Source, select the specific database connector — for example, MySQL, PostgreSQL, Microsoft SQL Server, Oracle, Amazon Redshift, or Snowflake. Each has a dedicated connector under the "To a Server" section.
Enter connection parameters: Provide the required details:
- Server: The hostname or IP address of the database server.
- Port: The database port (e.g., 5432 for PostgreSQL, 3306 for MySQL, 1433 for SQL Server).
- Database: The target database name.
- Authentication: Username and password, or Windows Authentication (for SQL Server), or OAuth/SSO where supported.
Sign in and select data: Click "Sign In." Tableau connects and displays the available schemas and tables. Drag one or more tables onto the canvas to begin building the data model.
Use joins or relationships: Multiple tables from the same database can be combined using Relationships (the default, context-aware method) or by switching to the physical layer to define explicit inner, left, right, or full outer joins.
Write custom SQL if needed: Click "New Custom SQL" in the left panel to write a SQL query directly. This is useful for complex aggregations, CTEs, or when you need a specific result set that cannot be expressed through the drag-and-drop interface.
Choose live or extract: For production dashboards backed by high-performance cloud warehouses (Snowflake, BigQuery, Redshift), live connections work well. For slower databases or offline use, create a Hyper extract.
Performance tip: When writing custom SQL or selecting tables, apply initial filters early (via extract filters or the WHERE clause in custom SQL) to reduce the volume of data Tableau retrieves.
Follow-up 1
What information do you need to establish the connection?
To establish a connection to a SQL database in Tableau, you typically need the following information:
- Server name or IP address: The address of the server where the database is hosted.
- Port number: The port number on which the database is listening (default is usually 3306 for MySQL, 5432 for PostgreSQL, and 1433 for SQL Server).
- Database name: The name of the database you want to connect to.
- Authentication credentials: The username and password required to access the database.
Depending on the specific database and its configuration, additional information may be required, such as SSL settings or specific connection options.
Follow-up 2
Can you write custom SQL queries in Tableau?
Yes, you can write custom SQL queries in Tableau. Tableau provides a built-in SQL editor that allows you to write and execute SQL queries directly within the software.
To write a custom SQL query in Tableau, follow these steps:
- Connect to your SQL database using the steps mentioned earlier.
- In the 'Connect' pane, select the appropriate tables or views you want to use in your query.
- Click on the 'Sheet' tab to switch to the worksheet view.
- In the top menu, go to 'Data' and select 'New Custom SQL'.
- In the SQL editor, write your custom SQL query.
- Click on the 'OK' button to execute the query and retrieve the data.
Note that writing custom SQL queries requires knowledge of SQL syntax and database structure. It is recommended to have a good understanding of the database schema and the data you are working with.
Follow-up 3
How can you optimize the performance of a SQL connection in Tableau?
To optimize the performance of a SQL connection in Tableau, you can consider the following tips:
- Use data source filters: Apply filters to limit the amount of data retrieved from the database. This can reduce the query execution time and improve performance.
- Use extracts instead of live connections: Extracts are a snapshot of the data stored in Tableau's proprietary format. Using extracts can improve performance by reducing the amount of data transferred between Tableau and the database.
- Aggregate data at the database level: Whenever possible, perform aggregations and calculations directly in the SQL query instead of relying on Tableau's calculations. This can offload the processing to the database server and improve performance.
- Optimize database performance: Ensure that the SQL database is properly indexed and tuned for performance. This can involve creating indexes on frequently used columns, optimizing query execution plans, and monitoring database performance metrics.
By following these best practices, you can optimize the performance of your SQL connections in Tableau and improve the overall user experience.
5. Can you connect to cloud-based data sources in Tableau?
Yes, Tableau connects natively to a wide range of cloud-based data sources. As of 2026, the most commonly used cloud connectors include:
Cloud data warehouses:
- Snowflake
- Google BigQuery
- Amazon Redshift
- Azure Synapse Analytics
- Databricks (via Spark SQL connector)
Cloud storage and file services:
- Google Sheets
- OneDrive / SharePoint (via Excel connector)
- Amazon S3 (via Athena or through Prep Builder)
SaaS applications:
- Salesforce (CRM data)
- Google Analytics 4
- ServiceNow
- Marketo
- HubSpot
Connection method: Most cloud sources use OAuth for authentication, so credentials are managed securely without storing passwords in the workbook. For cloud warehouses, Tableau leverages query pushdown — Tableau's VizQL engine generates SQL that runs natively on the warehouse, taking advantage of the warehouse's own compute power and scaling.
Tableau Cloud with on-premises data: If you are using Tableau Cloud (the SaaS platform) and need to query on-premises data sources, Tableau Bridge acts as a relay agent installed on your network that routes queries from Tableau Cloud to local databases, enabling scheduled extract refreshes and live connections without opening firewall ports.
Connecting to cloud sources in Tableau follows the same workflow as any other connection — select the connector, authenticate, and begin building the data model in the Data Source tab.
Follow-up 1
Which cloud-based data sources are supported by Tableau?
Tableau supports a wide range of cloud-based data sources, including but not limited to:
- Amazon Redshift
- Google BigQuery
- Microsoft Azure SQL Database
- Snowflake
- Salesforce
- Google Analytics
- Amazon S3
- Microsoft OneDrive
These are just a few examples, and Tableau can connect to many other cloud-based data sources as well.
Follow-up 2
What are the steps to connect to a cloud-based data source?
To connect to a cloud-based data source in Tableau, follow these steps:
- Open Tableau Desktop.
- Click on the "Connect" button.
- Select the appropriate cloud-based data source from the list of available options.
- Enter the necessary credentials and connection details.
- Click on the "Connect" button to establish the connection.
Once the connection is established, you can start analyzing and visualizing the data from the cloud-based data source in Tableau.
Follow-up 3
How does Tableau handle data security when connecting to a cloud-based data source?
Tableau takes data security seriously and provides several features to ensure the security of data when connecting to a cloud-based data source. Some of these features include:
- Secure connections: Tableau uses secure protocols (such as SSL/TLS) to establish encrypted connections between Tableau and the cloud-based data source.
- Authentication: Tableau supports various authentication methods (such as username/password, OAuth, etc.) to verify the identity of the user connecting to the data source.
- Data encryption: Tableau can encrypt the data in transit and at rest to protect it from unauthorized access.
- Role-based access control: Tableau allows administrators to define roles and permissions to control who can access and interact with the data in the cloud-based data source.
These are just a few examples of how Tableau ensures data security when connecting to cloud-based data sources.
6. What is Tableau Bridge and when would you use it?
Tableau Bridge is a lightweight client application installed in a private network (on-premises or customer-managed cloud) that enables Tableau Cloud to access data sources that are not publicly reachable on the internet.
When you need it:
- Your organization uses Tableau Cloud (SaaS) but some data lives behind a corporate firewall — in an on-premises database, a private data warehouse, or a VPN-protected system.
- You want scheduled extract refreshes or live connections from Tableau Cloud to those private data sources.
How it works:
- Bridge is installed on a machine inside the private network.
- It maintains an outbound connection to Tableau Cloud (no inbound firewall rules needed).
- Tableau Cloud routes data requests through Bridge to the private data source.
Supported connection types:
- Live connections — supported for relational databases (SQL Server, Oracle, PostgreSQL, etc.) via Bridge.
- Extract refreshes — supported for most connector types.
Limitations:
- Bridge is not needed when using Tableau Server (self-hosted); it is only relevant to Tableau Cloud.
- Some cloud-native connectors (e.g., Snowflake, BigQuery with public endpoints) do not require Bridge since Tableau Cloud can reach them directly.
Live mock interview
Mock interview: Connecting to Data
- Read your scene and goals
- Talk it out; goals tick off live
- Get a score and stronger lines
Your voice and your AI key never touch our servers; the key stays in this browser and is sent only to Google. Only your round scores are saved to track progress.