AWS Certified AI Practitioner (AIF-C01) — Question 114

A company wants to use large language models (LLMs) to produce code from natural language code comments.

Which LLM feature meets these requirements?

Answer options

Correct answer: B

Explanation

The correct answer is B, Text generation, as it refers to the ability of LLMs to create new content, such as code, from natural language input. Options A, C, and D do not align with the requirement to produce new code; A summarizes existing text, C completes partial text, and D categorizes text rather than generating new content.