McAfee-Secured Website

Exam Bundle

Exam Code: SY0-701

Exam Name CompTIA Security+

Certification Provider: CompTIA

Corresponding Certification: CompTIA Security+

CompTIA SY0-701 Bundle $44.99

100% CompTIA SY0-701 Guaranteed Success With Testking Training Materials

Get Real SY0-701 Exam Questions & Expert Verified Answers as Experienced on the Real Exam!

  • Questions & Answers

    SY0-701 Questions & Answers

    1044 Questions & Answers

    The ultimate exam preparation tool, Questions & Answers mirrors the actual SY0-701 exam while allowing you to hone and measure every aspect of your test-taking ability.

  • SY0-701 Video Course

    SY0-701 Video Course

    167 Video Lectures

    SY0-701 Video Course is developed by CompTIA Professionals to help you pass the SY0-701 exam.

    Description

    This course will improve your knowledge and skills required to pass CompTIA Security+ exam.
  • Study Guide

    SY0-701 Study Guide

    1003 PDF Pages

    Developed by industry experts, this 1003-page guide spells out in painstaking detail all of the information you need to ace SY0-701 exam.

CompTIA Security+ (SY0-701) Practice Tests

Satisfaction Guaranteed

Money Back Guarantee

Testking provides hassle-free money back guarantee with our products. That is because we have 100% trust in the abilities of our professional and experience product team, and our record is a proof of that.

99.6% PASS RATE
Total Cost: $194.97
Bundle Price: $149.98

Purchase Individually

  • Questions & Answers

    Questions & Answers

    1044 Questions

    $124.99
  • SY0-701 Video Course

    Video Course

    167 Video Lectures

    $39.99
  • Study Guide

    Study Guide

    1003 PDF Pages

    $29.99

CompTIA SY0-701 Practice Test 2

Question 10

An employee receives a phone call from someone claiming to be the help desk. The caller knows the employee’s username and asks the employee to read aloud a newly received MFA code to fix an urgent login problem. Which attack technique is most directly involved?

  1. A watering-hole attack against a frequently visited website.
  2. SMS phishing that impersonates a help desk in a text message rather than a voice call.
  3. Voice phishing that uses a help-desk pretext.
  4. SQL injection against a database login query.

Explanation

Correct Answer

C:

Vishing uses voice communication to impersonate a trusted party and persuade a target to disclose information or perform an unsafe action. The help-desk story supplies a pretext, and asking for the live MFA code would let the caller attempt authentication as the employee. Employees should not disclose a one-time code to an unsolicited caller; identity should be checked through the organization’s published help-desk channel. This is a human trust attack, even if the caller knows accurate employee details.

Incorrect Answers

A:

A watering-hole attacker compromises a site their targets are likely to visit, hoping to infect or redirect visitors. This scenario involves a direct phone call seeking an authentication factor, without any compromised website being described.

B:

Smishing is a real social engineering method, but the employee was contacted by telephone and asked to speak a current MFA code aloud. The channel in this case is voice, and the help-desk story is a vishing pretext rather than an SMS-based lure.

D:

SQL injection manipulates database queries through unsafe application inputs. The attacker here is exploiting human trust through a phone call, not inserting a query payload into a database-backed application. The caller is trying to capture a human-entered authentication secret rather than exploit how an application constructs a query.

Question 11

Employees receive an email with a sign-in link to `payrol1.example` instead of the legitimate `payroll.example` service. The lookalike site collects user names and passwords. Which part of the attack most specifically describes the domain choice?

  1. An internationalized-domain homograph attack using visually similar Unicode letters in a legitimate-looking hostname.
  2. Typosquatting with a confusingly similar domain.
  3. A fraudulent website reached through altered DNS replies when the employee types the correct payroll.example hostname.
  4. A malicious browser extension that rewrites the true payroll.example address after the user has entered it correctly.

Explanation

Correct Answer

B:

Typosquatting exploits small spelling changes or visually similar characters to make a malicious domain appear legitimate. Here the substituted digit is central to the deception and helps a credential-harvesting site masquerade as the real payroll sign-in page. Defenders can reduce exposure through domain reputation controls and training on unexpected lookalike links. The key characteristic is intentional near-miss spelling, not an alteration of DNS answers for the genuine domain.

Incorrect Answers

A:

Unicode homographs are another domain-impersonation technique, but this URL uses a digit substitution in the spelling rather than confusable internationalized letters. The specific near-miss registration pattern is typosquatting.

C:

DNS poisoning can direct users away from the legitimate site even if they entered the correct hostname. Here the malicious link already contains a different, intentionally confusable domain, so the described domain-choice mechanism is typosquatting rather than a resolver altering the genuine name.

D:

Browser-side URL rewriting could redirect traffic even when the user supplies the exact authorized hostname. The described email instead contains a near-spelling domain with a substituted digit, so it tests typosquatting rather than local browser manipulation.

Question 12

A research laboratory discovers that several isolated workstations were infected shortly after staff used unapproved USB storage devices. Which action most directly reduces the specific entry vector while preserving approved data exchange?

  1. Allow only hardware-encrypted removable drives, without authenticating devices or inspecting their files for malicious code.
  2. Permit any USB device if the employee labels it confidential.
  3. Block unmanaged removable storage by device policy and provide a controlled scanning-and-transfer process.
  4. Rely solely on antivirus scanning after unmanaged USB devices are mounted, without restricting which media may connect.

Explanation

Correct Answer

C:

Device-control policies can block unknown storage while a documented scanning or trusted transfer station supports necessary research work. The control addresses the actual entry vector and balances safety with an authorized, auditable workflow for bringing files into restricted systems. Approved transfer media must be managed as an exception with a clear ownership and malware-check procedure. A permanent blanket ban without a safe workflow can encourage users to find untracked alternatives.

Incorrect Answers

A:

Hardware encryption protects some data at rest but cannot establish that removable media or its contents are safe to import. The lab needs device admission controls and an approved malware-scanning transfer process.

B:

A handwritten classification label does not demonstrate that a device is trustworthy or free of malware. Without authentication of the device and content inspection, unapproved media can remain a high-risk bridge into isolated equipment.

D:

Post-mount scanning can detect some known malware but may miss novel payloads, bootable media or exploitation that occurs before inspection. Device-control policy combined with a managed scanning-and-transfer workflow more directly addresses the recurring unauthorized-media entry vector.

Question 13

A privileged maintenance process checks that a temporary file is safe, then opens it using the same path. An attacker can replace the path with a link between those operations and make the process modify a sensitive file. Which weakness is exploited?

  1. A time-of-check to time-of-use race condition.
  2. A symlink validation error that occurs even when the filesystem object remains unchanged between check and use.
  3. A path traversal bug caused by unfiltered parent-directory components in an input filename.
  4. A temporary-file permission weakness that allows unauthorized writes but does not depend on the ordering of the check and open operations.

Explanation

Correct Answer

A:

The attacker wins a race between validation of a pathname and the later operation that trusts that pathname. The checked object is no longer necessarily the used object, so the process needs safer object handles, atomic operations, and appropriate privilege separation. Mitigations can use file descriptors, atomic creation flags and validation of the object actually used. Merely moving the check closer in time leaves a race unless the object reference remains bound.

Incorrect Answers

B:

Improper symlink handling can be dangerous on its own, but the described exploit relies on an attacker replacing the path between a successful safety check and a later privileged open. That changing object identity is the TOCTOU race.

C:

Directory traversal can expose unauthorized files through malicious path text, but this scenario exploits a temporal change to a previously checked pathname. The privileged process is tricked between two operations, making a race condition the specific weakness.

D:

Weak file permissions are a related filesystem hazard, yet the event succeeds because the attacker changes what the pathname resolves to after the privileged check. The defining mechanism is the check-to-use timing gap.

Question 14

A retail API constructs an SQL statement by concatenating a search parameter directly into the query text. A tester changes the parameter and causes unintended database predicates to execute. Which remediation most directly addresses the flaw?

  1. Improve database audit logging while leaving request parameters concatenated into executable SQL text.
  2. Wrap the concatenated query inside a stored procedure that still builds SQL text from unsanitized user input.
  3. Use parameterized database queries with separately bound input values.
  4. Apply JavaScript escaping in the browser while leaving the server-side SQL string concatenation unchanged.

Explanation

Correct Answer

C:

Parameterized statements separate the query structure from untrusted parameter data so user-provided values are treated as values rather than executable SQL syntax. This directly prevents the predicate manipulation shown, provided parameters are used consistently and dynamic identifiers are safely handled. Prepared statements are especially effective for user-supplied scalar values. Any dynamic column or table identifier still needs a controlled allowlist, since ordinary value binding cannot safely substitute SQL identifiers.

Incorrect Answers

A:

Database query logs can help detect suspicious statements and investigate attempted exploitation, but they do not stop untrusted values from changing query syntax. The flaw requires separating data values from SQL grammar through properly bound parameters.

B:

Stored procedures are not inherently immune when their implementation constructs dynamic SQL with untrusted concatenation. The application needs parameter binding that separates submitted values from SQL syntax, regardless of where the query executes.

D:

Client-side escaping can be bypassed by callers who send HTTP requests directly or manipulate inputs outside the browser. The vulnerable server still incorporates submitted bytes into SQL grammar; binding values as parameters at the database API is the necessary boundary.

Question 15

A hypervisor security alert indicates code running in one virtual machine has used a hypervisor vulnerability to reach resources belonging to the host. Which vulnerability class best describes the trust boundary crossed?

  1. Client-side phishing through the guest browser.
  2. VM escape from the guest into the virtualization host boundary.
  3. An ordinary guest operating-system patch failure without host impact.
  4. A guest operating-system compromise that remains isolated to the same virtual machine.

Explanation

Correct Answer

B:

A VM escape allows code in a guest to cross the expected hypervisor isolation boundary and affect the host or neighboring resources. That makes hypervisor patching, workload isolation, and limiting host management exposure material to containment and remediation. Incident scope should include host-management components and guests sharing the affected hypervisor. Repairing only the compromised guest would not address a vulnerability that defeated the virtualization isolation boundary.

Incorrect Answers

A:

Phishing might be one way code first reached a guest, but it does not describe the specific boundary failure observed. The critical finding is the guest workload gaining access outside its isolated virtual environment.

C:

Unpatched guest software may permit compromise of that individual virtual machine, but the alert explicitly reports host-level access enabled by a hypervisor flaw. Treating it as confined to the guest would underestimate the affected security boundary.

D:

A guest-only compromise can execute code inside one virtual machine without crossing the hypervisor trust boundary. The alert specifically describes access to host resources; that difference makes VM escape the relevant vulnerability class.

Question 16

A cloud identity service records successful sign-ins for one account from distant countries only four minutes apart. The organization knows the account normally uses a single laptop. What is the strongest immediate investigative interpretation?

  1. Treat the impossible-travel alert as confirmed harmless whenever either sign-in used a corporate VPN egress address.
  2. The VPN service must be healthy because both sign-ins succeeded.
  3. The records may reflect stolen credentials or sessions and warrant identity, device, and network-context correlation.
  4. No investigation is needed until a password reset is requested by the user.

Explanation

Correct Answer

C:

The time and geography conflict are an impossible-travel indicator that can accompany credential theft or token replay. Investigation should correlate user agent, device compliance, IP ownership, VPN routing, MFA history, and session identifiers before deciding what to contain. Analysts should distinguish legitimate corporate VPN exits from simultaneous unauthorized logins and prioritize active-session review. A geographic alert is a detection signal, not proof of a particular criminal actor.

Incorrect Answers

A:

A VPN exit can legitimately distort geolocation, but a corporate proxy indicator does not prove both sessions belong to the authorized employee. The analyst must correlate endpoint, authentication and session details before dismissing possible credential or token misuse.

B:

Successful sign-ins mean the service accepted presented credentials or tokens; they do not demonstrate that a VPN service is healthy or that either session is legitimate. Authentication success can occur during adversary access.

D:

Waiting for the affected employee to request help could leave an unauthorized session active. A security-monitoring alert with implausible access context merits timely validation even if it ultimately proves to be a benign proxy or travel-related anomaly.

Question 17

An identity dashboard shows one failed password attempt against hundreds of different usernames each hour from the same small set of IP addresses. Individual accounts rarely exceed their lockout thresholds. Which attack pattern is most consistent?

  1. A targeted offline password-cracking attempt on one stolen hash.
  2. Password spraying across many accounts using a small set of guesses.
  3. Credential stuffing using many previously stolen username-password pairs, each tested against its matching account.
  4. An online brute-force attack that sends many guesses against one targeted privileged account.

Explanation

Correct Answer

B:

Password spraying tries a limited set of common passwords against many accounts while avoiding frequent retries against each individual user. The broad username coverage and low per-account failure rate distinguish it from exhaustive guessing of one account. Attackers often spread attempts over time to avoid account lockouts and alarms keyed only to one username. Cross-account aggregation and source correlation are therefore important detection defenses.

Incorrect Answers

A:

Offline hash cracking occurs without necessarily generating repeated interactive sign-in events on many user accounts. The dashboard shows distributed authentication attempts against a large population, not local tests against a recovered password hash.

C:

Credential stuffing uses exposed credential pairs and may also affect many accounts. The observed pattern instead emphasizes a small set of password guesses spread broadly across usernames to avoid lockouts, which is the distinguishing behavior of password spraying.

D:

Traditional account-focused online brute force normally generates a high failure count for the same principal and may trigger that account’s lockout. The scenario instead shows one or very few guesses per username across a broad account population, which is the defining spraying pattern.

