UiPath AI Specialist v1 — Question 73
What are the requirements that must be fulfilled by a package containing only the serving component?
Answer options
- A. A folder containing the main.py file which implements the__init_ (self), train(self, training_directory), and predict(self, input) functions, and the requirements.txt file which lists the dependencies needed to run the model.
- B. A folder containing the main.py file which implements the__init_ (self) and predict(self, input) functions.
- C. A folder containing the main.py file which implements the__init_ (self), evaluate(self, evaluation_directory), and predict(self, input) functions, and the requirements.txt file which lists the dependencies needed to run the model.
- D. A folder containing the main.py file which implements the__init_ (self) and predict(self, input) functions, and the requirements.txt file which lists the dependencies needed to run the model.
Correct answer: D
Explanation
The correct answer is D because it includes both the __init__ and predict functions along with the requirements.txt file, which are essential for a serving component. Option A is incorrect as it includes a train function, which is not required for serving. Option B lacks the requirements.txt file, and Option C includes an evaluate function, which is also unnecessary for the serving component.