Docsity

WGU D522 TASK 2 PERFORMANCE ASSESSMENT: PYTHON NETWORK REMEDIATION, DNS CONFIGURATION, SY, Exams of Nursing

Toggle sidebar
bg1
WGU D522 TASK 2 PERFORMANCE ASSESSMENT: PYTHON
NETWORK REMEDIATION, DNS CONFIGURATION, SYSTEM
RECOVERY & VALIDATION — 150 EXAM-STYLE QUESTIONS
WITH VERIFIED ANSWERS (COMPLETE 2026 GUIDE)
CORE DOMAINS
1. Python Network Automation and Remediation
2. DNS Configuration, Querying, and Record Management
3. System Backup, Recovery, and Rollback Procedures
4. Validation, Idempotence, and Testing Methodologies
5. Helpdesk API Integration and Ticket Management
6. Email Notification Systems and MailHog
7. Logging, Audit Trails, and Evidence Collection
8. Error Handling, Exception Management, and Troubleshooting
9. GitLab Workflow and Version Control
10. Security, Authorization, and Compliance in Automation
INTRODUCTION
This comprehensive examination evaluates mastery of the WGU D522 Task 2
Performance Assessment requirements, focusing on Python-based network
remediation, DNS configuration management, system recovery, and validation
workflows. The assessment tests applied knowledge of automation libraries, API
integration, backup strategies, and evidence collection. Questions span
foundational theory, real-world scenario application, regulatory considerations,
and critical decision-making. Each question is designed to mirror the complexity
of the actual performance assessment, ensuring candidates are prepared to
design, implement, validate, and document a complete automation solution that
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f

Partial preview of the text

Download WGU D522 TASK 2 PERFORMANCE ASSESSMENT: PYTHON NETWORK REMEDIATION, DNS CONFIGURATION, SY and more Exams Nursing in PDF only on Docsity!

WGU D522 TASK 2 PERFORMANCE ASSESSMENT: PYTHON

NETWORK REMEDIATION, DNS CONFIGURATION, SYSTEM

RECOVERY & VALIDATION — 150 EXAM-STYLE QUESTIONS

WITH VERIFIED ANSWERS (COMPLETE 2026 GUIDE)

CORE DOMAINS

  1. Python Network Automation and Remediation
  2. DNS Configuration, Querying, and Record Management
  3. System Backup, Recovery, and Rollback Procedures
  4. Validation, Idempotence, and Testing Methodologies
  5. Helpdesk API Integration and Ticket Management
  6. Email Notification Systems and MailHog
  7. Logging, Audit Trails, and Evidence Collection
  8. Error Handling, Exception Management, and Troubleshooting
  9. GitLab Workflow and Version Control 10.Security, Authorization, and Compliance in Automation INTRODUCTION This comprehensive examination evaluates mastery of the WGU D522 Task 2 Performance Assessment requirements, focusing on Python-based network remediation, DNS configuration management, system recovery, and validation workflows. The assessment tests applied knowledge of automation libraries, API integration, backup strategies, and evidence collection. Questions span foundational theory, real-world scenario application, regulatory considerations, and critical decision-making. Each question is designed to mirror the complexity of the actual performance assessment, ensuring candidates are prepared to design, implement, validate, and document a complete automation solution that

detects, remediates, verifies, and reports network and DNS issues in an enterprise environment. SECTION ONE: QUESTIONS 1– 150

  1. A network automation engineer is designing a Python script to remediate DNS misconfigurations across multiple Linux servers. The primary objective of this remediation script is to: A. Replace the entire DNS infrastructure with a new solution. B. Correct misconfigured DNS settings on target devices. C. Monitor DNS traffic for security threats. D. Generate reports on DNS performance metrics. Correct answer B. RATIONALE: Remediation specifically refers to correcting or fixing identified issues, such as misconfigured DNS settings, to restore proper network function. Replacing infrastructure (A) is a migration, not remediation. Monitoring (C) and reporting (D) are detection and analysis activities, not remediation.
  2. Which Python library is most commonly used for automating network device configuration through SSH in the WGU D522 Task 2 assessment? A. Requests B. Netmiko C. Flask D. Pandas Correct answer B. RATIONALE: Netmiko is the standard Python library for simplifying SSH connections to network devices and automating configuration changes. Requests (A) handles HTTP, Flask (C) is a web framework, and Pandas (D) is for data analysis.
  3. A developer needs to perform DNS queries in a Python automation script. Which library is specifically designed for this purpose? A. dnspython

