Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free LPI Linux Professional Institute DevOps Tools Engineer Exam 701 (version 1.0) 701-100 Exam Questions

Last updated: · 14 practice questions with answers and explanations

Page: 1 / 6 Total 60 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Topic 701: Software Engineering

Skill tested: Designs service APIs with appropriate statelessness, persistence, and session handling.

A team is extracting order processing from a monolithic retail application into a service that will run in multiple container replicas. The service must survive replica replacement and scale horizontally during seasonal peaks. Current code stores a customer's shopping workflow in process memory and writes completed orders to a relational database. The public API is used by browser and mobile clients, and the team wants to avoid sticky load-balancer sessions. Which design best meets these requirements?

Correct Answer: A. Store durable order data in the database and put shared session or workflow state in an external store accessible to all replicas; expose a versioned API.
Explanation:

Replicas that may be replaced or scaled independently should not own the only copy of durable state. Keeping orders in the database and placing any required shared workflow state in an external service lets any replica handle a request without sticky routing. A versioned API also supports client evolution. Sticky sessions in A limit effective balancing and do not protect in-memory state from loss. A shared filesystem plus IP routing in C retains coupling without reliable session semantics. Container-local files in D are ephemeral and cannot provide durable order storage.

Question 2

New Single answer

Topic: Topic 701: Software Engineering

Skill tested: Selects API semantics and idempotency controls for reliable service retries.

A payment integration receives requests from an upstream service that retries when it times out. In production, a payment can be accepted by the provider even though the response is lost, causing the upstream service to submit the same charge again. The provider supports a client-supplied idempotency key, and the service must preserve an auditable record of each logical payment. Which change is the most appropriate?

Correct Answer: D. Use an idempotency key for each logical payment, persist its outcome, and return the prior outcome when that key is retried.
Explanation:

A stable idempotency key ties repeated attempts to one logical payment. Persisting the key and outcome allows the service to return the original result instead of issuing another charge, while retaining an auditable record. A time-based customer throttle in B can block legitimate separate payments and cannot identify the same logical request reliably. A 202 response in C neither guarantees completion nor prevents retries. Generating a new key for every retry, as in D, defeats provider-side deduplication.

Question 3

New Single answer

Topic: Topic 701: Software Engineering

Skill tested: Applies secure handling of untrusted input in service APIs.

A document-conversion API accepts a filename and a requested output format from customers. The service runs with access to a directory containing queued documents and invokes a command-line converter. A recent security review found that request values are concatenated into a shell command. The team must reduce command-injection and path-traversal risk without changing the converter. Which implementation is best?

Correct Answer: A. Validate format against an allowlist, resolve and constrain paths to the service directory, and invoke the converter with an argument vector rather than a shell.
Explanation:

An allowlist constrains the requested format, canonical path checks prevent escape from the permitted directory, and passing arguments directly avoids shell interpretation of metacharacters. These controls address both risks while preserving the existing converter. Escaping spaces alone in A is incomplete because shell metacharacters and path traversal remain possible. Running as root in B magnifies the impact of exploitation. Base64 in D is encoding, not input validation or safe command execution.

Question 4

New Multiple answers

Topic: Topic 702: Container Management

Skill tested: Builds reproducible Docker images with safe build context and least-privilege runtime settings.

A software group builds a Docker image for a Go service. The repository contains source code, tests, a local `.env` file with developer credentials, and a compiled binary. Production requires a small image and a non-root process; the image must be built from a reviewed source revision rather than depend on a developer's prebuilt artifact. Which TWO changes best satisfy these requirements? Select TWO.

Correct Answer: A. Use a multi-stage Dockerfile to compile the binary in a build stage and copy only the required binary into the runtime stage.; E. Add `.env`, tests, and generated files to `.dockerignore`, and build using source-controlled inputs.
Explanation:

A multi-stage build compiles from the reviewed source while keeping compilers and build dependencies out of the final runtime image. Excluding `.env` and irrelevant files from the build context prevents accidental inclusion and reduces context size; the Dockerfile can then create and use an unprivileged runtime user. Removing a secret in a later layer, as B proposes, does not remove it from earlier image layers. Root execution in D violates least privilege, and relying on a local binary in E breaks reproducibility and reviewability.

Question 5

New Single answer

Topic: Topic 702: Container Management

Skill tested: Publishes Docker images to a registry using correct tagging and authentication workflow.

A release engineer has built a Docker image locally and must publish it to the organization's private registry under the repository `apps/catalog`, tagged `2.4.1`. The registry requires authenticated access, and the release process must ensure that the image pushed is the one built locally. Which sequence is appropriate?

