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 8

Question 70

A team is about to modify firewall rules through infrastructure-as-code. The live firewall contains emergency manual changes not present in the approved repository. What is the safest immediate step before applying the planned configuration?

  1. Back up the live firewall rules and immediately apply the repository without examining why the emergency rules differ.
  2. Approve the repository change based only on its peer-review history and schedule emergency rules for removal after the deployment.
  3. Run a connectivity smoke test against the repository configuration but do not examine its security differences from the live rule set.
  4. Compare the deployed rules with the intended state, reconcile justified changes through review, and confirm impact before deployment.

Explanation

Correct Answer

D:

Drift reconciliation establishes which rules are authorized, which are obsolete, and what the planned application would change. Reviewing the diff with the relevant owners and checking rollback readiness keeps the repository authoritative without ignoring operational context. The approved result can then be applied and verified against the intended security policy.

Incorrect Answers

A:

A snapshot helps recovery, but reverting unexplained emergency rules may reopen a route that responders intentionally blocked. Version control is not proof that a previously approved rule remains safe after an incident; the team must reconcile live drift and proposed changes before deployment.

B:

Peer review of the stored code does not cover emergency modifications made later. Removing those rules without checking whether their mitigating purpose remains valid could expose systems. The deployed state must be compared with the intended policy and each difference justified.

C:

A smoke test may show that a service still connects, but it does not establish which protective firewall exceptions will be removed or widened. A security-impact diff and review of the emergency rationale must precede applying the configuration.

Question 71

An internal certificate authority issues client authentication certificates for thousands of managed devices. The organization requires that the CA private key never be exportable in plaintext even by a compromised operating-system administrator. Which measure best addresses this requirement?

  1. Rotate the CA public certificate every hour without protecting its corresponding private key.
  2. Distribute and pin the CA public certificate on all clients while leaving the CA private key stored in an exportable software keystore.
  3. Store the CA key in a password-protected text file on the administrator workstation.
  4. Use a hardware security module that generates and protects the CA signing key and performs signing operations internally.

Explanation

Correct Answer

D:

A properly configured hardware security module can generate and retain the CA private key inside a tamper-resistant security boundary. Authorized software submits signing operations without obtaining the private key itself. Operational controls, backup strategy, administrative separation, and HSM access policies remain necessary, but this design most directly addresses non-exportability.

Incorrect Answers

A:

Frequent public-certificate changes increase operational churn but do not prevent unauthorized private-key use. The damaging event would be extraction or misuse of the CA signing key, which requires strong key custody and signing controls rather than a rapid cadence for distributing public data.

B:

Certificate pinning can help clients recognize an expected issuer, but distributing a public certificate does not make the CA signing private key non-exportable. A compromised system administrator can still attempt to extract an ordinary software-keystore key; the stated boundary requires key generation and signing inside an HSM.

C:

File-level encryption improves protection against casual access, but a privileged compromise of the workstation may capture the decryption key or the plaintext during signing. It does not provide the stated hardware-backed boundary preventing export of sensitive private-key material.

Question 72

An employee’s smart-card private key is believed stolen, but the corresponding certificate will not expire for six more months. A VPN gateway must stop accepting that identity immediately. Which certificate-validation capability should the gateway use?

  1. Compare only the certificate not-after date and ignore issuer revocation information.
  2. Issue the employee a replacement certificate but leave the suspected compromised certificate unrevoked until its natural expiration.
  3. Check a current revocation response from the issuing PKI, such as OCSP or a valid CRL, according to the organization’s validation policy.
  4. Change the gateway DNS resolver without modifying its certificate trust checks.

Explanation

Correct Answer

C:

Publishing revocation and having the gateway verify current status allows a CA to invalidate an otherwise unexpired credential. OCSP or certificate revocation lists can convey the issuer’s status, subject to freshness, availability, and fail-open/fail-closed policy choices. The affected certificate should be revoked promptly and the account’s other sessions assessed.

Incorrect Answers

A:

Expiration is only one validity condition; a stolen private key can remain dangerous while its certificate is still within the advertised date range. Ignoring revocation would allow the compromised credential to authenticate until expiry, despite the issuer’s intent to withdraw trust early.

