Databricks Generative AI Engineer Associate · Free practice question 3 of 12
Parsing HTML help pages
Dunmere Rail scraped its public timetable help pages as HTML. Navigation menus, cookie banners and footers appear in every page. Which Python package is most suitable for parsing the HTML and keeping only the main article text?
- A.python-pptx
- B.pytesseract
- C.BeautifulSoup
- D.NumPy
Show answer and explanation
Correct answer: C. BeautifulSoup
Why: BeautifulSoup parses HTML so specific elements, such as navigation, banners and footers, can be removed and the main content extracted. python-pptx reads PowerPoint files, pytesseract performs OCR on images, and NumPy is a numerical array library.
More free Databricks Generative AI Engineer Associate questions
- Choosing translation as the task
- Delimiters around untrusted text
- Keeping tables intact when chunking
- Same embedding model for queries and docs
- Fitting retrieved context in the window
- Managed versus self-managed embeddings
- External models in Model Serving
- Unity Catalog lineage for audits
- Groundedness judge without references
- Evaluation datasets from production traces
- Cost control for low-traffic prototypes