Exam Information
Free practice questions with explanations
GAQM LCP-001 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 19
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Module 1
A legacy batch server running an older distribution must be reinstalled so that /var and /home are on separate partitions, and the root filesystem must remain small enough to be backed up nightly within a 20-minute window. During installation, the administrator wants to confirm which on-disk structure stores the filesystem's free block counts and mount state so that a corrupted copy can be recovered with fsck from a backup superblock. Which structure should the administrator be referring to?
Correct Answer: BExplanationThe super block holds filesystem-wide metadata including total and free block and inode counts, filesystem state and mount information, and backup copies of it are what fsck uses when the primary copy is damaged. The boot block holds the loader code rather than filesystem accounting data, inode blocks track per-file attributes such as owner and mode, and data blocks store the actual file contents, so none of those is the structure that records free counts and mount state.
-
2 Question 2 Single choice Module 2
A support engineer must list every entry in /var/log, including hidden files, sorted so the most recently modified file appears first, and show the size in human-readable units. The engineer also has to keep the output on screen for quick review rather than writing it to a file. Which invocation meets these requirements exactly?
Correct Answer: CExplanationThe combination -a includes hidden entries, -l gives the long listing, -h prints sizes in human-readable units, and -t sorts by modification time with the newest first. Option A sorts by time but omits hidden files and human-readable sizes, option C shows hidden files and readable sizes but sorts alphabetically, and option B sorts by size rather than by modification time, so each of those breaks one of the stated requirements.
-
3 Question 3 Single choice Module 2
A sysadmin on a shared Linux host is asked to transfer a 4 GB directory tree of archived project data to an external archive server. The tree contains many small files and the transfer must preserve permissions, ownership and timestamps while keeping the bandwidth used on the WAN link as small as possible, since the link is metered. The archive server already has a compression-capable tar available. Which approach best satisfies these constraints?
Correct Answer: CExplanationPackaging the tree with tar and compressing it with gzip reduces the bytes sent over the metered link, and tar preserves permissions, ownership and timestamps in the archive, while collapsing the many small files into one stream. Copying with cp -r does not compress and does not guarantee preserving ownership across the share, rsync -z would compress the stream but still send per-file metadata and overhead for many small files on a slow link, and an uncompressed tar gives up the bandwidth saving the scenario requires.
-
4 Question 4 Single choice Module 2
A network operator must verify, from a Linux host, whether a remote service on TCP port 443 of an internal server is reachable and must also see which local process owns the socket on the host that is listening on port 8080. The host must not have any additional packages installed beyond the default base image. Which command pairing provides the required information with only standard tools?
Correct Answer: DExplanationA TCP connection test to port 443 can be performed with nc -z, which exits based on whether the connection succeeds, while ps aux lists the processes so the operator can match the owning one, though it does not show sockets directly. Ping only tests ICMP reachability and cannot confirm a TCP port is open, traceroute maps the path but does not test a service port, and ssh is not a port probe; the scenario's restriction to base-image tools also excludes assumptions about lsof availability in some builds, leaving nc with ps as the most defensible pairing.
-
5 Question 5 Single choice Module 3
A database host has a nightly backup job that uses dd to clone the entire block device to a remote file for disaster recovery. The team now needs to reduce the backup window and recover individual directories, and the backup must not interrupt the live service that writes continuously to the disk. Which change best meets these needs?
Correct Answer: AExplanationA snapshot gives a stable point-in-time view so the backup does not interrupt the live writer, and tar at the file level allows restoring individual directories while shrinking the amount read per run. The conv=notrunc flag only affects how dd treats existing output files and does not make a live block copy consistent, cp -a cannot copy a block device as a filesystem, and running dd more frequently still produces full-device images and does not solve directory-level recovery.
-
6 Question 6 Single choice Module 3
An administrator is writing a pipeline to report the number of unique remote IP addresses that failed SSH logins, drawn from a log file where failed attempts contain the string 'Failed password' followed by the source address in the field two positions before the word 'port'. The pipeline must work with standard filters only and must count distinct addresses, not total attempts. Which pipeline is correct?
Correct Answer: CExplanationExtracting the address with awk from field 11 and then running sort -u removes duplicate addresses before wc -l counts the remaining distinct lines, which matches the requirement for unique sources. Using uniq without sorting only removes adjacent duplicates so it overcounts, cut -f1 selects the timestamp rather than the address, and piping through uniq -c before wc -l counts the groups correctly but leaves the count tied to the output format rather than giving the distinct address total directly when combined as written.
-
7 Question 7 Single choice Module 3
A systems engineer must run a long data-migration script in the background on a remote SSH session that may disconnect, and must later bring the job to the foreground to check its progress and then suspend it. The shell is bash and job control is enabled. Which sequence of actions meets these requirements with the least risk of losing the job?
Correct Answer: AExplanationAppending & starts the migration as a background job under bash job control, fg brings it back to the foreground for checking progress, and Ctrl-Z suspends it, which is the required interactive control. Ctrl-Z in option A suspends rather than backgrounds, so the job would be stopped, Ctrl-C in option C terminates the job instead of detaching it, and kill -STOP in option D would leave the process stopped and not progressing, so none of those preserves a running job across the session.
-
8 Question 8 Single choice Module 3
During a change window, an operator must edit a configuration file on a server with only the vi editor available. The file is /etc/app/settings.conf, which is currently open read-only because the operator forgot sudo. The operator needs to make the edit, save, and exit without losing the changes. Which action sequence is correct?
Correct Answer: AExplanationDiscarding the read-only session with :q! and reopening with sudo vi gives write permission, and :wq then writes and exits, which is the standard recovery path. Forcing :w! as the unprivileged user cannot override file permissions, :set nowrite is not a way to enable saving and does not exist as the means to write, and typing :q after making edits would be refused, so option D fails at the exit step for changed content.
-
9 Question 9 Single choice Module 1
A company is provisioning new Linux servers from a golden image and must decide how to lay out the disk so that a failed upgrade can be rolled back and the boot environment is isolated from user data. The security team requires that the bootloader configuration and kernel images remain on a partition that cannot be altered by a regular user's processes. Which partitioning decision best meets these requirements?
Correct Answer: CExplanationA dedicated /boot partition isolates the kernel and bootloader files from user data, and mounting it read-only when not updating prevents routine processes from modifying them. Placing /boot under /home exposes boot files to user control and breaks the security requirement, a single root partition ties user data and boot files together, which weakens isolation, and /tmp is cleared at reboot so kernels stored there would be lost, making it unsuitable for the stated rollback need.
-
10 Question 10 Single choice Module 2
A systems team is documenting how their Linux servers reach a newly added subnet. The routing table is reviewed with the command that lists the kernel routing table in numeric form, so that hostnames are not resolved during the audit and the output is not delayed by DNS lookups. Which command meets this exact requirement?
Correct Answer: BExplanationroute -n prints the kernel routing table with numeric addresses, avoiding reverse DNS lookups and the delay they cause, which is the exact requirement of the audit. ip route show all is not a valid form that produces the routing table in the required way, netstat -rv resolves names by default and is not numeric unless -n is added, and ip addr show lists interface addresses rather than the routing table, so it does not answer the audit need.
-
11 Question 11 Single choice Module 3
A monitoring script must find all processes in state D (uninterruptible sleep) that belong to a specific database user, and print their PID and command name only, for a stuck-I/O investigation. The script runs on a production host where the team cannot install additional tooling. Which command meets this requirement with standard process utilities?
Correct Answer: CExplanationps -u restricts output to the named user, -o selects only pid, comm and stat columns, and the subsequent grep matches the D state in the stat field, giving the precise listing needed. pgrep has no -state option so option C is invalid, top with grep for the username does not isolate state D reliably and prints full rows, and option D matches the letter D anywhere in the line including command names and does not restrict output to the requested fields.
-
12 Question 12 Single choice Module 2
A helpdesk technician needs to verify that a newly configured DNS name resolves from a Linux client, and to see the full answer including the authority section, without relying on the local resolver cache or the nsswitch configuration. The client has the bind utilities installed. Which command should the technician use?
Correct Answer: CExplanationdig queries DNS directly and displays the full response, including the answer and authority sections, and it does not go through nsswitch or the glibc resolver path, which satisfies the requirement to bypass that stack. getent consults nsswitch so it does not isolate DNS, nslookup with default settings also uses the local resolver configuration and does not show the authority section by default, and ping only shows reachability rather than the DNS answer details.
-
13 Question 13 Order list Module 1
A team is preparing a new Linux server with a custom partition layout and must install the operating system so that the root filesystem uses a journaling type and the swap area is created before the first boot. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Format the root partition with a journaling filesystem and mount it under the target root
- Install the bootloader to the disk so the system can start from the boot partition
- Create the partition table and define the /boot, swap and root partitions
- Complete the installation and reboot into the new system to verify the mounts
- Boot the installer media and select the target disk for partitioning
Correct Answer:- Boot the installer media and select the target disk for partitioning
- Create the partition table and define the /boot, swap and root partitions
- Format the root partition with a journaling filesystem and mount it under the target root
- Install the bootloader to the disk so the system can start from the boot partition
- Complete the installation and reboot into the new system to verify the mounts
ExplanationThe disk must be selected before a partition table can be written, the partitions must exist before they are formatted, and formatting and mounting the root must precede installing the bootloader so the boot files land in the correct places. Rebooting to verify the mounts comes last, after the installation is complete. This follows the standard sequence of partition, format, mount, bootloader and finish that Linux installers follow.
-
14 Question 14 Order list Module 3
An administrator must recover a service that has become unresponsive because its process is stuck in a stopped state after an accidental Ctrl-Z in a previous session, and the service must end cleanly without being restarted from scratch. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Allow the process to finish or send it a termination signal using Ctrl-C
- Confirm the process has exited by checking the process list for its PID
- Bring the stopped job to the foreground with fg using its job number
- List the stopped job with jobs to identify its job number in the current shell
Correct Answer:- List the stopped job with jobs to identify its job number in the current shell
- Bring the stopped job to the foreground with fg using its job number
- Allow the process to finish or send it a termination signal using Ctrl-C
- Confirm the process has exited by checking the process list for its PID
ExplanationThe job has to be identified before fg can target it, fg resumes the stopped process so it can receive input and signals, Ctrl-C then terminates it cleanly, and checking the process list confirms the exit. Attempting to signal before resuming the job would not deliver the interrupt in the foreground context. This ordering matches how bash job control handles a suspended job in the same shell.
-
15 Question 15 Drag and drop Module 2
A network administrator is reviewing how to inspect and test a Linux host during an incident. Each requirement described must be matched to the command that meets it on a standard Linux system. Match each requirement to the command that meets it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Resolve a hostname to its IP address through the system resolver and nsswitch orderDisplay the interface addresses and their configured prefix lengthsShow the path packets take to a remote host, one hop at a time, with latency per hopShow the TCP and UDP sockets in the listening state along with their process namesss -tulnpifconfig -ahostnamectltracerouteip addr showgetent hostsCorrect Answer:- Show the TCP and UDP sockets in the listening state along with their process names → ss -tulnp
- Show the path packets take to a remote host, one hop at a time, with latency per hop → traceroute
- Resolve a hostname to its IP address through the system resolver and nsswitch order → getent hosts
- Display the interface addresses and their configured prefix lengths → ip addr show
Explanationss with the tulnp options lists listening TCP and UDP sockets with their owning processes, traceroute reports the hop path with per-hop latency, getent hosts follows the nsswitch resolution order, and ip addr show prints interface addresses with prefix lengths. ifconfig is a legacy tool that is not the mandated standard for this audit and hostnamectl manages the host's name settings rather than resolution or addressing, so neither matches the stated requirements.
-
16 Question 16 Drag and drop Module 3
A systems administrator is assigning backup and editing responsibilities across a set of Linux servers after an audit. Each duty must be matched to the tool that is best suited to it. Match each duty to the tool.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Collapse repeated lines and count occurrences in sorted outputEdit a configuration file from a text terminal with modal commandsSearch log files for lines matching a regular expressionCopy a whole disk image to a file for bare-metal recoveryviuniq -cddtar -tcrontab -lgrepCorrect Answer:- Copy a whole disk image to a file for bare-metal recovery → dd
- Search log files for lines matching a regular expression → grep
- Collapse repeated lines and count occurrences in sorted output → uniq -c
- Edit a configuration file from a text terminal with modal commands → vi
Explanationdd copies raw block devices bit for bit, which suits a bare-metal disk image, grep matches patterns in files, uniq -c counts adjacent duplicates in sorted input, and vi is the modal terminal editor. tar -t only lists archive contents without creating a backup image, and crontab -l lists scheduled jobs rather than performing a search, count or edit, so neither fits the duties.
-
17 Question 17 Dropdown Module 2
A junior administrator is writing a script to compress the contents of a home directory into a single archive for transfer, and to verify the archive afterward. The script must keep the original directory in place and must produce a gzip-compressed tar file. Select the correct value for each blank in the command.
Choose the correct value for each blank.
tar -czf /backup/home.tar.gz /home/aliceCorrect Answer:tar -czf -czf /backup/home.tar.gz /home/alice
ExplanationThe -c flag creates the archive, -z applies gzip compression, and -f names the output file, so -czf is the combination that builds a compressed archive without removing the source. -xzf extracts an archive rather than creating one, -tzf lists its contents for verification, and -rzf appends to an existing archive, so none of those produces the new compressed backup the script needs.
-
18 Question 18 Dropdown Module 3
An operator must find every line in the syslog that matches the word 'error' regardless of case, and display the matching line numbers alongside them so the entries can be cross-referenced in an incident ticket. Select the correct value for each blank in the command.
Choose the correct value for each blank.
grep /var/log/syslogCorrect Answer:grep -i -n /var/log/syslog
Explanation-i makes the match case-insensitive so Error, ERROR and error are all found, and -n prefixes each match with its line number for the ticket. -v inverts the match and would select non-matching lines, -c would print only a count, and -r is a recursive directory option, while -l, -q and -o respectively list filenames, suppress output and print only the matched text, none of which supply the line numbers required.
-
19 Question 19 Dropdown Module 1
A systems engineer is reviewing a new server's disk layout to confirm the filesystem structures that the operating system uses at boot and for allocation. The engineer wants to inspect the superblock of an ext4 root partition to confirm its block size and the count of free blocks. Select the correct value for each blank in the command.
Choose the correct value for each blank.
-h /dev/sda2 | grep -iCorrect Answer:dumpe2fs -h /dev/sda2 | grep -i block size
Explanationdumpe2fs prints the superblock and group information of an ext-family filesystem, so the block size and free block counts can be read from it, and grepping for block size isolates that line. fdisk and lsblk display partition tables and device layouts without the superblock detail, and mkswap formats a swap area rather than inspecting a filesystem, so those do not produce the superblock values required.
These are 19 of the 289 questions in the full LCP-001 pack.
Get All 289 QuestionsGet all 289 questions & answers
Full access options for GAQM LCP-001
Self-study
PDF Version
- 289 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
- 289 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
- 289 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 LCP-001 Exam (Linux Certified Professional (LCP)) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.