B:

Reissuing a credential improves the legitimate employee's future access but does not invalidate a stolen private key associated with the older certificate. The VPN would still accept that original credential if it only checks trust and expiry; authoritative revocation status must be enforced.

D:

DNS configuration can affect access to revocation endpoints, but replacing a resolver alone does not declare the certificate revoked or enforce issuer status. The primary control is certificate validity and revocation checking at the gateway, alongside proper PKI operations.

Question 73

A storage platform encrypts many large volumes. Security wants to rotate a central key-encryption key without decrypting and re-encrypting every data block. Which design best supports that goal?

  1. Keep one master AES key for all volume data and rotate it by re-encrypting every storage block whenever policy requires.
  2. Protect all volume keys with one key-encryption key but permanently discard the previous wrapping version before all existing data keys are rewrapped.
  3. Use unique data-encryption keys for volume contents and wrap those keys with a separately managed key-encryption key.
  4. Encrypt each volume with a different long-lived key, but store the data keys in plaintext alongside the encrypted volumes to simplify key rotation.

Explanation

Correct Answer

C:

Envelope encryption separates the fast symmetric keys that encrypt the data from a key-encryption key that protects the data keys. Rotating the key-encryption key can require rewrapping data keys rather than rewriting all encrypted volume blocks. It still requires careful handling of key versions, access control, and recovery backups.

Incorrect Answers

A:

Directly encrypting all blocks with the same rotating key can provide confidentiality, but changing it requires touching the bulk ciphertext. The requirement is to rotate central key protection without reprocessing all volume contents; wrapping separate data keys achieves that separation.

B:

A separate wrapping key is useful, but deleting a still-needed version before the dependent data keys are safely rewrapped can make older volumes unrecoverable. Managed envelope encryption requires controlled rewrapping and key-version continuity through the rotation.

D:

Distinct volume keys reduce a single-key blast radius, but placing plaintext decryption keys with the encrypted data defeats the separation of custody. A protected key-encryption key should wrap those data keys so a central rotation changes key wrapping rather than bulk data blocks.

Question 74

An attacker records encrypted internal web traffic today. The organization wants compromise of a server’s certificate private key next year not to expose those past sessions. Which handshake property best addresses that retrospective threat?

  1. Encrypt sessions with a strong symmetric cipher but continue using static RSA key transport to establish the recorded traffic keys.
  2. Reuse a static session key for every TLS connection and protect it with the certificate private key.
  3. Enable authenticated ephemeral Diffie–Hellman key agreement for TLS sessions.
  4. Increase the server certificate lifetime so administrators rotate it less often.

Explanation

Correct Answer

C:

Authenticated ephemeral key agreement derives fresh session secrets, while certificates authenticate the peer rather than directly determining all past traffic keys. With appropriate TLS versions and cipher suites, later theft of the certificate private key does not normally reveal earlier ephemeral secrets. Protection still depends on sound implementations and secure handling of live session keys.

Incorrect Answers

A:

Strong bulk encryption does not create forward secrecy if the session keys remain recoverable with a later-compromised long-term RSA key. Authenticated ephemeral key agreement is needed so recorded sessions do not depend on later possession of the server certificate's signing key.

B:

Reusing one static session key broadens compromise across users and time. If the key is derived or recovered from long-term credentials, later compromise can expose recorded traffic. The requested protection requires sessions not to depend solely on recoverable long-lived secret material.

D:

A long-lived certificate can increase the period during which credential compromise remains exploitable. Certificate validity duration does not create forward secrecy for session encryption. The necessary property is in the key-exchange design used for each connection.

Question 75

A volunteer online collective publicly claims it will disrupt a retailer because of the retailer’s environmental policy. Members flood the public storefront with traffic and publish statements describing their political objective; no payment demand or espionage evidence appears. Which threat-actor motivation is best supported?

  1. A state intelligence team primarily seeking confidential prototype designs.
  2. A financially motivated criminal group seeking ransom for stolen records.
  3. An ideologically motivated hacktivist campaign intended to disrupt and publicize a cause.
  4. An authorized internal red team performing a contracted availability test.

Explanation

Correct Answer

C:

Hacktivist activity is often linked to an ideological or political cause and may use disruptive techniques to draw attention. The declared protest target and public statements match that motivation better than financial theft or covert intelligence collection. Analysts should still preserve evidence rather than treat online claims as definitive attribution.

Incorrect Answers

A:

An intelligence operation can use disruption as cover, but the scenario provides no evidence of stealthy collection or state-directed research objectives. Attributing a nation-state actor requires more than the fact that a large organization was attacked; the readily supported motive is ideological disruption.

B:

Ransom or resale could motivate other attackers, but the available evidence describes public demands for policy change rather than monetization. There is no demand for payment or sign of records being taken for sale. Classification should follow the stated goal and observed behavior rather than assume that all service disruptions are extortion.

D:

A red team normally has documented authorization, agreed scope and rules of engagement from the target organization. Public claims by an outside collective and an unrequested traffic flood do not establish that permission. Unauthorized disruption should be investigated as a hostile event even if someone calls it a test.

Question 76

Employees receive posters claiming that office guest Wi-Fi access has moved to a new registration portal. Scanning a printed QR code opens a look-alike corporate sign-in page that asks for passwords and MFA codes. Which description best captures the initial attack vector?

  1. A QR-code-based phishing lure directing users to a credential-harvesting website.
  2. A trusted firmware update delivered to managed wireless controllers.
  3. An authenticated vulnerability scan of the wireless LAN.
  4. A cryptographic downgrade negotiated between two legitimate VPN gateways.

Explanation

Correct Answer

A:

The malicious QR code conceals a URL inside a seemingly convenient physical sign. The user follows it and encounters a counterfeit authentication page intended to capture credentials and possibly one-time factors. Training should emphasize verifying the destination independently and reporting suspicious signs, not trusting printed QR codes automatically.

Incorrect Answers

B:

Firmware updates change device code through an administrative deployment process. The poster is not updating controller software; it redirects people to an attacker-controlled web form. A managed wireless component does not have to be compromised for the credential-harvesting technique to work.

C:

A vulnerability scan probes systems for weaknesses under a defined authorized testing scope. The poster’s purpose is to entice employees to enter secrets into a fraudulent login form, not to discover a technical flaw in guest wireless infrastructure.

D:

Protocol downgrade attacks exploit negotiation behavior between legitimate communication endpoints. Here the deception starts before network authentication, when people scan an untrusted code and submit secrets to a false portal. No weakened cryptographic negotiation is shown as the entry point.

Question 77

A team moved a reporting API to a cloud endpoint. Its default deployment makes an administrative method reachable over the public internet even though the web interface hides that method. Which factor most directly expands the application’s attack surface?

  1. Developers can access the source repository through a company VPN.
  2. The API method is externally reachable regardless of whether the web interface displays a button for it.
  3. The cloud provider encrypts the API’s storage volumes at rest.
  4. The method’s name includes the word administrator in the internal code comments.

Explanation

Correct Answer

B:

Attack surface is defined by reachable interfaces and operations, not by what the graphical application exposes. A direct HTTP client may invoke the administrative method if networking and authorization allow it. The team should require proper authentication and authorization and restrict exposure of methods not intended for external callers.

Incorrect Answers

A:

Source control access is part of the development environment and should be secured, but a VPN-only repository does not protect the API’s deployed endpoint. An outsider can target the live method without acquiring developer repository access if it is publicly reachable.

C:

Encrypted storage helps protect data at rest, not the authorization of a live administrative API. An attacker calling a reachable endpoint may receive decrypted responses or invoke functionality through the application even when underlying disks are encrypted.

D:

A method name or comment can describe sensitive behavior but does not itself determine network reachability. An internal identifier may help a reviewer recognize risk, yet the concrete security exposure is that an external caller can access the API operation despite the web UI concealing it.

Question 78

