Which ref() syntax correctly pins a reference to version 3 of a model named dim_products?
- A.
ref('dim_products', version='3')only, as a string - B.
ref('dim_products_v3') - C.
ref('dim_products', v=3)✓ Correct - D.
ref('dim_products@3')
Explanation
dbt supports ref('model_name', v=3) (and the longer keyword version=3) to pin to a specific version. Referencing dim_products_v3 as a bare name is incorrect: the node's name is dim_products, with version as separate metadata — dbt would not resolve it. The version argument does not have to be a quoted string; it matches the v value declared in YAML, which is commonly numeric. The @ syntax does not exist in dbt.