Docsity

[GitLab101] GitLab 101 Tool Certification Review Guide, Exams of Technology

Toggle sidebar
bg1
[GitLab101] GitLab 101 Tool Certification
Review Guide
**Question 1.** Which GitLab tier provides built-in vulnerability management and container
scanning?
A) Free
B) Premium
C) Ultimate
D) Community
Answer: C
Explanation: The Ultimate tier includes advanced security features such as SAST, DAST, and
container scanning out‑of‑the‑box.
**Question 2.** In GitLab, a *namespace* is primarily used to:
A) Store Docker images
B) Group projects under a common URL prefix
C) Define CI/CD variables
D) Manage user permissions for a single repository
Answer: B
Explanation: A namespace determines the URL path (e.g., gitlab.com/namespace/project) and
can contain multiple projects.
**Question 3.** Which of the following best describes the purpose of a *protected branch*?
A) Prevents anyone from pushing to the branch
B) Allows only specified users or roles to push/merge
C) Automatically deletes the branch after merging
D) Enables force‑pushes without restrictions
Answer: B
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57

Partial preview of the text

Download [GitLab101] GitLab 101 Tool Certification Review Guide and more Exams Technology in PDF only on Docsity!

Review Guide

Question 1. Which GitLab tier provides built-in vulnerability management and container scanning? A) Free B) Premium C) Ultimate D) Community Answer: C Explanation: The Ultimate tier includes advanced security features such as SAST, DAST, and container scanning out‑of‑the‑box. Question 2. In GitLab, a namespace is primarily used to: A) Store Docker images B) Group projects under a common URL prefix C) Define CI/CD variables D) Manage user permissions for a single repository Answer: B Explanation: A namespace determines the URL path (e.g., gitlab.com/namespace/project) and can contain multiple projects. Question 3. Which of the following best describes the purpose of a protected branch? A) Prevents anyone from pushing to the branch B) Allows only specified users or roles to push/merge C) Automatically deletes the branch after merging D) Enables force‑pushes without restrictions Answer: B

Review Guide

Explanation: Protected branches enforce rules so only authorized users can modify critical branches like main. Question 4. What is the primary benefit of GitLab’s single application concept? A) Separate tools for planning, code, and CI/CD B) Multiple independent services that need manual integration C) One unified interface covering the entire DevSecOps lifecycle D) Only supports self‑managed installations Answer: C Explanation: GitLab’s single application provides planning, source control, CI/CD, and security in one platform, reducing integration overhead. Question 5. Which Git command creates a local copy of a remote repository? A) git push B) git pull C) git clone D) git fork Answer: C Explanation: git clone downloads the entire repository history and creates a local working copy. Question 6. In GitLab, an Epic is used to: A) Track a single commit B) Group related issues across multiple projects C) Manage Docker image versions D) Define a CI/CD pipeline template

Review Guide

D) CI/CD dashboard Answer: B Explanation: The Graph view displays a DAG of commits, showing branches and merges. Question 10. What does the workflow::doing scoped label indicate? A) The issue is ready for deployment B) The issue is currently being worked on C) The issue has been closed D) The issue is blocked by another task Answer: B Explanation: Scoped labels like workflow::doing are used to reflect the current state of work. Question 11. Which of the following GitLab Runner types executes jobs in Docker containers isolated from the host? A) Shell runner B) Docker runner C) Kubernetes runner D) VirtualBox runner Answer: B Explanation: Docker runners run each job inside a Docker container, providing isolation. Question 12. In GitLab CI/CD, the .gitlab-ci.yml file must be located at: A) The root of the repository B) Inside the ci/ directory only C) In the .gitlab/ hidden folder

Review Guide

D) It can be placed anywhere as long as it is referenced in settings Answer: A Explanation: GitLab automatically looks for .gitlab-ci.yml at the repository root. Question 13. Which GitLab UI component lets you quickly edit a file without cloning the repo? A) Web IDE B) Terminal C) GitLab Runner D) Issue board Answer: A Explanation: The Web IDE provides an in‑browser editor for making changes and committing them directly. Question 14. What is the purpose of a Milestone in GitLab? A) To store Docker images B) To group CI/CD jobs by environment C) To track a set of issues within a specific time frame D) To define user roles for a project Answer: C Explanation: Milestones represent a target date or release and aggregate issues that belong to that timeframe. Question 15. Which of the following best describes GitLab SaaS? A) A self‑hosted instance you install on-premises B) A cloud‑hosted GitLab.com service managed by GitLab