Correct Answer: A. Log in to the registry, tag the local image with the registry hostname and repository path, then push that fully qualified tag.
Explanation:

Docker pushes an image using its assigned tag. The release engineer should authenticate, tag the locally built image with the private registry hostname and required repository/tag, and push that tag; this publishes the intended local image under the expected name. A omits the registry hostname and authenticates too late. Docker's normal push workflow uses a tagged reference rather than pushing a bare image ID as in C. D neither identifies the local build nor meets the registry's authentication requirement.

Question 6

New Multiple answers

Topic: Topic 702: Container Management

Skill tested: Uses Docker networks and volumes to provide service connectivity and persistent shared data.

A deployment consists of an API container and a database container on one Docker host. The database must retain its data when its container is replaced, and the API must reach it by a stable service name without publishing the database port to the host. A host-side backup process also needs access to the database files while the database is stopped. Which TWO actions meet these requirements? Select TWO.

Correct Answer: B. Mount a named volume at the database's data directory and use that same volume for the offline host-side backup workflow.; C. Place both containers on a user-defined Docker bridge network and configure the API to connect to the database container name.
Explanation:

A user-defined bridge network provides container-to-container connectivity and name-based service discovery without requiring host port publication. A named volume persists independently of the database container and can be mounted for a controlled offline backup when the database is stopped. Publishing the port on all interfaces in B exposes the database unnecessarily. The writable layer and image commits in D are not a sound persistence strategy. Separate isolated networks in E prevent the API from reaching the database.

Question 7

New Single answer

Topic: Topic 702: Container Management

Skill tested: Chooses Docker orchestration behavior appropriate for replicated services and external access.

A small team runs a stateless web service with Docker Swarm. It needs three service replicas, and clients must reach the service through the Swarm routing mesh on a published port even if a request reaches a node without a local task. The team does not need one container per node. Which deployment choice best fits?

Correct Answer: C. Create a replicated service with three replicas and publish the port using the ingress mode.
Explanation:

A replicated Swarm service schedules the requested number of tasks, while publishing in ingress mode uses the routing mesh so a node can accept traffic and forward it to a service task elsewhere. A global service schedules one task on each eligible node, contrary to the stated replica requirement, and host mode bypasses the routing mesh. Standalone containers in C are not managed as a Swarm service. D has one task and host-mode publishing, so it does not meet either stated condition.

Question 8

New Single answer

Topic: Topic 703: Machine Deployment

Skill tested: Configures Vagrant synced folders and provisioning for repeatable development environments.

A development team uses Vagrant to create Linux virtual machines from a shared base box. Each developer must edit application files on the host and see changes inside the guest immediately. The VM also needs a package installed during creation, but developers should not manually repeat setup after destroying and recreating it. Which Vagrantfile approach is most suitable?

Correct Answer: D. Use a synced folder mapping the project directory into the guest and a provisioning script or configuration management provisioner for package installation.
Explanation:

Vagrant synced folders make host project files available in the guest and reflect development changes according to the provider's sync mechanism. Provisioners automate guest setup when the environment is created, making package installation repeatable. Manual copying and interactive installation in B are not reproducible. A host directory cannot serve as the guest root filesystem through the described setting in C. Per-developer boxes in D duplicate project state and complicate maintenance rather than providing a shared workflow.

Question 9

New Single answer

Topic: Topic 703: Machine Deployment

Skill tested: Selects cloud instance sizing and storage configuration against workload constraints.

A team is preparing a Linux instance in an IaaS cloud for a build worker. Measurements show that builds are limited by sustained CPU throughput and temporary working data is recreated for each job. The worker must retain only its configuration and logs after replacement; persistent build artifacts are stored in a separate service. Which provisioning decision best matches the workload while limiting unnecessary cost?

Correct Answer: A. Choose a compute-optimized instance sized to measured CPU demand, use ephemeral capacity for scratch data, and keep required configuration and logs on durable storage.
Explanation:

The stated bottleneck is sustained CPU throughput, so a compute-optimized instance sized from measurements is the appropriate starting point. Re-creatable scratch data can use ephemeral capacity, while configuration and logs that must survive replacement belong on durable storage. A memory-optimized machine in B spends on the wrong resource and still conflates temporary data with root storage. C ignores the measured per-worker bottleneck, and D pays for durable storage and a storage-oriented instance that the workload does not require.

Question 10

New Single answer

Topic: Topic 704: Configuration Management

Skill tested: Uses Ansible handlers to restart services only after relevant configuration changes.

An Ansible playbook renders a web server configuration from a Jinja2 template and ensures the service is enabled and running. A restart is required only when the rendered configuration changes; restarting on every run causes avoidable connection disruption. The playbook must remain idempotent. What is the best implementation?

