Quiz: BI / Tableau / PowerBI
BI / Tableau / PowerBI questions from real interviews as a quiz, with an explanation for every option.
Try it: 5 questions
Loading…
Sample questions
Which statement best describes the difference between TCP and UDP?
- TCP is only for local networks, while UDP is only for the internet.
- TCP sends data without a connection, while UDP establishes a connection before sending.
- Both TCP and UDP guarantee delivery, but only UDP preserves packet order.
- TCP establishes a connection and provides ordered delivery; UDP sends datagrams without those guarantees.
In DAX, how can you count rows where
DueDatefalls between one and two calendar months before today, inclusive?- Filter for
DueDate >= EDATE(TODAY(), -2)andDueDate <= EDATE(TODAY(), -1), then useCOUNTROWS. - Filter for dates from
TODAY() - 60toTODAY() - 30, then useCOUNTROWS. - Filter for
DATEDIFF(DueDate, TODAY(), MONTH) = 1, then useCOUNTROWS. - Filter for
DueDate >= EOMONTH(TODAY(), -2)andDueDate <= EOMONTH(TODAY(), -1), then useCOUNTROWS.
- Filter for
A Power BI model has valid active 1:N relationships between a fact table and its lookup tables. There is no need to preserve historical attribute snapshots or apply special matching logic. What should you usually do with fact-table columns created using
RELATEDorLOOKUPVALUEto copy lookup attributes?- Keep them solely to speed up model refreshes
- Replace them with
LOOKUPVALUEcolumns to make filtering faster - Remove them and use the lookup-table attributes directly
- Keep them because lookup attributes are unavailable in visuals without copies
In an SQL dialect that supports
LIMITandOFFSET, which query returns users' names from the third through the seventh row, inclusive, after sorting alphabetically?SELECT name FROM users ORDER BY name LIMIT 7 OFFSET 2;SELECT name FROM users ORDER BY name LIMIT 5 OFFSET 2;SELECT name FROM users ORDER BY name LIMIT 5 OFFSET 3;SELECT name FROM users ORDER BY name LIMIT 2 OFFSET 5;
What does a
LEFT JOINreturn when joining two tables?- Only rows that have a match in both tables.
- Every row from the right table and matching rows from the left; unmatched left-side values are
NULL. - Every row from both tables, including unmatched rows with
NULLvalues for the other table's columns. - Every row from the left table and matching rows from the right; unmatched right-side values are
NULL.
What is the main difference between Docker and Kubernetes?
- Docker and Kubernetes are two names for the same containerization platform.
- Docker distributes traffic across servers; Kubernetes runs an application in a single container.
- Docker manages a container cluster; Kubernetes builds application images.
- Docker creates and runs containers; Kubernetes manages them in a cluster.
Which statement correctly describes the difference between
INNER JOINandFULL JOIN?INNER JOINreturns only unmatched rows;FULL JOINreturns only matching rows.INNER JOINreturns matching rows;FULL JOINreturns matching and unmatched rows from both tables.INNER JOINreturns every row from the left table;FULL JOINreturns only matching rows.INNER JOINreturns every row from both tables;FULL JOINreturns only rows from the left table.
How can you select the latest record for each customer with a window function, while making the result deterministic when creation times tie?
- Use
ROW_NUMBER()ordered bycreated_at DESCwithoutPARTITION BY, then keeprn = 1. - Use
ROW_NUMBER()withPARTITION BY customer_idand order bycreated_at ASC, then keeprn = 1. - Group rows by
customer_idand selectMAX(created_at), then return the other columns. - Use
ROW_NUMBER()withPARTITION BY customer_idand order bycreated_at DESC, order_id DESC, then keeprn = 1.
- Use
How should you calculate a metric’s change between two reporting dates in a BI report?
- Subtract the baseline value from the current value, then always divide the result by the current value.
- Get the values for the baseline and current dates under comparable filters; calculate the difference and percentage change, handling a zero baseline.
- Compare the values on the two dates without aligning filters, and calculate percentage change for any baseline value.
- Compare the values on both dates, then calculate percentage change as the baseline value divided by the current value.
What does
newArraycontain after this code runs?const array = [{ title: 'A', value: 1 }, { title: 'B', value: 2 }]; const newArray = array.map(item => item.value);[1, 2][{ value: 1 }, { value: 2 }]['A', 'B'][0, 1]