CompTIA A+ 220-1202 Practice Test Questions and Exam Dumps Part6 Q101-120

View Full CompTIA 220-1202 Exam Dumps and Practice Test Dumps.

 

Question 101

Which Linux command is used to search for a specific pattern within text files?

  1. grep
  2. chmod
  3. mount
  4. passwd

Correct Answer: 1

Explanation

The grep command searches text for lines matching a specified pattern. It is commonly used by Linux technicians to locate configuration entries, error messages, usernames, or other information within files and command output. Options can make searches case-insensitive or display additional context. For example, a technician can use grep when reviewing logs for a particular error. Because Linux systems often store important configuration and troubleshooting information in text files, grep is a valuable command-line tool for quickly locating relevant information.

Question 102

Which Linux command is used to create a new directory?

  1. touch
  2. mkdir
  3. rmdir
  4. cat

Correct Answer: 2

Explanation

The mkdir command creates a new directory in Linux. A technician can specify a directory name or path, and additional options can create parent directories when necessary. The command is useful for organizing files and establishing directory structures from the command line. The touch command is commonly used to create an empty file or update timestamps, while rmdir removes empty directories. Technicians should verify the current working directory before creating or modifying directories to avoid placing resources in an unintended location.

Question 103

Which Linux command displays the contents of a text file directly in the terminal?

  1. cat
  2. rm
  3. ps
  4. df

Correct Answer: 1

Explanation

The cat command can display the contents of one or more text files directly in a Linux terminal. It is useful for quickly reviewing configuration files, logs, scripts, and other text-based resources. For large files, technicians may prefer commands such as less or more because they allow controlled navigation through the content. When reviewing configuration files, technicians should avoid accidentally modifying them and should use appropriate permissions when accessing protected system information.

Question 104

Which Linux command displays available and used disk space for mounted file systems?

  1. free
  2. df
  3. ps
  4. uname

Correct Answer: 2

Explanation

The df command reports available, used, and total disk space for mounted file systems. It is useful when troubleshooting systems that report insufficient storage or applications that fail because a file system is full. Technicians can use options such as df -h to display values in a more readable format. Disk space problems should be investigated carefully because deleting files without identifying their purpose can damage applications or the operating system. Log files and temporary data are common areas to review.

Question 105

Which Linux command displays information about currently running processes?

  1. ps
  2. cp
  3. mv
  4. nano

Correct Answer: 1

Explanation

The ps command displays information about running processes in Linux. Depending on the options used, it can show process identifiers, users, CPU usage, memory usage, and the commands associated with processes. Technicians use ps when investigating application failures, excessive resource consumption, or services that may not be behaving as expected. Unlike top, which continuously updates process information, ps typically provides a snapshot of the current process state. This makes it useful for command-line troubleshooting and scripting.

Question 106

A Linux technician needs to terminate a process after identifying its process ID. Which command can be used?

  1. kill
  2. grep
  3. chmod
  4. pwd

Correct Answer: 1

Explanation

The kill command sends a signal to a Linux process, commonly using its process ID. Technicians can use it to request that a process terminate when an application is unresponsive or needs to be stopped. Different signals provide different behaviors, and a forceful termination should generally not be the first choice when a normal termination is possible. Before stopping a process, the technician should confirm its purpose because terminating a critical system process can cause service interruption or system instability.

Question 107

Which Linux command is commonly used to change a user’s password?

  1. passwd
  2. whoami
  3. hostname
  4. echo

Correct Answer: 1

Explanation

The passwd command is used to change or manage a user’s password in Linux. Depending on privileges and the account being modified, it can be used by users to change their own passwords or by administrators to manage other accounts. Password policies may also impose requirements such as minimum length or complexity. Technicians should follow organizational password procedures and should never record passwords in support tickets or expose them unnecessarily during troubleshooting.

Question 108

Which Linux command displays information about the current logged-in users?

  1. who
  2. mkdir
  3. chmod
  4. mount

Correct Answer: 1

Explanation

The who command displays information about users currently logged into a Linux system. Depending on the system, the output can include usernames, terminal sessions, login times, and originating locations. This can be useful when troubleshooting shared systems or determining whether another administrator is currently connected. Technicians should consider active sessions before restarting services or making disruptive changes. The command is particularly useful on servers where multiple users or administrators may be working simultaneously.

Question 109

Which Linux command can display system kernel and architecture information?

  1. uname
  2. chmod
  3. ls
  4. rm

Correct Answer: 1

Explanation

The uname command displays information about the operating system kernel and system architecture. Options such as uname -a can provide more detailed information, including the kernel release, system name, and machine architecture. This information can help technicians verify the operating system environment before installing software, drivers, or troubleshooting compatibility issues. Because Linux distributions can differ significantly, confirming kernel and architecture details is useful when selecting appropriate packages and support procedures.

Question 110

Which Linux command is commonly used to attach a file system to the directory structure?

  1. mount
  2. chmod
  3. grep
  4. ps

Correct Answer: 1

Explanation

The mount command makes a file system accessible at a specified location in the Linux directory structure. Technicians may use it when working with additional storage devices, removable media, network file systems, or other supported storage resources. Correct device identification and mount-point selection are important because mounting the wrong device can expose or affect unintended data. Modern Linux systems may automatically mount some removable storage, but manual mounting remains important in many administrative and server environments.

Question 111

Which Linux command copies files or directories from one location to another?

  1. mv
  2. cp
  3. rm
  4. pwd

Correct Answer: 2

Explanation

The cp command copies files or directories in Linux. It can be used to duplicate configuration files, create backups of individual files, or transfer data between directories. Appropriate options are required when copying directories and preserving certain attributes. Technicians should verify the source and destination paths before executing copy operations, especially when working with system configuration files. Copying a file does not automatically mean that its permissions or ownership will always be preserved exactly as required.

Question 112

Which Linux command moves or renames a file?

  1. mv
  2. cat
  3. df
  4. top

Correct Answer: 1

Explanation

The mv command moves files or directories to another location and can also be used to rename them. For example, a technician can use mv to place a configuration file into a backup directory before making changes. Because the same command performs both move and rename operations, the destination path must be checked carefully. Moving a system file incorrectly can prevent an application or service from functioning. Technicians should document significant configuration changes and maintain backups of important files.

Question 113

Which macOS feature can be used to back up a Mac automatically to a compatible storage destination?

  1. Time Machine
  2. Keychain Access
  3. Activity Monitor
  4. Console

Correct Answer: 1

Explanation

Time Machine is Apple’s built-in backup feature for macOS. When configured with a suitable backup destination, it can automatically create backups of supported files and system data and maintain historical versions. Users can use these backups to recover individual files or restore a system after certain failures. Technicians should verify that backups are completing successfully rather than assuming that the feature is working simply because it is enabled. Backup destinations should also be protected from unauthorized access.

Question 114

A macOS technician needs to inspect system and application logs for troubleshooting. Which utility is appropriate?

  1. Console
  2. Finder
  3. Disk Utility
  4. Migration Assistant

Correct Answer: 1

Explanation

The Console application provides access to system logs and diagnostic information on macOS. Technicians can use it to investigate application errors, system events, service problems, and other issues by reviewing relevant log entries. Log information can be filtered or searched to focus on a particular process or event. Because logs may contain sensitive system information, technicians should handle them according to organizational privacy and security requirements. Console is particularly useful when normal graphical error messages provide insufficient troubleshooting information.

Question 115

Which macOS application is used to browse and manage files and folders?

  1. Finder
  2. Activity Monitor
  3. Console
  4. Keychain Access

Correct Answer: 1

Explanation

Finder is the primary file-management interface in macOS. It allows users and technicians to browse folders, open files, move or copy items, search for resources, and manage supported storage locations. Finder also provides access to mounted external drives and network locations. Technicians troubleshooting file-access problems should verify permissions, storage availability, file paths, and the status of the relevant volume. Finder should not be confused with Disk Utility, which is designed for lower-level storage management.

Question 116

Which Windows feature allows a user to connect to a remote Windows computer using a graphical desktop session?

  1. Remote Desktop
  2. Windows Sandbox
  3. File History
  4. Storage Spaces

Correct Answer: 1

Explanation

Windows Remote Desktop allows authorized users to establish a graphical session with a remote Windows computer. It is commonly used for administration and remote support, depending on the Windows edition and configuration. The service should be protected using appropriate authentication, network controls, and access restrictions. Technicians should confirm that remote access is authorized before connecting. Exposing remote desktop services directly to untrusted networks can increase risk, so secure deployment methods and organizational controls should be followed.

Question 117

A technician needs to prevent a standard user from installing unauthorized software. Which control is most appropriate?

  1. Least-privilege permissions
  2. Increasing monitor brightness
  3. Disabling Windows updates
  4. Changing the screen resolution

Correct Answer: 1

Explanation

Least-privilege permissions restrict users to the access and capabilities required for their responsibilities. Standard users generally have fewer privileges than administrators, which can make unauthorized software installation more difficult and reduce the impact of malicious programs. Organizations may combine least privilege with application control, endpoint security, and software deployment policies. Technicians should avoid granting administrator rights merely for convenience because doing so can significantly increase the consequences of malware infections or accidental system changes.

Question 118

A technician receives a suspicious USB drive found in a public area. What is the safest approach?

  1. Insert it into a production computer to identify the owner
  2. Follow the organization’s security incident procedure
  3. Open every file to determine its contents
  4. Disable antivirus software before inspecting it

Correct Answer: 2

Explanation

Unknown removable media can contain malware or other malicious content. A technician should not connect a suspicious USB drive to a production computer simply to determine its contents. Instead, the technician should follow the organization’s security or incident-response procedure for handling unknown media. If examination is authorized, it should be performed using an appropriately isolated environment and approved tools. Security controls should remain enabled unless a documented investigation procedure specifically requires otherwise.

Question 119

Which type of attack attempts to overwhelm a service by sending a large volume of traffic or requests?

  1. Denial-of-service
  2. Shoulder surfing
  3. Tailgating
  4. Credential stuffing

Correct Answer: 1

Explanation

A denial-of-service attack attempts to make a system, application, or network service unavailable by exhausting resources or overwhelming it with traffic or requests. A distributed denial-of-service attack uses multiple systems to generate the traffic. Technicians may observe symptoms such as high network utilization, increased latency, resource exhaustion, or service unavailability. Mitigation can involve traffic filtering, rate limiting, network controls, and specialized protection services. The appropriate response depends on the affected infrastructure and organizational incident-response procedures.

Question 120

Which security practice helps prevent unauthorized users from accessing a workstation when the legitimate user steps away?

  1. Lock the workstation
  2. Disable the password
  3. Share the account
  4. Leave the session active

Correct Answer: 1

Explanation

Locking a workstation when leaving it unattended prevents other people from using the active session without authentication. In Windows, users can manually lock the workstation, and organizations may also enforce automatic screen-lock policies after a period of inactivity. This is a simple but important physical and logical security practice. Technicians should encourage users to lock systems whenever they step away, particularly in offices, public areas, shared workspaces, and environments containing sensitive information.