A company needs to ensure compliance with security policies in its GitHub repositories. Which feature should they enable?
ADependabot Alerts
BCode Scanning
CBranch Protection Rules
DIssue Templates
Explanation
Branch Protection Rules are vital for enforcing security policies; the other options are more focused on dependency management or issue tracking.
Q12
What happens when an Azure Policies compliance check fails?
AThe resource is immediately deleted
BNotifications are sent only to IT teams
CThe resource is marked as non-compliant
DAll resources become compliant automatically
Explanation
A failing compliance check results in the resource being marked as non-compliant, while the other options contain inaccurate consequences.
Q13
Which service helps monitor GitHub repositories for vulnerabilities?
AGitHub Advanced Security
BAzure DevOps
CCodeQL
DAzure Security Center
Explanation
GitHub Advanced Security monitors repositories for vulnerabilities; the others do not specifically focus on GitHub.
Q14
A company needs to secure sensitive data in their GitHub repositories. What should they do?
AUse private repositories
BIncrease repository visibility
CAvoid using branches
DDisable two-factor authentication
Explanation
Using private repositories restricts access to sensitive data; the other options do not improve security.
Q15
What happens when a commit is made with secret credentials in GitHub?
AIt is automatically removed
BIt triggers an alert
CNothing happens
DThe repository is locked
Explanation
GitHub scans for secrets in commits and can trigger an alert; other options are incorrect outcomes for secret detection.
Q16
Which service is used for automated security scanning in GitHub?
AGitHub Advanced Security
BAzure Data Lake
CAzure Monitor
DGitHub Actions
Explanation
GitHub Advanced Security provides automated security scanning, while the others serve different purposes.
Q17
A company needs to implement code scanning in their CI/CD pipeline. What should they integrate?
AGitHub Dependabot
BStatic Code Analysis
CBranch Protection
DGitHub Insights
Explanation
Static Code Analysis tools specifically analyze code for vulnerabilities, while other options address different aspects of CI/CD.
Q18
You are configuring branch protection rules in GitHub. What happens when you enable 'require pull request reviews'?
AAutomatic merges are allowed.
BNo review required for changes.
CAll changes must be reviewed.
DMerge conflicts are automatically resolved.
Explanation
Enabling this option mandates that all changes receive reviews before merging, while the other options are incorrect based on this configuration.
Q19
Which service is used for monitoring GitHub repositories?
AGitHub Insights
BGitHub Security Alerts
CGitHub CodeQL
DGitHub Actions
Explanation
GitHub Security Alerts monitors repositories for vulnerabilities; others serve different functions.
Q20
A company needs to restrict access to its GitHub repositories for specific IP ranges. What should they use?
ABranch Protection Rules
BIP Allow List
CCode Owners
DGitHub Actions
Explanation
IP Allow List specifically limits access by IP ranges; others do not control IP access.