D4: Optimizing & Troubleshooting Code Security
GH-500 GitHub Advanced Security exam practice questions · 10 flashcards
Question
Query suites?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Optimizing & Troubleshooting Code Security practice questions and answers
- Query suites?default, security-extended, security-and-quality.
- Custom queries/packs?Add CodeQL packs or custom QL queries in config.
- Config file?codeql-config.yml: queries, paths, paths-ignore, packs.
- Excluding paths?paths-ignore to skip vendored/generated code.
- Troubleshooting 'no source code seen'?Build failed or not traced; use manual build.
- Performance issues?Large repos: increase runner size, limit paths, use incremental/PR-diff analysis.
- Debug logging?Enable debug mode/artifact upload of CodeQL databases.
- Timeout issues?Use larger runners, split languages.
- Monorepo strategies?Category per language/project, path filters.
- Scenario: CodeQL takes 2 hours on monorepo. Optimization?Larger runners, paths-ignore generated code, analyze per subproject with categories.