How to Extract Text and Predict Sentiment from Scanned Forms?
You work for a hotel and have a dataset that contains customers’ written comments scanned from paper-based customer feedback forms, which are stored as PDF files. Every form has the same layout. You need to quickly predict an overall satisfaction score from the customer comments on each form. How should you accomplish this task?
Community Votes
57% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
It tests your ability to match document layout characteristics with the correct extraction tool while avoiding the trap of misusing entity-level sentiment analysis for holistic scoring.
This question evaluates selecting appropriate Google Cloud services for structured document extraction and sentiment analysis. The community consensus prioritizes Document AI for reliable form parsing combined with the Natural Language API's overall sentiment endpoint.
Option A is frequently selected because candidates focus on the word 'quickly' and assume pre-trained Vision API avoids training overhead, ignoring that production-grade ML exams prioritize extraction accuracy and scalability over initial setup speed.
Community Discussion (13 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Document AI custom extractors are purpose-built for processing high volumes of structured documents with consistent layouts. Training a custom model guarantees precise isolation of the comments section, filtering out static form elements. When paired with the Natural Language API's analyzeSentiment feature, this architecture directly yields a single polarity score aligned with the overall satisfaction requirement.Why the Other Options Are Wrong
Options B and D incorrectly utilize analyzeEntitySentiment, which calculates sentiment per extracted entity rather than providing a unified document-level assessment. Option A relies on the Vision API, which performs broad OCR but lacks the contextual awareness needed to consistently target specific form regions. In certification scenarios, architectural robustness and data precision consistently outweigh assumptions about raw inference speed.Community Comment Notes
Several candidates debate the 'quickly predict' phrasing, arguing that pre-trained APIs eliminate model training time [2][8]. However, seasoned professionals emphasize that Document AI custom extractors are specifically optimized for repetitive form structures, ensuring higher long-term accuracy [6][12]. Multiple comments correctly dismiss entity-based sentiment as unnecessary when only a global satisfaction metric is requested [9][13].Official Reference
Exam Strategy
Prioritize Document AI custom models whenever a question specifies consistent layouts or requires extracting data from specific regions of a document. Disregard speed-related keywords if they push you toward generic APIs; cloud engineering exams reward scalable, accurate pipelines over temporary workarounds.
Related Analysis
Practice All PMLE Questions
Access 65 questions with complete answers and detailed explanations.
View Full PMLE Practice Test →