Bird
0
0

Which of the following is the correct syntax to pin dbt version 1.2.3 in dbt_project.yml?

easy📝 Syntax Q3 of 15
dbt - Packages and Reusability
Which of the following is the correct syntax to pin dbt version 1.2.3 in dbt_project.yml?
Arequire-dbt-version: ~1.2.3
Brequire_dbt_version: '1.2.3'
Crequire-dbt-version: '1.2.3'
Drequire-dbt-version: >=1.2.3
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct key and syntax

    The correct key is require-dbt-version with a string value for exact version.
  2. Step 2: Check version format

    Exact pin uses '1.2.3' without operators like >= or ~.
  3. Final Answer:

    require-dbt-version: '1.2.3' -> Option C
  4. Quick Check:

    Exact version pin = require-dbt-version: '1.2.3' [OK]
Quick Trick: Use require-dbt-version with quotes for exact pin [OK]
Common Mistakes:
MISTAKES
  • Using underscore instead of dash in key
  • Using version operators for exact pin
  • Omitting quotes around version string

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes