Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
AWS Certified AI Practitioner · AWS
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
The requirement is to generate code from natural language comments, which means: Input: Natural language (code comments) Output: Newly created text (code) This is a classic text generation task where the model: Produces entirely new content based on input instructions Translates human descriptions into executable code
Correct ans. is C. Text Completion! Why the others are incorrect: A. Text summarization: Condenses content into shorter summaries. B. Text generation: Too broad; while technically related, “text completion” is the more precise feature for generating code from prompts/comments. D. Text classification: Assigns categories or labels to text.
isn't what you say in B exactly what the question asks for?