exam questions

Exam AWS Certified AI Practitioner AIF-C01 All Questions

View all questions & answers for the AWS Certified AI Practitioner AIF-C01 exam

Exam AWS Certified AI Practitioner AIF-C01 topic 1 question 105 discussion

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

Which LLM feature meets these requirements?

  • A. Text summarization
  • B. Text generation
  • C. Text completion
  • D. Text classification
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
sudarshanbisht
1 month ago
Selected Answer: C
The task described — producing code from natural language comments — involves continuing or completing a prompt (in this case, natural language) with appropriate code. This is best handled by the text completion capability of large language models (LLMs). You provide a prompt such as: # This function calculates the factorial of a number\n def factorial(n): The model completes the rest with actual code. Text completion is specifically designed for this kind of task, where the model infers the most likely continuation of a given input, which can be natural language or code.
upvoted 1 times
...
Jessiii
2 months, 1 week ago
Selected Answer: B
Large language models (LLMs) that convert natural language comments into code need the ability to generate new content based on the provided input. This aligns with the text generation feature, where the model produces human-like text, including writing code from natural language descriptions.
upvoted 2 times
...
may2021_r
3 months, 4 weeks ago
Selected Answer: B
The correct answer is B. Text generation is the appropriate feature for converting natural language into code.
upvoted 1 times
...
aws_Tamilan
3 months, 4 weeks ago
Selected Answer: B
To produce code from natural language code comments, text generation is the appropriate feature of an LLM.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago