Lpi 701-100 Practice Exams
Last updated on Oct 21,2026- Exam Code: 701-100
- Exam Name: Linux Professional Institute DevOps Tools Engineer Exam 701
- Certification Provider: Lpi
- Latest update: Oct 21,2026
A software development team is using Git for version control. A developer accidentally committed a secret API key to a public repository.
What is the BEST course of action to mitigate this security risk?
- A . Use git revert to undo the commit
- B . Immediately remove the key, force push the changes (git push –force), and update credentials
- C . Add the API key to .gitignore and continue working
- D . Use git stash to temporarily hide the key and restore it later
B
Explanation:
Once an API key is exposed in a public repository, it should be revoked immediately to prevent unauthorized access. Simply deleting the key (option C) is not enough because Git retains history. A force push (git push –force) is needed to rewrite history, but credentials must also be updated, as the old key may have already been compromised.
Which of the following AWS CLI commands correctly provisions a new EC2 instance?
- A . aws ec2 create-instance
- B . aws ec2 deploy-instance
- C . aws ec2 run-instances
- D . aws create vm
C
Explanation:
– The correct command to launch an EC2 instance is aws ec2 run-instances.
– create-instance, deploy-instance, and create vm are invalid AWS CLI commands.
A cloud engineer wants to create a pre-configured AWS machine image (AMI) to deploy multiple identical instances.
Which tool should they use?
- A . Terraform
- B . Docker
- C . Packer
- D . Ansible
C
Explanation:
– Packer is designed for automating the creation of VM images (AMI for AWS, VMDK for VMware, etc.).
– Terraform provisions infrastructure but does not create images.
– Docker is for containerization, not VM images.
– Ansible is for configuration management, not image creation.
A team is using Terraform to deploy AWS infrastructure and Ansible to configure servers.
What is the BEST way to pass AWS instance details from Terraform to Ansible?
- A . Use terraform apply and manually copy instance details into Ansible
- B . Use Terraform’s remote-exec provisioner
- C . Use Terraform output variables and feed them into Ansible dynamically
- D . Run Ansible first, then use Terraform
C
Explanation:
– Terraform output variables allow Ansible to retrieve instance details automatically.
– Example Terraform output:
– output "instance_ip" {
– value = aws_instance.web.public_ip
– }
– Option A is incorrect because manual copying defeats automation.
– Option B is incorrect because remote-exec is not the best approach for Ansible integration.
– Option D is incorrect because Terraform should run before Ansible.
A developer is running multiple Docker containers on a single host. The containers need to communicate with each other by their names instead of using IP addresses.
What is the BEST way to achieve this?
- A . Assign each container a static IP address
- B . Use the –link option in docker run
- C . Create a Docker network and connect all containers to it
- D . Use docker-compose without defining a network
C
Explanation:
By default, Docker containers run on an isolated bridge network and must use IP addresses for communication. To enable name-based communication, use a custom Docker network.
– Solution: Create a user-defined bridge network, which provides automatic DNS resolution.
Example:
docker network create mynetwork
docker run -d –network=mynetwork –name=app myapp
docker run -d –network=mynetwork –name=db mydb
– Now, app can communicate with db using db:port instead of an IP address.
Your web application is experiencing high response times, and users report slow performance. The server hosting the application is running multiple services.
How can you quickly identify if the issue is related to network performance?
- A . Use iftop to check real-time network traffic
- B . Restart the web server and see if performance improves
- C . Increase the CPU and memory allocation on the server
- D . Check /var/log/syslog for any error messages
A company wants to secure its cloud infrastructure by enforcing network security rules.
What is the BEST way to restrict SSH access to only the company’s internal network?
- A . Use Security Groups to allow SSH access only from internal IP ranges
- B . Disable SSH on all cloud instances
- C . Allow SSH from all public IP addresses but require two-factor authentication
- D . Use an unencrypted connection for SSH
A
Explanation:
– Security Groups in AWS or firewalls in other cloud providers can restrict SSH access only to trusted IP addresses:
– aws ec2 authorize-security-group-ingress
– –group-name MySecurityGroup –protocol tcp –port 22
– –cidr 192.168.1.0/24
– Option B is incorrect because disabling SSH prevents remote administration.
– Option C is incorrect because allowing SSH from all IPs is insecure.
– Option D is incorrect because SSH must always be encrypted.
A company is using Nagios to monitor servers, but administrators frequently receive false positive alerts.
What is the BEST way to reduce unnecessary alerts?
- A . Increase the check interval and require multiple failed checks before sending an alert
- B . Disable alerting for all non-critical services
- C . Increase the logging level of Nagios to debug mode
- D . Restart the Nagios service every hour to refresh monitoring
A
Explanation:
– To reduce false positive alerts, adjust Nagios configuration:
– define service {
– check_interval 5
– retry_interval 2
– max_check_attempts 3
– }
– Option B is incorrect because disabling alerts removes critical notifications.
– Option C is incorrect because increasing logging does not affect alert frequency.
– Option D is incorrect because restarting Nagios does not solve the underlying issue.
In a code review process, which of the following is the best practice for merging changes into the main branch?
- A . Always use the `git merge` command without reviewing the changes
- B . Use `git rebase` to maintain a linear commit history
- C . Delete the main branch before merging
- D . Always use `git commit –amend` to modify previous commits
B
Explanation:
Git rebase helps maintain a clean and linear commit history, making it easier to track changes. While `git merge` is also a valid approach, rebase avoids unnecessary merge commits.
A company wants to deploy multiple Linux virtual machines on a single physical server for different departments. The IT team needs a virtualization technology that is optimized for Linux servers and can efficiently use hardware resources.
Which solution should they choose?
- A . VMware Workstation
- B . VirtualBox
- C . KVM (Kernel-based Virtual Machine)
- D . Hyper-V
C
Explanation:
– KVM is integrated into the Linux kernel, providing better performance and efficiency for Linux-based virtual machines.
– VMware Workstation and VirtualBox are better suited for desktop environments rather than production servers.
– Hyper-V is optimized for Windows environments, not Linux servers.