Metabase Interview Questions and Answers
· AI2SQL
Short answer: most Metabase interviews check five things: whether you know the difference between query-builder questions and native SQL, how you use variables and Field Filters, how you build models and dashboards that others can reuse, how permissions work, and how you keep dashboards fast. Below are the questions that come up, with short answers you can expand on.
If the interview includes live SQL, practice on a real schema: AI2SQL writes and explains the SQL behind a question, so you can check your own answers.
Basics
- What is Metabase and who uses it? An open-source BI tool for asking questions of a database and sharing charts and dashboards. Analysts write SQL; business users click through questions and filters.
- Which databases can Metabase connect to? PostgreSQL, MySQL, MariaDB, SQL Server, BigQuery, Snowflake, Redshift, Oracle, SQLite and others, including community drivers.
- Open source vs Pro/Enterprise? The open-source edition has questions, SQL, dashboards, models and basic permissions. Paid editions add things like row- and column-level security, advanced caching controls, SSO options, official collections and audit tools.
- What is a collection? A folder for saved questions, models and dashboards, with its own permissions.
Questions and SQL
- Query builder or native SQL: when do you use which? The query builder for anything simple so it stays drillable and filterable; native SQL for window functions, CTEs, complex joins or database-specific features.
- What are variables?
{{name}}placeholders that turn into filter widgets. Types: text, number, date and Field Filter. - What is a Field Filter and why is it special? A variable mapped to a column. It writes the whole condition for you (
WHERE {{created_at}}), shows the column’s values in the widget and connects to dashboard filters. - How do you make a filter optional in native SQL? Wrap the clause in double square brackets:
[[AND status = {{status}}]]. If the filter is empty, the clause is dropped. - What are snippets? Reusable pieces of SQL (a common join or a metric definition) inserted with
{{snippet: name}}. - How would you write “revenue by month for the last 12 months” in native SQL? Group by a truncated date and filter on the date range, for example in PostgreSQL:
SELECT date_trunc('month', created_at) AS month, SUM(total) FROM orders WHERE created_at >= now() - interval '12 months' GROUP BY 1 ORDER BY 1;
Models, metrics and dashboards
- What is a model and why use it? A saved, cleaned dataset that others build on. It hides messy tables, fixes column names and types, and gives one place to change logic.
- What is a metric? A saved calculation (such as revenue or active users) defined once so every question uses the same definition.
- How do you connect a dashboard filter to cards? Add the filter to the dashboard, then map it to the right column or variable on each card. Cards that are not mapped ignore it.
- What is click behaviour / cross-filtering? Clicking a value on one card can filter the rest of the dashboard or open another dashboard with that value passed in.
- How do you share a dashboard outside the company? A public link or embedding (static/signed embedding, or interactive embedding in paid editions), with locked parameters so viewers only see their own data.
Permissions and governance
- How do data permissions work? Per group: which databases, schemas and tables it can query, and whether it can use native SQL.
- Why restrict native SQL access? Because SQL bypasses table-level restrictions in the query builder; only trusted groups should have it.
- How do you give each customer only their own rows? Row-level security (sandboxing) in paid editions, or locked parameters with signed embedding.
- How do you keep definitions consistent across teams? Models, metrics, snippets, verified or official content, and descriptions on tables and columns.
Performance and operations
- A dashboard is slow. What do you check first? Which cards are slow, then the SQL: missing indexes or partition filters,
SELECT *, huge date ranges, and joins without conditions. - What does caching do? Stores results for a set time so repeat views do not hit the database. Useful for heavy queries on data that changes slowly.
- How do you reduce load on the production database? Point Metabase at a read replica or a warehouse, use a read-only database user, cache heavy questions and pre-aggregate with models or scheduled tables.
- Where is Metabase’s own data stored? In its application database (H2 by default, which is not recommended for production; use PostgreSQL or MySQL).
- How do you upgrade Metabase safely? Back up the application database, upgrade a staging copy first, then production.
- How would you send a report every Monday? Create a dashboard subscription (or an alert on a question) to email or Slack on a schedule.
Related guides
- Metabase SQL queries tutorial
- Metabase native SQL examples
- How to use Metabase: SQL dashboard step by step
Frequently asked questions
What is Metabase?
Metabase is an open-source business intelligence tool. It connects to databases such as PostgreSQL, MySQL, SQL Server, BigQuery and Snowflake and lets people ask questions with a visual query builder or native SQL, then save the results as charts and dashboards.
What is the difference between a question and a native SQL query in Metabase?
A question built with the query builder is assembled from tables, filters and summaries without writing SQL, so it works with Metabase features like drill-through and automatic filters. A native SQL query is written by hand in the SQL editor; it can do anything the database supports but loses some of the click-through behaviour unless you add variables.
What are variables in Metabase native SQL?
Variables are placeholders in double curly braces, such as {{start_date}}, that become filter widgets. A Field Filter variable is mapped to a column, so it can show the column's values and connect to dashboard filters.
What is a model in Metabase?
A model is a curated, saved dataset (built from a question or SQL) with cleaned column names, types and descriptions. Other people start new questions from the model instead of raw tables.
How do dashboard filters work in Metabase?
A dashboard filter is wired to a column or variable in each card. When a viewer picks a value, every connected card re-runs with that filter. Native SQL cards need a Field Filter or a text or number variable to be connected.
How do you control who sees what data in Metabase?
Through groups and permissions: data permissions decide which databases, schemas and tables a group can query (and whether it can write native SQL), and collection permissions decide which saved questions and dashboards it can see. Row-level and column-level restrictions are available in the paid editions.