C. A helpdesk ticket creation. D. An email notification trigger. Correct answer B. RATIONALE: Capturing the original state before changes creates an immutable timestamped backup that serves as the recovery point. Post- remediation validation (A) occurs after changes. Ticket creation (C) and notifications (D) are separate workflow steps.

  1. The DNS remediation script described in the assessment performs which of the following operations first? A. Creates local backup and logs directories. B. Authenticates to each targeted Linux node. C. Reads a relative-path CSV inventory. D. Captures original interface DNS state. Correct answer C. RATIONALE: The script must first read the relative-path CSV inventory to know which devices to target. Only after identifying targets can it create directories (A), authenticate (B), or capture state (D).
  2. Which Python library is used to authenticate to Linux nodes through SSH in the remediation script? A. Netmiko B. Paramiko C. Fabric D. Pyssh Correct answer B. RATIONALE: Paramiko is the Python library used for SSH authentication and command execution in the remediation script. While Netmiko (A) also handles SSH, it is specifically for network devices. Fabric (C) is a higher-level SSH library, and Pyssh (D) is not a standard library.
  3. If a DNS remediation script must update an A record for host web01.example.com to 10.20.30.40, what is the correct sequence? A. Delete the record, wait 24 hours, recreate with new IP. B. Update the record via API, then query authoritative source to confirm

propagation. C. Query the record first, then update without verification. D. Update the record and assume propagation is automatic. Correct answer B. RATIONALE: The correct workflow is to update the record and then verify by querying the authoritative source. Deleting first (A) causes downtime. Failing to verify (C, D) violates validation requirements. 10.What is the primary purpose of creating a relative-path CSV inventory in the remediation workflow? A. To store the DNS query results. B. To identify and list the target devices for remediation. C. To log the API responses. D. To document the email notifications sent. Correct answer B. RATIONALE: The CSV inventory lists target devices, enabling the script to know which nodes require remediation. DNS results (A), API logs (C), and email records (D) are stored elsewhere. 11.Post-remediation validation must confirm that remediation did not inadvertently open unnecessary ports. The most comprehensive approach is to: A. Ping each device to confirm connectivity. B. Compare the current open ports against a baseline using a port scanner. C. Check that DNS resolves correctly. D. Verify the helpdesk ticket was created. Correct answer B. RATIONALE: Comparing current open ports against a baseline using a port scanner is the most comprehensive way to detect unintended port changes. Ping (A) only tests connectivity. DNS resolution (C) and ticket creation (D) do not address port state. 12.A critical validation requirement for the remediation script is idempotence. This means: A. The script runs faster on subsequent executions.

B. Verified result and a deterministic key. C. The email address of the network engineer. D. The full source code of the script. Correct answer B. RATIONALE: The helpdesk record must include a verified result and a deterministic key, with the ticket ID/status captured as evidence. The other options are not required ticket fields. 16.What is the correct order of the remediation workflow? A. Detect → Validate → Remediate → Verify → Ticket → Notify → Audit B. Remediate → Detect → Verify → Notify → Ticket → Audit → Validate C. Notify → Ticket → Remediate → Detect → Validate → Audit → Verify D. Audit → Remediate → Detect → Validate → Notify → Ticket → Verify Correct answer A. RATIONALE: The correct workflow is Detect → Validate → Remediate → Verify → Ticket → Notify → Audit. This ensures issues are found, confirmed, fixed, verified, logged, communicated, and documented. 17.The GitLab repository for the Task 2 submission must include which of the following? A. Only the final script file. B. Meaningful commit messages, feature branches, merge requests, and CI/CD pipeline configuration. C. A single commit with all files. D. Only the README file. Correct answer B. RATIONALE: The assessment requires meaningful commit messages, feature branches for development, merge requests for code review, and CI/CD pipeline configuration. Options A, C, and D are insufficient. 18.A script that must handle network timeouts should implement which strategy? A. Immediate failure without retry. B. Retry with exponential backoff. C. Ignore the timeout and continue.

D. Log the timeout and terminate the entire script. Correct answer B. RATIONALE: Retrying with exponential backoff is the best practice for handling network timeouts, allowing transient issues to resolve without overwhelming the network. Immediate failure (A) is brittle, ignoring (C) is unsafe, and terminating (D) is excessive. 19.What is the primary purpose of the DNS status/configuration log in Task 2? A. To replace the helpdesk ticket. B. To generate the required log file with DNS service/status/configuration information as evidence. C. To serve as the primary source code documentation. D. To record only errors and exceptions. Correct answer B. RATIONALE: The DNS status/configuration log must generate the required log file with DNS service/status/configuration information and be attached as evidence. It does not replace the ticket (A), serve as documentation (C), or log only errors (D). 20.When should the helpdesk ticket be created in the remediation workflow? A. Before detection. B. After verification of the fix. C. During the remediation step. D. After the email notification is sent. Correct answer B. RATIONALE: The ticket should be created or updated after verification of the fix, ensuring the ticket reflects the verified result. Creating it before detection (A) is premature, during remediation (C) lacks verification, and after notification (D) delays the audit trail. 21.Which of the following is NOT a valid DNS record type for remediation? A. A record B. MX record C. XYZ record D. CNAME record

