Bird
0
0

Given this profiles.yml snippet, which schema will dbt use when running with --target staging?

medium📝 Predict Output Q4 of 15
dbt - Production Deployment
Given this profiles.yml snippet, which schema will dbt use when running with --target staging?
my_project:
  outputs:
    staging:
      type: redshift
      host: redshift-cluster.example.com
      user: analyst
      password: secret
      port: 5439
      dbname: analytics_db
      schema: staging_schema
  target: staging
Aanalytics_db
Bredshift-cluster.example.com
Cstaging_schema
Danalyst
Step-by-Step Solution
Solution:
  1. Step 1: Identify the target environment

    The command uses --target staging, so the staging output is selected.
  2. Step 2: Locate the schema in the staging output

    The schema is defined as staging_schema under the staging output.
  3. Final Answer:

    staging_schema -> Option C
  4. Quick Check:

    Schema is specified under target output [OK]
Quick Trick: Schema comes from the target's output config [OK]
Common Mistakes:
MISTAKES
  • Confusing database name with schema
  • Selecting host or user as schema
  • Ignoring the target flag in the command

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes