DevOps / Gitlab Interview questions
What is the difference between a group-level and project-level CI/CD variable in GitLab?
A project-level CI/CD variable is defined in a single project's Settings > CI/CD > Variables and is only available to pipelines running in that specific project. A group-level variable is defined once on a group and is automatically inherited by every project within that group (and its subgroups), without being redefined per project.
| Project-level variable | Group-level variable |
| Scoped to one project only. | Inherited by every project in the group/subgroups. |
| Set and changed independently per project. | Set once; updates apply everywhere it's inherited. |
| Good for values genuinely unique to one repo. | Good for shared credentials/config used across many services. |
If a project defines a variable with the same name as one inherited from its group, the project-level value takes precedence for that project's pipelines, which lets teams set a sane group-wide default while still allowing individual projects to override it when needed.
More Related questions...