GitHub Copilot — Question 12

A secret scanning alert should be closed as “used in tests” when a secret is:

Answer options

Correct answer: B

Explanation

The correct answer is B because a secret that is solely used for testing purposes indicates that it is not a risk in production environments. Option A is incorrect as a test file may contain other content, and options C and D do not specifically define the secret's intended use in relation to testing.