100% Latest & Updated CompTIA SY0-701 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 90
A browser sends authentication cookies to an older HTTP endpoint on an internal portal. Someone observing the local network could read the request. Which application transport protection is required?
- Redirect to authenticated TLS and set session cookies to Secure so they are not sent over HTTP.
- Store passwords in a faster database index only.
- Set the cookies to HttpOnly and SameSite but leave the portal reachable by unencrypted HTTP carrying those cookies.
- Compress HTTP responses more aggressively.
Explanation
Correct Answer
A:Encryption protects the session in transit and the cookie flag blocks plaintext leakage on legacy endpoints. Both the transport and cookie flags matter: TLS protects the request contents in transit, while Secure prevents the session cookie from being attached to subsequent plaintext HTTP requests. Existing sessions should be retested against legacy links.
Incorrect Answers
B:Faster queries have no impact on whether session cookies travel in plaintext on the network. Database indexing accelerates backend queries but does not encrypt browser-to-server requests. A packet observer on the local network can still read the cookie in an HTTP header irrespective of password-storage performance.
C:HttpOnly reduces direct JavaScript access to a cookie, and SameSite constrains some cross-site request scenarios. Neither prevents an on-path observer from reading a cookie included in plaintext HTTP traffic. The stated failure is transport disclosure, so authenticated HTTPS plus the Secure cookie attribute must prevent the browser sending session tokens over HTTP.
D:Smaller payloads remain readable to a packet observer when no transport encryption exists. Compression changes transfer size but not the confidentiality property of an unencrypted request. An observer who captures the HTTP message can still recover its session identifier after decompressing the traffic.
Question 91
A switch interface card contains a vendor-disclosed firmware vulnerability. The vendor provides signed fixed firmware, but operations has not scheduled deployment. What remediation is most direct?
- Validate the vendor firmware signature, apply the fixed release and verify device functionality afterward.
- Restrict management access to the interface card, but leave the disclosed vulnerable firmware installed indefinitely.
- Patch the switch monitoring server while postponing the signed update for the vulnerable interface card.
- Rotate switch-administrator credentials and retain configuration backups, but continue running the disclosed vulnerable firmware.
Explanation
Correct Answer
A:Trusted updated firmware replaces the vulnerable code while maintenance testing controls availability risk. The firmware image and vendor release process should be authenticated before installation, followed by a check of both the running version and device functions. Patching the vulnerable control code is different from merely logging the exposure.
Incorrect Answers
B:Management-plane segmentation can reduce exposure if the firmware flaw is reachable through the administrative interface, so it is a legitimate interim mitigation. The stem does not say the vulnerable functionality is confined to that interface, and access restriction leaves the defective image running. A signed vendor update, validated for this hardware, directly removes the disclosed firmware vulnerability while allowing any required interim containment.
C:The monitoring server is a separate asset and can benefit from its own security fixes, but patching it does not replace instructions in the vulnerable interface-card firmware. The disclosed defect is on the card itself, and the manufacturer has already provided a signed fix. The immediate remediation is to stage that firmware safely, verify its signature and installed version, and test device functions afterward.
D:Credential rotation is helpful if an administrator secret was exposed, and preserving configuration backups supports safe recovery after maintenance. Neither action by itself removes an exploitable flaw in the interface card. Since the supplier supplies a signed fixed image, deployment with authenticity checks and post-update validation is the direct code-level remedy, with management restrictions as needed during scheduling.
Question 92
A malicious guest workload exploits a virtualization interface that could access host memory. What control addresses the boundary between the guest and the hypervisor?
- Rely solely on a malware signature scan inside the guest.
- Sandbox ordinary applications inside the guest operating system while leaving the exploitable hypervisor interface and broad guest-device passthrough enabled.
- Give the affected guest additional host-management privileges.
- Apply hypervisor security fixes and restrict guest-to-host integration features to required use.
Explanation
Correct Answer
D:The patch closes vulnerable host handling while a smaller integration surface reduces future escape paths. Host-level security patches correct the vulnerable privileged processing code, while disabling unnecessary integration narrows available guest-to-host interfaces. Both address the boundary where malicious guest requests become host actions.
Incorrect Answers
A:A malware scan running within a virtual machine can detect some malicious files in that guest, but it executes below the hypervisor’s privileged boundary. The scenario involves a flaw in host-side handling of virtual-device requests, so scanning guest processes does not update or isolate the vulnerable host component. The fix must address the hypervisor code and its exposure, not merely guest malware signatures.
B:Guest application sandboxing may limit damage from some processes inside the virtual machine, but the described exploit targets the virtualization boundary itself. A vulnerable hypervisor service or passthrough feature can still expose host memory even if an app inside the guest is confined. Repair and minimize the host-facing integration surface, with an updated hypervisor and restricted device sharing.
C:Greater host privilege turns the escape consequence into a broader compromise, rather than enforcing isolation. Adding host-management capability increases what a hostile guest could do if the escape succeeds. Restrict privileges and integrations so a guest cannot reach or influence more host-side functions than necessary.
Question 93
A memory allocator hands a newly started tenant process pages previously used to hold another tenant's secrets. The new process can inspect leftover bytes. Select TWO design checks that close this resource-reuse exposure.
- Clear the memory allocator’s bookkeeping metadata but leave previously assigned physical pages unwiped when reused.
- Run cross-tenant reuse tests that search fresh allocations for the departing tenant's known test markers.
- Zero or otherwise securely initialize pages before assigning them to another tenant.
- Preserve stale page contents for faster startup when the old tenant exits.
- Encrypt only network connections between the tenants.
Explanation
Correct Answers
B:A negative test demonstrates the cleanup actually executes on the allocation path under scrutiny. Populate an old tenant's memory with distinctive test values, release it and verify new tenant allocations contain none of those markers. This checks the actual resource transition rather than relying on a design claim.
C:Clearing prior bytes at the resource boundary prevents the next tenant from reading abandoned secrets. Scrubbing or safely initializing physical pages before reassignment removes the previous tenant's data from the new process's readable address space. The sanitization must occur on every allocation path, including fast reuse and error cases.
Incorrect Answers
A:Clearing allocation bookkeeping may stop stale ownership pointers and help resource management, but it does not remove sensitive bytes left in the pages themselves. The new tenant reads physical page contents, not allocator metadata. Scrubbing before reassignment and cross-tenant reuse tests address the actual confidentiality boundary.
D:Optimization that exposes prior memory directly violates tenant separation. Preserving stale bytes for startup performance creates an information channel across tenants. An optimizer cannot trade another tenant's confidentiality for a faster allocation when the security contract requires isolation.
E:In-transit encryption does not remove plaintext remnants already resident in a reassigned memory page. Transport encryption protects bytes moving between endpoints but does not change plaintext memory already resident on the host. The new tenant reads that remnant locally, so network protection is unrelated to this exposure.
Question 94
Staff install application packages from public messaging links that bypass the organization's managed phone catalog. What device-management control most directly limits this unreviewed code source?
- Keep sideloading enabled but require employees to acknowledge the operating system’s unknown-source installation warning.
- Restrict app installation to approved managed distribution sources with validation policies.
- Reconcile monthly mobile-app inventory with an approved-package list and notify security after unknown applications appear.
- Require a signed vendor package but allow users to sideload it from any unreviewed messaging link.
Explanation
Correct Answer
B:The device will reject unknown packages rather than giving attacker-supplied application code a direct installation path. Enforced managed distribution lets administrators verify package identity, required permissions and version before installation. Policy enforcement at the device prevents an employee from bypassing approval simply by tapping a public message link.
Incorrect Answers
A:A built-in installation warning can alert a user to risk, but clicking through it still allows arbitrary packages from public messaging links. Employees can misunderstand the warning or be persuaded by a malicious sender. An enforced MDM application-source restriction prevents the unreviewed installation path rather than relying on user discretion at the prompt.
C:Comparing installed-app inventory with an allowlist improves detection and cleanup after an unreviewed APK has run. The monthly cadence leaves a window for application code to request sensitive permissions or collect data before it is discovered. The question asks which control directly limits the installation source, which requires preventive managed-store enforcement.
D:Signature verification offers a code-origin signal and is useful against modified packages, so it may look sufficient. A vendor signature alone does not prove that the app is organization-approved, appropriately permissioned, or allowed for this employee. A managed distribution allowlist and app vetting close the uncontrolled sideload channel in the stem.
Question 95
A rooted smartphone attempts to enroll into a high-trust approval workflow that requires an intact operating system. What enrollment decision should the identity service make?
- Accept an endpoint-management compliance report that lists the phone as enrolled, without requesting an integrity measurement of its rooted operating system.
- Require device-integrity attestation and reject enrollment when its verified measurements fail.
- Approve enrollment because the user remembers a valid password.
- Install the current mobile security agent and enroll the phone despite the failed operating-system integrity check.
Explanation
Correct Answer
B:Privileged access should not be granted to a handset whose operating-system trust state violates policy. Measured boot or attestation evidence can indicate whether the device's integrity state satisfies the organization's enrollment policy. A failure should block privileged enrollment instead of relying solely on the user's willingness to accept risk.
Incorrect Answers
A:A device can remain in the management inventory while its operating system has been modified to bypass normal security boundaries. Inventory enrollment shows administrative ownership, not trusted device state. The approval workflow explicitly requires an intact operating system, so it should evaluate reliable integrity attestation and refuse a failing device rather than treating a compliance label as sufficient.
C:Account authentication does not restore the missing device-integrity prerequisite for this workflow. A correct password proves control over a particular account credential, not that the phone has an uncompromised operating system. These are separate trust decisions when the application requires a healthy device.
D:A newly updated security agent could improve detection of known mobile threats, making this a reasonable operational step for an ordinary device. However, the high-trust workflow explicitly requires an intact platform, and an agent running in a rooted environment cannot replace an independently verified integrity attestation. Enrolling it after a failed measurement would bypass the workflow's own device-trust prerequisite.
Question 96
Exploitation of a newly discovered server bug is underway, but the supplier has not yet produced a tested patch. What should administrators prioritize without inventing an unavailable update?
- Reboot the host repeatedly and assume the underlying coding defect disappears.
- Increase attack-event monitoring and wait for the next routine patch window while keeping the vulnerable service publicly accessible.
- Restrict exposed attack routes and deploy validated temporary mitigation while coordinating for a vendor fix.
- Report the system as fully patched with the unreleased vendor version.
Explanation
Correct Answer
C:Access controls and compensating detection can reduce reachable exploit conditions before corrected software exists. Restricting reachable entry points and applying a verified temporary mitigation can reduce exploitability before the vendor ships corrected code. Monitor that containment, document its limitations and deploy the tested permanent fix when available.
Incorrect Answers
A:Restarting clears processes but does not remove exploitable vulnerable code. Rebooting may interrupt a particular malicious process but reloads the same defective binary. As long as the vulnerable service and exploitation route remain, an attacker can send the triggering input again.
B:More monitoring can provide evidence of attempted exploitation and help incident response, which is useful while a patch is pending. However, the bug is being exploited now and the public route remains unchanged. Temporary filtering, network isolation or a validated compensating control is required to shrink the exploitable path before a tested fix exists.
D:Claiming an unavailable update would falsify the asset's security state and mask ongoing exposure. No one can truthfully report installation of a version the supplier has not released. Falsifying inventory status hides current exposure and prevents the organization from assessing whether its compensating protections are still necessary.
Question 97
An industrial inventory controller has lost vendor software and replacement-part support. It must remain available until operations can migrate during the next shutdown. What treatment best balances continued service and security?
- Increase passive network logging around the controller while leaving existing inbound maintenance routes unrestricted.
- Segment the controller behind allowlisted maintenance paths and schedule a supported replacement.
- Put the controller directly on the internet for easier vendor access.
- Claim every hardware fault can be fixed by applying nonexistent vendor patches.
Explanation
Correct Answer
B:Narrow reachability limits attack options while a planned migration resolves the permanent unsupported-platform risk. An allowlisted maintenance network narrows who can exchange commands with the unsupported controller during the required operational period. The replacement schedule addresses the enduring lack of security fixes that segmentation alone cannot solve.
Incorrect Answers
A:Passive monitoring is attractive in industrial environments because it need not interrupt the controller's fragile operations. It might help detect unusual network behavior during the migration interval. But logging alone leaves obsolete, unsupported software reachable through the original unrestricted routes. Segmentation to tightly authorized maintenance paths is needed to reduce exploit reachability until the controller can be replaced.
C:Public reachability expands exploitation paths even though no supported fixes are forthcoming. Public exposure would invite remote discovery and attack against code for which fixes are no longer produced. Vendor convenience does not justify making a fragile industrial control directly reachable by arbitrary internet clients.
D:The absence of ongoing firmware support makes that assurance factually indefensible. A nonexistent update cannot fix a known defect or restore replacement-part support. Management needs an explicit risk exception and migration plan instead of assuming a discontinued support channel will resume.
Question 98
A payment API uses a third-party parsing library whose vulnerable routine is reachable through a public route. Select THREE integrated measures to remove the current flaw, prevent its reintroduction and confirm the route is safe.
- Pin the currently installed parsing library's package checksum and verify that checksum on every build.
- Exercise the affected API route with a safe exploit-regression test after deployment.
- Upgrade or replace the unsafe library and confirm the application calls the remediated code.
- Expand application response logging without changing the dependency.
- Obscure the API route's URL while leaving the vulnerable library active.
- Block builds that include the known vulnerable dependency version through an enforced software inventory check.
Explanation
Correct Answers
B:The test verifies the vulnerable code path is no longer reachable through the entry point that exposed it. The test must invoke the same public API route and inputs that reached the vulnerable parser. A negative exploit regression confirms that the deployment changed the behavior of the exposed code path, not just a package file name.
C:A fixed package helps only if the deployed route actually resolves to the corrected dependency build. Upgrading only a manifest entry can leave old linked libraries or deployed containers still executing the unsafe routine. Verify the running dependency version and relevant call path after rollout to establish actual remediation.
F:A deploy gate prevents another release from silently restoring the same exploitable component. A continuous build gate can reject the vulnerable component version whenever developers or transitive dependencies attempt to reintroduce it. This complements the immediate upgrade and regression test by preventing the same exposure in subsequent releases.
Incorrect Answers
A:Dependency hash pinning can detect unwanted changes to an artifact, so it is a legitimate supply-chain control. Here it would faithfully preserve the very library release containing the reachable vulnerability. The route remains exploitable unless the vulnerable code is replaced, the regression is tested, and the unsafe version is prevented from returning.
D:Observability cannot substitute for replacing a reachable faulty component during active exposure. More response logs can help investigation, but they record activity rather than alter the vulnerable parser logic. A reachable exploit remains available until the unsafe dependency is corrected or the route is effectively isolated.
E:Attackers can discover the route and invoke the same unsafe parser despite renaming. An API route can be found from clients, traffic captures or automated discovery even after renaming. The original parser flaw is still reachable, so obscurity is not a dependable exploit prevention mechanism.
Question 99
Clients can force a TLS service to fall back to an obsolete cipher suite despite modern algorithms being available. What configuration closes this downgrade exposure?
- Disable deprecated suites and unsupported protocol versions on both handshake peers.
- Replace the server certificate with one using a modern signature algorithm but leave legacy TLS versions and cipher suites negotiable.
- Keep the obsolete suite as a hidden compatibility preference.
- Encrypt the application log archive but retain vulnerable handshake modes.
Explanation
Correct Answer
A:A server cannot accept a downgraded choice when the insecure algorithms are no longer negotiable. Removing deprecated negotiation options from the endpoints leaves no insecure fallback the client can select. Verify the actual handshake configuration afterward, since a configuration file edit without a listener restart may not change live behavior.
Incorrect Answers
B:Certificate signing strength matters for server identity, but it does not automatically control which transport cipher a client and server may agree on. A client can still negotiate the obsolete suite when both peers leave it enabled. Eliminate deprecated protocol versions and suites at the handshake configuration and verify the negotiated result with a client test.
C:Any enabled fallback can still be selected by a client or manipulated downgrade path. A hidden fallback is still a permitted handshake outcome and may be negotiated during compatibility conditions or manipulated downgrade attempts. The minimum supported protocol and cipher policy must be enforced, not merely deprioritized.
D:Protecting stored logs does not alter the cryptographic parameters negotiated on live connections. Encrypting stored event files protects them after collection, but the vulnerable handshake runs during live connections. An attacker can still negotiate the deprecated suite before the application creates any encrypted log archive.
Question 100
A customer changes an invoice number in a REST request and receives a different account's bill. Select TWO actions that correct the resource-level flaw and prove neighboring customer data stays inaccessible.
- Execute regression requests using another customer's invoice ID and assert authorization failure.
- Encrypt the invoice backup while granting all logged-in users API read access.
- Hide invoice IDs in the browser navigation but keep the API permission unchanged.
- Increase the invoice number length while skipping ownership checks.
- Enforce caller-to-invoice authorization for each requested object identifier on the server.
Explanation
Correct Answers
A:A negative cross-account test shows the object-level policy cannot be bypassed by editing the URL. Test as one customer while deliberately requesting another customer's invoice identifier and assert a denial at the API boundary. This catches object-level authorization failures that ordinary functional invoice retrieval tests would overlook.
E:An authenticated user may fetch only the invoice records the business access policy allows. Object-level authorization checks must bind both the authenticated user and the requested invoice to an approved business relationship. The response should be denied even when the identifier is syntactically valid and the caller logged in successfully.
Incorrect Answers
B:At-rest backup protection does not correct the live per-object authorization boundary. The bill is served by a live authenticated API operation, not read from the encrypted backup. A caller who can request other customers' identifiers remains over-authorized despite perfect at-rest backup encryption.
C:An attacker can submit a manually chosen ID regardless of the interface's visible links. Hidden links only affect navigation in the user interface; the client can construct arbitrary HTTP requests. The backend must verify ownership or entitlement for each invoice identifier independent of what the browser displays.
D:Harder guessing is not a substitute for enforcing whether the requester is permitted to see a given invoice. Longer numeric identifiers may slow guessing but clients can still substitute an observed or leaked invoice ID. A correct access decision must depend on the caller's entitlement to that object, not on identifier unpredictability.
CompTIA Security+ (SY0-701) Practice Tests