















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















































































Question 1. Which GitLab visibility level allows any signed‑in user to view the project but restricts push access? A) Private B) Internal C) Public D) Confidential Answer: B Explanation: Internal projects are visible to any authenticated GitLab user, while Private limits visibility to members and Public is open to anyone on the internet. Question 2. In a GitLab group hierarchy, which role inherits permissions from its parent group to sub‑groups automatically? A) Guest B) Reporter C) Maintainer D) Owner Answer: D Explanation: The Owner role at a parent group propagates full permissions to all sub‑groups, ensuring consistent administrative control. Question 3. Which of the following best describes a “Scoped Label” in GitLab? A) A label that can only be used in one project B) A label with a namespace prefix to define a specific workflow stage C) A label that automatically assigns an issue to a milestone D) A label that deletes itself after a set period Answer: B
Explanation: Scoped labels use a prefix (e.g., workflow::review) to categorize issues and enable automation on boards. Question 4. When creating an issue, which feature helps ensure that required fields are always filled out? A) Issue Templates B) Quick Actions C) Epic Links D) Snippets Answer: A Explanation: Issue templates provide a predefined structure, prompting users to supply necessary information each time an issue is opened. Question 5. What is the primary purpose of the “Internal Note” in a GitLab issue comment? A) To notify all project members via email B) To add a comment visible only to project members with at least Reporter role C) To create a public discussion thread for external contributors D) To automatically close the issue after 24 hours Answer: B Explanation: Internal notes are hidden from external users and only visible to members with sufficient permissions, keeping sensitive information private. Question 6. Which action moves an issue from one project to another while preserving its history? A) Promote to Epic B) Transfer Issue C) Duplicate Issue
A) Enables automatic squashing of commits B) Prevents the MR from being merged until the prefix is removed C) Assigns the MR to the security team by default D) Triggers a mandatory code‑owner approval rule Answer: B Explanation: Draft MRs are marked as work‑in‑progress; GitLab disables the “Merge” button until the prefix is removed. Question 10. Which role is allowed to approve a Merge Request but not to push directly to the target branch? A) Maintainer B) Developer C) Reporter D) Guest Answer: B Explanation: Developers can review and approve MRs but lack direct push rights to protected branches, supporting a review‑before‑merge workflow. Question 11. In GitLab’s approval rules, what does the “Code Owner” rule enforce? A) At least one maintainer must approve every MR B) Only users listed in the CODEOWNERS file can approve certain files or directories C) Every MR must receive three approvals from any role D) The MR must pass a security scan before approval Answer: B Explanation: The Code Owner rule ties approval authority to the CODEOWNERS file, ensuring domain experts review relevant changes.
Question 12. Which merge strategy creates a single commit that combines all changes from the source branch? A) Fast‑forward merge B) Merge commit C) Rebase and merge D) Squash and merge Answer: D Explanation: Squash and merge collapses all source‑branch commits into one, providing a clean history on the target branch. Question 13. When a pipeline fails during an MR, where can a reviewer view the detailed error log? A) Issues tab B) Pipelines tab → Job details C) Wiki page D) Snippets section Answer: B Explanation: Clicking a failed job in the Pipelines tab opens the job log, showing error messages and stack traces. Question 14. Which security widget appears directly in the MR view to highlight newly introduced vulnerabilities? A) Dependency List B) License Compliance C) SAST report widget D) Container Scanning panel
C) Personal snippets are limited to 10 KB; project snippets have no size limit D) Project snippets automatically trigger CI pipelines, personal snippets do not Answer: A Explanation: Personal snippets respect the user’s privacy settings, whereas project snippets adopt the visibility level of the hosting project. Question 18. Which markdown element is used to create a table of contents automatically in a GitLab Wiki page? A) [TOC] B) {{toc}} C) `` D) {:toc} Answer: A Explanation: Adding [TOC] in a Wiki page generates an auto‑populated table of contents based on headings. Question 19. Which quick action assigns an issue to a user from the comment box? A) /assign @username B) /owner @username C) /take @username D) /set_assignee @username Answer: A Explanation: The /assign command followed by a username sets the assignee field for the issue. Question 20. Which Quick Action adds a time estimate of 3 days to an issue?
A) /estimate 3d B) /time 3d C) /spend 3d D) /duration 3d Answer: A Explanation: /estimate followed by a duration (e.g., 3d) records the estimated effort for the issue. Question 21. In GitLab, which role has the minimum permissions required to create a new branch in a protected repository? A) Guest B) Reporter C) Developer D) Maintainer Answer: C Explanation: Developers can create feature branches, while Guests and Reporters lack write permissions, and Maintainers have broader rights. Question 22. What does the “Least Privilege” principle recommend when assigning roles in GitLab? A) Give every member Owner rights for simplicity B) Assign the highest role needed for a user’s tasks and no more C) Rotate roles weekly to avoid stagnation D) Grant Guest role to all external collaborators regardless of task Answer: B Explanation: Least Privilege means users receive only the permissions necessary to perform their duties, reducing security risk.
Explanation: Iterations represent a fixed time window (e.g., a sprint) and can be associated with issues for agile planning. Question 26. In GitLab CI/CD, which keyword ensures that a job runs only when a merge request is opened? A) only: [merge_requests] B) when: manual C) rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" D) except: [push] Answer: C Explanation: Using rules with the $CI_PIPELINE_SOURCE variable restricts the job to MR events. Question 27. Which pipeline status badge color indicates a successful pipeline? A) Red B) Yellow C) Green D) Gray Answer: C Explanation: Green denotes success, red indicates failure, yellow signals a running or pending state, and gray is for unknown/disabled. Question 28. What does the “Secret Detection” job scan for in a pipeline? A) Unused dependencies B) Hard‑coded API keys, tokens, and passwords C) License violations
D) Deprecated syntax Answer: B Explanation: Secret Detection looks for confidential information that may have been inadvertently committed. Question 29. Which of the following best describes a “protected branch” in GitLab? A) A branch that cannot be deleted by any user B) A branch that only allows merges from the default branch C) A branch that restricts who can push or merge to it based on role D) A branch that automatically triggers a deployment to production Answer: C Explanation: Protected branches enforce permission checks, allowing only specified roles (e.g., Maintainers) to push or merge. Question 30. When using the Web IDE to commit changes, which option lets you create a new branch automatically? A) “Commit to current branch” B) “Create a new merge request” C) “Start a new branch” checkbox D) “Amend last commit” Answer: C Explanation: Selecting “Start a new branch” in the Web IDE creates a branch and stages the commit there. Question 31. Which quick action can be used to close an issue directly from a comment? A) /close
Question 34. When an MR is merged using the “Fast‑forward” strategy, what happens to the commit history? A) A merge commit is created to preserve the source branch history B) The source branch’s commits are applied directly onto the target branch without a merge commit C) All source commits are squashed into a single commit D) The target branch is rebased onto the source branch Answer: B Explanation: Fast‑forward simply moves the target branch pointer forward, integrating source commits linearly. Question 35. Which GitLab feature provides a visual representation of the relationship between Epics, Issues, and Milestones? A) Roadmap B) Cycle Analytics C) Value Stream Map D) Dependency Graph Answer: A Explanation: The Roadmap view displays Epics over time and shows linked issues and milestones in a timeline. Question 36. In the context of GitLab, what does “CI/CD” stand for? A) Code Integration / Continuous Delivery B) Continuous Integration / Continuous Deployment C) Collaborative Interface / Continuous Debugging D) Containerized Implementation / Continuous Development Answer: B
Explanation: CI/CD refers to Continuous Integration and Continuous Deployment, the core automation pipeline in GitLab. Question 37. Which of the following is a valid use of the /relabel quick action? A) /relabel ~bug ~frontend to replace existing labels with the specified ones B) /relabel +~bug to add a new label without removing others C) /relabel - ~bug to delete the label from the issue D) All of the above Answer: D Explanation: /relabel can add (+), remove (-), or replace (~) labels depending on the syntax used. Question 38. What is the purpose of a “Milestone” in GitLab? A) To group related snippets together B) To set a deadline and track progress for a set of issues or merge requests C) To define a protected branch policy D) To automatically generate a release changelog Answer: B Explanation: Milestones provide a target date and aggregate issues/MRs, helping teams monitor delivery timelines. Question 39. Which permission level is required to delete a group in GitLab? A) Maintainer B) Owner C) Reporter D) Developer
D) Removes any existing assignee Answer: B Explanation: /assign_self sets the issue’s assignee to the commenting user. Question 43. Which of the following statements about “GitLab Snippets” is TRUE? A) Snippets can only be created at the group level B) Private snippets are visible only to the author and explicitly invited users C) Snippets automatically trigger CI pipelines when saved D) Snippets cannot contain binary files Answer: B Explanation: Private snippets are restricted to the creator and any users they share them with. Question 44. Which term describes a collection of issues that share a common business objective? A) Label B) Milestone C) Epic D) Iteration Answer: C Explanation: Epics group related issues under a larger theme or objective. Question 45. What does the “/estimate” quick action accept as input? A) Only numeric values representing hours B) Human‑readable duration strings such as 2h, 3d, or 1w C) A date in ISO 8601 format
D) A markdown checklist Answer: B Explanation: /estimate parses duration strings with units (h, d, w) to record effort estimates. Question 46. Which GitLab feature enables you to enforce that at least two different reviewers approve a Merge Request before it can be merged? A) Merge Request Templates B) Approval Rules with “minimum number of approvals” set to 2 C) Protected Branches D) Code Owner file Answer: B Explanation: Approval Rules can be configured to require a specific number of approvals from distinct users. Question 47. In the Merge Request “Changes” tab, what does the “+” sign next to a line indicate? A) The line was removed in the source branch B) The line was added in the source branch C) The line has a comment attached D) The line is part of a conflict Answer: B Explanation: A “+” denotes an addition, while a “-” denotes a deletion. Question 48. Which of the following is NOT a default Merge Request state? A) Open B) Merged
B) Money spent on a project’s budget C) Number of lines of code written D) Number of Docker images built Answer: A Explanation: /spend logs time spent, contributing to the issue’s time‑tracking data. Question 52. Which of the following best describes the purpose of “Cycle Analytics” in GitLab? A) To visualize the time each issue spends in each workflow stage B) To track the number of commits per developer C) To monitor server CPU usage during pipelines D) To generate release notes automatically Answer: A Explanation: Cycle Analytics provides insights into lead time, cycle time, and stage durations for work items. Question 53. When you promote an issue to an Epic, what happens to the original issue? A) It is automatically closed B) It becomes a child issue of the new Epic C) It is deleted from the project D) It is converted into a merge request Answer: B Explanation: Promoting creates a relationship where the original issue is linked as a child of the Epic.
Question 54. Which GitLab setting controls whether a project can be forked by external users? A) Visibility level B) Forking permissions in the project’s General Settings C) Protected branches D) Issue templates Answer: B Explanation: Forking permissions determine who may create forks, independent of the project’s visibility. Question 55. What does the “/label ~bug” quick action do? A) Removes the label bug from the issue B) Adds the label bug to the issue without affecting existing labels C) Replaces all current labels with bug D) Toggles the bug label on/off Answer: B Explanation: Using ~ adds the specified label while preserving other labels. Question 56. Which of the following is a valid reason to use the “Squash and merge” strategy? A) To keep each commit from the source branch visible in the target history B) To reduce the number of commits in the target branch for a cleaner history C) To force a fast‑forward merge even when the target has diverged D) To automatically create a new branch after merge Answer: B