CertGrid
GitHub Certification

GitHub Advanced Security Practice Exam

Validates securing code with GitHub Advanced Security - secret scanning, dependency management, code scanning and CodeQL, and administering GHAS across GitHub Enterprise Cloud and Server.

Start with a free GitHub Advanced Security practice test, then work through 610 exam-style questions with full answer explanations, and take timed mock exams that score like the real thing.

Free account: a fixed set of 20 practice questions for this exam, retryable anytime. Paid access unlocks the full bank and timed mock exams. No credit card required to start.

610
Practice pool
~75 qs
Real exam
100 min
Real exam time
Advanced
Level
70%
Passing score

CertGrid runs a fixed 75-question timed mock, separate from the real exam format above.

Objective-mapped practice, aligned to current exam objectives · Reviewed Oct 2026 · Independent practice platform.

What the GitHub Advanced Security exam covers

Free GitHub Advanced Security practice test questions

A sample of 10 questions with answers and explanations. A free account includes a fixed set of 20 practice questions for this exam, retryable anytime. Paid access unlocks the full 610-question bank.

  1. Question 1GitHub Security Suites, Features, and EcosystemSelect all that apply

    A repository maintainer is deciding where to place a new SECURITY.md file. Choose three locations that GitHub automatically recognizes as valid places for this file.

    • ARepository docs folderCorrect
    • BRepository wiki pages
    • CRepository .github folderCorrect
    • DRepository root folderCorrect
    • ERepository workflows area
    ✓ Correct answer: A, C, D

    Any one of these three locations lets GitHub show the policy under Security policy in the Reporting section of the repository's Security and quality tab. Teams typically pick whichever location matches how the rest of their repository is organized. Placing the file outside these three locations means GitHub will not automatically surface it. Sources: docs.github.com, Creating a default community health file and Adding a security policy to your repository.

    Why the other options are wrong
    • BThe wiki is a separate content area and is not one of the recognized locations for this file.
    • EThe workflows area holds Actions configuration files and is not scanned for a security policy file.
  2. Question 2Supply Chain Security

    A platform engineering team at a fintech company wants to understand how GitHub decides that one of their repositories has a vulnerable dependency. Which process actually produces a Dependabot alert?

    • AStatic code scanning results are matched against the repository's dependency graph to find affected versions in use
    • BGitHub Advisory Database entries are matched against the repository's dependency graph to find affected versions in useCorrect
    • CGitHub Advisory Database entries are matched against the repository's branch protection rules to find affected versions in use
    • DStatic code scanning results are matched against the repository's branch protection rules to find affected versions in use
    ✓ Correct answer: B

    The GitHub Advisory Database aggregates known vulnerabilities and Dependabot compares each advisory's affected version range against the manifests and lockfiles tracked in the dependency graph, raising an alert wherever a match is found. Branch protection rules govern merge requirements and have no role in vulnerability matching, and static code scanning analyzes source code for flaws rather than comparing package versions against advisories.

    Why the other options are wrong
    • AStatic code scanning inspects source code patterns for flaws and is a separate GHAS feature from dependency version matching.
    • CBranch protection rules control merge and review requirements, they play no part in matching dependency versions against advisories.
    • DThis combines two unrelated mechanisms, branch protection and code scanning, neither of which is used to generate Dependabot alerts.
  3. Question 3Security Operations and Remediation

    An engineer wants a GitHub Actions workflow to run automatically the moment a new code scanning alert is created anywhere in a repository. When they look for an appropriate value to put under the workflow's on trigger, what do they find?

    • Acode_scanning_alert works directly under on, like pull_request
    • BNo native trigger exists, an external relay is requiredCorrect
    • Csecurity_alert works directly under on for all alert types
    • DA schedule trigger polling every five minutes is required
    ✓ Correct answer: B

    Security alert webhook events are delivered outside the Actions trigger system entirely, to whatever URL is configured for the organization or GitHub App webhook. To turn that into a workflow run, an external service typically validates and parses the payload, then calls the repository dispatch API to kick off a workflow with the relevant data attached.

    Why the other options are wrong
    • Acode_scanning_alert is a webhook event name, but it is not among the trigger keywords supported directly under a workflow's on section.
    • CNo single security_alert trigger keyword exists that covers code scanning, secret scanning, and Dependabot alerts together.
    • DA scheduled polling workflow can approximate reacting to alerts but introduces delay and is not the documented way to consume these webhook events.
  4. Question 4GitHub Security Suites, Features, and Ecosystem

    A maintainer working on a draft security advisory for a public repository needs a place where invited collaborators can build and review the fix before the advisory is published. What should the maintainer use?

    • AA fork made with the Fork button and then switched to private visibility
    • BA branch in the repository protected by a ruleset for the security team
    • CA private repository created by using the repository as a template
    • DA temporary private fork that GitHub creates for coordinated fixesCorrect
    ✓ Correct answer: D

    The fork is created from the advisory form, and collaborators on the advisory can access it, push branches and open pull requests. It is not identical to a normal fork: integrations such as CI cannot access it, status checks do not run, and pull requests are merged together from the advisory rather than one by one. Publishing the advisory deletes the fork. Source: docs.github.com, Collaborating in a temporary private fork to resolve a repository security vulnerability.

    Why the other options are wrong
    • AA fork of a public repository is public, and a fork's visibility cannot be changed on its own, so the fix would be exposed.
    • BA branch in a public repository is visible to everyone, so the fix would be exposed before release.
    • CA template copy has no link to the advisory or its collaborators and loses the advisory's merge and publish workflow.
  5. Question 5Secret Protection

    A senior developer at Crestview Media who used to bypass push protection blocks now sees no bypass option on a new blocked push, only a way to request one. What most likely changed?

    • APush protection for users was turned off on the developer's account
    • BThe developer's role changed from write to maintain on the repository
    • CThe secret matched a custom pattern, which cannot be bypassed
    • DDelegated bypass was enabled and the developer is not on the bypass listCorrect
    ✓ Correct answer: D

    GitHub explains that if a user does not see the option to bypass, an administrator or organization owner has configured tighter controls, and the user should remove the secret or submit a request for bypass privileges. That is delegated bypass: only organization owners, security managers, and roles, teams, or users on the bypass list can bypass directly.

    Why the other options are wrong
    • ATurning off user push protection would not add a request option; repository push protection rules apply here.
    • BBy default anyone with write access can bypass, and maintain includes write, so this change would not remove the option.
    • CCustom patterns with push protection can be bypassed like other patterns.
  6. Question 6Supply Chain Security

    Before listing alerts, a script must check whether Dependabot alerts are enabled for a repository at all. Which REST endpoint answers that, returning 204 when they are enabled and 404 when they are not?

    • AGET /repos/{owner}/{repo}/automated-security-fixes
    • BGET /repos/{owner}/{repo}/vulnerability-alertsCorrect
    • CGET /repos/{owner}/{repo}/dependabot/secrets
    • DGET /repos/{owner}/{repo}/private-vulnerability-reporting
    ✓ Correct answer: B

    GitHub's repositories REST reference documents Check if vulnerability alerts are enabled for a repository at GET /repos/{owner}/{repo}/vulnerability-alerts, responding 204 if the repository is enabled with vulnerability alerts and 404 if it is not, and requiring admin read access. automated-security-fixes reports Dependabot security updates instead, dependabot/secrets lists secret names, and private-vulnerability-reporting reports whether that reporting feature is on (rest/repos/repos, rest/dependabot/secrets).

    Why the other options are wrong
    • AThat endpoint shows whether Dependabot security updates are enabled, disabled or paused, not alerts.
    • CThat endpoint lists the Dependabot secrets available in the repository.
    • DThat endpoint reports whether private vulnerability reporting is enabled for the repository.
  7. Question 7Code Security

    A workflow runs one third-party scanner twice, once for the frontend and once for the backend, and uploads both SARIF files with upload-sarif in the same workflow. What must it set so that neither upload replaces the other?

    • AA different sarif_file path for each of the two uploads
    • BA single upload of the directory that holds both SARIF files
    • CA different category value for each of the two uploadsCorrect
    • DSeparate runs of the workflow, one for each of the two uploads
    ✓ Correct answer: C

    GitHub documents that when you upload multiple SARIF files for a commit you must indicate a category for each analysis, and that for other tools in GitHub Actions you must specify a category input if you upload more than one file of results for the same tool in one workflow. A directory upload also needs a unique runAutomationDetails id in each file, and different file paths or separate runs do not make the analyses distinct (upload-sarif-file).

    Why the other options are wrong
    • AThe file path only says where the results are; the analyses still need distinct categories.
    • BUploading a directory needs a unique runAutomationDetails id in each SARIF file, which is not set here.
    • DA second upload for the same commit, tool and category overwrites the earlier results, whichever run sends it.
  8. Question 8Security Operations and Remediation

    A vendor's GitHub App exports alert data to a SIEM. One customer installs it on an organization that belongs to a GitHub Enterprise Cloud account. What primary REST API rate limit applies to that installation's access token?

    • A5,000 requests per hour, the installation minimum
    • B12,500 requests per hour, the scaling ceiling
    • C15,000 requests per hour, a fixed allowanceCorrect
    • D1,000 requests per hour for each repository
    ✓ Correct answer: C

    The REST API rate limits reference states that GitHub Apps using an installation access token have a minimum of 5,000 requests per hour, and that an installation on a GitHub Enterprise Cloud organization has a rate limit of 15,000 requests per hour. For installations that are not on a GitHub Enterprise Cloud organization, the limit scales with users and repositories but cannot rise beyond 12,500 requests per hour. The figure of 1,000 requests per hour per repository applies to GITHUB_TOKEN in GitHub Actions.

    Why the other options are wrong
    • A5,000 is the installation minimum; an installation on a GitHub Enterprise Cloud organization gets 15,000 per hour.
    • B12,500 is the ceiling for scaling installations that are not on a GitHub Enterprise Cloud organization.
    • D1,000 per hour per repository is the GITHUB_TOKEN limit in GitHub Actions, not a GitHub App installation limit.
  9. Question 9GitHub Security Suites Administration

    Which of these accounts uses a GitHub Code Security license in an organization on GitHub Enterprise Cloud?

    • AA member whose last push to a private Code Security repository was 120 days ago
    • BA GitHub App bot that pushed dependency updates to a private Code Security repository
    • CA member who pushed to public repositories with code scanning enabled in the last week
    • DAn external collaborator who pushed to a private Code Security repository 30 days agoCorrect
    ✓ Correct answer: D

    The billing article counts each active committer to a repository with an Advanced Security product enabled as one license, where active means a commit pushed in the last 90 days. Active committers include members, enterprise managed users, external collaborators and pending invitees. GitHub App bots are ignored, public repositories get these features free of charge, and a push older than 90 days no longer counts.

    Why the other options are wrong
    • AA committer is active only if a commit was pushed in the last 90 days; 120 days ago is outside the window.
    • BGitHub App bots are ignored when license usage is calculated.
    • CCode scanning is free on public repositories, so pushes there do not use a license.
  10. Question 10GitHub Security Suites Administration

    An organization owner wants repositories that turn on CodeQL default setup to be offered the Extended query suite rather than the Default suite, without editing default setup in each repository. Where is this set?

    • AThe enterprise policies page for Advanced Security features
    • BA custom security configuration applied to all repositories
    • CThe organization's global settings for Advanced SecurityCorrect
    • DAn organization ruleset that requires code scanning results
    ✓ Correct answer: C

    Security configurations control repository-level feature enablement, while global settings control organization-level settings that all repositories inherit. Among the global code scanning settings, selecting "Recommend the extended query suite for repositories enabling default setup" suggests the Extended suite, which adds lower precision and severity queries to the Default suite, across the organization. Configurations, enterprise policies and rulesets do not choose the default setup query suite.

    Why the other options are wrong
    • AEnterprise policies decide whether repository administrators can manage features; they do not pick a query suite.
    • BA configuration can turn default setup on and choose the runner type, but the query suite recommendation is a global setting.
    • DA ruleset can require code scanning results before merging, but it does not change which queries default setup runs.