creation, ensuring integrity for recovery. It may still be deletable (A), is not memory-only (C), and encryption (D) is a separate concern. 25.A script encounters an authentication failure on one device in a multi- device remediation. The best practice is to: A. Abort the entire script immediately. B. Log the failure and continue to the next device. C. Retry authentication indefinitely. D. Skip the device without logging. Correct answer B. RATIONALE: Logging the failure and continuing allows the script to remediate other devices while preserving an audit trail. Aborting (A) is overly disruptive, indefinite retry (C) can hang, and skipping without logging (D) loses evidence. 26.Which Python library is used to parse JSON responses from the helpdesk API? A. csv B. json C. xml D. yaml Correct answer B. RATIONALE: The json library is the standard Python library for parsing JSON responses. csv (A) handles comma-separated values, xml (C) handles XML, and yaml (D) handles YAML. 27.In the Task 2 workflow, what is the purpose of the notification step? A. To inform stakeholders of the issue, remediation actions, validation results, and ticket reference. B. To replace the helpdesk ticket. C. To serve as the backup mechanism. D. To authenticate to the network devices. Correct answer A. RATIONALE: The notification step informs stakeholders of the issue,

remediation actions, validation results, and ticket reference. It does not replace the ticket (B), serve as backup (C), or authenticate (D). 28.What is the primary purpose of a port scanner in the validation phase? A. To open ports for remediation. B. To compare current open ports against a baseline. C. To close all open ports. D. To configure firewall rules. Correct answer B. RATIONALE: A port scanner is used to compare current open ports against a baseline to detect unintended changes. It does not open (A), close (C), or configure (D) ports. 29.Which of the following is a valid DNS record type for hostname-to-IP mapping? A. A record B. MX record C. TXT record D. SOA record Correct answer A. RATIONALE: An A record maps a hostname to an IPv4 address. MX (B) is for mail exchange, TXT (C) is for text data, and SOA (D) is the start of authority record. 30.Which Python library is used to send emails in the notification step? A. smtplib B. imaplib C. poplib D. http.client Correct answer A. RATIONALE: smtplib is the standard Python library for sending emails via SMTP. imaplib (B) and poplib (C) are for receiving emails, and http.client (D) is for HTTP.

C. Use the os.remove() function. D. Use the subprocess.call() function. Correct answer A. RATIONALE: os.makedirs() creates directories, including intermediate ones, using a relative path. shutil.rmtree() (B) removes directories, os.remove() (C) removes files, and subprocess.call() (D) runs external commands. 35.The primary objective of the DNS remediation script in Task 2 is to: A. Replace the DNS server. B. Correct misconfigured DNS settings on target devices. C. Monitor DNS traffic. D. Generate performance reports. Correct answer B. RATIONALE: The remediation script corrects misconfigured DNS settings on target devices. Replacing the server (A) is a migration, monitoring (C) is detection, and reporting (D) is analysis. 36.Which of the following is a valid method for verifying DNS propagation after a change? A. Querying the authoritative source directly. B. Checking the local hosts file. C. Pinging the old IP address. D. Restarting the DNS service. Correct answer A. RATIONALE: Querying the authoritative source directly confirms the change has been applied. Checking the hosts file (B) is local only, pinging the old IP (C) does not verify DNS, and restarting (D) is not verification. 37.What is the purpose of the paramiko library in the remediation script? A. To perform HTTP requests. B. To authenticate to Linux nodes through SSH. C. To parse JSON data. D. To send emails.

Correct answer B. RATIONALE: paramiko is used for SSH authentication and command execution on Linux nodes. HTTP requests use requests (A), JSON parsing uses json (C), and emails use smtplib (D). 38.A script that must be idempotent should: A. Make changes every time it runs. B. Check for existing state before making changes. C. Always create new resources. D. Never verify the results. Correct answer B. RATIONALE: Checking existing state before making changes ensures the script is idempotent. Making changes every time (A) violates idempotence, always creating new resources (C) is not idempotent, and never verifying (D) is unsafe. 39.Which of the following is a valid DNS record type for email routing? A. A record B. MX record C. CNAME record D. PTR record Correct answer B. RATIONALE: MX records specify mail exchange servers for a domain. A (A) maps hostnames to IPs, CNAME (C) creates aliases, and PTR (D) maps IPs to hostnames. 40.The helpdesk API integration in Task 2 requires treating every API call as a: A. Suggestion. B. Contract. C. Optional step. D. Background task. Correct answer B. RATIONALE: Every API call should be treated as a contract, with

