Google CloudArchitecting low-code AI solutions

Document AI & Ocr — PMLE Practice Question

A representative Google Cloud Professional Machine Learning Engineer (PMLE) exam question on Document AI & Ocr. Work through it below, then read why each option is right or wrong.

This question is part of the free Google Cloud Professional Machine Learning Engineer practice test.

Short answer

The correct answer is A. Document AI with a pretrained processor such as the Form Parser or a specialized customs/logistics processor.

Document AI provides pretrained processors, including a general Form Parser and specialized processors, that perform OCR and extract structured key-value pairs and entities from varied document layouts without requiring custom model training, directly matching the requirement. Cloud Vision API's TEXT_DETECTION only returns raw OCR text without structured field extraction, forcing the company to build brittle regex parsing for varying layouts, which does not scale well and was explicitly something they wanted to avoid. BigQuery ML text embeddings are for downstream analytics or similarity tasks, not for OCR or structured form-field extraction from scanned images. Translate API only translates text between languages and has no OCR or field-extraction capability, so it cannot address the core need.

The Question

A logistics company receives thousands of scanned bills of lading and customs forms daily as PDFs and images with varying layouts. They need to extract structured key-value fields such as shipper name, container number, and weight, without training a custom model, and want a managed solution that handles both OCR and form-field extraction. Which Google Cloud service should they use?

ADocument AI with a pretrained processor such as the Form Parser or a specialized customs/logistics processorCorrect
BBigQuery ML with a text embedding model trained on the scanned document text
CCloud Vision API TEXT_DETECTION feature followed by custom regex parsing of the raw text
DTranslate API to normalize the documents before manual data entry review

Why A is correct

Document AI provides pretrained processors, including a general Form Parser and specialized processors, that perform OCR and extract structured key-value pairs and entities from varied document layouts without requiring custom model training, directly matching the requirement. Cloud Vision API's TEXT_DETECTION only returns raw OCR text without structured field extraction, forcing the company to build brittle regex parsing for varying layouts, which does not scale well and was explicitly something they wanted to avoid. BigQuery ML text embeddings are for downstream analytics or similarity tasks, not for OCR or structured form-field extraction from scanned images. Translate API only translates text between languages and has no OCR or field-extraction capability, so it cannot address the core need.

Why the other options are wrong

Option B: BigQuery ML with a text embedding model trained on the scanned document text

Option B does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (A) is the only one that fully meets every constraint stated in the question.

Option C: Cloud Vision API TEXT_DETECTION feature followed by custom regex parsing of the raw text

Option C does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (A) is the only one that fully meets every constraint stated in the question.

Option D: Translate API to normalize the documents before manual data entry review

Option D does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (A) is the only one that fully meets every constraint stated in the question.

Key idea: Document AI & Ocr

Document AI provides pretrained processors, including a general Form Parser and specialized processors, that perform OCR and extract structured key-value pairs and entities from varied document layouts without requiring custom model training, directly matching the requirement. Cloud Vision API's TEXT_DETECTION only returns raw OCR text without structured field extraction, forcing the company to build brittle regex parsing for varying layouts, which does not scale well and was explicitly something they wanted to avoid. BigQuery ML text embeddings are for downstream analytics or similarity tasks, not for OCR or structured form-field extraction from scanned images. Translate API only translates text between languages and has no OCR or field-extraction capability, so it cannot address the core need. On the PMLE exam, questions in the "Architecting low-code AI solutions" domain test whether you can map a scenario's constraints to the right choice. Read the requirement carefully, eliminate options that violate any single constraint, and pick the one that satisfies all of them with the least operational overhead.

Ready to see how you'd score?

Take the free practice quiz and find out which Google Cloud Professional Machine Learning Engineer domains you need to focus on. No signup required.

Practice 5 similar questions

Same cert, same or adjacent domain. Use these after reviewing the explanation.

Related Google Cloud Professional Machine Learning Engineer Practice Questions

Official sources used

Verify program and exam details at the source before scheduling.