Sign in
Home/CompTIA/CompTIA Security+ (SY0-701)/Free questions

CompTIA Security+ (SY0-701) — Free Practice Questions

10 free sample questions from a bank of 1323, with the correct answers and explanations. No signup required — start practising right now.

1Which of the following threat actors is the most likely to be hired by a foreign government to attack critical systems located in other countries?
  • Hacktivist
  • Whistleblower
  • Organized crime
  • Unskilled attacker
Answer: C

The short version

C — Banked key treats hired organized crime as the proxy actor. Foreign governments seeking deniable attacks on critical systems contract capable criminal groups. Among listed options, that proxy-for-hire profile fits settled key C.

Key concepts in this question

  • Proxy hiring model: state outsources operations to criminal crews for capability plus deniability.
  • Critical-system targeting: attacks on infrastructure in other countries need resourced persistent actors.
  • Hacktivist motive: ideology-driven disruption, not for-hire state contracting in this bank row.
  • Whistleblower role: insider disclosure, not external hired attack capability.
  • Unskilled attacker limit: lacks resources for cross-border critical-system campaigns.

Why C is correct

The stem emphasizes hired-by-a-foreign-government to attack critical systems abroad, which describes a for-hire capable actor operating as a state proxy. Within the four listed choices, organized crime provides that hired, resourced, deniable capability for sustained operations. Settled key C is therefore retained as the banked answer for this row, distinguishing contracted criminal proxies from ideological, insider, or low-skill actors.

Why the others are wrong

  • A. Hacktivist acts on ideology rather than as a hired government proxy for critical systems.
  • B. Whistleblower discloses inside information, it does not execute hired foreign attacks.
  • D. Unskilled attacker lacks the capability for state-directed critical-system campaigns.

SY0-701 exam tip

Hired-plus-critical-systems in this bank, select the for-hire proxy answer.

2Which of the following is used to add extra complexity before using a one-way data transformation algorithm?
  • Key stretching
  • Data masking
  • Steganography
  • Salting
Answer: D

The short version

D — Salting adds complexity before one-way transforms. Key stretching iterates hashing, masking hides display, steganography hides objects. Random salt per value defeats rainbow tables.

Key concepts in this question

  • One-way transformation: hash converts input to fixed digest that should not reverse.
  • Salt purpose: unique random value mixed with password before hashing for uniqueness.
  • Rainbow-table defense: distinct salts force per-value cracking instead of bulk lookup.
  • Key-stretching contrast: iteration count slows brute force after salting, not the salt itself.
  • Masking and hiding contrast: display and carrier tricks do not strengthen hash inputs.

Why D is correct

Adding a random salt to each input before applying the hash ensures identical passwords produce different digests and precomputed tables cannot match at scale. That extra complexity is applied before the one-way algorithm runs, exactly as the stem asks. Settled key D therefore names the pre-hash complexity control, while stretching, masking, and steganography address adjacent but different problems.

Why the others are wrong

  • A. Key stretching iterates the hash to slow guessing, it is not the initial complexity added before hashing.
  • B. Data masking hides displayed characters, it does not strengthen hash inputs.
  • C. Steganography hides data inside carriers, unrelated to pre-hash password complexity.

SY0-701 exam tip

Extra complexity before hashing equals salt, stretching comes after.

3An employee clicked a link in an email from a payment website that asked the employee to update contact information. The employee entered the log-in information but received a “page not found” error message. Which of the following types of social engineering attacks occurred?
  • Brand impersonation
  • Pretexting
  • Typosquatting
  • Phishing
Answer: D

The short version

D — Fake payment-site credential harvest is phishing. Brand abuse plus credential form plus failure page forms the classic lure. Pretexting and typosquatting describe narrower tricks.

Key concepts in this question

  • Phishing pattern: fraudulent lure impersonating a trusted site to steal logins.
  • Payment-site lure: email link to lookalike page asking for contact and login update.
  • Page-not-found tell: attacker page fails after harvest, revealing the fraud.
  • Brand-impersonation nuance: impersonation is the technique inside the broader phishing campaign.
  • Pretext and typo nuance: invented scenario and misspelled domain are subtypes, not the best overall label.

Why D is correct

The employee followed an email link to a payment-site lookalike, entered credentials, and hit a failure page, which is the end-to-end phishing workflow of lure plus harvest plus abandon. That broader campaign label best answers the stem asking which social-engineering attack occurred. Settled key D captures the credential-harvesting email attack, while the other options name narrower elements rather than the overall type.

Why the others are wrong

  • A. Brand impersonation describes the spoofed look, but phishing is the fuller banked attack label.
  • B. Pretexting centers on an invented scenario over calls or messages, not this credential-site lure.
  • C. Typosquatting needs a misspelled-domain trick, not evidenced beyond the fake payment page.

SY0-701 exam tip

Email link plus fake login plus harvest equals phishing first.

4An enterprise is trying to limit outbound DNS traffic originating from its internal network. Outbound DNS requests will only be allowed from one device with the IP address 10.50.10.25. Which of the following firewall ACLs will accomplish this goal?
  • Access list outbound permit 0.0.0.0/0 0.0.0.0/0 port 53 Access list outbound deny 10.50.10.25/32 0.0.0.0/0 port 53
  • Access list outbound permit 0.0.0.0/0 10.50.10.25/32 port 53 Access list outbound deny 0.0.0.0/0 0.0.0.0/0 port 53
  • Access list outbound permit 0.0.0.0/0 0.0.0.0/0 port 53 Access list outbound deny 0.0.0.0/0 10.50.10.25/32 port 53
  • Access list outbound permit 10.50.10.25/32 0.0.0.0/0 port 53 Access list outbound deny 0.0.0.0/0 0.0.0.0/0 port 53
Answer: D

The short version

D — Permit the single DNS host then deny all other DNS. Firewall ACLs process top-down, so the narrow allow must precede the broad deny. Only that order leaves 10 dot 50 dot 10 dot 25 as the sole egress path.

Key concepts in this question

  • Outbound DNS service: UDP and TCP port 53 from internal clients to resolvers.
  • Allow-list host: 10 dot 50 dot 10 dot 25 is the only permitted DNS source.
  • Order sensitivity: first-match processing means specific permit must come before general deny.
  • Direction fields: source then destination plus port define the outbound DNS flow.
  • Least-privilege goal: all other internal hosts must fail closed for DNS egress.

Why D is correct

To limit outbound DNS to one device, the ACL must first permit port 53 from 10 dot 50 dot 10 dot 25 to any destination, then deny port 53 from any to any. That sequence lets the authorized host pass while the catch-all deny blocks everyone else. Settled key D states exactly that permit-single-then-deny-rest order, which is the only listed pair that achieves the goal under first-match logic.

Why the others are wrong

  • A. Permits all then tries to deny the single host, leaving broad DNS open due to order.
  • B. Reverses source and destination fields, failing to match outbound source correctly.
  • C. Permits all DNS first, so the later deny never triggers for other hosts.

SY0-701 exam tip

Single-host allow plus deny-rest, put narrow permit first for DNS.

5A data administrator is configuring authentication for a SaaS application and would like to reduce the number of credentials employees need to maintain. The company prefers to use domain credentials to access new SaaS applications. Which of the following methods would allow this functionality?
  • SSO
  • LEAP
  • MFA
  • PEAP
Answer: A

The short version

A — SSO reuses domain credentials for SaaS access. LEAP and PEAP are wireless auth protocols, MFA adds factors. Federation with domain IdP cuts credential sprawl.

Key concepts in this question

  • Single sign-on: one domain login federated to multiple SaaS apps via trust.
  • Domain-credential reuse: Active Directory or cloud IdP remains the source of truth.
  • SaaS federation: SAML or OIDC trust lets domain users reach new apps without new passwords.
  • MFA contrast: strengthens logins but does not itself reduce password count.
  • Wireless-protocol contrast: LEAP and PEAP authenticate Wi-Fi, not SaaS federation.

Why A is correct

The goal is fewer credentials while preferring domain logins for a new SaaS app. SSO federation, as settled key A states, establishes trust between the domain identity provider and the SaaS app so domain sessions grant app access without separate passwords. That directly reduces credential maintenance while preserving central policy and deprovisioning.

Why the others are wrong

  • B. LEAP is a legacy wireless authentication method, not SaaS credential federation.
  • C. MFA adds verification strength but still leaves separate SaaS passwords unless paired with SSO.
  • D. PEAP tunnels wireless authentication, it does not federate domain logins to SaaS.

SY0-701 exam tip

Fewer SaaS passwords with domain logins, answer SSO federation.

6Which of the following scenarios describes a possible business email compromise attack?
  • An employee receives a gift card request in an email that has an executive’s name in the display field of the email.
  • Employees who open an email attachment receive messages demanding payment in order to access files.
  • A service desk employee receives an email from the HR director asking for log-in credentials to a cloud administrator account.
  • An employee receives an email with a link to a phishing site that is designed to look like the company’s email portal.
Answer: C

The short version

C — Credential request from HR to service desk is possible BEC. Gift-card display-name abuse is common, ransomware is extortion, and portal link is phishing. Direct credential solicitation fits business compromise.

Key concepts in this question

  • Business email compromise: attacker poses as authority to induce risky action or disclosure.
  • Credential-harvest variant: HR-director persona asks service desk for cloud admin credentials.
  • Gift-card nuance: display-name executive asking for gift cards is also BEC but not this stem.
  • Ransomware nuance: attachment-driven encryption with payment demand is malware extortion.
  • Phishing-link nuance: portal lookalike link is credential phishing, broader than BEC pretext.

Why C is correct

The scenario has an HR-director email pressing a service-desk employee for logins to a cloud admin account, leveraging authority and urgency to bypass normal handling. That authority-based credential solicitation is the banked business-email-compromise illustration for this row. Settled key C is therefore retained as the possible BEC attack, while the other scenarios map to adjacent gift-card, ransomware, or link-phishing patterns.

Why the others are wrong

  • A. Gift-card request with executive display name is BEC-like but is not the stem scenario here.
  • B. Attachment-driven payment demand for files describes ransomware extortion, not BEC.
  • D. Portal-lookalike link describes general phishing rather than the banked BEC pretext.

SY0-701 exam tip

Authority email asking for admin credentials, think BEC pretext first.

7A company prevented direct access from the database administrators’ workstations to the network segment that contains database servers. Which of the following should a database administrator use to access the database servers?
  • Jump server
  • RADIUS
  • HSM
  • Load balancer
Answer: A

The short version

A — Use a jump server to reach the isolated DB segment. Blocked direct paths need a hardened intermediary. RADIUS, HSM, and load balancer do not provide admin hop access.

Key concepts in this question

  • Network segmentation: DBAs cannot route directly to database server VLAN.
  • Jump-server role: hardened bastion in scope that brokers admin sessions with logging.
  • Access control: DBA authenticates to the jump host, then to DB hosts through allowed path.
  • RADIUS contrast: authentication service, not a session hop into the segment.
  • HSM and balancer contrast: key protection and traffic distribution, not admin access.

Why A is correct

When direct workstation-to-database paths are denied by segmentation, administrators need an approved hop that is itself allowed into the protected segment. A jump server, as settled key A states, sits with interfaces or rules permitting DB access while exposing only hardened admin entry with session recording. DBAs connect there first and then to database servers without violating the isolation policy.

Why the others are wrong

  • B. RADIUS centralizes authentication decisions but does not create a network path into the segment.
  • C. HSM safeguards keys and crypto operations, it does not broker admin connectivity.
  • D. Load balancer distributes service traffic, it is not an admin access hop.

SY0-701 exam tip

Admins blocked by segmentation, route them through a jump server.

8An organization’s internet-facing website was compromised when an attacker exploited a buffer overflow. Which of the following should the organization deploy to best protect against similar attacks in the future?
  • NGFW
  • WAF
  • TLS
  • SD-WAN
Answer: B

The short version

B — WAF best blocks web buffer-overflow exploitation. NGFW filters broadly, TLS encrypts, SD-WAN routes. App-layer input and payload inspection stops the web vector.

