You are configuring Azure Policy for compliance. What happens when a new resource is created that violates an existing policy?
AResource creation is denied
BResource is tag compliant
CPolicy is automatically updated
DResource is placed in quarantine
Explanation
Azure Policy denies the creation of non-compliant resources, while the other options are incorrect actions taken.
Q52
Which service enables automated code scanning for vulnerabilities?
AGitHub Advanced Security
BAzure DevOps
CAzure Monitor
DGitHub Actions
Explanation
GitHub Advanced Security provides automated vulnerability scanning, while the others do not solely focus on security scanning.
Q53
A company needs to identify secrets in their GitHub repositories. What can they use to accomplish this?
ASecret scanning
BCodeQL
CDependabot
DActions Logs
Explanation
Secret scanning specifically detects sensitive information like API keys in repositories, unlike the other options.
Q54
You are configuring policies for a GitHub repository. What happens when a branch protection rule is set?
ADirect pushes are allowed
BPull requests requires reviews
CCommits are disabled
DAutomatic deletion of branches
Explanation
Branch protection rules typically require pull requests to have specific checks passed, while the other options contradict protection logic.
Q55
Which service in Azure provides advanced threat protection for GitHub repositories?
AAzure DevOps
BAzure Security Center
CGitHub Advanced Security
DAzure Sentinel
Explanation
GitHub Advanced Security is designed specifically for security in GitHub repositories, while the others focus on broader Azure security.
Q56
A company needs to monitor its GitHub repositories for code vulnerabilities. What should they enable?
ADependabot alerts
BGitHub Actions
CCode reviews
DProject boards
Explanation
Dependabot alerts provide notifications about vulnerabilities in dependencies, while the other options do not monitor for vulnerabilities.
Q57
You are configuring branch protection rules in GitHub. What happens when a rule is set to require pull request reviews before merging?
AAutomatically merges the pull request
BBlocks all direct pushes
CRequires a review from at least one user
DAllows merges without reviews
Explanation
Requiring reviews means at least one approval is needed for merging, while the other options misrepresent branch protection rules.
Q58
Which service provides static application security testing in GitHub?
AGitHub Code Scanning
BAzure DevOps
CGitHub Actions
DGitHub Pages
Explanation
GitHub Code Scanning is specifically designed for static application security testing, unlike the others.
Q59
A company needs to ensure secrets are not exposed in GitHub repositories. What should they implement?
ABranch Protection Rules
BSecret Scanning
CCode Quality Checks
DPull Request Reviews
Explanation
Secret Scanning identifies and prevents exposure of sensitive information, while the others focus on code quality.
Q60
You are configuring a workflow in GitHub Actions for deploying code. What happens when a workflow fails due to a syntax error?
AWorkflow continues executing subsequent jobs
BNext workflow in the sequence runs
CWorkflow fails, and no jobs execute
DOnly non-syntax-related jobs run
Explanation
A syntax error prevents the workflow from running any jobs, halting execution completely.