You are configuring a pull request in Azure DevOps. Which feature ensures only approved reviewers can approve changes?
ABranch Policies
BCode Analysis
CBuild UI
DWeb Hooks
Explanation
Branch Policies enforce specific conditions for pull requests, including required reviewer approvals, while the other options do not ensure approval restrictions.
Q2
A company needs to store sensitive information securely in their GitHub repositories. Which feature should they enable?
ASecret Scanning
BBranch Protection
CCodespaces
DDiscussion Boards
Explanation
Secret Scanning identifies and alerts users about sensitive data, while the other features do not specifically target information security.
Q3
What happens when you enable GitHub Advanced Security for your repository?
AAutomatically approves all pull requests
BDetects vulnerabilities in the repository
CEliminates all commits instantly
DDisables branch protection rules
Explanation
Enabling GitHub Advanced Security allows detection of vulnerabilities, while the other options misrepresent its functions.
Q4
Which service provides static code analysis for vulnerabilities in code repositories?
AGitHub Secret Scanning
BDependabot
CCodeQL
DAzure Container Instances
Explanation
CodeQL performs static analysis to identify vulnerabilities; the others serve different purposes.
Q5
A company needs secure branch protection for their GitHub repository. What should they implement?
AManual peer reviews
BBranch protection rules
COpen merge requests
DEnable 2FA
Explanation
Branch protection rules enforce policies like required reviews before merging; others are not sufficient.
Q6
You are configuring GitHub Actions to run tests on every pull request. What is crucial to avoid unintended deployments?
ASet environment variables
BDefine job conditions
CCreate new branches
DIncrease action timeout
Explanation
Defining job conditions prevents deployment unless conditions are met; the others don't prevent unintended actions.
Q7
Which service helps automate security assessments in GitHub?
AGitHub Code Scanning
BGitHub Actions
CGitHub Packages
DGitHub Discussions
Explanation
GitHub Code Scanning automates security assessments; others are for CI/CD, package management, or community engagement.
Q8
A company needs to prevent secret exposure in GitHub repositories. What should they implement?
ABranch protection rules
BSecret scanning
CCode review process
DIssues template
Explanation
Secret scanning specifically detects and alerts on sensitive information; other options do not directly address secret exposure.
Q9
You are configuring dependencies for a project in GitHub. What happens if you enable Dependabot alerts?
AAutomatic pull requests for updates
BAlerts for security vulnerabilities
CAll vulnerabilities are fixed automatically
DCode styles are enforced
Explanation
Dependabot alerts notify about security vulnerabilities, while the other options are incorrect or misleading.
Q10
Which service provides secret storage in Azure?
AAzure Key Vault
BAzure Blob Storage
CAzure SQL Database
DAzure DevOps
Explanation
Azure Key Vault is designed for securely managing secrets, while the other options do not specifically provide this function.