44.Which of the following is a valid method for validating DNS resolution? A. Using nslookup. B. Using ping. C. Using traceroute. D. Using netstat. Correct answer A. RATIONALE: nslookup queries DNS to validate resolution. Ping (B) tests connectivity, traceroute (C) traces paths, and netstat (D) shows connections. 45.In the Task 2 workflow, when should the email notification be sent? A. Before detection. B. After successful remediation and validation. C. During the backup step. D. Before the helpdesk ticket is created. Correct answer B. RATIONALE: Email notifications should be sent after successful remediation and validation, including ticket reference. Before detection (A) is premature, during backup (C) is misplaced, and before ticket creation (D) lacks the reference. 46.What is the purpose of the dns.query.xfr() function? A. To initiate a zone transfer. B. To parse zone transfer results. C. To resolve a single DNS query. D. To create a new DNS zone. Correct answer A. RATIONALE: dns.query.xfr() initiates a zone transfer. Parsing uses from_xfr() (B), single queries use resolve() (C), and creating zones is done differently (D). 47.Which of the following is a valid DNS record type for reverse lookups? A. A record B. PTR record C. MX record

D. CNAME record Correct answer B. RATIONALE: PTR records map IP addresses to hostnames for reverse lookups. A (A) maps hostnames to IPs, MX (C) is for mail, and CNAME (D) creates aliases. 48.The primary risk of not creating a backup before remediation is: A. Increased network latency. B. Inability to roll back if remediation fails. C. Loss of the helpdesk ticket. D. Failure to send email notifications. Correct answer B. RATIONALE: Without a backup, there is no recovery point if remediation fails, preventing rollback. Latency (A), ticket loss (C), and notification failure (D) are unrelated. 49.Which Python library is used to read the CSV inventory? A. json B. csv C. xml D. yaml Correct answer B. RATIONALE: The csv library is the standard Python library for reading and writing CSV files. json (A), xml (C), and yaml (D) handle other formats. 50.A script that must handle malformed data should: A. Ignore the data and continue. B. Validate CSV/JSON inputs before processing. C. Crash with a clear error. D. Send the data to the helpdesk API. Correct answer B. RATIONALE: Validating inputs before processing prevents errors and ensures data integrity. Ignoring (A) hides issues, crashing (C) is brittle, and sending to the API (D) is inappropriate.

D. Log all actions. Correct answer B. RATIONALE: Making changes every time it runs violates idempotence. Checking state (A), verifying results (C), and logging actions (D) are idempotence-supporting practices. 55.Which of the following is a valid method for validating port state after remediation? A. Using a port scanner to compare against a baseline. B. Using ping to test connectivity. C. Using nslookup to resolve hostnames. D. Using traceroute to trace paths. Correct answer A. RATIONALE: A port scanner compares current open ports against a baseline. Ping (B), nslookup (C), and traceroute (D) do not validate port state. 56.What is the purpose of the logging module in the remediation script? A. To send emails. B. To record events for audit and troubleshooting. C. To parse JSON data. D. To authenticate to network devices. Correct answer B. RATIONALE: The logging module records events for audit and troubleshooting. Emails use smtplib (A), JSON uses json (C), and authentication uses paramiko (D). 57.Which of the following is a valid DNS record type for text data? A. A record B. TXT record C. MX record D. PTR record Correct answer B. RATIONALE: TXT records store text data, often used for verification and

policies. A (A) maps hostnames to IPs, MX (C) is for mail, and PTR (D) is for reverse lookups. 58.The primary purpose of the GitLab CI/CD pipeline in Task 2 is to: A. Replace the helpdesk API. B. Automate testing and deployment of the remediation script. C. Serve as the backup mechanism. D. Authenticate to network devices. Correct answer B. RATIONALE: The CI/CD pipeline automates testing and deployment. It does not replace the helpdesk API (A), serve as backup (C), or authenticate (D). 59.A script that must handle partial failures should: A. Abort the entire script. B. Log the failure and continue to the next device. C. Retry indefinitely. D. Skip the failure without logging. Correct answer B. RATIONALE: Logging the failure and continuing allows remediation of other devices while preserving evidence. Aborting (A) is disruptive, indefinite retry (C) can hang, and skipping without logging (D) loses evidence. 60.Which of the following is a valid DNS record type for alias creation? A. A record B. CNAME record C. MX record D. PTR record Correct answer B. RATIONALE: CNAME records create aliases for hostnames. A (A) maps hostnames to IPs, MX (C) is for mail, and PTR (D) is for reverse lookups. 61.What is the purpose of the shutil.rmtree() function in the remediation script?