Which service primarily helps in scanning dependencies for vulnerabilities?
AGitHub Dependabot
BGitGuard
CAzure DevOps
DMicrosoft Sentinel
Explanation
GitHub Dependabot scans for vulnerabilities in dependencies, while the others focus on different aspects of security or CI/CD.
Q122
A company needs to ensure that its repository complies with specific policies. What should they use?
ABranch Protection Rules
BActions Workflow
CVulnerability Alerts
DSecrets Store
Explanation
Branch Protection Rules ensure compliance with specific repository policies, while the others do not enforce such regulations directly.
Q123
What happens when a pull request is created with unapproved changes?
AIt merges automatically
BTriggers a security scan
CGets blocked by rules
DConflicts are resolved automatically
Explanation
Pull requests with unapproved changes are blocked by branch protection rules, while the others describe incorrect or overly simplistic behaviors.
Q124
Which service can automatically scan for vulnerabilities in GitHub repositories?
AGitHub Advanced Security
BAzure Policy
CAzure DevOps
DGitHub Actions
Explanation
GitHub Advanced Security provides automatic vulnerability scanning, while the others focus on different aspects of development or governance.
Q125
A company needs to audit all pull requests for secret leakage. Which feature should they implement?
ASecret scanning
BBranch protection rules
CGitHub Actions
DCode reviewers
Explanation
Secret scanning proactively identifies sensitive data in pull requests, whereas the other options do not directly address secret leakage.
Q126
What happens when a code owner does not approve a pull request?
APull request merges automatically
BMerge is blocked until approved
CCode owners receive a notification only
DApproval is ignored by default
Explanation
A pull request cannot be merged without approval from designated code owners, ensuring code review compliance.
Q127
Which service provides code scanning for security vulnerabilities?
AGitHub Codespaces
BGitHub Advanced Security
CGitHub Pages
DGitHub Discussions
Explanation
GitHub Advanced Security includes features for code scanning, while others focus on different functionalities.
Q128
A company needs to enforce security policies on their GitHub repositories. What should they use?
ABranch protection rules
BIssue templates
CProject boards
DLabels
Explanation
Branch protection rules enforce policies, whereas the others are organizational tools without enforceable security features.
Q129
You are configuring GitHub Actions for continuous deployment. What happens if a secret is accidentally exposed in logs?
AIt is permanently deleted.
BHaving an exposed secret revokes access.
CThe access token remains active.
DLogs are automatically purged.
Explanation
Exposed secrets do not automatically invalidate the access token; manual revocation is required.
Q130
Which service enables automated security checks on code?