You work for a Thai ISP and the government orders you to block everything that insults the king and royal family?
You do network enginering for a mobile phone network operator in a developing African nation and they want to redesign parts of their network to support participation in the Facebook "free basics" walled garden internet for your GSM/UMTS/HSPA+/LTE type customers?
edit: there are a lot of things you can do to mess with a properly functioning internet, on the behalf of autocratic regimes or greedy corporations, just at OSI layers 2, 3 and 4... That's before you even get to the level of operating system and applications/software engineering.
Kinda like, "haha! I secretly got messages delivered to me during the steganography test! It's obviously not a legit test."
Maybe you could record yourself staring intently at the screen and play that back to the webcam during the exam.
Coming to your question. First question is easy. In a business environment, subjected to international rules and regulations; ethics are a priority. Second one not so. Kind of similar to when does it become acceptable to rob someone if robber can't make ends meet. Depending on jurisdiction; court will decide level of leniency.
To what extent should personal ethics play in deciding where a (software) engineer should work? What if the engineer has no other choices for a job, and needs to (make rent/pay the bills/eat food)?
It is true that it'd be pretty easy to circumvent the tracking, by placing paper over the webcam, running the browser in a virtual machine, spoofing data to the browser, and so on. However these are infeasible for most non-technical people, so I don't think it's a real solution. Freedom shouldn't be only for those with extremely technical knowledge.