Pre-commit Flashcards

1
Q

List the pre-checks that DBT use

A

Trufflehog
Checkov
terraform fmt
terraform validate
tflint
terraform test
python tests - unit tests for python code within the terraform modules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Trufflehog

A

security linter designed for developers to scan their code repositories for secrets accidentally committed to version control. Trufflehog can detect credentials like API keys, tokens, and private keys.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Checkov

A

policy-as-code. Checkov scans cloud infrastructure configurations to find misconfigurations before they’re deployed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is terraform fmt

A

The terraform fmt command is used to rewrite Terraform configuration files to a canonical format and style.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is terraform validate

A

The terraform validate command validates the configuration files in a directory, referring only to the configuration and not accessing any remote services such as remote state, provider APIs, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is tflint

A

is a Terrafom linter. It can :
- Find possible errors (like invalid instance types) for Major Cloud providers (AWS/Azure/GCP).
- Warn about deprecated syntax, unused declarations.
- Enforce best practices, naming conventions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is terraform test

A

The terraform test command reads in Terraform testing files and executes the tests within.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly