Docsity

CompTIA CASP Ultimate Exam, Exams of Cybersecurity

Toggle sidebar
bg1
CompTIA CASP Ultimate Exam
**Question 130.** Which of the following Windows command‑line tools can be used to display the list
of all installed Windows updates in a format that can be saved to a text file?
A) wmic qfe list brief /format:csv > updates.txt
B) netsh advfirewall export updates.txt
C) ipconfig /all > updates.txt
D) dism /online /get-packages /format:list > updates.txt
**Answer:** A
**Explanation:** The WMIC query “qfe list brief” lists installed Quick Fix Engineering updates; using
“/format:csv” redirects the output to a text file.
**Question 131.** In a Windows environment, which of the following policies would you configure to
enforce password complexity requirements?
A) Account Lockout Policy
B) User Rights Assignment
C) Password Policy – “Password must meet complexity requirements”
D) Audit Policy – “Audit Logon Events”
**Answer:** C
**Explanation:** The Password Policy setting “Password must meet complexity requirements” enforces
use of mixed‑case, numbers, and symbols.
**Question 132.** Which of the following is the most appropriate method to secure a wireless access
point that must remain open for guest use but still protect the internal network?
A) Enable WPA2‑Personal with a shared password for guests.
B) Use a separate SSID with VLAN tagging that isolates guest traffic from the corporate VLAN.
C) Disable DHCP on the access point.
D) Turn off the firewall on the guest network.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b

Partial preview of the text

Download CompTIA CASP Ultimate Exam and more Exams Cybersecurity in PDF only on Docsity!

Question 130. Which of the following Windows command‑line tools can be used to display the list of all installed Windows updates in a format that can be saved to a text file? A) wmic qfe list brief /format:csv > updates.txt B) netsh advfirewall export updates.txt C) ipconfig /all > updates.txt D) dism /online /get-packages /format:list > updates.txt Answer: A Explanation: The WMIC query “qfe list brief” lists installed Quick Fix Engineering updates; using “/format:csv” redirects the output to a text file. Question 131. In a Windows environment, which of the following policies would you configure to enforce password complexity requirements? A) Account Lockout Policy B) User Rights Assignment C) Password Policy – “Password must meet complexity requirements” D) Audit Policy – “Audit Logon Events” Answer: C Explanation: The Password Policy setting “Password must meet complexity requirements” enforces use of mixed‑case, numbers, and symbols. Question 132. Which of the following is the most appropriate method to secure a wireless access point that must remain open for guest use but still protect the internal network? A) Enable WPA2‑Personal with a shared password for guests. B) Use a separate SSID with VLAN tagging that isolates guest traffic from the corporate VLAN. C) Disable DHCP on the access point. D) Turn off the firewall on the guest network.

Answer: B Explanation: Segregating guest traffic into its own VLAN prevents guests from accessing internal resources while allowing open connectivity. Question 133. Which of the following Windows tools can be used to create a scheduled task that runs a PowerShell script every day at 02:00 AM? A) taskschd.msc → Create Basic Task → Specify PowerShell.exe – File script.ps1 as the action B) msconfig → Startup → Add script.ps C) regedit → Add Run key for script.ps D) services.msc → Add new service for script.ps Answer: A Explanation: Task Scheduler (taskschd.msc) allows you to define triggers and actions, including running PowerShell scripts on a schedule. Question 134. Which of the following is a primary advantage of using “BitLocker Network Unlock” in a domain environment? A) It automatically decrypts the OS drive when the computer is on a trusted network, reducing user interaction. B) It allows BitLocker to encrypt external USB drives. C) It replaces the need for TPM hardware. D) It enables BitLocker on non‑Windows operating systems. Answer: A Explanation: Network Unlock uses DHCP and WDS to provide the decryption key when the machine is connected to a trusted corporate network, streamlining boot. Question 135. Which of the following Windows commands can be used to list all currently loaded device drivers?

Explanation: Releasing and renewing the DHCP lease, clearing DNS cache, and confirming the adapter’s state are standard steps for DHCP issues. Question 138. Which of the following is the most appropriate response when a user reports that a newly installed Windows update caused an application to stop working? A) Uninstall the update via “View installed updates” → Reinstall the application. B) Disable the application’s executable in the registry. C) Reformat the hard drive. D) Increase the screen resolution. Answer: A Explanation: Removing the problematic update restores the previous state; reinstalling the app ensures compatibility. Question 139. Which of the following Windows features can be used to enforce that only signed drivers are allowed to load on a system? A) Secure Boot B) Driver Signature Enforcement (DSE) C) Windows Defender Antivirus D) BitLocker Answer: B Explanation: Driver Signature Enforcement blocks unsigned drivers from loading, enhancing kernel security. Question 140. Which of the following is a valid reason to use “Dynamic Host Configuration Protocol (DHCP) reservations” in a corporate network? A) To assign a static IP address to critical servers while still using DHCP infrastructure. B) To increase the speed of the network.

C) To disable DNS. D) To force all clients to use IPv6 only. Answer: A Explanation: DHCP reservations bind a specific MAC address to a fixed IP, ensuring consistent addressing for servers without manual static configuration. Question 141. Which of the following Windows command‑line utilities can be used to reset the TCP/IP stack to its default state? A) netsh int ip reset B) ipconfig /renew C) ping - t 127.0.0. D) route print Answer: A Explanation: “netsh int ip reset” rewrites TCP/IP registry entries, effectively resetting the stack. Question 142. Which of the following is the most appropriate way to protect a Windows Server that hosts sensitive data from ransomware? A) Disable all user accounts. B) Implement regular, offline, immutable backups and enable Controlled Folder Access. C) Turn off the firewall. D) Install a third‑party game. Answer: B Explanation: Offline immutable backups prevent ransomware from encrypting backups; Controlled Folder Access blocks unauthorized write attempts.

Answer: A Explanation: Driver updates can introduce incompatibility, causing the OS to fail to enumerate the USB device. Question 146. Which of the following Windows commands can be used to view the current list of scheduled tasks on a remote computer? A) schtasks /query /s remotePC /fo list B) tasklist /s remotePC C) net view remotePC D) ipconfig /all /s remotePC Answer: A Explanation: “schtasks /query” with the “/s” switch queries scheduled tasks on a remote system. Question 147. Which of the following is a recommended practice when configuring a new Windows Server to host a web application? A) Install the web server role, apply the latest security patches, and configure the firewall to allow only HTTP/HTTPS inbound. B) Disable all Windows updates. C) Enable Guest account for remote access. D) Turn off the Windows Event Log. Answer: A Explanation: Applying patches and limiting inbound ports reduces the attack surface while ensuring the service functions. Question 148. Which of the following best describes the function of “Windows Defender Exploit Guard” (formerly EMET)? A) It provides real‑time antivirus scanning.

B) It enforces mitigation techniques (DEP, ASLR, CFG) to block exploitation of vulnerabilities. C) It encrypts the entire hard drive. D) It manages user passwords. Answer: B Explanation: Exploit Guard applies system‑level mitigations that hinder exploit techniques such as buffer overflows. Question 149. Which of the following is the most appropriate way to verify that a newly deployed Group Policy Object (GPO) has been applied to a workstation? A) Run “gpresult /r” on the workstation and review the listed GPOs. B. Reboot the workstation three times. C. Check the Event Viewer for “System” logs only. D. Use “ipconfig /all”. Answer: A Explanation: “gpresult /r” (or /h for HTML) reports the GPOs applied to the computer and user contexts. Question 150. Which of the following Windows command‑line tools can be used to create a new local user account with a password that never expires? A) net user newuser P@ssw0rd /add /expires:never B) net user newuser P@ssw0rd /add /passwordchg:no C) net user newuser P@ssw0rd /add /active:yes /passwordreq:yes D) net user newuser P@ssw0rd /add /logonpasswordchg:yes Answer: A Explanation: The “/expires:never” switch creates an account without an expiration date; the password policy can be managed separately.

D. Allow unlimited login attempts. Answer: A Explanation: Lockout policies limit repeated attempts, and MFA adds a second factor, both mitigating brute‑force success. Question 154. Which of the following Windows commands can be used to display the current system’s boot mode (UEFI or Legacy BIOS)? A) bcdedit /enum | find "path" B) wmic bios get smbiosbiosversion C) msinfo32 – summary | find "BIOS Mode" D) systeminfo | find "Boot Mode" Answer: C Explanation: “msinfo32” (System Information) lists “BIOS Mode” indicating UEFI or Legacy. Question 155. Which of the following is the most appropriate way to protect a Windows domain controller from “pass‑the‑hash” attacks? A) Disable NTLM authentication and enforce Kerberos only. B. Enable SMB signing and enforce “Network security: Do not store LAN manager hash value”. C. Turn off the firewall. D. Use a weak password for the Administrator account. Answer: B Explanation: SMB signing prevents hash replay, and disabling LM hashes reduces the usable hash space for attackers. Question 156. Which of the following is the correct sequence to resolve a “printer offline” condition caused by an IP address conflict?

A) Identify conflicting devices → Change the printer’s static IP → Update the DHCP scope if needed → Verify printer status. B. Reinstall Windows → Delete the printer driver → Reboot. C. Disable the router → Enable the router. D. Format the hard drive. Answer: A Explanation: Resolving the IP conflict by assigning a unique address restores connectivity. Question 157. Which of the following Windows utilities can be used to export a list of all installed software to a CSV file? A) wmic product get name,version /format:csv > software.csv B) ipconfig /all > software.csv C) netstat - an > software.csv D) sfc /scannow > software.csv Answer: A Explanation: The WMIC “product” class queries installed MSI‑based applications; formatting as CSV creates a portable list. Question 158. Which of the following is a primary benefit of implementing “Just‑In‑Time” (JIT) access for privileged accounts? A) Users receive permanent admin rights. B) Privileged access is granted only for a limited time window, reducing exposure. C. It disables all logging. D. It automatically updates the operating system. Answer: B Explanation: JIT limits the duration of elevated privileges, lowering the window for misuse.

Explanation: BIOS updates can affect power management; reverting or applying a newer BIOS often resolves charging issues. Question 162. Which of the following Windows settings determines whether a device can be powered on remotely via Wake‑on‑LAN? A) Power Options → Allow wake timers → Enable B) Device Manager → Network adapter → Power Management → “Allow this device to wake the computer” C) Control Panel → User Accounts → Change account type D) System → Advanced system settings → Remote Desktop Answer: B Explanation: The network adapter’s Power Management option enables or disables Wake‑on‑LAN functionality. Question 163. Which of the following is a key characteristic of a “zero‑day” vulnerability? A) It has been publicly disclosed and patched. B. It is unknown to the vendor and has no available patch at the time of exploitation. C. It only affects hardware devices. D. It is mitigated by disabling the firewall. Answer: B Explanation: Zero‑day vulnerabilities are unknown to the vendor, leaving systems exposed until a patch is released. Question 164. Which of the following Windows commands can be used to view the current list of enabled Windows features (e.g., Hyper‑V, IIS) on a Windows 10 client? A) dism /online /get‑features /format:table | find "Enabled" B) wmic os get caption

C) netsh interface show interface D) ipconfig /all Answer: A Explanation: DISM’s “/get‑features” enumerates optional features; filtering for “Enabled” shows active components. Question 165. Which of the following best describes the purpose of “Secure Copy (SCP)”? A) To copy files over an encrypted SSH connection. B. To compress files before copying. C. To copy files using the SMB protocol. D. To create a bootable USB drive. Answer: A Explanation: SCP uses SSH to securely transfer files, providing confidentiality and integrity. Question 166. Which of the following is the most appropriate way to document a hardware repair performed on a field service ticket? A) Record device model, serial number, symptoms, steps taken, parts replaced, and post‑repair test results. B. Write a brief “fixed” note and close the ticket. C. Delete the ticket after the repair. D. Only record the date of service. Answer: A Explanation: Comprehensive documentation ensures traceability and future reference. Question 167. Which of the following Windows command‑line tools can be used to test connectivity to a specific port on a remote host?

Explanation: Using System Properties ensures proper updates to the computer’s AD object; a reboot finalizes the change. Question 170. Which of the following is the most appropriate action to take when a user reports that an Android device is overheating after installing a new game? A) Advise the user to uninstall the game, clear its cache, and check for firmware updates. B. Replace the device’s battery immediately. C. Disable Wi‑Fi permanently. D. Reset the device to factory defaults without checking the app. Answer: A Explanation: Removing the resource‑intensive app and clearing cache often resolves overheating; firmware updates may also improve power management. Question 171. Which of the following Windows PowerShell cmdlets can be used to retrieve a list of all active user sessions on a remote computer? A) Get‑Process – ComputerName remotePC – Name explorer B) Get‑LogonSession – ComputerName remotePC C) quser /server:remotePC D) Get‑WmiObject - Class Win32_ComputerSystem - ComputerName remotePC Answer: C Explanation: The “quser” command (or “query user”) displays logged‑on sessions on a remote system. Question 172. Which of the following best describes the function of “Network Time Protocol (NTP)” in an enterprise environment? A) To synchronize system clocks across devices, ensuring accurate timestamps for logs and authentication.

B. To encrypt network traffic. C. To assign IP addresses. D. To provide DNS resolution. Answer: A Explanation: NTP aligns system time, which is critical for log correlation and Kerberos ticket validity. Question 173. Which of the following is the most appropriate method to mitigate “USB‑based” malware infections on corporate workstations? A) Implement device control policies that block unauthorized USB storage devices. B. Disable all USB ports permanently. C. Install a larger hard drive. D. Increase screen resolution. Answer: A Explanation: Device control policies (via Group Policy or endpoint protection) prevent unknown USB devices from being used, reducing infection risk. Question 174. Which of the following Windows commands can be used to display the current list of installed language packs? A) dism /online /get‑intl B) ipconfig /all C) netsh wlan show profiles D) wmic os get locale Answer: A Explanation: DISM’s “/get‑intl” lists installed language packs and locale settings.

Answer: A Explanation: “Enable‑BitLocker” with appropriate parameters initiates encryption of the specified volume. Question 178. Which of the following is the most appropriate way to handle a customer who repeatedly requests unauthorized software installations? A) Explain company policy, document the request, and deny the installation while offering approved alternatives. B) Install the software anyway to keep the customer happy. C. Delete the user’s account. D. Ignore the request. Answer: A Explanation: Maintaining policy compliance, documenting the interaction, and providing alternatives preserves security and professionalism. Question 179. Which of the following Windows command‑line tools can be used to view the current list of mapped network drives? A) net use B) ipconfig /all C) tasklist D) sfc /scannow Answer: A Explanation: “net use” displays all active network connections and mapped drives. Question 180. Which of the following is a recommended practice when creating a new service account for an application? A) Give the account Domain Admin rights.

B) Apply the Principle of Least Privilege and configure only the necessary permissions. C) Use a shared password across multiple services. D) Disable password expiration. Answer: B Explanation: Limiting the account’s rights reduces the impact of a compromise. Question 181. Which of the following is the most effective way to protect against “Man‑in‑the‑Middle” attacks on a corporate Wi‑Fi network? A) Use WPA3‑Enterprise with a RADIUS server and enable 802.1X authentication. B) Disable Wi‑Fi entirely. C) Use open Wi‑Fi with a captive portal. D) Increase the Wi‑Fi transmit power. Answer: A Explanation: WPA3‑Enterprise with 802.1X provides robust mutual authentication and encryption, mitigating MitM risks. Question 182. Which of the following Windows utilities can be used to view the list of installed Windows updates and their installation dates? A) wmic qfe list brief /format:table B) ipconfig /all C) netstat - an D) powercfg /list Answer: A Explanation: The WMIC “qfe” class reports installed updates with dates and KB numbers.