Question 18

An MSP remote-management environment is under investigation for compromise. Several customers still need emergency support, but unrestricted MSP network reachability to production is too risky. Which immediate mitigation most directly reduces lateral movement?

  1. Permit MSP access to all internal network segments until the investigation ends.
  2. Disable all third-party remote-support connectivity indefinitely, without defining any supervised emergency service path.
  3. Restrict the MSP management path to explicitly approved jump points and necessary destinations with monitoring.
  4. Retain detailed privileged-session logs but leave the supplier's unrestricted production routing in place.

Explanation

Correct Answer

C:

Segmentation, allowlisted destinations, and monitored jump-host access confine the provider to specific support functions. The control reduces lateral movement while allowing carefully supervised emergency operations, and it can be tightened or removed as evidence and requirements change. Any emergency provider access should be time-limited and independently approved where feasible. Logs must capture the remaining sessions so security can distinguish authorized repair actions from malicious pivots.

Incorrect Answers

A:

Unrestricted network reachability allows a compromised management identity or tool to contact many systems. Operational support needs do not justify preserving that breadth of access while the provider’s security posture is unknown.

B:

Complete isolation may reduce lateral exposure but conflicts with the stated requirement to maintain emergency support. Restricted monitored jump points with necessary destination allowlists reduce risk while preserving approved repair operations.

D:

Audit logs aid later investigation, but they do not constrain how far a compromised provider identity can move through the network now. Segmentation and limited access paths are needed along with monitoring.

Question 19

Employees repeatedly launch unknown executables from email attachments on a fleet of fixed-purpose kiosks. The vendor’s signed business application list changes only during controlled releases. Which control most directly limits execution of unapproved software?

  1. Allowlist executable applications and maintain the approved publisher or file rules through change control.
  2. Block only unsigned programs while permitting any binary signed by an arbitrary publisher to run on the kiosks.
  3. Block outbound web browsing on the kiosks while leaving executable policy unrestricted.
  4. Block executable attachments at the mail gateway but keep local application-launch rules unrestricted.

Explanation

Correct Answer

A:

Application allowlisting makes execution depend on trusted policy rather than simply whether a file can be downloaded. Fixed-purpose kiosks are a strong use case because the set of approved applications is stable, with explicit updates for legitimate vendor releases. Deployment should begin in audit mode to avoid blocking essential signed business software. Security can then tune approved update mechanisms before turning on strict execution enforcement across kiosks.

Incorrect Answers

B:

Signature presence alone is a weaker execution policy because legitimate and compromised signing keys can authorize software outside the kiosks' approved business set. Allowlisting should specify sanctioned executables or trusted publishers through change control.

C:

Limiting web access may restrict one download path but does not stop code already delivered through email attachments from executing. The requirement is application allowlisting for the fixed-purpose systems.

D:

Mail filtering can reduce one delivery path, but it does not constrain a kiosk from running an unapproved binary received through a browser, removable drive, or existing local file. Because the requirement is to govern execution, an application allowlist is the more direct safeguard.

Question 20

A public-facing appliance has a confirmed critical vulnerability, but its vendor patch will not be ready for five days. A business dependency prevents immediate shutdown. What is the most appropriate short-term risk treatment?

  1. Rely on vendor release notes to announce the future patch while keeping the current vulnerable service fully exposed.
  2. Document the exposure and apply available compensating restrictions and monitoring while arranging the vendor fix.
  3. Increase the appliance's log retention period but make no temporary change to reachable vulnerable interfaces or detection rules.
  4. Rotate the appliance administrator password but leave its known vulnerable internet-facing service and monitoring unchanged.

Explanation

Correct Answer

B:

If the service must stay online, restricting reachable interfaces, tightening ACLs, limiting privileged paths, and closely watching relevant telemetry can reduce exposure until patching is possible. The exception should be documented with a defined expiry and verification of the later fix. A risk owner should document temporary restrictions, an expiration date, and who will validate the vendor patch. The temporary control cannot be described as eliminating the underlying critical vulnerability.

Incorrect Answers

A:

Planning a patch is necessary but does not reduce present exposure during the vendor delay. Temporary access restrictions, monitoring and time-limited ownership are needed while the public appliance must remain online.

C:

Longer retention can help investigate a future incident, but retaining logs alone does not reduce the likelihood of exploitation through a public service. The team needs compensating restrictions and active monitoring while awaiting the vendor's fix.

D:

Password rotation reduces some credential-misuse risk but does not mitigate an exposed code flaw reachable without valid administrative credentials. The response must restrict vulnerable paths, monitor attempts, record temporary risk ownership and plan the real vendor fix.