




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































190 QUESTIONS
Q1 - a Python script using Netmiko Q2 - forensic investigator must recover a Q3 - During a DNS migration, you Q4 - ransomware attack has encrypted critical Q5 - You are writing a Python Q6 - a Python-based DNS monitoring system, Q7 - You are tasked with remediating Q8 - implementing a system recovery plan, Q9 - a Python script that uses Q10 - For a Python script that Q11 - a Python remediation script, a Q12 - During DNS configuration validation, a Q13 - remediation script must recover a Q14 - a Python validation script, you Q15 - Python remediation script needs to Q16 - During a system recovery validation, Q17 - a Python-based network remediation tool, Q18 - Python script must validate that
Q19 - a Python remediation script, you Q20 - Python validation script must check Q21 - Python remediation script must reconfigure Q22 - the Python remediation workflow, after Q23 - Python script is designed to Q24 - During system recovery, a Python Q25 - Python network remediation script must Q26 - a Python-based validation suite for Q27 - remediating a DNS server that Q28 - Python remediation script must recover Q29 - the context of Python network Q30 - Python validation script must confirm Q31 - a Python remediation script, a Q32 - DNS zone file has an Q33 - During system recovery, a technician Q34 - Python, a function is designed Q35 - DNS administrator is implementing DNSSEC Q36 - Python script uses the paramiko
Q37 - After a security incident, a Q38 - a Python network remediation script, Q39 - system recovery plan requires that Q40 - a Python validation script, you Q41 - During a network remediation effort, Q42 - a Python network remediation script, Q43 - During DNS configuration, you need Q44 - You are recovering a Linux Q45 - a Python validation script, you Q46 - While analyzing a network breach, Q47 - You are writing a Python Q48 - Python script is designed to Q49 - During system recovery, you need Q50 - Python validation script must verify Q51 - a Python-based remediation script, you Q52 - configuring a split-horizon DNS setup Q53 - During system recovery after a Q54 - a Python validation script using
Q55 - You must write a Python Q56 - a Python remediation script, you Q57 - validating network connectivity after rem... Q58 - a system recovery plan, which Q59 - You are writing a Python Q60 - a Python-based validation framework, which Q61 - During a Python remediation script, Q62 - Given a DNS zone file Q63 - a Python remediation script, you Q64 - During validation of a network Q65 - Python script must parse a Q66 - a DNS configuration, you need Q67 - Python script is designed to Q68 - During validation of a DNS Q69 - Python remediation script must modify Q70 - Given a Python script that Q71 - compromised Linux host exhibits ARP
Q72 - a Python DNS remediation script, Q73 - After a ransomware event, a Q74 - Python approach best validates that Q75 - a Python network remediation script, Q76 - Python script must remediate a Q77 - You are writing a Python Q78 - a Python recovery script for Q79 - Python-based validation method best confirms Q80 - During a DNS remediation, you Q81 - During a Python remediation script, Q82 - a DNS configuration validation script, Q83 - After a catastrophic system failure, Q84 - a Python validation script for Q85 - Your Python remediation script must Q86 - a system recovery plan, you Q87 - You are writing a Python Q88 - a network remediation script, you
Q89 - You are validating a DNS Q90 - Python remediation script must verify Q91 - During a security audit, a Q92 - a Python-based system recovery tool, Q93 - Python validation script must verify Q94 - remediating a network issue with Q95 - Python script must validate that Q96 - a Python remediation script, you Q97 - Python validation script must ensure Q98 - writing a Python script to Q99 - a Python network remediation script, Q100 - Python script is used to Q101 - a Python-based remediation script, you Q102 - Python script is designed to Q103 - During system recovery after a Q104 - a Python validation script for Q105 - Python script is used to
Q106 - validating a system recovery plan, Q107 - a Python-based remediation workflow, you Q108 - writing a Python script to Q109 - Python script is used to Q110 - a Python script for DNS Q111 - a Python remediation script using Q112 - During DNS configuration for a Q113 - server fails to boot after Q114 - a Python network remediation script, Q115 - network has experienced a DNS Q116 - You are writing a Python Q117 - a Python remediation script, you Q118 - During system recovery, you need Q119 - Python script must validate that Q120 - a DNS remediation plan, you Q121 - Python remediation script must restore Q122 - During DNS configuration remediation, you
Q123 - system recovery plan requires restoring Q124 - a Python validation script, you Q125 - remediation script must temporarily disable Q126 - validating DNS configuration, you need Q127 - system recovery plan includes verifying Q128 - Python remediation script must handle Q129 - validating network remediation, you must Q130 - Python script is used to Q131 - remediating a network outage in Q132 - During DNS configuration, a new Q133 - system fails to boot after Q134 - a Python validation script for Q135 - automating DNS record changes, which Q136 - After a ransomware attack, which Q137 - a Python-based validation framework for Q138 - DNS record type is most Q139 - During system recovery, you must
In a Python script using Netmiko to remediate a network outage, which approach
best ensures idempotent configuration changes while minimizing service
disruption?
RATIONALE: Option B is correct because it uses a read-then-compare approach, ensuring only necessary changes are applied, which is idempotent and minimizes disruption. Option A may cause outages by overwriting unrelated configs; C is overly disruptive; D does not remediate but merely saves current state.
A forensic investigator must recover a critical deleted file from an ext4 filesystem.
Which Python library or method would be most appropriate for low-level analysis
and recovery, given that the filesystem is not mounted?
RATIONALE: pytsk3 is a Python binding for The Sleuth Kit, which allows direct analysis of disk images without mounting, making it ideal for forensic recovery. The os module cannot access deleted files, shutil requires a backup, and running extundelete on a mounted filesystem risks further damage.
During a DNS migration, you must ensure that all authoritative nameservers for a
zone are synchronized. Which of the following is the most reliable method to
validate that the zone transfer (AXFR) is complete and consistent?
RATIONALE: The SOA serial number is the definitive indicator of zone version; if all servers report the same serial, the zone transfer is consistent. Sampling records (B) is incomplete, timestamps (C) are not reliable due to clock skew, and a single AXFR (D) does not verify all servers.
A ransomware attack has encrypted critical servers. The recovery team has clean
backups but must restore to a secure environment. Which sequence of actions
best ensures a safe and validated recovery?
RATIONALE: Option B follows best practices: isolation prevents reinfection, staged restoration allows iterative validation, patching closes vulnerabilities, and validation ensures functionality. Option A risks rapid reinfection, C lacks patching and validation, D skips isolation and validation steps.
You are tasked with remediating a network issue where a misconfigured DHCP
server is handing out incorrect IP addresses. Using Python, which approach
would be most effective to detect and automatically correct the problem?
RATIONALE: Option B uses packet inspection to identify rogue DHCP offers and dynamically remediates by updating ACLs, which is automated and targeted. Option A only checks service availability, not configuration correctness; C is a manual workaround; D is static and not a remediation of the DHCP issue.
When implementing a system recovery plan, which of the following is the most
critical factor to ensure that the recovery is successful and validated?
RATIONALE: A recovery plan must include rollback procedures and validation checkpoints to ensure each step is correct before proceeding. Access to backups (A) is necessary but not sufficient; automation (B) can introduce errors without validation; hardware similarity (D) is not always required for logical recovery.
In a Python script that uses the 'dnspython' library to perform a DNS zone transfer,
which of the following is a critical security consideration?
RATIONALE: Zone transfers should be restricted to authorized secondary servers; allowing unrestricted AXFR is a common security vulnerability. Option A is a technical detail, not security; C is about reliability; D is about data validation, not security.
For a Python script that performs network remediation, which of the following best
describes the principle of 'least privilege' when applied to the script's execution?
RATIONALE: Least privilege means granting only the necessary permissions for a task. Using separate credentials per device with minimal required permissions limits the blast radius if the script is compromised. Option A and C grant excessive privileges, and D is unsafe.
A remediation script must recover a Windows system from a corrupted boot
configuration data (BCD) store. Which sequence of commands executed via
Python's subprocess module is correct?
RATIONALE: Option A is the standard sequence for BCD repair: fixmbr, fixboot, and rebuildbcd. Option B reverses the order and adds unnecessary export/import. Option C deletes a value that may not exist. Option D uses bootsect and bcdboot, which are for different scenarios like rebuilding the boot sector, not repairing a corrupted BCD.
In a Python validation script, you must verify that all DNS records for a migrated
web server are consistent across multiple authoritative servers. Which approach
ensures the highest confidence?
RATIONALE: Option D is correct because a matching SOA serial number indicates that all authoritative servers are serving the same version of the zone, which is the most reliable consistency check. Option A only checks one record type and may miss inconsistencies. Option B is often disabled for security. Option C verifies resolution path but not consistency across servers.
A Python remediation script needs to revert a network adapter to DHCP but must
preserve any existing static DNS server settings. Which PowerShell command
executed by the script accomplishes this?
RATIONALE: Option A is correct because Set-NetIPInterface with -Dhcp Enabled changes the IP configuration to DHCP without affecting DNS settings. Option B is not a valid cmdlet. Option C only removes the IP address but does not enable DHCP. Option D is used to add a static IP, not enable DHCP.
During a system recovery validation, a Python script must ensure that the
Windows Recovery Environment (WinRE) is properly configured. Which command
verifies this?
RATIONALE: Option A is correct because reagentc /info displays the current status and configuration of the Windows Recovery Environment. Option B shows boot configuration but not WinRE status. Option C is not a valid command. Option D lists the contents of the WIM file but does not verify that WinRE is enabled.
In a Python remediation script, you must ensure that a Windows service is set to
'Automatic' and started after a system recovery. Which sequence of commands is
correct?
RATIONALE: Option D is correct because all three methods are valid ways to set a service to automatic and start it in Windows. Set-Service is PowerShell, sc.exe is a command-line tool, and wmic is a legacy tool, but all achieve the desired result. The question asks for a correct sequence, and all are correct.
A Python validation script must check whether a network adapter's DNS servers
are set to a specific internal DNS server. Which PowerShell command provides the
current DNS server addresses for an interface?
RATIONALE: Option A is correct because Get-DnsClientServerAddress specifically returns the DNS server addresses configured for a network interface. Option B also works but is less direct. Option C is a text-parsing approach that is error-prone. Option D tests connectivity to a DNS server but does not show the current configuration.
A Python remediation script must reconfigure a compromised DNS server. Which
approach ensures the script's changes are validated against the intended state
and can be rolled back if validation fails?
RATIONALE: Declarative checks compare the actual state to the desired state, and a rollback snapshot ensures reversibility. Direct application without a snapshot (B, C) lacks a recovery path, and (D) contradicts the need for rollback. This aligns with infrastructure-as-code best practices.
In the Python remediation workflow, after patching a vulnerability that allowed
DNS cache poisoning, which validation step is essential to confirm the fix without
waiting for a full cache refresh cycle?
RATIONALE: Flushing the cache and querying an external authoritative server tests the actual resolution path and verifies that the patched server does not return spoofed data. Restarting (B) only checks service status, (C) checks syntax, and (D) waits for TTL expiration, which is inefficient and does not actively test for spoofing.
A Python network remediation script must reconfigure a router's access control
list (ACL) to block a specific malicious IP. Which approach ensures the change is
applied atomically and does not disrupt existing traffic?
RATIONALE: Creating a new ACL and swapping it atomically minimizes the window of misconfiguration. Appending (A) may leave the ACL in an inconsistent state if the rule order matters. Deleting and recreating (C) causes a gap in protection. Inserting at the top (D) may disrupt traffic due to rule order changes.
In a Python-based validation suite for DNS remediation, which test verifies that a
DNS server correctly resolves a domain to a specific IP address while also
confirming that the response is not from a cache?
RATIONALE: The +trace option performs a full iterative resolution, bypassing caches and verifying each step. +norec (A) queries only the authoritative server, which is useful but does not test the full path. nslookup (B) may return cached results. host -C (D) checks SOA records, not resolution.
When remediating a DNS server that has been compromised, a Python script must
ensure that the attacker's backdoor is removed. Which action is most critical to
prevent persistence?
RATIONALE: Rotating TSIG keys invalidates any attacker-held credentials, preventing them from re-authenticating or updating zones. Changing permissions (A) may not remove existing backdoors. Blocking traffic (C) is a network-level control but does not address the server itself. Disabling recursion (D) mitigates cache poisoning but does not remove backdoors.
A Python remediation script must recover a system from a failed DNS
configuration that prevents name resolution. Which order of operations is correct
for the script to follow?
RATIONALE: Restoring the correct configuration first ensures the service starts with valid settings. Restarting the service applies the restored configuration. Flushing the resolver cache clears any poisoned or stale entries. The other orders may leave the system with an invalid configuration or stale cache.
In a Python remediation script, a network engineer uses the subprocess module
to execute ipconfig /flushdns on a Windows host. The script must verify that the
command succeeded before proceeding. Which approach correctly captures and
interprets the command's exit status?
RATIONALE: subprocess.run with check=True raises CalledProcessError on non-zero exit codes, providing robust error handling. subprocess.call returns the exit code but doesn't raise, requiring manual check. Parsing output is fragile. os.system returns the exit code on Unix but not reliably on Windows and doesn't raise.
A DNS zone file has an SOA record with a refresh of 3600, retry of 600, expire of
604800, and a negative caching TTL of 300. If a secondary server fails to reach the
primary at the first refresh, what is the next action per RFC 1034/1035?
RATIONALE: The SOA refresh interval is the primary retry cycle; if a refresh fails, the secondary retries after the retry interval. The expire field determines when the zone is considered stale. Negative caching TTL applies to negative responses, not to server-to-server zone transfers.
During system recovery, a technician must restore a Linux server's root filesystem
from a backup taken with tar. Which command sequence ensures proper
restoration of permissions, ownership, and extended attributes while avoiding
overwriting critical runtime files?
RATIONALE: Restoring to a separate mount point (/mnt/recovery) avoids overwriting the live system and allows validation. --numeric-owner and --xattrs preserve IDs and extended attributes. Option A and C restore directly to / risking overwriting running processes. Option D only prevents overwriting directories but still writes to live root.
In Python, a function is designed to validate network configurations by comparing
expected and actual DNS records. The function returns True if all records match.
Which code snippet correctly implements this validation using all() with a
generator expression?
RATIONALE: Option C compares values for each key, which is needed for exact record matching. Option A only checks presence, not equality. Option B is inefficient and still only checks presence. Option D is logically equivalent to all() but less readable and uses any incorrectly.