Which service can protect against vulnerabilities in open source components?
AGitHub Dependabot
BAzure Defender
CAWS GuardDuty
DGitHub Actions
Explanation
GitHub Dependabot automatically checks for vulnerable dependencies, while others do not focus specifically on this.
Q62
A company needs to monitor its GitHub repository for sensitive data leaks. What should they configure?
AGitHub Actions
BGitHub Code Scanning
CGitHub Secret Scanning
DAzure Policy
Explanation
GitHub Secret Scanning detects sensitive data like keys, unlike the other options.
Q63
What happens when you enable required reviews for a pull request in GitHub?
AOnly admins may approve them.
BAutomatic approvals are disabled.
CAll branches must have approvals.
DCode can only be merged after approval.
Explanation
Enabling required reviews means approvals must be obtained before merging, while others are not necessarily true.
Q64
What is the purpose of GitHub's CodeQL?
AAutomated code review process
BStatic code analysis for vulnerabilities
CReal-time coding collaboration tool
DCloud resource management solution
Explanation
CodeQL is designed for static code analysis to identify vulnerabilities; automated code review tools don't analyze code for security issues specifically, real-time collaboration isn't its function, and it doesn't manage cloud resources.
Q65
A company needs to enforce branch protection rules in GitHub. Which feature does this utilize?
ARepository Actions
BBranch Policies
CEnvironment Variables
DUser Permissions
Explanation
Branch protection rules are specifically managed under Branch Policies; Repository Actions are for automation, Environment Variables store settings, and User Permissions regulate access, not branch rules.
Q66
What happens when a secret is scanned and found in a GitHub repository?
AThe repository is temporarily hidden.
BAn alert is generated to the user.
CThe secret is deleted automatically.
DAll commits are reverted immediately.
Explanation
If a secret is found, an alert is generated for the user rather than hiding the repository, deleting secrets, or reverting commits, which are not automated responses.
Q67
Which service in Azure helps to manage code secrets securely?
AAzure Key Vault
BAzure Blob Storage
CAzure Active Directory
DAzure DevOps
Explanation
Azure Key Vault securely manages secrets, while the others do not focus on secret management.
Q68
A company needs to enforce code quality checks on each pull request. Which GitHub feature should they use?
ABranch Protection Rules
BActions Workflows
CPull Request Templates
DContributors Guidelines
Explanation
Branch Protection Rules enforce checks on pull requests, while others do not enforce code quality.
Q69
You are configuring a repository for sensitive data. What happens when you enable secret scanning?
ASecrets will be automatically deleted.
BGitHub alerts you to potential leaks.
CAccess control on the repo is changed.
DCode coverage becomes mandatory.
Explanation
Secret scanning provides alerts for potential leaks, while the others do not accurately describe its function.
Q70
Which service enables automated scanning of code repositories for security vulnerabilities?
AGitHub Advanced Security
BAzure DevOps
CGitHub Actions
DAzure Monitor
Explanation
GitHub Advanced Security provides automated vulnerability scanning, while others focus on CI/CD or monitoring functionalities.