Who this GitHub Advanced Security practice exam is for

This practice set is for anyone preparing for the GitHub Advanced Security exam at the advanced level - from first-time candidates building a foundation to experienced GitHub practitioners doing a final review before test day. If you learn best by working through realistic questions and reading why each answer is right or wrong, it is built for you.

How to use this GitHub Advanced Security practice exam

  1. Start with the free sample questions above to gauge your current baseline.
  2. Read the full explanation on every question, including why each wrong option is wrong.
  3. Track your weak domains and focus your study where you are losing the most marks.
  4. Once you are scoring consistently well, take a timed, full-length mock exam.
  5. Use your readiness score to decide when you are ready to book the real GitHub Advanced Security exam.

Related GitHub resources

GitHub Advanced Security practice exam FAQ

How many questions are in the GitHub Advanced Security practice exam on CertGrid?

CertGrid has 610 practice questions for GitHub Advanced Security, covering 6 exam domains. The real GitHub Advanced Security exam is ~75 qs in 100 min. CertGrid's timed mock is a fixed 75 questions.

What is the passing score for GitHub Advanced Security?

The GitHub Advanced Security exam passing score is 70%, and you have about 100 min to complete it. CertGrid scores your practice attempts the same way so you know when you are ready.

Are these official GitHub Advanced Security exam questions?

No. CertGrid is an independent practice platform. We do not provide real or leaked exam questions. Our questions are original and designed to help you practice the concepts, scenarios, and difficulty style of the GitHub Advanced Security exam.

Is there a free GitHub Advanced Security practice test?

Yes. You can take a free GitHub Advanced Security practice test straight away: a fixed set of 20 practice questions for this exam, retryable as often as you like, with no credit card required. You get readiness scoring and a weak-domain breakdown on those questions. Paid plans unlock the full 610-question bank, timed mock exams and full-bank domain analytics.

What CertGrid is (and is not)

CertGrid is an independent IT certification practice platform for Azure, AWS, Google, Cisco, Security, Linux, Kubernetes, Terraform, and other certification tracks. It provides objective-mapped practice questions, readiness scoring, weak-domain drills, and explanations to help learners understand what to study next.

Independent & original. CertGrid is an independent practice platform and is not affiliated with or endorsed by GitHub. Questions are original practice items designed to mirror certification concepts and exam style. CertGrid does not provide official exam questions or braindumps.