LearnThatStack Ace your next interview
DevOps
GitLab CI.
31 Qs 4 free
Change topic Change
Drill · questions

All questions

of 31
Beginner 7
01

What is GitLab CI/CD and how does it differ from other CI/CD tools?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

GitLab CI/CD is an integrated continuous integration and continuous deployment platform built into GitLab. It automates the building, testing, and deployment of applications through pipelines defined in YAML files.

Key differentiators:

  • Integrated approach: Built into GitLab, no separate tool needed
  • Configuration as code: Everything defined in .gitlab-ci.yml
  • Built-in container registry: Seamless Docker integration
  • Auto DevOps: Automatic pipeline creation for common frameworks
  • Comprehensive features: Issue tracking, code review, CI/CD, monitoring in one platform

Unlike Jenkins (requires plugins and setup) or GitHub Actions (GitHub-specific), GitLab CI/CD provides a complete DevOps platform out of the box.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

02

Explain the key components of a GitLab CI pipeline.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

A GitLab CI pipeline consists of several key components:

  • Pipeline: The top-level component containing the entire CI/CD process
  • Stages: Logical groupings that run sequentially (e.g., build, test, deploy)
  • Jobs: Individual tasks within stages that can run in parallel
  • Scripts: Commands executed within jobs
  • Runners: Agents that execute the jobs

Example structure:

stages:
  - build
  - test
  - deploy

build-job:
  stage: build
  script:
    - echo "Building application"

test-job:
  stage: test
  script:
    - echo "Running tests"
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

03

What is the purpose of the `.gitlab-ci.yml` file and where should it be placed?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

The .gitlab-ci.yml file is the configuration file that defines your CI/CD pipeline. It must be placed in the root directory of your repository.

Purpose:

  • Defines pipeline structure (stages, jobs, scripts)
  • Specifies when and how jobs should run
  • Configures deployment environments
  • Sets up variables, artifacts, and dependencies

GitLab automatically detects this file when code is pushed and triggers the pipeline accordingly. The YAML format makes it version-controlled and easily readable.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

04

Explain the difference between `before_script`, `script`, and `after_script`.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

These are execution phases within GitLab CI jobs:

  • before_script: Runs before the main script, used for setup tasks
  • script: Main commands to execute (required)
  • after_script: Runs after script completion, regardless of job success/failure

Example:

job-example:
  before_script:
    - echo "Setting up environment"
    - apt-get update
  script:
    - echo "Running main commands"
    - npm test
  after_script:
    - echo "Cleaning up"
    - rm -rf temp/

Important: after_script always runs, making it ideal for cleanup tasks, while before_script failure will fail the entire job.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

05

What are pipeline stages and how do they work?

Part of Pro
06

What are predefined variables in GitLab CI and give examples of commonly used ones?

Part of Pro
07

What is the GitLab Container Registry and how do you use it?

Part of Pro
Intermediate 19
08

What are GitLab Runners and what types are available?

Part of Pro
09

How do you control when jobs run using `rules` vs `only`/`except`?

Part of Pro
10

How do you implement conditional job execution based on file changes?

Part of Pro
11

How do you configure a custom Docker image for your CI jobs?

Part of Pro
12

What are GitLab CI services and how are they used?

Part of Pro
13

How do you handle job dependencies and parallelization?

Part of Pro
14

Explain the different types of variables in GitLab CI and their precedence.

Part of Pro
15

How do you manage sensitive data like API keys and passwords?

Part of Pro
16

What's the difference between artifacts and cache in GitLab CI?

Part of Pro
17

How do you implement effective caching strategies?

Part of Pro
18

How do you configure job artifacts for different purposes?

Part of Pro
19

How do you build and push Docker images in GitLab CI?

Part of Pro
20

What are GitLab environments and how do they work?

Part of Pro
21

How do you implement approval workflows for deployments?

Part of Pro
22

How do you implement security scanning in GitLab CI pipelines?

Part of Pro
23

What are GitLab CI include templates and how do you use them?

Part of Pro
24

How do you debug failing GitLab CI jobs?

Part of Pro
25

What are some GitLab CI best practices for performance and maintainability?

Part of Pro
26

How do you handle GitLab CI pipeline failures and notifications?

Part of Pro
Expert 5
27

How do you implement different deployment strategies (blue-green, rolling, canary)?

Part of Pro
28

How do you manage secrets and secure variables across different environments?

Part of Pro
29

How do you implement parallel matrix builds?

Part of Pro
30

What are GitLab CI compliance pipelines and how do they work?

Part of Pro
31

How do you optimize GitLab CI pipeline execution time?

Part of Pro

No matches

Try a different filter or search term.

Pro · $10/mo

27 of 31 GitLab CI answers are gated.

Full answers, code samples, AI explanations - simpler, deeper, or as an interactive diagram. Cancel anytime.

  • Full answers + code
  • AI explain - simpler, deeper, or visualized
  • 1,000 AI credits / month
  • Cancel anytime

Change topic

Pick a different technology or stack. Your current topic stays put until you choose a new one.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

JAM

JavaScript, APIs, and Markup

Serverless on AWS

Serverless Architecture on AWS

Cross-cutting topics 43 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.

Flutter Mobile

Flutter Cross-Platform Mobile Development

Cross-cutting topics 44 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

Web3 / Ethereum

Solidity, Ethereum, Hardhat, Foundry

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git
Big-O & Complexity Analysis Arrays, Strings & Hash Tables Linked Lists, Stacks & Queues Trees, BSTs & Heaps Graphs Sorting, Searching & Recursion Operating Systems Concurrency & Multithreading Networking for Developers Git & Version Control API Design 45 Distributed Systems Fundamentals 34

Cross-cutting topics 43 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.


Cross-cutting topics 45 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.