Exam Information
Free practice questions with explanations
LPI 701-100 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 15
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Container Management
A development team packages a Python API into a Docker image. The image currently copies the entire project directory, including a local .env file containing database credentials and a large node_modules-like cache directory, into the build context. The build is slow and the credentials end up baked into the image layers pushed to a shared registry. The team must keep the same Dockerfile COPY instruction and fix both problems with the smallest change. What should they do?
Correct Answer: CExplanationDocker sends the entire build context to the daemon before any instruction runs, and a .dockerignore file in the context root excludes matching paths from that context, so the files never reach COPY. Deleting files with RUN does not remove them from earlier image layers, so the credentials would still be recoverable from the pushed image. Build ARGs are also recorded in image history, so they still leak secrets. Moving the Dockerfile changes the build context path and would break the existing COPY instruction, which the team must keep.
-
2 Question 2 Single choice Software Engineering
A bank is migrating a monolithic loan-processing application to a microservices architecture running on a managed cloud platform. The payment service must record a transfer and publish an event to the notification service exactly when the transfer commits, and no event may be lost even if the notification broker is temporarily unavailable. Throughput requirements are high and the team wants to avoid distributed two-phase commit. Which design best meets these requirements?
Correct Answer: DExplanationThe transactional outbox pattern writes the business change and the event record atomically in a single local transaction, so the event exists if and only if the transfer commits, and a relay can deliver it later without loss. Publishing before writing can emit events for transfers that later fail, violating the exactly-when-committed rule. A distributed coordinator is ruled out by the stated avoidance of two-phase commit and its throughput cost. Polling the payment database couples services to its schema and introduces latency and load, and can miss state changes that are not reflected in simple timestamps.
-
3 Question 3 Single choice Machine Deployment
A team uses Vagrant to provision a three-machine development environment: a web server, an application server, and a database server. The application server must reach the database on a private network, and developers need the web server reachable from their host browser on port 8080. The team wants a single vagrant up command to bring up all machines, and each machine must be provisioned in a defined order with the database first. Which Vagrantfile construct should they use?
Correct Answer: BExplanationVagrant's multi-machine setup is expressed with config.vm.define blocks inside one Vagrantfile, which lets vagrant up manage every machine together, and each block can carry its own network settings. Private networks give the application and database servers a host-only path between them, and forwarded_port exposes the web server to the host browser. Separate Vagrantfiles do not give a single coordinated bring-up. A single shared box with one provisioner cannot model three distinct roles cleanly, and synced folders handle file sharing, not network reachability or start order.
-
4 Question 4 Single choice Configuration Management
An Ansible playbook deploys a web application to a group of production hosts. The database password is stored in group_vars and must not appear in plain text in the repository. The team needs a playbook run from a CI server to decrypt the value without any interactive prompt, and the vault password must not be committed to the repository. Which approach meets these requirements?
Correct Answer: AExplanationAnsible Vault encrypts the variable file at rest, and --vault-password-file lets a non-interactive run read the password from a file that the CI platform creates from its own secret store at runtime, so the password never enters the repository. Committing the password file, even on a restricted branch, defeats the purpose of encryption. Inventory host variables remain plain text in the repository. --ask-vault-pass requires interactive input, which the CI job cannot provide, and echoing the password into logs exposes it.
-
5 Question 5 Single choice Service Operations
An e-commerce service exposes a checkout API. The operations team defines a service level objective that 99% of checkout requests must complete within 300 milliseconds over a rolling 30-day window. They use Prometheus to measure this. Alerts must fire quickly when the error budget is being consumed too fast, and dashboards must stay responsive with tens of millions of samples per day. Which measurement strategy best fits these requirements?
Correct Answer: DExplanationPrometheus histograms store cumulative bucket counts that allow computing the proportion of requests below a threshold, which matches a percentage-within-threshold objective, and recording rules precompute that ratio so dashboards stay fast at high sample volume. Burn-rate alerts reflect how quickly the error budget is consumed, which is the requirement for rapid alerting. An average latency gauge hides tail behaviour and cannot express the per-request percentage objective. A request counter does not measure latency at all. Nightly log analysis cannot provide the timely alerting the team needs.
-
6 Question 6 Single choice Container Management
A team runs a containerized Node.js service in Docker. The service writes uploaded files to /var/app/uploads and must keep them when the container is recreated during upgrades. Two other containers on the same host must read those files as well. The team does not want the data tied to the container's lifecycle or to a specific host directory layout. Which approach should they use?
Correct Answer: AExplanationA named Docker volume is managed by Docker, persists independently of container lifecycle, and can be attached to several containers at once, which covers both the upgrade and the sharing requirement without exposing a host path. Anonymous volumes created by a Dockerfile VOLUME instruction are unnamed and not reliably shared across separately created containers. A bind mount ties the data to a host directory layout, which the team explicitly wants to avoid. docker commit creates images from container state and is not a persistence mechanism for runtime data.
-
7 Question 7 Single choice Software Engineering
A company runs a legacy order-management application on a single large virtual machine. The team plans to expose parts of it as REST APIs consumed by a new mobile app. The legacy code stores session state in server memory and writes to a shared file system during order processing. Compliance requires that customer payment data remain in the existing database and never be cached in a shared location. Which migration step carries the greatest risk that must be addressed first?
Correct Answer: DExplanationSession state held in one server's memory breaks as soon as more than one instance serves API traffic, because requests routed to another instance lose the session, so externalizing session state is the critical enabling change before scaling. Rewriting reports or swapping the database engine are real changes but do not block the API exposure in the same way and add risk without addressing the session dependency. A load balancer in front of a single machine adds nothing until there are multiple backends, and in that state the session problem would immediately surface.
-
8 Question 8 Multiple choice Configuration Management
A team uses Ansible to configure a fleet of Debian servers. A playbook must restart the nginx service only when a configuration template actually changes, and must install a package only on hosts whose distribution family is Debian. The playbook also needs to capture the output of a command for a later task. Which TWO constructs together satisfy these requirements? (Choose two.)
Correct Answer: B, DExplanationHandlers run only when a task that notifies them reports a change, so notifying a restart handler from the template task restarts nginx only after an actual configuration change. A when conditional using ansible_os_family restricts the package task to Debian-family hosts. Register does capture output, but it does not address the restart or distribution requirements, so it is not one of the two constructs the stem asks for. Loops in handlers are not a valid way to gate installation, and vars in inventory do not implement conditional execution.
-
9 Question 9 Order list Modern Software Development
A team must migrate a stateless REST service from a single virtual machine to a container platform in a way that avoids downtime for existing clients. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Shift all traffic to the containerized service and keep the VM available for rollback
- Build and push a container image to the registry and deploy it to the platform
- Verify health checks and error rates on the new deployment before increasing its traffic share
- Run the containerized service alongside the existing VM and route a small share of traffic to it
Correct Answer:- Run the containerized service alongside the existing VM and route a small share of traffic to it
- Verify health checks and error rates on the new deployment before increasing its traffic share
- Shift all traffic to the containerized service and keep the VM available for rollback
- Build and push a container image to the registry and deploy it to the platform
ExplanationThe image must exist in a registry before the platform can run it, so building and pushing comes first. Running the new service alongside the old one lets the team introduce traffic gradually. Health checks and error rate observation must precede increasing traffic, since a bad rollout should be caught while only a small share is affected. Full cutover comes last, with the VM kept for rollback, which is the standard blue-green or canary path that protects existing clients.
-
10 Question 10 Drag and drop Service Operations
An operations engineer must monitor a Prometheus-scraped web service and its infrastructure. Match each monitoring requirement to the Prometheus capability that best meets it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Find the request latency value below which 95 percent of requests fallTrack the current number of open database connections on a hostKnow the proportion of requests that failed in the last five minutesRate of a counter of failed requests divided by a rate of total requestsA summary metric computed once on the application host and never aggregatedA gauge metric sampled at each scrapeStoring the scrape results as log lines for text searchhistogram_quantile applied to histogram bucket countersCorrect Answer:- Know the proportion of requests that failed in the last five minutes → Rate of a counter of failed requests divided by a rate of total requests
- Track the current number of open database connections on a host → A gauge metric sampled at each scrape
- Find the request latency value below which 95 percent of requests fall → histogram_quantile applied to histogram bucket counters
ExplanationA ratio of failure rate to total request rate uses rate over counters, which is how Prometheus expresses error proportions over a window. Open connections fluctuate up and down, so a gauge fits. A latency percentile across a fleet requires histogram buckets combined with histogram_quantile, which is aggregatable across instances. The distractors describe logging behaviour that Prometheus does not provide as its model, and a locally computed summary that cannot be aggregated across instances.
-
11 Question 11 Dropdown Container Management
A developer builds a container image for a Go service and tags it for a private registry. Complete the commands by selecting the correct value for each blank.
Choose the correct value for each blank.
docker build -t .
docker pushCorrect Answer:docker build -t registry.example.com/shop/api:1.4.0 .
docker push registry.example.com/shop/api:1.4.0ExplanationThe docker build -t flag applies a repository name and tag, and docker push requires the image reference to include the registry host, namespace and tag, so the same full reference must appear in both commands. A tar file name is an archive path, not an image reference, and a local filesystem path cannot be pushed. A Dockerfile name is a build input, not a tag. Using the same reference in both places ensures the pushed image matches the built one.
-
12 Question 12 Dropdown Machine Deployment
A team wants a Vagrant box to share the project folder with the host so that edits on the host appear in the guest, and to run a provisioning script after boot. Complete the Vagrantfile lines by selecting the correct value for each blank.
Choose the correct value for each blank.
config.vm.synced_folder ".",
config.vm.provision , path: "setup.sh"Correct Answer:config.vm.synced_folder ".", "/vagrant"
config.vm.provision "shell", path: "setup.sh"ExplanationBy default Vagrant mounts the project folder at /vagrant in the guest, and synced_folder takes the guest path as its second argument, so the synced folder points there. The shell provisioner runs a script given by path, and the other options are not provisioner names in Vagrant's provisioning set. The distractor paths do not match Vagrant's default mount point, so the sync would not be reachable where the team expects.
-
13 Question 13 Single choice Software Engineering
A healthcare startup designs a patient-record API that will run on a managed container service across two regions. The API must remain available if one region fails, and clients must not be able to read other tenants' records by changing an identifier in the request path. Which design best addresses these two requirements together?
Correct Answer: DExplanationActive instances in two regions behind a global load balancer with health checks keep the service available when one region fails, and enforcing tenant checks against the authenticated identity on each query prevents insecure direct object reference attacks regardless of the identifier value. Snapshot-based recovery in another region is slower and leaves the service down during failover. Unguessable identifiers are not an authorization control and fail the isolation requirement. DNS round-robin does not detect failed regions reliably and encrypting the path does not enforce authorization.
-
14 Question 14 Single choice Service Operations
A nightly batch job that reconciles inventory runs on a cloud VM. The operations team must document which metrics show whether the service is functional from the customer's perspective, separate from infrastructure health. A sudden rise in CPU use on the VM is observed while customers report no problems. Which metric should be treated as the primary indicator of logical service functionality?
Correct Answer: AExplanationLogical functionality measures whether the service delivers its intended outcome, and the proportion of reconciliation runs that complete with all records matched directly reflects that outcome for customers. CPU utilization, free disk space and connection counts are technical or infrastructure indicators that may explain a problem but do not show whether the service is working. The stem's observation that CPU rose while customers were unaffected reinforces that infrastructure metrics alone cannot establish functional health.
-
15 Question 15 Single choice Configuration Management
A platform team wants to reuse a standard web server configuration across several projects, and to install a community-maintained role without copying its files into their own repository. They use a requirements file for version pinning. Which command installs the pinned roles from the requirements file?
Correct Answer: DExplanationansible-galaxy install with the -r option reads a requirements file and downloads the listed roles, respecting any version pins, so the roles are fetched into the configured roles path without being copied into the project. ansible-playbook does not have an install-roles option. ansible-vault decrypts encrypted files and is unrelated to role installation. ansible-config displays configuration settings and does not install roles.
These are 15 of the 60 questions in the full 701-100 pack.
Get All 60 QuestionsGet all 60 questions & answers
Full access options for LPI 701-100
Self-study
PDF Version
- 60 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 60 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 60 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the 701-100 Exam (Linux Professional Institute DevOps Tools Engineer Exam 701 (version 1.0)) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.