LPI 010-160 Practice Test 9
Question 80
A class launches a Linux VM from a cloud provider and asks who maintains its guest packages. Which action BEST accomplishes the stated Linux task?
- Expose the guest SSH port to everyone as the only patching process.
- Treat guest OS configuration and patching as the user's responsibility within the cloud service model.
- Assume the provider's billing console runs apt inside the guest.
- Treat all cloud services as giving identical customer OS access.
Explanation
Correct Answer
B:Treat guest OS configuration and patching as the user's responsibility within the cloud service model. In IaaS the provider manages underlying infrastructure while customers manage their guest operating systems. To confirm completion, the guest shows installed updates and administrative changes after maintenance.
Incorrect Answers
A:Expose the guest SSH port to everyone as the only patching process. It does not meet the requirement in this case: A class launches a Linux VM from a cloud provider and asks who maintains its guest packages. In IaaS the provider manages underlying infrastructure while customers manage their guest operating systems.
C:This changes the workflow in the wrong way for Cloud virtual machine responsibilities.
D:Treat all cloud services as giving identical customer OS access. It would not produce the expected result: The guest shows installed updates and administrative changes after maintenance. The named operation concerns Cloud virtual machine responsibilities.
Question 81
A student wants to combine a project directory into one archive without removing the original files. Which action BEST accomplishes the stated Linux task?
- Run `tar -xf project.tar project/` expecting to create a new archive.
- Run `tar -cf project.tar project/` to create an uncompressed archive.
- Use `unzip project/` to create a tar file.
- Use `gzip project/` to collect an entire directory into one tar archive.
Explanation
Correct Answer
B:Run `tar -cf project.tar project/` to create an uncompressed archive. `tar -c` creates an archive and `-f` supplies its filename. To confirm completion, the archive lists the intended files when inspected.
Incorrect Answers
A:This changes the workflow in the wrong way for Creating a tar archive.
C:Use `unzip project/` to create a tar file. It would not produce the expected result: The archive lists the intended files when inspected. The named operation concerns Creating a tar archive.
D:Use `gzip project/` to collect an entire directory into one tar archive. It does not meet the requirement in this case: A student wants to combine a project directory into one archive without removing the original files. `tar -c` creates an archive and `-f` supplies its filename.
Question 82
A trainee tries to change a system service but receives a permission error as an ordinary user. Which action BEST accomplishes the stated Linux task?
- Use a standard account for routine work and elevate only for authorized administrative tasks.
- Give every new user UID 0 to avoid permission prompts.
- Disable permissions on the system's configuration files.
- Assume all Linux accounts have identical privileges.
Explanation
Correct Answer
A:Use a standard account for routine work and elevate only for authorized administrative tasks. The root account has broad administrative power while ordinary users normally have restricted rights. To confirm completion, ordinary file access is limited while privileged operations require explicit authorization.
Incorrect Answers
B:This changes the workflow in the wrong way for Root versus ordinary users.
C:Disable permissions on the system's configuration files. It does not meet the requirement in this case: A trainee tries to change a system service but receives a permission error as an ordinary user. The root account has broad administrative power while ordinary users normally have restricted rights.
D:Assume all Linux accounts have identical privileges. It would not produce the expected result: Ordinary file access is limited while privileged operations require explicit authorization. The named operation concerns Root versus ordinary users.
Question 83
A trainee connects a removable USB drive and must identify the correct device before working on it. Which action BEST accomplishes the stated Linux task?
- Treat the device's vendor label as a shell executable.
- Identify the USB storage block device and its mounted filesystem before copying data.
- Assume every USB stick is always `/dev/sda`.
- Copy files directly into `/proc` as the USB filesystem.
Explanation
Correct Answer
B:Identify the USB storage block device and its mounted filesystem before copying data. Removable media may appear as block devices but the mount location is distinct from the device node. To confirm completion, the correct mounted volume contains the expected files.
Incorrect Answers
A:Treat the device's vendor label as a shell executable. It would not produce the expected result: The correct mounted volume contains the expected files. The named operation concerns Removable USB block storage.
C:This changes the workflow in the wrong way for Removable USB block storage.
D:Copy files directly into `/proc` as the USB filesystem. It does not meet the requirement in this case: A trainee connects a removable USB drive and must identify the correct device before working on it. Removable media may appear as block devices but the mount location is distinct from the device node.
Question 84
A shared writable `/tmp`-like directory should stop users deleting each other's files. Which action BEST accomplishes the stated Linux task?
- Turn off all directory execute bits to preserve normal collaboration.
- Apply a sticky bit to the shared directory while maintaining required write permissions.
- Use the setuid bit on each temporary text file instead.
- Set mode 0777 and assume the sticky bit is present.
Explanation
Correct Answer
B:Apply a sticky bit to the shared directory while maintaining required write permissions. Directory sticky bit restricts deletion and renaming in shared writable directories. To confirm completion, users can create their own files but cannot freely remove other users' entries under the sticky-bit rule.
Incorrect Answers
A:Turn off all directory execute bits to preserve normal collaboration. It would not produce the expected result: Users can create their own files but cannot freely remove other users' entries under the sticky-bit rule. The named operation concerns Sticky bit shared directories.
C:Use the setuid bit on each temporary text file instead. It does not meet the requirement in this case: A shared writable `/tmp`-like directory should stop users deleting each other's files. Directory sticky bit restricts deletion and renaming in shared writable directories.
D:This changes the workflow in the wrong way for Sticky bit shared directories.
Question 85
A student needs the manual entry for the `ls` utility. Which action BEST accomplishes the stated Linux task?
- Run `man ls` to open the appropriate manual page.
- Open `top` to search the manual index.
- Use `ls -a` as complete documentation for every option.
- Run `mkdir ls` and expect manual text.
Explanation
Correct Answer
A:Run `man ls` to open the appropriate manual page. Manual pages are structured command and interface documentation. To confirm completion, the manual shows a synopsis and option descriptions for the named command.
Incorrect Answers
B:Open `top` to search the manual index. It would not produce the expected result: The manual shows a synopsis and option descriptions for the named command. The named operation concerns man pages and sections.
C:Use `ls -a` as complete documentation for every option. It does not meet the requirement in this case: A student needs the manual entry for the `ls` utility. Manual pages are structured command and interface documentation.
D:Run `mkdir ls` and expect manual text. This changes the workflow in the wrong way for man pages and sections. Using a process monitor does not display the command's manual. For this task the appropriate operation is to run `man ls` to open the appropriate manual page.
Question 86
A developer needs to choose an operating system for a cloud virtual machine hosting a small website. Which action BEST accomplishes the stated Linux task?
- Treat the cloud provider dashboard as the VM's Linux kernel.
- Select a supported Linux distribution image for the cloud VM and configure its required applications.
- Assume a Linux VM never requires operating system security updates.
- Install Linux only on physical bare-metal computers.
Explanation
Correct Answer
B:Select a supported Linux distribution image for the cloud VM and configure its required applications. Linux distributions can run as guest systems in virtualized cloud infrastructure. To confirm completion, the instance boots the chosen Linux image and serves the application after configuration.
Incorrect Answers
A:Treat the cloud provider dashboard as the VM's Linux kernel. It would not produce the expected result: The instance boots the chosen Linux image and serves the application after configuration. The named operation concerns Linux in hosted cloud systems.
C:Assume a Linux VM never requires operating system security updates. It does not meet the requirement in this case: A developer needs to choose an operating system for a cloud virtual machine hosting a small website. Linux distributions can run as guest systems in virtualized cloud infrastructure.
D:This changes the workflow in the wrong way for Linux in hosted cloud systems.
Question 87
A Linux VM appears to be under memory pressure and an operator wants available RAM figures. Which action BEST accomplishes the stated Linux task?
- Run `df` as the direct summary of physical RAM.
- Run `free -h` or `free` to inspect memory and swap totals.
- Use `grep /etc/passwd` to measure memory.
- Treat `touch` output as the swap usage report.
Explanation
Correct Answer
B:Run `free -h` or `free` to inspect memory and swap totals. free summarizes system memory utilization rather than listing process names. To confirm completion, the output reports memory and swap figures in the selected units.
Incorrect Answers
A:Run `df` as the direct summary of physical RAM. This changes the workflow in the wrong way for free memory statistics. A disk listing cannot distinguish RAM from swap usage. For this task the appropriate operation is to run `free -h` or `free` to inspect memory and swap totals.
C:Use `grep /etc/passwd` to measure memory. It does not meet the requirement in this case: A Linux VM appears to be under memory pressure and an operator wants available RAM figures. free summarizes system memory utilization rather than listing process names.
D:Treat `touch` output as the swap usage report. It would not produce the expected result: The output reports memory and swap figures in the selected units. The named operation concerns free memory statistics.
Question 88
A lab needs a temporary local name-to-address mapping without public DNS changes. Which action BEST accomplishes the stated Linux task?
- Use an S3 object tag as a system resolver entry.
- Edit `/etc/passwd` to create DNS records.
- Add an appropriate entry to `/etc/hosts` and verify local lookup precedence.
- Assume a hosts-file line changes public DNS worldwide.
Explanation
Correct Answer
C:Add an appropriate entry to `/etc/hosts` and verify local lookup precedence. `/etc/hosts` provides static per-host name mappings. To confirm completion, the local host resolves the specified name to the configured IP.
Incorrect Answers
A:Use an S3 object tag as a system resolver entry. It would not produce the expected result: The local host resolves the specified name to the configured IP. The named operation concerns /etc/hosts local name entries.
B:Edit `/etc/passwd` to create DNS records. This changes the workflow in the wrong way for /etc/hosts local name entries. A local hosts entry does not update global public DNS for other computers. For this task the appropriate operation is to add an appropriate entry to `/etc/hosts` and verify local lookup precedence.
D:Assume a hosts-file line changes public DNS worldwide. It does not meet the requirement in this case: A lab needs a temporary local name-to-address mapping without public DNS changes. `/etc/hosts` provides static per-host name mappings.
Question 89
A trainee writes `ls -l /tmp` and asks which token changes the listing format. Which action BEST accomplishes the stated Linux task?
- Treat `-l` as a universal shell variable.
- Treat `ls` as the command, `-l` as the option and `/tmp` as its argument.
- Use `/tmp` as an executable to list itself.
- Assume whitespace never separates command-line arguments.
Explanation
Correct Answer
B:Shell command lines combine a command with options and positional arguments.
Incorrect Answers
A:Treat `-l` as a universal shell variable. It does not meet the requirement in this case: A trainee writes `ls -l /tmp` and asks which token changes the listing format. Shell command lines combine a command with options and positional arguments.
C:This changes the workflow in the wrong way for Bash command and argument structure.
D:Assume whitespace never separates command-line arguments. It would not produce the expected result: The output uses long listing format for the specified directory. The named operation concerns Bash command and argument structure.
Question 90
A developer wants to ask DNS for the addresses associated with a domain. Which action BEST accomplishes the stated Linux task?
- Check only the disk partitions for DNS answers.
- Use `free` to retrieve nameserver records.
- Run `ping` as a guaranteed DNS record listing tool.
- Run `host example.org` or an equivalent DNS lookup query.
Explanation
Correct Answer
D:Run `host example.org` or an equivalent DNS lookup query. `host` is a DNS lookup utility rather than a packet reachability test. To confirm completion, returned DNS resource data reflects the configured resolver's answer.
Incorrect Answers
A:Check only the disk partitions for DNS answers. It does not meet the requirement in this case: A developer wants to ask DNS for the addresses associated with a domain. `host` is a DNS lookup utility rather than a packet reachability test.
B:Use `free` to retrieve nameserver records. It would not produce the expected result: Returned DNS resource data reflects the configured resolver's answer. The named operation concerns host DNS name lookup.
C:Run `ping` as a guaranteed DNS record listing tool. This changes the workflow in the wrong way for host DNS name lookup. Confusing name resolution with ICMP masks the failing layer. For this task the appropriate operation is to run `host example.org` or an equivalent DNS lookup query.