Correct Answer: C. Use a template task that notifies a restart handler, and define the handler to restart the service.
Explanation:

Ansible's template module reports a change when the rendered file differs. A notified handler runs at the end of the play only when notified, so the service restarts after a relevant configuration change and remains undisturbed on an unchanged run. An unconditional shell restart in B is not idempotent. Restarting before the template in C applies the old configuration and does not correctly represent change-driven behavior. Host-name gating in D neither tracks template changes nor ensures all affected hosts reload their configuration.

Question 11

New Multiple answers

Topic: Topic 704: Configuration Management

Skill tested: Protects Ansible credentials with Vault and uses least-privilege remote access.

An operations team stores database credentials needed by an Ansible playbook. The repository is shared with developers who may review the playbook but must not read the secret, and the playbook connects to managed Linux hosts through a dedicated unprivileged account that requires privilege escalation for package installation. Which TWO practices are appropriate? Select TWO.

Correct Answer: A. Connect as the dedicated unprivileged account and configure privilege escalation for tasks that require elevated privileges.; E. Encrypt the variable file containing the credentials with Ansible Vault and provide its decryption secret through a controlled runtime mechanism.
Explanation:

Ansible Vault encrypts sensitive variable files so repository readers without the decryption secret cannot read their contents; the password or key must be supplied separately through an appropriately controlled runtime process. Connecting as an unprivileged account and using privilege escalation only for tasks that need it follows least privilege. Plaintext secrets in B remain exposed. Storing the decryption password beside the ciphertext in D defeats the protection. Direct root access in E unnecessarily expands remote privileges.

Question 12

New Single answer

Topic: Topic 704: Configuration Management

Skill tested: Uses Ansible inventory groups, host variables, and group variables for scalable targeting.

A company manages staging and production Linux systems with Ansible. Both environments run the same playbook, but production uses a different application endpoint and only production hosts should receive a release deployment. The team wants to avoid duplicating host definitions and playbooks. Which inventory design best supports this?

Correct Answer: C. Define separate staging and production groups, place each host in its environment group, store environment-specific values in group variables, and target the production group for release runs.
Explanation:

Inventory groups provide an explicit and maintainable way to distinguish environments, while group variables hold values that differ by environment. Targeting the production group makes the deployment scope clear and reduces the risk of affecting staging or unrelated hosts. Hard-coded endpoint and IP selection in B are brittle. Per-host playbook copies in C create duplication and configuration drift. A global endpoint in D applies production configuration too broadly, and application state is not a reliable substitute for environment membership.

Question 13

New Single answer

Topic: Topic 705: Service Operations

Skill tested: Defines Prometheus alerting signals that distinguish service symptoms from internal causes.

A customer-facing API must alert operations when users experience sustained request failures, while avoiding pages for brief isolated errors. Prometheus scrapes request counters labeled by response class. The team also wants alerts to remain meaningful when the service is replicated across several instances. Which alerting approach is most appropriate?

Correct Answer: B. Calculate a failure ratio from rates of error and total requests over a suitable window, aggregate across instances, and alert when the ratio exceeds a defined threshold.
Explanation:

A ratio of error-request rate to total-request rate measures the user-visible failure signal, while a time window smooths brief spikes and aggregation avoids treating each replica as a separate service. The threshold and window should reflect the service's operational objectives. A raw cumulative counter in A eventually remains positive and creates persistent or noisy alerts. CPU in C is an indirect cause indicator, not evidence of failed requests. Scrape availability in D does not establish logical API correctness.

Question 14

New Multiple answers

Topic: Topic 705: Service Operations

Skill tested: Chooses Prometheus metrics for monitoring service availability, latency, and workload behavior.

A service team is defining operational indicators for a request/response API. The service exposes request totals by outcome and a histogram of request duration. Operations needs to detect degraded user experience and distinguish rising demand from a higher failure rate. It must avoid alerts based on a single noisy instance. Which TWO measurements should be included? Select TWO.

Correct Answer: A. The rate of total requests over time, aggregated across instances, to characterize workload and demand.; B. The proportion of failed requests among all requests over an appropriate observation window.
Explanation:

The request rate indicates workload changes, while the failure proportion shows whether the service is handling that workload successfully; both should be aggregated and evaluated over a meaningful window. The available duration histogram can additionally inform latency objectives, but among the listed choices A and B directly meet the demand-versus-failure requirement. Instance age in C is not service availability. A monotonically increasing raw counter in D is not a useful fixed-threshold signal. Replica count in E does not reveal latency or successful behavior.