Lpi 701-100 Practice Exams
Last updated on Oct 22,2026- Exam Code: 701-100
- Exam Name: Linux Professional Institute DevOps Tools Engineer Exam 701
- Certification Provider: Lpi
- Latest update: Oct 22,2026
Which of the following Agile methodologies divides development into short cycles called sprints?
- A . Waterfall
- B . Kanban
- C . Scrum
- D . Extreme Programming (XP)
C
Explanation:
Scrum is an Agile methodology that organizes work into short, time-boxed iterations called sprints, typically lasting 1-4 weeks. Kanban focuses on continuous workflow, Waterfall is a sequential model, and XP emphasizes extreme programming techniques.
A DevOps engineer is writing an Ansible playbook to configure a database server.
How should they store sensitive credentials securely?
- A . Hardcode passwords in the playbook
- B . Use Ansible Vault to encrypt sensitive data
- C . Store passwords in a public GitHub repository
- D . Send passwords over an unencrypted email
B
Explanation:
– Ansible Vault allows encrypting passwords and sensitive data to prevent exposure in source code.
– Option A is incorrect because hardcoding passwords is a security risk.
– Option C is incorrect because storing secrets in public repositories is unsafe.
– Option D is incorrect because sending passwords over email is insecure.
In the Jenkins pipeline below, which stage is responsible for running automated tests?
“`groovy
pipeline {
agent any
stages {
stage(‘Build’) {
steps {
sh ‘make build’
}
}
stage(‘Test’) {
steps {
sh ‘make test’
}
}
stage(‘Deploy’) {
steps {
sh ‘make deploy’
}
}
}
}
“`
- A . Build
- B . Test
- C . Deploy
- D . None of the above
B
Explanation:
In the Jenkins pipeline, the ‘Test’ stage (`sh ‘make test’`) is responsible for running automated tests before deploying the application.
Which of the following best describes the primary goal of DevOps?
- A . To separate development and operations teams for better efficiency
- B . To automate the deployment and monitoring of applications
- C . To develop software using the waterfall model
- D . To reduce security measures in favor of faster deployments
B
Explanation:
DevOps integrates development and operations to enable continuous integration and continuous deployment (CI/CD). It emphasizes automation in testing, deployment, and monitoring.
You are responsible for log management at your company. The security team requests a system to automatically detect and alert administrators about repeated failed SSH login attempts.
Which solution is the BEST?
- A . Use journalctl -xe to manually check logs for failed logins
- B . Configure Fail2Ban to monitor /var/log/auth.log and block repeated attempts
- C . Enable verbose logging in SSH and check logs weekly
- D . Use grep and awk to manually extract login failure logs every day
B
Explanation:
– Fail2Ban automatically detects failed SSH login attempts and bans the IP address after repeated failures.
– Example Fail2Ban configuration (/etc/fail2ban/jail.local):
– [sshd]
– enabled = true
– port = 22
– maxretry = 3
– bantime = 600
– Option A is incorrect because journalctl -xe is useful for manual inspection but does not prevent attacks.
– Option C is incorrect because checking logs weekly does not provide real-time security.
– Option D is incorrect because using grep manually is inefficient compared to automated tools.
In Kubernetes, what is the function of a Service?
- A . It creates a container and manages its lifecycle
- B . It exposes a set of Pods to the network and provides a stable endpoint
- C . It deploys multiple containers with automatic scaling
- D . It stores environment variables for a Pod
B
Explanation:
A Kubernetes Service provides network access to a group of Pods, even if their IP addresses change. This ensures high availability and load balancing.
What is the main advantage of using a multi-stage build in a Dockerfile?
- A . It reduces the number of layers in the final image
- B . It removes the need for a base image
- C . It allows the use of multiple containers in a single build process
- D . It ensures that the final image contains only necessary dependencies and binaries
D
Explanation:
Multi-stage builds allow developers to use a separate build container for compiling code and then copy only the necessary files to a smaller final image, reducing image size and improving security.
A system administrator needs to run multiple virtual machines on a Linux server. The server does not have a graphical interface.
Which virtualization technology is the BEST choice?
- A . VirtualBox
- B . KVM
- C . VMware Workstation
- D . Hyper-V
B
Explanation:
– KVM (Kernel-based Virtual Machine) is built into the Linux kernel and does not require a graphical interface.
– VirtualBox and VMware Workstation require a GUI and are better for desktop environments.
– Hyper-V is a Windows-specific hypervisor.
In a DevOps CI/CD pipeline, which stage is responsible for automatically testing new code before it is merged into the main branch?
- A . Continuous Integration (CI)
- B . Continuous Deployment (CD)
- C . Configuration Management
- D . Code Review
A
Explanation:
Continuous Integration (CI) ensures that code changes are tested automatically before being merged into the main branch, preventing integration issues and improving software quality.
Which Dockerfile instruction ensures that an application always runs as a non-root user?
- A . RUN chmod 777 /app
- B . CMD ["sudo", "nginx"]
- C . USER 1000
- D . WORKDIR /root
C
Explanation:
The USER 1000 instruction ensures that the container does not run as root, improving security by restricting privileges. Best practices recommend running containers with a non-root user to prevent unauthorized access.