What happens when you enable Push Protection in GitHub?
AAutomatically merges pull requests
BExcludes sensitive data from commits
CPrevents sensitive data from being pushed
DLogs all commit history
Explanation
Push Protection prevents secrets and sensitive data from being pushed to the repository, while the other options describe unrelated functionalities.
Q112
Which service can automatically scan code for vulnerabilities?
AGitHub Advanced Security
BAzure DevOps
CAzure Monitor
DAzure Storage
Explanation
GitHub Advanced Security includes features for automatically scanning code for vulnerabilities; the others do not focus on code scanning.
Q113
A company needs to enforce least privilege for its Azure resources. Which Azure feature should they implement?
AResource Locks
BRole-Based Access Control
CAzure Functions
DVirtual Networks
Explanation
Role-Based Access Control (RBAC) allows for enforcing least privilege by assigning roles; other options do not focus on access control.
Q114
What happens when you change a repository's visibility to private in GitHub?
AAll forks are deleted
BPublic issues are removed
COnly admins can access
DAPI keys become invalid
Explanation
Changing visibility to private restricts access to admins and selected users; forks and issues remain unaffected.
Q115
Which service facilitates secret management in Azure?
AAzure Key Vault
BAzure Blob Storage
CAzure Monitor
DAzure App Service
Explanation
Azure Key Vault is designed for managing secrets, while the other options serve different purposes.
Q116
A company needs to ensure only authorized users can push code to their GitHub repository. Which feature should they enable?
ABranch protection rules
BIssue tracking
CCollaborator invitations
DRepository archive
Explanation
Branch protection rules restrict who can push changes, while the others do not provide access control.
Q117
You are configuring Code Scanning for your repository. What happens when a security vulnerability is detected during a CI/CD pipeline execution?
ABuild fails immediately
BNotification sent only
CBuild continues as normal
DVulnerability ignored by default
Explanation
The build fails immediately to maintain security, while the others do not provide appropriate responses to vulnerabilities.
Q118
Which service provides vulnerability scanning for dependencies?
AGitHub Dependency Graph
BGitHub Actions
CAzure Container Registry
DAzure Monitor
Explanation
GitHub Dependency Graph scans repositories for vulnerabilities, while others do not serve this specific purpose.
Q119
A company needs to enforce consistent code quality checks on all pull requests. What should they implement?
ARobots.txt
BBranch policies
CCode snippets
DMarkdown templates
Explanation
Branch policies automate checks, unlike the options which do not enforce consistent checks.
Q120
You are configuring GitHub Advanced Security for a public repository. What happens if a sensitive file is detected?
AFile is automatically deleted
BNotification is sent to repo owner
CFile is moved to a private repo
DSensitive data is anonymized
Explanation
A notification is sent to alert the owner; other options are not standard behaviors in this scenario.