Q1. Which of the following is a key security control for Git repositories?
- A.Storing secrets in code
- B.Pre-commit hooks and secret scanning✓ Correct
- C.Disabling branch protection
- D.No code reviews
Explanation: Pre-commit hooks can prevent secrets from being committed. Learn more.