Review Guide

B) A personalized list of items assigned to you (issues, MRs, etc.) C) All CI/CD jobs that have failed in the last 24 hours D) A history of all your commits Answer: B Explanation: The To‑Do List aggregates pending actions that involve the logged‑in user. Question 19. Which of the following is a valid use case for a Subgroup? A) Storing Docker images for a single project B) Organizing related projects under a common parent group C) Defining environment variables for CI/CD pipelines D) Managing issue templates for a repository Answer: B Explanation: Subgroups allow hierarchical organization, grouping projects that share a common purpose. Question 20. In a GitLab pipeline, which keyword defines the order in which jobs run? A) script B) stage C) image D) before_script Answer: B Explanation: The stage keyword groups jobs; stages run sequentially according to their order in the stages array. Question 21. Which of the following options best describes a Draft Merge Request? A) A MR that is automatically merged after approval

Review Guide

B) A MR marked as “Work in Progress” to indicate it isn’t ready for review C) A MR that bypasses all pipeline checks D) A MR that can only be created by administrators Answer: B Explanation: Draft MRs signal that the changes are still under development and not ready for formal review. Question 22. What is the purpose of the Container Registry in GitLab? A) To host static website assets B) To store built Docker images associated with a project C) To manage Git submodules D) To archive old repository branches Answer: B Explanation: The Container Registry provides a secure place to push and pull Docker images per project. Question 23. Which of the following variables is automatically provided by GitLab CI/CD for every job? A) $CI_PROJECT_URL B) $CUSTOM_SECRET C) $DEPLOY_ENV D) $USER_TOKEN Answer: A Explanation: $CI_PROJECT_URL is a predefined CI variable containing the project’s web URL.

Review Guide

Explanation: requirements.txt lists Python dependencies, which can be uploaded to GitLab’s PyPI-compatible registry. Question 27. Which of the following best describes Dependency Scanning? A) Analyzing running containers for open ports B) Checking third‑party libraries for known vulnerabilities C) Scanning source code for hard‑coded passwords D) Verifying that CI jobs run in the correct order Answer: B Explanation: Dependency scanning inspects the project’s external libraries against vulnerability databases. Question 28. What does the Graph view in a repository primarily help users understand? A) File size distribution B) Commit ancestry and branch relationships C) CI/CD job execution time D) User activity logs Answer: B Explanation: The Graph view visualizes commit history as a directed acyclic graph, showing merges and branches. Question 29. Which GitLab UI element is used to move an issue from “To Do” to “Doing”? A) Issue board column drag‑and‑drop B) Changing the issue’s milestone C) Adding a new label “workflow::doing” D) Closing and reopening the issue

Review Guide

Answer: A Explanation: Issue boards let you drag cards between columns representing workflow states. Question 30. Which of the following statements about self‑managed GitLab is true? A) It provides unlimited free CI minutes for all projects B) It must be installed on GitLab.com servers C) Administrators have full control over hardware, updates, and customization D) It does not support protected branches Answer: C Explanation: Self‑managed installations give administrators complete control over the environment and configuration. Question 31. In GitLab CI/CD, the needs: keyword is used to: A) Define environment variables for a job B) Specify that a job should run only after another job completes successfully C) Set the Docker image for a job D) Limit the job to a specific runner tag Answer: B Explanation: needs: creates explicit job dependencies, allowing parallel execution when possible. Question 32. What is the effect of enabling Auto DevOps for a project? A) It disables all manual CI/CD configuration B) GitLab automatically creates a CI/CD pipeline based on project detection heuristics C) It forces all merges to be fast‑forward only D) It locks the repository to prevent pushes

Review Guide

D) A list of merge request reviewers Answer: B Explanation: Groups act as a higher‑level namespace that can contain projects and subgroups, inheriting permissions. Question 36. When using the GitLab Web IDE, which of the following actions can you perform without leaving the browser? A) Run integration tests against a live environment B) Commit changes directly to a branch C) Install a new GitLab Runner on the server D) Modify the GitLab instance’s configuration files Answer: B Explanation: The Web IDE allows editing files and committing them directly from the browser. Question 37. Which of the following is not a default permission level for a GitLab project member? A) Guest B) Reporter C) Maintainer D) Administrator Answer: D Explanation: “Administrator” is a system‑wide role, not a project‑specific permission level. Question 38. What does the SAST job typically produce in GitLab’s UI? A) A list of failing unit tests B) A security vulnerability report attached to the pipeline

Review Guide

