Generic Automation Interview Questions
Description:
Here are some interview questions we might ask for a candidate.
To Resolve:
-
What automation tool you have been using for your last project?
-
Tell me about a time you had multiple assignments with conflicting goals or deadlines, and how you completed each of them.
- How are Python arrays and Python lists different from each other?
- A: Looking for how arrays cannot be modified once declared
-
Describe a process you have automated. What were the steps?
-
You write a function:
1 2 3 4 5 6 7 8
Reboot-servers { Invoke-Command -ComputerName 'computer1.domain.com' -ScriptBlock { Restart-computer -Force } Invoke-Command -ComputerName 'computer2.domain.com' -ScriptBlock { Restart-computer -Force } }
- And save it as the file
reboot-servers.ps1
. You then run it by typing.\reboot-servers.ps1
but it does nothing. Why is that? - Hint: Is there a way to confirm the commands were ran?
- A: You declared a function but never called it.
- And save it as the file
- When is an okay time to hard code passwords in scripts?
- A: Never
- How would you define a trigger in regards to automation?
- A: Looking for scheduled time => start script or “when $x happens, start this process”
- In regards to object oriented programming, what is an object?
- A: Looking for something regarding properties (characteristics) and methods (actions)
- What protocols are used to run scripts remotely for Windows and Linux?
- A: WSMan and SSH are most common nowadays.
- Bonus: What ports?
- WMAN: 5985/tcp
- WSMAN over HTTPS: 5986/tcp
- SSH: 22/tcp
Comments