GCP Generative AI Leader Practice Question 47: Translation API Document Formatting
Google Cloud Generative AI Leader · Test 5 · question 7 of 10
A law firm needs to translate hundreds of signed contracts, delivered as formatted PDF and Word files with tables, headers, and page layout, from English into French. The output must keep the original layout intact so it still looks like a contract, not a block of plain translated text.
Which Google Cloud capability fits this requirement?
Show answer and explanation
Answer:
Document Translation, a feature of Cloud Translation Advanced, translates PDF, DOC, DOCX, PPT, PPTX, XLS, and XLSX files directly, keeping body text layout, tables, multi-column formatting, and headers and footers intact. That is exactly what the firm needs: contracts that still look like contracts after translation, not reformatted plain text.
Option A is wrong because the base translation feature works on plain text or HTML strings; it does not accept a PDF or Word file and preserve its page layout. Option C is wrong because the Natural Language API analyzes text for entities, sentiment, and syntax; it does not translate language at all. Option D is wrong because AutoML Translation is for training a custom translation model on domain-specific bilingual sentence pairs, which addresses vocabulary accuracy, not document layout preservation, and it is a heavier undertaking than the firm's formatting problem calls for.
Reference: Translate documents