C) A Docker image build log D) A deployment status badge Answer: B Explanation: SAST jobs generate a security report that appears in the pipeline view and the Vulnerabilities dashboard. Question 39. Which setting controls whether a merge request can be merged with a fast‑forward only strategy? A) Merge request approvals B) Protected branch “Allow force push” toggle C) Project Settings → Repository → Merge method → Fast‑forward merge D) CI/CD variable FAST_FORWARD Answer: C Explanation: The merge method setting defines allowed merge strategies, including fast‑forward only. Question 40. In GitLab, a Package Registry can host packages for which of the following ecosystems? A) npm B) Maven C) PyPI D) All of the above Answer: D Explanation: GitLab’s Package Registry supports multiple formats, including npm, Maven, and PyPI. Question 41. Which of the following best explains a pipeline in GitLab CI/CD?

Review Guide

Question 44. What is the purpose of environment scopes in GitLab CI/CD variables? A) To limit variable usage to specific branches only B) To restrict a variable to a particular deployment environment (e.g., production) C) To encrypt variables automatically D) To share variables across all projects in a group Answer: B Explanation: Environment scopes tie a variable to a named environment, making it available only for jobs that deploy to that environment. Question 45. Which of the following actions can only be performed by a Project Maintainer (not a Reporter) in GitLab? A) Create an issue B) View the project wiki C) Merge a merge request into a protected branch D) Comment on a merge request Answer: C Explanation: Merging into protected branches requires Maintainer (or higher) permissions. Question 46. In GitLab, what does the “Closes #123” syntax in a merge request description do? A) Deletes issue #123 after merge B) Automatically closes issue #123 when the MR is merged C) Links the MR to issue #123 without changing its state D) Moves issue #123 to a new milestone Answer: B

Review Guide

Explanation: Using “Closes #123” triggers automatic issue closure upon successful merge. Question 47. Which GitLab feature helps you enforce that a specific set of tests run before any merge into the main branch? A) Issue boards B) Protected branches with required pipelines C) Group-level labels D) To‑Do list Answer: B Explanation: Protected branch settings can require that pipelines succeed before allowing merges. Question 48. Which of the following is a valid way to trigger a pipeline manually? A) Pushing a tag that matches a only: tags rule B) Clicking the “Run pipeline” button in the UI C) Adding a comment “/run” on an issue D) All of the above Answer: B Explanation: The UI provides a “Run pipeline” button for manual execution; the other options depend on specific configurations. Question 49. What does the Dependency Proxy feature in GitLab provide? A) A way to cache external Docker images and package dependencies locally B) A proxy for Git commands over HTTP C) An API gateway for GitLab webhooks D) A load balancer for GitLab Runner traffic

Review Guide

> C) Maintainer > D) Guest Answer: C Explanation: Only Maintainers (or higher) can delete tags; lower roles lack this permission. Question 53. What does the “Deploy to production” button in a GitLab environment view do by default? A) Triggers a manual job defined with environment: production and when: manual B) Automatically merges the current branch into main C) Deletes the production environment D) Sends an email to the DevOps team Answer: A Explanation: Manual jobs marked for the production environment appear as a “Deploy” button in the UI. Question 54. Which of the following statements about GitLab’s “License Management” feature is true? A) It only works for proprietary software licenses B) It can automatically detect and display license information for project dependencies C) It replaces the need for a LICENSE file in the repository D) It is only available in the Free tier Answer: B Explanation: License Management scans dependencies and lists the licenses they use, helping with compliance. Question 55. In GitLab CI/CD, what does the allow_failure: true setting do for a job?

Review Guide

A) Skips the job entirely B) Treats job failures as non‑blocking, allowing the pipeline to continue C) Forces the job to always succeed regardless of script outcome D) Retries the job automatically until it passes Answer: B Explanation: allow_failure permits a job to fail without marking the entire pipeline as failed. Question 56. Which of the following best describes the “Runner tags” feature? A) Labels applied to CI jobs to select specific runners that have matching tags B) Tags that appear on merge requests after a successful pipeline C) Git tags that trigger specific runners D) UI tags for grouping issues on boards Answer: A Explanation: Runner tags allow you to route jobs to runners that are configured with the same tag. Question 57. What is the effect of enabling “Require all discussions to be resolved” on a merge request? A) The MR cannot be merged until every discussion thread is marked as resolved B) All comments are automatically deleted after merge C) The pipeline is forced to run twice D) Approvers are automatically added to the MR Answer: A Explanation: This setting enforces that reviewers address every discussion before merging.