What is the primary purpose of creating a security policy in a repository?
A.
To ensure that peer code review occurs before new changes are merged
B.
To define which types of secrets are blocked with push protection
C.
To describe how security vulnerabilities should be responsibly disclosed
D.
To customize the repository's Dependabot configuration
The Answer Is:
C
This question includes an explanation.
Explanation:
The primary purpose of creating a security policy in a GitHub repository is to guide users and contributors on how to report security vulnerabilities in a responsible and secure manner. This policy outlines the preferred method of communication, timelines, and any other pertinent information related to handling security issues.
Security Policy:
Option C is correct because a security policy provides guidelines for responsibly disclosing security vulnerabilities. This helps maintainers respond to and address security concerns promptly and securely, thereby protecting the project and its users.
Incorrect Options:
Option A is incorrect because ensuring peer code review is a best practice for code quality, but it is not the primary purpose of a security policy.
Option B is incorrect because push protection for secrets is managed through repository settings, not the security policy.
Option D is incorrect because customizing Dependabot configuration is related to dependency management, not directly to security policies.
[References:, GitHub Docs: Adding a Security Policy to Your Repository, , =================, ]
GH-900 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 60% Discount on All Products,
Use Coupon: "8w52ceb345"