ML Model for Text Completion in AWS

Natural Language Processing

A company has documents that are missing some words because of a database error. The company wants to build an ML model that can suggest potential words to fill in the missing text. Which type of model meets this requirement?

  1. Topic modeling
  2. Clustering models
  3. Prescriptive ML models
  4. BERT-based models Source Reference Answer

Community Votes

D
100%

100% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

The question tests knowledge of NLP model capabilities, with the common trap being confusion between unsupervised clustering/topic modeling and supervised/fine-tuned generation tasks.

BERT-based models are the correct solution for predicting missing words in text due to their bidirectional context understanding. The community consensus confirms that BERT is specifically designed for masked token prediction tasks.

Community Discussion (3 comments)

dehkon 👍 7
BERT (Bidirectional Encoder Representations from Transformers) is a language model designed to understand context in text by considering both the left and right sides of a word. BERT-based models are well-suited for filling in missing words in sentences due to their ability to predict masked words in a given text. This makes them ideal for tasks that require filling in missing information within text data.
Jessiii 👍 1 Selected: D
D. BERT-based models: BERT (Bidirectional Encoder Representations from Transformers) is a pre-trained language model that has been fine-tuned for various natural language processing tasks, including text completion. BERT-based models are particularly effective at predicting missing words or filling in gaps in text because they can understand context in both directions (left and right of the missing word). This makes them ideal for suggesting potential words to fill in missing text.
may2021_r 👍 1 Selected: D

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

BERT (Bidirectional Encoder Representations from Transformers) is a pre-trained language model that excels at understanding context by looking at both left and right sides of a word. This makes it ideal for 'fill-in-the-blank' or masked language modeling tasks, where the goal is to predict missing tokens based on surrounding context.

Why the Other Options Are Wrong

Topic modeling (A) identifies abstract topics in documents rather than filling specific missing words. Clustering models (B) group similar data points without generating text. Prescriptive ML models (C) focus on recommending actions based on outcomes, not linguistic completion.

Community Comment Notes

Comments consistently highlight BERT's bidirectional nature as the key differentiator. Users note that BERT is pre-trained for masked token prediction, making it the standard choice for this type of natural language processing task in AWS certification contexts.

Official Reference

Exam Strategy

When asked about text completion, gap-filling, or semantic understanding, prioritize transformer-based models like BERT over traditional statistical methods. Distinguish clearly between generative tasks (creating text) and analytical tasks (clustering/topics).

Related Analysis

Practice All AIF-C01 Questions

Access 100 questions with complete answers and detailed explanations.

View Full AIF-C01 Practice Test →

← Back to AIF-C01 Study Guide