Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Configure permissions in the source control repository

A worked example

Single answer

Fabrikam uses a GitHub Team organization. All repositories are private, and the organization's base permission gives members no access to repositories. Priya and Omar are organization members with no other roles or repository access. They need the following access:

  • Priya, a project manager, must be able to manage the app repository, but she must not be able to delete it or change its repository permissions.
  • Omar, a security reviewer, must be able to read all repositories in the organization, but he must not be able to delete repositories.

Which access assignment meets the requirements for both Priya and Omar?

Choose one answer
Why

Maintain lets Priya manage app without granting permission administration or repository deletion privileges. The security manager role gives Omar read access across all repositories, while the organization owner role would also allow deletion. The moderator role does not grant the private repository access Omar requires.

  • Not correct: Priya: Maintain role on app; Omar: organization owner role. Organization owners have full repository privileges, including deletion, which violates Omar's restriction.
  • Not correct: Priya: Admin role on app; Omar: security manager role. Admin grants full repository privileges, including changing repository permissions and deleting the repository, which violates Priya's restrictions.
  • Not correct: Priya: Maintain role on app; Omar: organization moderator role. Organization moderators can moderate public repository comments, but the role does not grant access to these private repositories. Omar receives no repository access from the base permission.
  • Correct: Priya: Maintain role on app; Omar: security manager role. Maintain supports repository management without sensitive administrative or destructive privileges. Security managers receive read access across the organization without the repository deletion privileges of organization owners.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free