In this question it is asked to create a zip archive, The command you used (tar cvzf) to create .zip archive file is incorrect, although the extension you used for archive is .zip but its still a tar archive with gzip compression. As per question you should have created zip archive, I hope it clears why your answer was marked as failed.
I think task is worded wrongly as tar is as well archive. Zipped archive is just zipped tar. In the instructions should be stated exactly which program should be used or which one should not. I insist to re-phrase the question and either mark it as successful or allow me to repeat it.
Thanks for your feedback, we will look into it to see if it can be improved.
Just some explanation, tar utility just bundles files together to make an archive but it does not apply any compression by default that is why we use gzip like utilities along with tar. However zip applies compression by default.
Since question clearly states that we need a zip archive so I didnât find it confusing between tar or zip.
Since you ran this command using sudo so it tried to copy archive to destination through root user but you setup the passwordless connection between two server through their respective sudo users (which is correct as per question) so archive was never copied during testing.
You saw that archive on destination server because you ran this command within the script without sudo first time which copied the archive but in your final answer you used sudo which caused it to fail.