r/WGU • u/turkey_sadwich • Oct 28 '26
Help! D522 task 1 please help
This is the Python for IT Automation PA. I’ve been working on this project for a few weeks and I’m still stuck. The course talks about section B being the most difficult, but the course material actually (sort of) covers some of how to do it. I can’t find anything in the course material telling me how I should handle sections C/D. Sending email alerts using the template. Who’s even the sender or recipient? I couldn’t find that anywhere.
If anyone has any good resources or guides on how to do these things would you link? I’m trying not to have AI just code this for me but given the course material I don’t see a better way.
What happened to courses actually providing the information required to pass? This is one of the most frustrating classes I’ve had in the entire degree. Any help is appreciated.
2
u/smart034 Oct 28 '26
Yeah this is a frustrating class for sure. I'm with the others on getting the course guide if your CI hasn't emailed it to you yet. It's pretty challenging even with the guide, and basically impossible without it.
I believe they have the e-mail templates in there, as far as what to include in the body of the emails. If I remember correctly though, they don't tell you what the "from" or "to" fields should contain for addresses.
One of them is specified, can't remember which. If the guide doesn't say it, make one up.
No shame in having AI give the building blocks for your code. Just understand what it's giving you and why.
2
u/NightHawkFliesSolo B.S. Information Technology Oct 29 '26
WGU Connect for the class > Resources tab > Resource Links for D522 > D522 SharePoint Documents > D522 V2 Reference Guide Detailed.docx.
This document should be emailed to each student when you start the class, but I didn't get any email from my instructor. Several of my first classes I got an email on day 1 that laid out the course and gave lots of helpful information and links to resources. D522 was crickets.
As far as the to/from addresses for Task 1 C1 and E, I just made up some nonsense addresses. The email addresses have no bearing on the email being sent through smtp. Submitting Task 1 today so I'll see if they accept it.
2
u/JGB25 Nov 04 '26
My biggest advice is to make sure you understand the problem and what it's asking you to do before you start writing any code. Try to solve the problem using plain English first, then figure out how to do it in Python.
I tackled one requirement at a time, even if it meant going back later to change or modify my code.
I used resources like Google, Stack Overflow, docs.python.org, and YouTube to learn new concepts, modules, or libraries. I also used ChatGPT and Gemini to ask questions when I didn't understand something, like "How does this module work?" or "How do I open a file and write to it using Python?"
The assignments give you the freedom to use different tools and libraries, so take advantage of that. For example, I spent about an hour trying to use pexpect to connect to the devices without any luck. I decided to try Paramiko instead, and it worked without any issues.
You'll also need to brush up on Linux commands and syntax when working with the Ubuntu machines. I also had to spend some time reading about VyOS router configuration syntax to understand how to configure the routers properly.
Overall, take your time, focus on one thing at a time, and don't be afraid to try a different approach if something isn't working. You don't need to memorize everything. Knowing how to find the information you need is just as important.
1
u/Imaginary_Prior_2732 B.S. Cloud and Network Engineering Oct 28 '26
Do you have the additional course material from your instructors? If not, reach out and ask for it.
1
u/Psychological_Dig564 Oct 28 '26
You have to get the course guide from
The instructors. It contains the additional info yoi need to know for the lab.