nerdexam
AmazonAmazon

AIF-C01 · Question #123

AIF-C01 Question #123: Real Exam Question with Answer & Explanation

The correct answer is B: Text generation. The LLM feature that produces code from natural language descriptions is a specific application of text generation.

Submitted by yousef_jo· Mar 30, 2026LLM Capabilities and Applications

Question

A company wants to use large language models (LLMs) to produce code from natural language code comments. Which LLM feature meets these requirements?

Options

  • AText summarization
  • BText generation
  • CText completion
  • DText classification

Explanation

The LLM feature that produces code from natural language descriptions is a specific application of text generation.

Common mistakes.

  • A. Text summarization involves condensing a longer piece of text into a shorter, coherent summary, which is not the process of generating code.
  • C. Text completion is typically about finishing an incomplete sentence or phrase; however, generating entire code blocks from natural language comments is better described by the broader term 'text generation' as it involves creating new structured content.
  • D. Text classification involves categorizing text into predefined classes or labels, which is unrelated to producing code.

Concept tested. LLM capabilities, code generation, text generation

Reference. https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#code-models

Topics

#LLM features#code generation#natural language processing#text generation

Community Discussion

No community discussion yet for this question.

Full AIF-C01 PracticeBrowse All AIF-C01 Questions