What is the best way to ensure a job runs in an environment with Node.js and npm pre-installed?

Docker and GitLab CI/CD Quiz

Quiz
•
Information Technology (IT)
•
Professional Development
•
Hard
Koray Incki
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Install Node.js manually inside the Runner
Use the official Node.js Docker image
Enable Auto DevOps in GitLab
Use the alpine image
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Where does GitLab pull the Docker image from by default if no registry is specified?
GitHub Container Registry
GitLab Container Registry
Docker Hub (hub.docker.com)
GitLab's internal registry
A local repository
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a key reason to use Docker instead of installing dependencies manually on the GitLab Runner?
It prevents dependency conflicts between different projects
Docker allows for multiple programmin languages in a sinle project
It makes the pipeline run faster by defult
Docker is required for GitLab CI/CD to work
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you find the correct Docker image for a programmin language or tool?
Search for open-source community images on Docker Hub
Use any image that has been recently updated
Look for images with the most downloads, regardless of source
Check the official documentation for the tool or framework
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a "tag" in the context of Docker images (e.g., node:22)?
A label that assigns a unique identifier to a container instance
A branch name in GitLab that helps pipelines run in the correct environment
A version identifier used to specify which version/variant of an image to pull
A Git commit reference that determines which image version to use
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why might you choose a node:22-alpine image over node:22?
Alpine images are faster and include more tools by default
Alpine images are smaller and download faster in CI/CD pipelines
Alpine images have better compatibility with GitLab
Alpine images automatically install npm
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a potential downside of using node:22-alpine instead of node:22?
The Alpine image might lack certain libraries or tools (Git, curl, etc.)
The Alpine image does not support GitLab CI/CD pipelines
The Alpine image automatically installs extra dependencies, makint it larger
The Alpine image does not support Node.js
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Docker image is being used?
green-3
amr64v8/ubuntu:latest
ubuntu:latest
alpine:latest
Similar Resources on Quizizz
9 questions
Quiz sobre Git Flow

Quiz
•
Professional Development
5 questions
Máster BTP Developer (C24C316) – Clase #1

Quiz
•
Professional Development
5 questions
Máster SAP BTP (CAP) - Clase #1

Quiz
•
Professional Development
13 questions
Exploring AI: Concepts and Applications

Quiz
•
Professional Development
10 questions
[FE] Ice Breaking - VCS GIT

Quiz
•
Professional Development
8 questions
Quiz sur le déploiement continu

Quiz
•
Professional Development
8 questions
Validation User Role/Priv Menu Binary Content

Quiz
•
Professional Development
10 questions
[FE] Ice Breaking - React Fundamentals: Building Interactive Use

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade