100% Latest & Updated CompTIA SY0-701 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 110
A city portal receives millions of short requests from distributed sources while successful sessions collapse. Which TWO response elements, taken together, identify and suppress the likely availability attack? Choose TWO.
- Analyze ingress volume, source distribution and exhausted connection capacity.
- Increase application-server capacity without addressing distributed ingress traffic that already saturates the front end.
- Apply upstream scrubbing or adaptive rate controls tailored to confirmed malicious traffic.
- Temporarily deny all unauthenticated visitors at the portal edge, including residents attempting legitimate access.
- Limit the rate of authenticated sessions while leaving the anonymous request flood unaffected.
Explanation
Correct Answers
A:The traffic pattern distinguishes a distributed resource-exhaustion attack from normal growth in customer demand. The ingress measurements should distinguish source diversity, request rate, connection exhaustion and legitimate user impact. A distributed flood may require upstream mitigation because the portal's own service has already lost capacity.
C:Blocking the flood before it reaches limited application resources protects legitimate user sessions. Scrubbing and adaptive rate controls reduce malicious request volume before scarce application resources are exhausted. Rules should be tuned against measured attacker patterns to avoid blocking the legitimate residents who need the city portal.
Incorrect Answers
B:Extra application instances can absorb a moderate surge if network and front-end capacity remain available. In this stem, distributed short requests already crowd out legitimate sessions, so origin scaling alone may fail before traffic even reaches the new workers. Measure the abusive ingress pattern and apply upstream filtering or rate controls while monitoring legitimate session success.
D:Blocking all anonymous requests could dramatically reduce traffic and protect capacity, but the public city portal is intended for residents who may not have sessions yet. A blanket restriction would achieve attacker suppression by denying normal service as well. Target request fingerprints, rates, and sources with reversible controls and validate that genuine users still connect.
E:Rate-limiting only logged-in sessions does not address the distributed requests exhausting portal capacity before users can establish sessions. The effective mitigation must detect and suppress the abusive ingress path and maintain enough service capacity for legitimate clients.
Question 111
A workstation's ARP cache suddenly maps the finance gateway IP address to a stranger's physical address on the same VLAN. What is the most likely local attack and suitable protection?
- Increase DNS resolver TTL values on cloud servers.
- Rotate backup-encryption keys for archival tapes.
- Investigate ARP spoofing and use authenticated network bindings or dynamic ARP inspection.
- Treat the change as normal TLS key negotiation.
Explanation
Correct Answer
C:Poisoned local address resolution can redirect finance traffic through an attacker-controlled device. A false gateway mapping redirects layer-two frames to an unintended machine even though the IP destination appears correct. Validating bindings from trusted network configuration and inspecting suspicious ARP traffic addresses that local impersonation path.
Incorrect Answers
A:DNS caches do not verify ARP advertisements or protect local Ethernet mapping tables. DNS maps names to IP addresses at a different protocol layer from ARP's local IP-to-MAC resolution. Increasing cloud DNS TTLs would not prevent a forged ARP response from altering the finance gateway entry on the VLAN.
B:Archive key custody cannot prevent spoofed local ARP replies on an active VLAN. Archived backup keys protect stored recovery media, not local Ethernet neighbor discovery. A malicious machine can still publish the forged gateway hardware address while those archival keys are perfectly managed.
D:Transport encryption does not remap a gateway's IP to a different layer-two address. TLS session keys protect application transport once established; they do not determine which MAC address carries packets to the gateway. The ARP cache change occurs beneath that encrypted session and requires local network controls.
Question 112
A captured session cookie is accepted by a customer portal from a new device even though the user did not enter a password again. What risk is demonstrated?
- Bearer-session replay, requiring token revocation and session-boundary review.
- A cross-site request forgery that causes a victim browser to submit a logged-in action.
- A stolen refresh token used to obtain a new access token from the portal’s identity provider.
- Password spraying across many unrelated accounts.
Explanation
Correct Answer
A:A stolen valid cookie can carry a previous authorization decision to another client without knowing the original password. A session cookie functions as a bearer token where possession may suffice for reuse. Revocation, device/session binding where supported, and short valid lifetimes reduce the window in which a stolen token is accepted without the password.
Incorrect Answers
B:CSRF abuses the browser’s existing authenticated session when a victim follows an attacker-controlled page. Here the captured bearer cookie is accepted from a different device without that victim browser participating. Direct replay of a stolen session artifact explains the new-device login; origin checks and CSRF tokens do not replace session invalidation and theft investigation.
C:Refresh-token theft can indeed create unauthorized sessions, so it is worth checking the identity-provider logs. The prompt specifically reports replay of a captured session cookie accepted directly by the customer portal, without mentioning token refresh. The observed acceptance is a bearer-cookie replay; a different stolen-token pathway should not be assumed without supporting events.
D:The observed attack reuses one captured session token rather than testing a common password on numerous usernames. Spraying tests one or a few passwords across many accounts to avoid per-user lockouts. This incident concerns one captured authentication artifact and no new password challenge, so its mechanism is session replay.
Question 113
Monitoring records one candidate password attempted against 3,000 user accounts, rarely more than twice per account. What attack pattern and detection scope does this suggest?
- A targeted brute-force attack trying thousands of passwords against one privileged account.
- A credential-stuffing campaign using distinct stolen password pairs for every account.
- Password spraying; correlate failed authentications by candidate behavior across many users.
- An approved password-audit job checking organizational credential strength using a controlled offline hash dataset.
Explanation
Correct Answer
C:Broad low-frequency attempts try to avoid per-account lockouts while exploiting shared weak passwords. The low count per account can evade rules that watch only repeated failures on a single identity. Aggregate authentication data by source, candidate pattern and time window to see the organizational-scale spraying campaign.
Incorrect Answers
A:Concentrated brute force seeks a login by varying many guesses against one principal; detection typically sees repeated failures for the same identity. The case instead shows one candidate password distributed across thousands of distinct accounts and only one or two attempts per user, a shape designed to avoid per-account lockout thresholds. That is password spraying.
B:The defining observed pattern is reuse of one candidate password, not a known unique secret for each identity. Credential stuffing typically applies username/password pairs obtained from another breach. Reusing the same password across thousands of accounts is a different search strategy and should be investigated as a broad shared-password probe.
D:Authorized password audits can test weak passwords across many identities, so broad password reuse is a legitimate security concern. A controlled offline audit would not produce thousands of interactive sign-in attempts against live accounts. The login-system telemetry indicates online authentication attempts distributed across principals and warrants password-spraying response.
Question 114
Immediately after a crafted POST request, a web worker launches a shell and begins making unexpected outbound connections. What should the investigator examine first?
- Inspect only outbound firewall connection summaries without linking them to the originating HTTP request or server process.
- Trace the suspicious request to its worker process tree and preserve shell and egress artifacts.
- Quarantine the host and discard the web request and process evidence before analyzing the execution chain.
- Treat the child shell as expected solely because the service supports server-side scripting.
Explanation
Correct Answer
B:Joining the malicious-looking request to child interpreter activity and its network connections tests a server-side command injection hypothesis. Link the incoming POST to its request handler, process parent-child relationships, command line and outbound sockets. That causal timeline tests whether untrusted web input crossed into command execution rather than merely coinciding with unrelated network activity.
Incorrect Answers
A:The egress summary may identify destinations but cannot show whether attacker-supplied input caused the shell process to start. Connection summaries show where traffic went but not why the process initiated it. Without HTTP request, worker PID and child-process linkage, responders may wrongly attribute the shell and egress to ordinary maintenance activity.
C:Containment can be justified, but deleting the request and process history would prevent attribution of the unexpected execution path. Rapid isolation may be appropriate to stop ongoing compromise, but deleting request and process history destroys evidence of the entry point. Preserve volatile and available logs before destructive cleanup when operationally safe.
D:A framework's ability to run scripts does not prove this specific shell invocation or outbound command was authorized. An application that supports scripts does not authorize arbitrary shell execution after a crafted request. The investigator must verify which handler, identity and inputs caused this specific child process and unexpected outbound connections.
Question 115
An intranet login button displays the organization's domain but forwards users through multiple redirects to a credential-collection host. What should responders preserve and block?
- Trace and retain the redirect chain, then block the final credential-harvesting domain.
- Approve the link because the displayed words match the organization.
- Increase the intranet server's storage quota.
- Show users a browser warning for redirected sign-in pages, but leave the credential-harvesting destination accessible during the investigation.
Explanation
Correct Answer
A:The effective destination reveals where secrets are being collected even if the clickable label looks legitimate. The actual redirect destinations, not the visible login label, identify where credentials are submitted. Retaining URL and timing evidence supports blocking the harvesting infrastructure and locating other users who were exposed.
Incorrect Answers
B:Anchor text is controlled by page authors and need not equal the ultimate redirect target. The displayed anchor text is completely controlled by the page author and can name the employer while pointing elsewhere. Verify the resolved final domain rather than trusting the words shown on the button.
C:More storage does not stop users from being forwarded to an attacker-controlled login form. Storage capacity affects how much data the intranet holds, not where a clicked login link sends the browser. Increasing it will not interrupt a malicious chain of HTTP redirects to an outside form.
D:A warning may lower the number of users who proceed, but it does not contain the confirmed credential-collection endpoint. Attackers can still reach users who overlook the warning, and the redirect chain may disappear if responders do not preserve it. Retaining the observed sequence and blocking the final phishing destination directly addresses both evidence preservation and immediate exposure.
Question 116
A single account signs in from two continents within three minutes. The employer operates a corporate proxy in one region. What investigation avoids treating the alert as conclusive proof of theft?
- Delete the identity-provider sign-in events after the alarm clears.
- Ignore the alert whenever either session uses HTTPS.
- Correlate session IDs, proxy egress locations, timestamps and device evidence for both logins.
- Lock every account worldwide based on two geographic labels alone.
Explanation
Correct Answer
C:A shared proxy may explain one apparent geography, whereas distinct devices and sessions may indicate misuse. The corporate proxy can make a nearby employee appear to log in from a different region. Correlating devices, source and exit IPs, session identifiers and accurate timestamps distinguishes that routing effect from truly separate sessions.
Incorrect Answers
A:Historical device and session records are needed to test competing explanations. Session and endpoint records allow analysts to compare the two apparent geographies and test for legitimate proxy egress. Deleting them would remove the context needed to distinguish false positives from account theft.
B:Encrypted connections do not establish that the same authorized person initiated both logins. HTTPS secures each connection but does not prove the human behind two sessions is the same authorized employee. A stolen account can authenticate over encrypted transport just as the legitimate user can.
D:Geolocation can reflect proxy exits and does not by itself justify organization-wide disruption. IP geolocation reflects network exit points, not a definitive physical location for every person. An organization-wide lockout based on two labels alone would disrupt users without proving compromise of their accounts.
Question 117
A scheduled service identity creates a new organization-wide IAM administrator policy at 03:00, outside any approved maintenance window. Which telemetry should determine whether this was misuse?
- Treat every administrative API event as a benign background task.
- Trust the rule solely because a service account made the API call.
- Join control-plane IAM creation events to the service identity, source host and authorized change history.
- Investigate only public web page performance metrics.
Explanation
Correct Answer
C:Mapping who acted and from where shows whether the privilege grant was part of a recognized workload. Correlate the control-plane event with the credential or role, originating workload or host, approved change ticket and expected maintenance interval. That evidence supports a defensible misuse decision instead of assuming automation is safe.
Incorrect Answers
A:A new enterprise-wide privileged grant outside change control is a high-consequence anomaly. Privileged IAM changes affect the whole enterprise, and the event occurred outside authorized maintenance time. Treating every management API call as background ignores both the consequence and the missing approval evidence.
B:Compromised automation identities can perform the same privileged actions as legitimate workflows. Service identities are attractive attack targets because their API rights often exceed those of ordinary users. Authentication as an automation account proves only which credential acted, not that the privilege grant was expected.
D:Site latency cannot identify the actor or authorization for creating privileged cloud IAM policy. User-facing website performance data cannot identify which principal created a cloud IAM policy or whether the policy was approved. The relevant evidence lives in cloud audit records and identity/change-control context.
Question 118
An internal support ticket includes stored markup that executes when another analyst opens it. What class of web attack is indicated?
- A reflected XSS payload included in a URL and executed only when that same request is opened.
- A DOM-based script injection that requires malicious URL fragment data on the viewer’s current page.
- SQL injection that changes server-side database query conditions.
- Stored XSS through insufficiently safe rendering of ticket content.
Explanation
Correct Answer
D:A payload saved once can execute later in different users' browser sessions as the ticket is displayed. The payload was saved once and later ran when another user viewed the ticket, the defining stored-XSS sequence. Correct rendering must treat ticket markup as untrusted and use output encoding or a narrowly controlled sanitizer.
Incorrect Answers
A:Reflected XSS can execute client-side script when untrusted request data is inserted into a response without encoding. Here the malicious markup was saved in the support ticket and subsequently rendered for another analyst, without the victim reproducing the original request. The durable storage and later viewer trigger distinguish stored XSS from reflected injection.
B:DOM-based XSS can bypass safe server templating when client JavaScript writes attacker-controlled fragment text into a dangerous sink. The question instead identifies stored markup in a ticket that later executes on a different analyst’s visit. A DOM sink could be involved, but the decisive persistence and delivery path is stored XSS, not a fragment-only mechanism.
C:The observed execution is JavaScript in the viewing browser, not a modified SQL query. SQL injection changes database query meaning on the server. This symptom instead demonstrates script execution in the reader's browser after retrieving already stored content, requiring output-context protection.
Question 119
A web log shows inputs such as quote characters followed by UNION SELECT fragments, and database error rates spike when those requests arrive. Which attack pattern fits?
- SQL injection attempts against unsafe server-side query construction.
- Reflected XSS using HTML script markup in an unencoded search-result page.
- Log injection that forges audit-record delimiters in a user-agent header.
- A valid login challenge using a hardware security key.
Explanation
Correct Answer
A:SQL operators supplied in input may alter a dynamically assembled query if they are not bound strictly as data. Quote delimiters and UNION SELECT fragments are SQL syntax, which can escape intended data treatment in dynamically concatenated queries. Investigators should correlate requests with parser errors and confirm bound parameters prevent syntax alteration.
Incorrect Answers
B:Reflected XSS changes the browser’s interpretation of HTML or script and can be delivered through HTTP inputs. The supplied strings contain SQL quote delimiters and UNION SELECT rather than browser markup, and database parser errors rise with those requests. These signs target the server’s query construction, not HTML execution in a user’s browser.
C:Log injection aims to alter the integrity or appearance of recorded events by injecting control characters or forged lines. A web application may also log attacker-controlled inputs, but UNION SELECT fragments coupled with database errors indicate attempts to change database query semantics. No forged log entry or parser failure in a logging subsystem is described.
D:Hardware-backed authentication does not require SQL UNION clauses in web request inputs. Hardware security keys prove possession during an authentication protocol; they do not use UNION clauses in URL input fields. The suspicious syntax belongs to database query manipulation, not an ordinary login challenge.
Question 120
A desktop generates a large encrypted archive and immediately transfers several gigabytes to an unknown external host. What investigative hypothesis should be prioritized?
- A local encrypted backup restore from approved storage.
- An approved backup client creating encrypted archives and uploading them to its contracted cloud vault.
- An administrator manually exporting a diagnostic support bundle to an approved vendor portal.
- Suspected collection and exfiltration; correlate archive provenance with the destination connection.
Explanation
Correct Answer
D:The timing and bulk transfer suggest data was packaged locally for movement outside authorized channels. The archive creation and immediate external upload form a plausible collection-and-exfiltration chain. Correlate process lineage, archive inputs, approved transfer policies and the destination identity before concluding what data left or whether the action was authorized.
Incorrect Answers
A:A restore normally receives data, whereas this workstation sent a newly created archive to an unknown receiver. A restore generally reads stored data into a recovering environment and should have a known backup repository. This host instead created a new archive and sent it outward to an unfamiliar recipient, reversing that expected flow.
B:Cloud backup agents legitimately compress and encrypt data before sending it to remote storage, so the archive-and-upload sequence alone is not a verdict. The destination in the case is unknown and there is no backup job or sanctioned repository tying the transfer to policy. Correlate executable identity, job schedule and approved vault identity before classifying it as benign.
C:Support bundles may contain logs and substantial system data, and administrators may encrypt them before transfer. Such exports need a ticket, a known recipient and limits on sensitive contents. Several gigabytes transferred immediately to an unfamiliar host without that trail support suspected exfiltration; the workflow cannot be presumed authorized just because an archive exists.
CompTIA Security+ (SY0-701) Practice Tests