CompTIA SY0-701 Practice Test 28
Question 270
A domain administrator must apply restricted PowerShell execution settings to Windows workstations in one organizational unit, not the entire forest. Which method fits?
- Delete the OU and place every user into the forest root
- Change a Windows device hostname while leaving its existing script execution policy unchanged
- Link and scope an approved Group Policy Object to the targeted OU and verify effective policy
- Publish one unrestricted local administrator password for all affected systems
Explanation
Correct Answer
C:A scoped GPO can manage approved execution restrictions for the intended Windows machines. Link the approved GPO to the specified OU, confirm security filtering and inheritance, then inspect resultant policy on representative workstations. This provides centrally controlled enforcement and proof of correct scope. Resultant Set of Policy checks can reveal inheritance or security filtering that prevented the intended computers from receiving it.
Incorrect Answers
A:Organizational restructuring is unnecessary and creates unrelated directory and administrative risks. Use a scoped OU-linked policy instead of restructuring directory membership. Deleting the organizational unit would remove the intended scope rather than safely applying a policy to its members. A GPO can target the existing OU.
B:Device naming changes do not apply the required OU-scoped PowerShell execution restrictions. Changing a computer’s hostname does not set the script execution configuration or other effective PowerShell policy values. It is an identity/label operation.
D:Shared privileged credentials increase security risk and do not distribute a scoped policy. Publishing a shared administrator password creates an unnecessary privilege compromise path and does not enforce PowerShell execution settings. Unique managed credentials should be maintained.
Question 271
A Linux service can write to a file according to standard POSIX owner/group bits, but SELinux blocks that operation and logs an AVC denial. What is the safest troubleshooting action?
- Set file permissions to 0777 and disable SELinux globally so both discretionary and mandatory checks stop blocking writes
- Assume any AVC denial means the filesystem is read-only and delete all security audit events
- Review the logged subject/object contexts and use an approved narrowly scoped SELinux policy or labeling correction if the operation is authorized
- Grant the application root login over SSH because a privileged account never needs mandatory access control validation
Explanation
Correct Answer
C:An AVC log can identify mismatched labels or absent required permissions. Narrow approved changes preserve mandatory controls while restoring justified service activity. Check the process domain and target object type, compare them with the expected policy, and correct labeling or narrowly authorize the specific access if justified. SELinux can deny an operation even when POSIX permission bits allow it.
Incorrect Answers
A:World-writable permissions and disabling a security policy expand exposure and remove safeguards without confirming the intended legitimate access path. World-writable permissions and disabling MAC remove meaningful protections while hiding the actual cause. Analyze the mandatory access denial and adjust only the legitimate operation.
B:SELinux denials describe mandatory policy decisions and contexts; they do not alone prove the underlying filesystem mount is read-only. An AVC record reports SELinux access control denial, not necessarily that the filesystem is physically or logically read-only. Keep logs to distinguish labels, contexts and permissions.
D:Mandatory access control also constrains privileged processes. Root access does not automatically establish authorized object access under a properly enforced policy. Root credentials do not automatically bypass correctly enforced SELinux policy. Exposing SSH root login adds risk without repairing the application’s mandatory access rule.
Question 272
A backup application sends usernames and files with legacy plaintext FTP over the public Internet. Which alternative secures the file transfer and credentials?
- Turn off filesystem permissions for the remote backup directory
- Add a public DNS record to make the FTP hostname easier to discover
- Use the same FTP protocol on a less obvious TCP port
- Use properly authenticated SFTP over SSH with strong access restrictions
Explanation
Correct Answer
D:SFTP uses an SSH-protected session and permits controlled remote file access with encrypted authentication traffic. SFTP uses the SSH protocol with server authentication and encrypted file and credential transport. Configure host-key validation, strong authentication and limited directories; SFTP is not the same as FTP over an alternate port.
Incorrect Answers
A:Removing file permissions makes stored backups easier to access rather than securing transfers. Removing remote directory permissions would create data exposure and may prevent backups from writing safely. It does not encrypt the transmitted credentials or files.
B:Name discovery does not encrypt credential exchanges or transmitted backup content. Use authenticated encrypted transfer such as properly configured SFTP. DNS publication helps clients locate a service but provides no confidentiality for the legacy FTP session. Anyone observing the route may still read commands or data.
C:Moving a plaintext service to another port does not provide confidentiality or server authenticity. Changing the TCP port does not modify FTP’s cleartext protocol semantics. Passive observers can identify the protocol regardless of the nominal port.
Question 273
An employee workstation asks its corporate resolver for a known malware command-and-control domain. Security wants to stop name resolution before a destination IP is returned. Which TWO policies fit? Choose TWO.
- Disable every endpoint's DNS logging permanently before installing any block
- Allow users to substitute an unrestricted resolver to bypass classification controls
- Automatically authorize the domain because its address is syntactically valid
- Apply protective DNS response policy blocking or redirecting confirmed malicious domains
- Use a managed DNS security feed and retain query telemetry for investigation
Explanation
Correct Answers
D:Protective resolver policy can refuse or safely sinkhole known malicious destinations before ordinary connection. A managed resolver can return a policy denial or safe sinkhole response for confirmed malicious domains. This interrupts the lookup step before the endpoint receives a routable C2 address. Confirm the device cannot bypass policy simply by choosing a public external resolver.
E:Maintained reputation intelligence and query records support current enforcement and related host investigation. A maintained indicator feed supplies current malicious-domain context, while query logs show which clients requested the destination. Review false positives and changing infrastructure regularly. Tune the feed against organizational threat intelligence and record why an indicator was blocked.
Incorrect Answers
A:Removing logs weakens verification of infected hosts and does not provide a DNS-blocking decision. Removing DNS logs hides command-and-control lookup attempts and offers no blocking. Retain telemetry with privacy-aware controls while enforcing the response policy.
B:Unmanaged alternate resolvers can defeat the requested enterprise DNS protection policy. Enforce approved DNS paths and prevent unauthorized resolver bypasses. Unrestricted alternate resolvers permit clients or malware to avoid the managed block policy. Restrict DNS egress to approved resolution paths.
C:Syntactic validity of a name says nothing about malicious control or authorized access. A syntactically valid DNS address does not imply that a domain is safe. Malicious infrastructure can use correctly formatted names and records.
Question 274
A fraudulent email displays From: payroll.example but uses a different envelope return domain that passes SPF for its own infrastructure. Which failed relationship should DMARC evaluate?
- The workstation's local DHCP lease duration
- Whether the email subject contains an emoji
- The amount of free RAM on the destination mail server
- Alignment of the authenticated sending domain with the message's visible From domain
Explanation
Correct Answer
D:DMARC requires aligned SPF or aligned DKIM authentication with the visible author domain, not merely arbitrary SPF success. DMARC checks whether at least one successful SPF or DKIM authentication aligns with the RFC 5322 From domain under the published policy. SPF success for a different envelope domain alone cannot authenticate the displayed payroll identity.
Incorrect Answers
A:An IP lease duration does not authenticate organizational email identity alignment. DMARC alignment concerns authenticated email domains, not DHCP configuration. DHCP lease timing determines local address assignment and cannot authenticate the sender identity displayed in email headers.
B:Subject formatting is not the protocol's sender-domain authenticity criterion. Evaluate alignment and signature authorization instead of decorative subject text. Subject symbols or emojis are arbitrary content. DMARC alignment concerns authenticated sending domains, not message tone or formatting.
C:Recipient server memory does not determine identity-domain authentication or DMARC results. Mail server memory capacity may affect processing reliability but does not connect SPF-authenticated domains to the visible From identity.
Question 275
A signed email passes through an intermediary that modifies its body before delivery. What is the likely DKIM validation effect when the modification changes the signed canonicalized content?
- The DKIM body hash or signature verification can fail because signed content was altered
- Its sending IP address becomes SPF-authorized for any arbitrary domain
- Every email with a changed body is necessarily malware
- The message is automatically encrypted for confidentiality without additional controls
Explanation
Correct Answer
A:The verifier hashes the signed canonicalized body and headers, so relevant changes invalidate the expected value. DKIM signs a canonicalized representation of selected headers and message body. An intermediary changing signed content can produce a body-hash mismatch, although changes removed by canonicalization may not invalidate it.
Incorrect Answers
B:A DKIM message signature does not authorize all sending IPs under SPF policy. SPF authorization depends on the sending IP and envelope domain, not on an intermediate modification to a DKIM-signed body. The two authentication methods test different properties.
C:Legitimate intermediary modifications can break signatures without proving malicious intent. A failed DKIM check must be interpreted alongside message routing evidence. A mail gateway can make innocent formatting changes or add text; a broken DKIM signature does not itself prove malware. Investigate the cause separately.
D:DKIM provides a domain-linked digital signature, not automatic confidentiality for email contents. DKIM is an authenticity/integrity mechanism and does not encrypt message content. Confidentiality requires separate transport or end-to-end encryption.
Question 276
An organization publishes an SPF record listing approved outgoing mail relays. An external unlisted host sends mail using the protected envelope domain. What does SPF evaluate?
- Whether the email body was encrypted end to end with S/MIME
- Whether recipients opened the message at a particular time
- Whether the sending host IP is authorized to send for the SMTP envelope sender domain
- Whether the sender's password meets enterprise complexity requirements
Explanation
Correct Answer
C:SPF checks the connecting server's authorization against the envelope identity or HELO domain's published record. The receiver compares the connecting SMTP client IP against the SPF policy published for the envelope sender or HELO domain. SPF alone does not establish alignment with the visible From header; DMARC addresses that relationship.
Incorrect Answers
A:Message encryption is a different protection and not part of IP authorization by SPF. S/MIME encryption protects message contents for a recipient and does not determine whether an SMTP relay IP was authorized by an SPF DNS record.
B:Recipient behavior happens after delivery and is unrelated to SMTP sender legitimacy checks. Open or read receipts concern user interaction after delivery and are not checked by SPF during SMTP authentication.
D:Authentication password quality does not appear in the DNS SPF list of permitted sending hosts. Password policy governs user secrets but has no direct role in the SPF DNS authorization of sending mail infrastructure.
Question 277
A protected application library changes unexpectedly on a production host overnight. Which THREE file-integrity monitoring actions are appropriate? Choose THREE.
- Delete every baseline digest to prevent comparison with future unauthorized changes
- Compare the file's new cryptographic digest and metadata against an approved baseline
- Assume unchanged file size proves the file content was not altered
- Dismiss the event merely because the service continues running
- Alert the security team with the file path, time and expected-versus-observed values
- Correlate the change with deployment approvals and relevant process or account activity
Explanation
Correct Answers
B:Unexpected digest or metadata differences can identify changes to files the organization intended to protect. Compute a fresh digest and compare it with the approved baseline along with ownership, permissions and expected version. A mismatch is a lead that needs authorized-change verification. A version-controlled baseline prevents an attacker from silently redefining the approved value after making a change.
E:Specific change evidence supports triage, incident analysis and identification of unauthorized modifications. Record path, actor, timestamp, old and new values in a protected alert so investigation can determine scope. The source baseline must be trustworthy. Include the sensor source and confidence so responders can prioritize genuinely unexpected changes.
F:Change records and activity telemetry help distinguish sanctioned updates from attacker tampering. Check deployment tickets and process identity for an approved update before labeling the change malicious. Preserve both the technical drift evidence and its possible authorized explanation. Signed change artifacts help distinguish planned patch activity from tampering that shares the same filename.
Incorrect Answers
A:Destroying baselines prevents later detection and obscures previous authorized file state. Preserve protected baseline hashes to support authenticated file comparisons. Deleting baseline hashes destroys the comparison needed to establish which version changed. Preserve trusted known-good digests and controlled update history.
C:Modified content can retain identical file length, making size-only comparison unreliable for integrity. A file can be modified without changing total byte count. Content hashes provide stronger change detection than size alone.
D:Continued execution does not establish that a modified sensitive library is legitimate. A service can remain operational while its library has been replaced maliciously. Continued uptime does not establish file integrity.
Question 278
A device plugs into a wired office port but its endpoint security agent is outdated and it fails posture assessment. What should NAC do under the defined policy?
- Allow full production access as long as the Ethernet link negotiates correctly
- Place the device in a limited remediation network or deny normal access until compliant
- Turn off the posture check because it has produced a finding
- Assign the device unrestricted administrative directory privileges temporarily
Explanation
Correct Answer
B:Network access control can isolate noncompliant endpoints while permitting safe remediation workflows. A limited remediation VLAN may allow updates while preventing access to sensitive production systems. Normal authorization resumes only after the posture agent is compliant and the policy decision is refreshed. The restriction must apply to the active port session rather than merely appearing as a compliance alert.
Incorrect Answers
A:Link state alone does not establish trusted endpoint posture or authorization for internal services. A working Ethernet link only establishes physical connectivity. It does not prove the device meets required endpoint security posture.
C:Ignoring failed posture checks defeats the purpose of compliance-driven admission control. Disabling a real compliance check hides the weakness and defeats NAC purpose. Fix the endpoint or deny access under the published policy.
D:Granting unnecessary privilege compounds the risk of a host with deficient security controls. Granting administrator privileges to a noncompliant device creates an unnecessary attack pathway. Authentication and device authorization should be restricted, not elevated.
Question 279
A phishing message leads a user to launch a suspicious process. The SOC needs to connect the original email, identity, browser request and host execution in one investigation. What capability is most suitable?
- A static unmanaged firewall rule that never stores any user context
- Extended detection and response correlating email, identity and endpoint telemetry
- A DNS round-robin mechanism balancing identical web applications
- A physical cabinet lock with no digital event collection
Explanation
Correct Answer
B:XDR or integrated cross-domain correlation can link related identity, email, web and endpoint observations. XDR can correlate message identifiers, identity sign-ins, URL requests and host process ancestry to reconstruct the attack chain. Confirm data quality and timestamps before automating response from the combined detection. Links among message delivery, clicked URL and execution lineage are more probative than any isolated alert.
Incorrect Answers
A:A rule without investigative context cannot reconstruct the multi-stage email-to-process attack sequence. A static network rule cannot connect email delivery, browser navigation, user sessions and process execution. Those event sources require cross-product correlation.
C:DNS balancing distributes service names and does not provide correlated security incident detection. DNS round robin provides basic traffic distribution and is unrelated to security event integration across endpoint and collaboration systems.
D:Physical locks control facility access and do not join the specified digital events. A physical lock cannot detect an email lure or a process launched through the browser. It lacks the required digital observations.
Question 280
A company administers critical cloud services through a federated corporate identity provider. During an identity-provider outage, ordinary administrators cannot authenticate and cannot recover tenant access through their usual sign-in path. Which PREPARED IAM safeguard best supports emergency administration without making it an everyday sign-in shortcut?
- Maintain tightly secured, monitored emergency administrative identities that are independent of the failed federation path, have usable alternate strong authentication, are tested periodically and are accessed only under documented break-glass procedures
- Require the emergency identity to use the SAME unavailable federated provider as every ordinary administrator, ensuring centralized security policy is never bypassed
- Distribute one permanent privileged password to all employees so any available person can log in during a federation outage without approval or audit
- Disable all privileged sign-in and audit logs during identity-provider outages to reduce troubleshooting overhead and hide unsuccessful attempts
Explanation
Correct Answer
A:Cloud emergency access should retain a path independent of the organization’s normal federation dependencies so identity-provider failure does not create total administrative lockout. Protect this exceptional capability with strong resilient authentication, restricted authorized custodians, monitoring, periodic drills and post-use review. These are exceptional recovery identities, not a replacement for normal just-in-time access. Emergency identities should bypass the unavailable federation dependency while remaining strongly protected, monitored and used only through a logged break-glass procedure. Test them periodically so expiration, conditional access or missing factors do not make the recovery path unusable.
Incorrect Answers
B:If every emergency credential depends on the same unavailable provider, the stated outage can also block the emergency path. Identity resilience requires avoiding a single federation failure mode, while maintaining explicit safeguards for the exceptional account. Consistent policy is valuable but not when it removes the only authorized recovery route. If the emergency account relies on the failed identity provider it cannot restore control during that outage. Independence is the essential resilience property.
C:An unrestricted shared privileged secret sacrifices attribution, controlled custody and safe revocation, and multiplies the attack surface. Emergency administrative access must be deliberately protected and available to designated responders, not a general password handed to all staff. The availability requirement does not justify bypassing every authorization and audit control. A shared privileged password destroys accountability and exposes the tenant to broad compromise. Emergency access should be tightly restricted to named custodians and independent authentication.
D:Disabling logs would undermine accountability and make misuse of exceptional rights harder to detect. A successful emergency access design explicitly monitors and alerts on every use, including test activations. Audit retention and review are especially valuable when the normal sign-in infrastructure is unavailable. Disabling sign-in auditing during an identity crisis conceals who used emergency privileges. Extra monitoring is especially important because break-glass access is powerful.