nerdexam
Microsoft

GH-500 · Question #37

Where can you find a deleted line of code that contained a secret value?

The correct answer is B. Dependency graph. NOTE: The marked answer (B - Dependency graph) appears to be incorrect for this question. The Dependency graph tracks package dependencies, not source code line history. The technically correct answer is C - Commits. When a line of code containing a secret is deleted, it still…

Configure and use Dependabot and Dependency Review

Question

Where can you find a deleted line of code that contained a secret value?

Options

  • AIssues
  • BDependency graph
  • CCommits
  • DInsights

How the community answered

(17 responses)
  • A
    6% (1)
  • B
    76% (13)
  • C
    12% (2)
  • D
    6% (1)

Explanation

NOTE: The marked answer (B - Dependency graph) appears to be incorrect for this question. The Dependency graph tracks package dependencies, not source code line history. The technically correct answer is C - Commits. When a line of code containing a secret is deleted, it still exists in the repository's git commit history. You can find it by browsing commit diffs, where deleted lines appear in red. GitHub's secret scanning can also detect secrets in historical commits. The dependency graph has no mechanism for displaying deleted source code lines.

Topics

#Secret scanning#Dependency Graph#Dependency Review#Historical data

Community Discussion

No community discussion yet for this question.

Full GH-500 Practice