A helpdesk web tool accepts a `filename` parameter for downloading approved attachments. A tester supplies a value with repeated `../` segments and retrieves a configuration file outside the attachments directory. Which vulnerability is demonstrated?

  1. A broken access boundary caused by directory or path traversal.
  2. A reflected cross-site scripting issue that executes only in the user’s browser.
  3. A collision attack against the attachment file hashing algorithm.
  4. A race condition requiring two simultaneous filesystem operations.

Explanation

Correct Answer

A:

Path traversal occurs when an application combines attacker-controlled path components with a filesystem location without securely constraining the result. The relative parent-directory segments escape the intended attachment root. Mitigations include canonicalizing paths, rejecting unsafe traversal, and enforcing authorization on the resolved resource instead of trusting a filename.

Incorrect Answers

B:

Reflected cross-site scripting involves untrusted content being included in a web response such that a browser executes unintended script. The observed problem is server-side access to a file outside the authorized directory, and no injected browser script is required for the disclosure.

C:

Hash collisions involve two inputs producing the same digest under an algorithm; nothing indicates that file identities were confused by colliding hashes. The successful access follows manipulation of path components rather than a weakness in the cryptographic digest function.

D:

A race condition depends on a hazardous ordering or timing of multiple operations. The tester’s single crafted path is sufficient to escape the intended directory. The vulnerability is incorrectly handled pathname input, whether or not any concurrent request happens.

Question 79

A web service accepts a serialized object from a client and directly reconstructs it using a language runtime that can invoke methods during object creation. A specially crafted request causes unexpected server-side commands to execute. Which weakness best explains the behavior?

  1. Validate the syntax and length of the serialized request but continue allowing client-selected native object classes with executable deserialization hooks.
  2. Insufficient TLS certificate validity checking on the client browser.
  3. Unsafe deserialization of untrusted object data.
  4. A benign difference in session-cookie expiration times.

Explanation

Correct Answer

C:

Unsafe deserialization lets attacker-controlled object content influence executable behavior during reconstruction, potentially through gadget chains or class hooks. Safer designs avoid arbitrary native-object deserialization for untrusted inputs, use tightly defined data formats and validation, and prohibit executable behaviors during parsing. Restricting classes is helpful but may not be sufficient in vulnerable runtimes.

Incorrect Answers

A:

Syntax and size limits may reduce malformed inputs or resource exhaustion, but they do not prevent gadget chains if untrusted clients can select deserializable executable classes. The vulnerable behavior is unsafe object reconstruction and must be eliminated or strictly constrained before deserialization.

B:

A certificate problem could permit interception or impersonation, but the described failure occurs when the application processes a crafted serialized object. The trigger is the server’s reconstruction behavior, not whether a browser validated the service’s encryption certificate.

D:

Cookie expiration affects when sessions are valid, but it does not explain execution triggered by reconstructing attacker-supplied objects. A short session lifetime cannot make an unsafe deserializer safely process hostile object graphs.

Question 80

A document-import service accepts XML from business partners. A small XML file defines entities that expand recursively, causing the parser to allocate enormous amounts of memory and stall. Which application weakness is being exploited?

  1. A server-side SQL injection caused by an unescaped database table name.
  2. A cryptographic signature replay against an authentication token.
  3. An XML entity expansion denial-of-service condition.
  4. A password spraying attack against the import operator.

Explanation

Correct Answer

C:

Entity expansion can make a tiny input consume disproportionate CPU and memory when a parser resolves nested definitions. Restricting or disabling risky entity features, setting parser limits, and bounding processing resources address the failure. The problem is parser resource exhaustion, even when the XML file itself looks small.

Incorrect Answers

A:

SQL injection affects database query construction when untrusted input is interpreted as SQL. The file processing stalls before any specific database manipulation is described. The root cause is unbounded XML entity expansion, not an unsafe SQL identifier.

B:

A replayed cryptographic token would exploit insufficient freshness or binding in an authentication protocol. Here the malicious structure is an XML document that causes parser exhaustion. Nothing suggests a signed token was captured and reused to authenticate a request.

D:

Password spraying tests a small number of likely passwords against many accounts to avoid lockout thresholds. The import failure happens while expanding XML definitions and does not involve repeated guesses at authentication credentials for the operator.