Associate Data Practitioner · Free Practice Question Medium
Question 9
A data engineer needs to extract structured data from thousands of PDF invoices and load it into BigQuery for analysis. Which service should they use?
-
A
Cloud Vision API
-
B
Document AI
-
C
Natural Language API
-
D
Cloud Speech-to-Text
Reveal correct answer
Correct answer: B
Explanation
Option B is CORRECT. Document AI is specifically designed for extracting structured information from documents like invoices. It uses machine learning to understand document layouts, can identify key fields like invoice numbers, dates, line items, and amounts, and outputs structured data that can be loaded directly into BigQuery. Document AI includes specialized processors for common document types including invoices, making it ideal for this use case.
Option A is INCORRECT. While Cloud Vision API can perform OCR (Optical Character Recognition) to extract text from images, it doesn't have the specialized document understanding capabilities needed to identify specific invoice fields and their relationships. It would extract the text but not organize it into structured data fields.
Option C is INCORRECT. Natural Language API analyzes text for entities, sentiment, and syntax but doesn't focus on document structure or layout understanding. It wouldn't be effective at extracting structured data from invoices where the position and format of information is critical to its meaning.
Option D is INCORRECT. Cloud Speech-to-Text converts audio to text and has no capabilities for processing document images or extracting structured data from PDFs. It's completely unsuitable for processing invoice documents.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
