A company needs to comply with PCI DSS requirements. Which GitHub feature can ensure that sensitive information is protected in their code?
ACommit History
BSecret scanning
CPull request reviews
DBranch policies
Explanation
Secret scanning is specifically designed to identify credentials, while the others do not directly protect sensitive information.
Q42
You are configuring a GitHub Actions workflow. What happens if a step fails and you have not set continue-on-error?
AThe workflow stops completely.
BThe workflow skips to next job.
CIt retries the step automatically.
DIt marks the job as successful.
Explanation
If continue-on-error is not set, a failed step halts the workflow altogether, whereas the others incorrectly suggest different behaviors.
Q43
Which service provides automated code scanning for vulnerabilities?
AGitHub Advanced Security
BAzure DevOps
CContainer Registry
DAzure Firewall
Explanation
GitHub Advanced Security automatically scans code for vulnerabilities, while others do not focus on code scanning.
Q44
A company needs to enforce branch protection rules. What should they do?
ADisable pull requests
BUse environment variables
CEnable branch protection settings
DIncrease repository visibility
Explanation
Enabling branch protection settings ensures that specific rules are enforced on important branches.
Q45
What happens when a secret is exposed in a public GitHub repository?
AIt gets automatically encrypted
BGitHub permanently deletes it
CExposure is logged for audits
DIt can be harvested by anyone
Explanation
Exposing a secret in a public repository allows anyone to access it, posing security risks, while others suggest actions that do not occur automatically.
Q46
Which GitHub feature helps to identify vulnerabilities in dependencies?
ADependabot
BIssue Tracker
CAction Workflows
DProject Boards
Explanation
Dependabot automatically scans for vulnerabilities, while others do not perform this functionality.
Q47
A company needs to ensure that sensitive data in repositories is not exposed. Which GitHub feature can help?
ABranch Protection Rules
BCode Owners
CSecret Scanning
DPull Request Templates
Explanation
Secret Scanning automatically detects and alerts on sensitive data, unlike the other options which do not focus on sensitive information exposure.
Q48
What happens when you enable GitHub Advanced Security for a repository?
AIt restricts code addition.
BIt scans for security vulnerabilities.
CIt automatically merges pull requests.
DIt archives the repository.
Explanation
Enabling it activates security scanning features, unlike the options that suggest unrelated actions.
Q49
Which Azure service provides automated threat detection?
AAzure Security Center
BAzure Storage
CAzure DevOps
DAzure Functions
Explanation
Azure Security Center offers threat protection automation; others focus on storage or development tools.
Q50
A company needs to store secrets securely for CI/CD pipelines. Which service should they use?
AAzure Key Vault
BAzure Blob Storage
CAzure Table Storage
DAzure SQL Database
Explanation
Azure Key Vault is designed for securely storing secrets, while the others are not suited for this purpose.