Master LPIC-1 101-500: hardware configuration, boot process, disk partitioning, package management, and system maintenance with command examples.
Test your LPIC-1 knowledge with free practice questions covering the 101-500 and 102-500 exam objectives. Detailed answers and explanations included.
Preparing for the LPI DevOps Tools Engineer? These questions cover the DevOps exam domains.
What is the primary purpose of a CI/CD pipeline?
a) Manual code deployment b) Automating build, test, and deployment processes c) Replacing version control d) Managing infrastructure manually
Answer: b) Automating build, test, and deployment processes
Explanation: CI/CD automates the software delivery process: Continuous Integration (auto-build/test on commit) and Continuous Delivery/Deployment (auto-deploy to environments).
Which Git branching strategy creates a new branch for each feature from main?
a) Git Flow b) GitHub Flow c) GitLab Flow d) Trunk-based development
Answer: b) GitHub Flow
Explanation: GitHub Flow uses a main branch + feature branches (created from main → PR → merge back). Git Flow has develop/release/hotfix branches.
[Full set covers Jenkins, GitLab CI, GitHub Actions, pipeline stages, artifact management, and testing]
Which Docker Compose command builds and starts all services?
a) docker-compose up
b) docker-compose start
c) docker-compose run
d) docker-compose create
Answer: a) docker-compose up
Explanation: docker-compose up builds (if needed), creates, and starts containers. -d runs in detached mode. docker-compose down stops and removes.
[Full set covers Dockerfile, Compose, container networking, volumes, and container security]
Which Ansible component defines the desired state of a system?
a) Playbook b) Module c) Inventory d) Role
Answer: a) Playbook
Explanation: Ansible Playbooks (YAML) define the desired state through plays, tasks, and modules. Roles organize playbooks and related files.
[Full set covers Ansible, Puppet, YAML, idempotency, modules, and inventory management]
Which Prometheus component scrapes metrics from targets?
a) Prometheus server b) Alertmanager c) Grafana d) Pushgateway
Answer: a) Prometheus server
Explanation: The Prometheus server scrapes metrics from configured targets at specified intervals. Alertmanager handles alerts. Grafana visualizes. Pushgateway handles short-lived jobs.
[Full set covers Prometheus, Grafana, Nagios/Icinga, metrics collection, alerting, dashboards, and IaC with Terraform]
Access all LPI DevOps practice questions →