How is the answer verified?

Hello kodekloud team
There is a question that I think about a little bit, how is the answer verified in the tests?
and how are the tests constructed?

i mean when you asked me in the task make file like this touch file1
how u cheack this its screipt ?

and how you builds tasks like kodekloud-engineer.com

its api or how ?

Hi @Motasem-Aljaafreh,
It depends on the task. Let’s say in the Ansible task, you have to create an empty file on the XYZ server when you create an empty file from your playbook to verify if it’s working properly.
When you submit the task by clicking on the “Check” button, validation clean up your work and recreates an empty file again from your playbook.

Regards,
KodeKloud Support

The validation script could be a python, go, and bash file.