Key concepts in this question

  • Buffer-overflow vector: oversized or crafted web input overruns app buffers to hijack control.
  • WAF placement: Layer-7 filter in front of the site that blocks malicious payloads and patterns.
  • NGFW scope: network and port controls with some app awareness, less precise for web exploits.
  • TLS role: confidentiality and integrity in transit, not input validation.
  • SD-WAN role: path selection and resilience, not exploit prevention.

Why B is correct

The compromise came through the internet-facing website via buffer-overflow payloads, so future protection must inspect HTTP inputs and block exploit signatures before they reach the app. A web application firewall, as settled key B states, provides that Layer-7 input filtering, virtual patching, and anomaly blocking tuned to web attacks. The other controls improve network or transport posture but do not directly stop crafted web payloads.

Why the others are wrong

  • A. NGFW improves perimeter filtering but lacks WAF-depth web payload protection.
  • C. TLS encrypts traffic without validating or blocking overflow payloads inside it.
  • D. SD-WAN optimizes routing and availability, it does not filter web exploits.

SY0-701 exam tip

Website exploited by crafted input, deploy a WAF in front.

9An administrator notices that several users are logging in from suspicious IP addresses. After speaking with the users, the administrator determines that the employees were not logging in from those IP addresses and resets the affected users’ passwords. Which of the following should the administrator implement to prevent this type of attack from succeeding in the future?
  • Multifactor authentication
  • Permissions assignment
  • Access management
  • Password complexity
Answer: A

The short version

A — Enforce multifactor authentication after credential takeover. Password reset alone leaves replayable single-factor logins. An extra factor blocks stolen-password reuse from odd IPs.

Key concepts in this question

  • Account-takeover signal: logins from suspicious IPs plus user denial indicates compromise.
  • Password-reset limit: new secret still phishable and replayable as a single factor.
  • MFA value: requires possession or biometric proof beyond the password at login.
  • Permission hygiene: assignment cleanup matters but does not stop stolen-credential use.
  • Complexity limit: stronger passwords still fail when already stolen and reused.

Why A is correct

Attackers authenticated with valid usernames and passwords from unusual addresses, proving single-factor secrecy was insufficient. Implementing multifactor authentication, as settled key A states, forces a second verification that the attacker lacks even with the password. That prevents the same stolen-credential logins from succeeding after the reset.

Why the others are wrong

  • B. Permissions assignment tidies authorization but still allows password-only login abuse.
  • C. Access management process improves reviews without adding a login-time second factor.
  • D. Password complexity raises guessing cost yet stolen valid passwords still pass.

SY0-701 exam tip

Suspicious logins with valid passwords, add MFA immediately.

10An employee receives a text message that appears to have been sent by the payroll department and is asking for credential verification. Which of the following social engineering techniques are being attempted? (Choose two.)
  • Typosquatting
  • Phishing
  • Impersonation
  • Vishing
  • Smishing
  • Misinformation
Answer: C, E

The short version

CE — Payroll-text credential ask is smishing plus impersonation. Voice-call trick would be vishing, link-only lures are generic phishing. Text channel plus authority pose defines the pair.

Key concepts in this question

  • Smishing: phishing conducted over SMS or text messaging to harvest data.
  • Impersonation: posing as payroll authority to create trust and urgency.
  • Vishing contrast: voice-call version of the same lure, not evidenced in a text.
  • Phishing breadth: generic email or web lure label, less precise than text-channel smishing.
  • Two-answer requirement: channel plus persona together describe the attempt.

Why CE is correct

The employee got a text that claims payroll origin and seeks credential verification, combining a messaging channel with an authority disguise. Smishing, as settled key E, names the SMS-based phishing channel, while impersonation, as settled key C, names the payroll-department masquerade. Together they precisely classify the attempt better than voice, generic, typo, or misinformation labels.

Why the others are wrong

  • A. Typosquatting needs a lookalike-domain trick, not shown in a payroll text.
  • B. Generic phishing usually implies email or web, less precise than text-channel smishing here.
  • D. Vishing requires a voice call lure, while this attempt arrives by text message.
  • F. Misinformation describes false-content spread, not credential theft via authority pose.

SY0-701 exam tip

Text plus authority credential ask equals smishing plus impersonation.

Want the full bank of 1323 questions for CompTIA Security+ (SY0-701)? See all practice exams.