ML Model for Text Completion in AWS
Short answer
D BERT-based models
Question
Key Takeaways
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.
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
https://huggingface.co/transformers/model_doc/bert.html
This link opens the official vendor documentation in a new tab.
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).
Community Votes
100% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 2 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 2
-
dehkon 👍 7BERT (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 Answered DD. 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.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All AIF-C01 Questions
Access 100 questions with complete answers and detailed explanations.
View Full AIF-C01 Practice Test →