LPI 701-200 Practice Questions with Explanations
Free LPI 701-200 practice questions. 13 of them, each with the correct answer, a full explanation, and the reason every other option is wrong.
701-200 practice questions
Question 1
Which of the following data structures is a JSON array?
- A. {"data": }
- B. {"data":"one", "two"}
- C. {"data":"1";"data":+"2"}
- D. {data:{one:1,two:2}}
- E. {"data":["one","two"]}
Show answer and explanation ▾
Correct answer: E
A JSON array is an ordered list of values inside square brackets. Option E is the only one whose value is a bracketed list, ["one","two"], as a valid JSON member.
Why the other options are wrong:
- A. Angle brackets are not valid JSON syntax.
- B. A second string after a comma is not a valid key and value pair, and there is no array.
- C. Semicolons and a plus sign are not valid JSON.
- D. This is an object, not an array, and its key is not quoted as JSON requires.
Question 2
A service provider runs infrastructure in various globally distributed locations and offers to deliver static files from these locations to clients that need to access this data.
What kind of service is this?
- A. A message broker (MB)
- B. A function as a service provider (FaaS)
- C. A distributed database (SDSB)
- D. A content delivery network (CDN)
- E. An application runtime service (ARS)
Show answer and explanation ▾
Correct answer: D
Serving static files from many geographically spread locations so clients get them from a nearby one is exactly what a content delivery network does.
Why the other options are wrong:
- A. A message broker passes messages between applications and does not serve files to clients.
- B. FaaS runs code on demand; it does not distribute static files.
- C. A distributed database stores structured data across nodes, not static files for delivery.
- E. An application runtime service runs applications and is not a file delivery network.
Question 3
What is the benefit of feature toggles? (Choose two.)
- A. Feature toggles decouple technical deployments from the official launch of a product.
- B. Feature toggles reduce the build time by excluding unnecessary features from a build.
- C. Feature toggles eliminate the need for feature branches in a source code management system (SCM) during development.
- D. Feature toggles start microservices on demand when their functionality is requested.
- E. Feature toggles can enable new features for advanced users before globally releasing them.
Show answer and explanation ▾
Correct answer: A, E
A toggle lets code ship switched off and be turned on later, which separates deployment from launch. It can also turn a feature on for a chosen group, such as advanced users, before a global release.
Why the other options are wrong:
- B. Toggles are switched at runtime, so the code is still built and build time does not fall.
- C. Toggles can reduce long-lived branches, but they do not remove the need for feature branches.
- D. Starting microservices on demand is done by orchestration or serverless platforms, not by toggles.
Question 4
After creating a new file within a directory which belongs to a Git repository, which commands have to be used in order to make Git manage the new file and upload it to an already configured remote repository? (Choose three.)
- A. git init
- B. git push
- C. git commit
- D. git add
- E. git remote
Show answer and explanation ▾
Correct answer: B, C, D
The new file is staged with git add, recorded with git commit, and sent to the configured remote with git push, in that order.
Why the other options are wrong:
- A. git init creates a new repository and is not needed in an existing one.
- E. git remote manages remote definitions, and the remote is already configured.
Question 5
Which of the following values stems from the Agile Manifesto?
- A. Processes and tools over individuals and interactions.
- B. Contract negotiation over customer collaboration.
- C. Comprehensive documentation over working software.
- D. Predictability and long-term planning over flexibility and adaption.
- E. Responding to change over following a plan.
Show answer and explanation ▾
Correct answer: E
The Agile Manifesto states four values: individuals and interactions over processes and tools, working software over comprehensive documentation, customer collaboration over contract negotiation, and responding to change over following a plan.
Why the other options are wrong:
- A. This reverses the manifesto value, which puts individuals and interactions over processes and tools.
- B. This reverses the manifesto value, which puts customer collaboration over contract negotiation.
- C. This reverses the manifesto value, which puts working software over comprehensive documentation.
- D. This is not a manifesto value; the manifesto favors responding to change over following a plan.
Question 6
Which of the following clauses is included in permissive open source licenses as well as copyleft open source licenses?
- A. The software must always be distributed with its source code.
- B. The software may not be modified without the permission of the original author.
- C. The software may be used by anyone who obtains a copy.
- D. The software must be shared with others.
- E. The software may not be included in commercial products.
Show answer and explanation ▾
Correct answer: C
Every open source license, permissive or copyleft, must meet the Open Source Definition, which forbids discrimination against any person or group and against any field of endeavor. So anyone who obtains a copy may use the software.
Why the other options are wrong:
- A. Open source licenses allow distribution without source code when the source can be obtained another way, so this clause is not common to all of them.
- B. Open source licenses must allow modifications and derived works.
- D. Open source licenses do not oblige users to share the software with others.
- E. Open source licenses may not restrict use of the program in a business.
Question 7
Which of the following statements are true about CI/CD platforms, such as GitLab CI or Jenkins? (Choose two.)
- A. The concept of CI/CD platforms is specific to Java-based applications.
- B. CI/CD platforms can delegate tasks to dedicated worker nodes.
- C. CI/CD platforms only work on local files and cannot use repositories of source code management systems (SCM).
- D. CI/CD can only be used with containerized applications.
- E. The steps executed by a CI/CD platform can be changed for individual applications.
Show answer and explanation ▾
Correct answer: B, E
CI/CD platforms hand jobs to separate agents, such as GitLab runners on physical machines or virtual instances. Each project defines its own stages, jobs and scripts, for example in its .gitlab-ci.yml file, so the steps can differ from one application to another.
Why the other options are wrong:
- A. CI/CD platforms build and test applications in any language, not only Java.
- C. CI/CD pipelines are typically triggered by commits and merge requests in a source code repository.
- D. CI/CD platforms build, test and deploy applications whether or not they run in containers.
Question 8
Which of the following products are relational databases? (Choose two.)
- A. Kafka
- B. Redis
- C. OpenSearch
- D. MariaDB
- E. PostgreSQL
Show answer and explanation ▾
Correct answer: D, E
MariaDB Server is a relational database that provides an SQL interface for accessing data. PostgreSQL is an open source object-relational database system that uses and extends the SQL language.
Why the other options are wrong:
- A. Kafka is a distributed event streaming platform, not a relational database.
- B. Redis is an in-memory data store used as a cache, document database and message broker, not a relational database.
- C. OpenSearch is an engine for search and observability, not a relational database.
Question 9
Which of the following statements are true regarding the commands git diff and git diff --staged? (Choose two.)
- A. git diff --staged shows changes of all commits that were not pushed to a remote repository yet.
- B. git diff shows changes that were not added to the next commit.
- C. git diff and git diff --staged always lead to the same result If a repository does not have at least one remote repository.
- D. git diff --staged shows changes that will be included in the next commit.
- E. git diff --staged shows changes included in the last successful commit of the current branch.
Show answer and explanation ▾
Correct answer: B, D
Plain git diff compares the working tree with the index, showing changes not yet added for the next commit. git diff --staged, a synonym of --cached, shows the changes already staged for the next commit compared with the latest commit.
Why the other options are wrong:
- A. git diff --staged compares staged changes with a commit, not unpushed commits with a remote repository.
- C. The two forms compare different things, the working tree against the index and the index against a commit, whatever the remotes.
- E. git diff --staged shows staged changes that are not committed yet, not the contents of the last commit.
Question 10
What is the purpose of the command git rebase?
- A. Applying commits from one branch to another branch
- B. Showing all changes of a file in chronological order
- C. Removing a file from the Git history
- D. Reverting a merge that was accidentally created
- E. Changing the URL of a remote repository
Show answer and explanation ▾
Correct answer: A
git rebase reapplies commits on top of another base tip, transplanting a series of commits onto a different starting point such as the head of another branch.
Why the other options are wrong:
- B. Showing the history of a file in order is the job of git log, not git rebase.
- C. Removing a file from the whole history is not the purpose of git rebase.
- D. Undoing an accidental merge is not the purpose of git rebase.
- E. A remote URL is changed with git remote set-url, not git rebase.
Question 11
Which git command restores changes that were saved using git stash save?
- A. git stash merge
- B. git stash revert
- C. git stash pop
- D. git stash restore
- E. git stash commit
Show answer and explanation ▾
Correct answer: C
git stash pop removes a single stashed state from the stash list and applies it on top of the current working tree, the inverse of saving changes with git stash push or the older git stash save.
Why the other options are wrong:
- A. git stash has no merge subcommand.
- B. git stash has no revert subcommand.
- D. git stash has no restore subcommand.
- E. git stash has no commit subcommand.
Question 12
Which of the following kinds of linking of a binary program to its libraries exist? (Choose two.)
- A. Loose linking
- B. Static linking
- C. Forced linking
- D. Tight linking
- E. Dynamic linking
Show answer and explanation ▾
Correct answer: B, E
A program is joined to its libraries either by static linking, where the library code becomes part of the executable, or by dynamic linking, where shared libraries are loaded when the program runs.
Why the other options are wrong:
- A. Loose linking is not a recognized way of linking a program to its libraries.
- C. Forced linking is not a recognized way of linking a program to its libraries.
- D. Tight linking is not a recognized way of linking a program to its libraries.
Question 13
Which of the following docker compose subcommands exists?
- A. describe
- B. join
- C. up
- D. registry
- E. deploy
Show answer and explanation ▾
Correct answer: C
docker compose up creates and starts the containers for the services defined in the Compose file. The official list of docker compose subcommands includes up, but it has no describe, join, registry or deploy subcommand.
Why the other options are wrong:
- A. describe is not a docker compose subcommand.
- B. join is not a docker compose subcommand.
- D. registry is not a docker compose subcommand.
- E. deploy is not a docker compose subcommand.
That was 13 of 54.
The full LPI 701-200 pack has all 54 questions, each with the answer, the explanation and why the other options are wrong, plus a questions-only copy for timed runs. $39.00 USD, paid once, with free monthly updates and a pass-or-your-money-back guarantee.
Get the full packNot ready yet? Get the first 13 free as one PDF by email. Get the Half Pack →
About the 701-200 exam
These 13 LPI 701-200 questions are free here, and as a free PDF by email.
They are drawn from the same bank as the full 701-200 pack, which has 54 questions in total.