Question 140
An image-editing application uses an inpainting API. A customer wants to replace only the gray wall behind a product while preserving the product itself. After the developer supplies a mask, the service changes the product and leaves the wall unchanged. The mask was created with opposite alpha semantics from those expected by the selected API. What should be checked?
- Invert the entire mask because its preview looks visually reversed, then submit it without checking the editing endpoint’s alpha convention or confirming which pixels the service will modify.
- Trace the wall boundary with a segmentation model but submit its raw product-foreground mask unchanged to the inpainting endpoint without checking the endpoint alpha convention.
- Inspect the documented mask transparency/opaque-region semantics and verify the target pixel region, inverting the mask if required.
- Increase the inpainting prompt emphasis on preserving the product and reducing background changes, but reuse the same mask with unverified alpha semantics for every request.
Explanation
Correct Answer
C:Inspect how the exact image-editing endpoint interprets transparent and opaque mask pixels, including alpha format, orientation, resizing and coordinate alignment. Visualize the final mask over the product and wall to confirm that only the gray background is selected, then invert or regenerate it if its semantics are reversed. Test a small predictable edit before allowing full output, and preserve the original product image for comparison. Different models/APIs may use different conventions, so do not assume one alpha rule universally. This fixes the actual region-selection failure rather than attempting to compensate with prose.
Incorrect Answers
A:Inverting a mask is sometimes exactly what a model-specific editing contract requires, which makes this a credible troubleshooting step. But a visual preview alone does not establish how transparent versus opaque pixels are interpreted by the selected API. The wrong inversion could remove the product again or target the whole frame. This case specifies an alpha-semantics mismatch, so the engineer should consult the actual mask contract and verify the wall region before deciding whether inversion is appropriate.
B:Segmentation is a sensible way to create a precise edit mask around a product and its background. The defect is not the ability to locate the wall; it is that the service interprets the submitted alpha values in the opposite way. Reusing a foreground mask unchanged could request edits to the product itself, reproducing the current failure. The developer must inspect transparent-versus-opaque editing semantics, visualize the effective edit region, and invert or regenerate the mask appropriately.
D:Prompt instructions about preserving the product can influence a capable image-editing model and are useful alongside masking. The observed problem comes from which pixels the API interprets as selected for editing: the product changes while the wall stays the same. Stronger textual instructions do not correct an inverted or misinterpreted mask. The developer must check the endpoint-specific transparency convention, inspect the pixel region, and invert or rebuild the mask when warranted before optimizing prompt wording.
Question 141
A product localization team translates English onboarding instructions into Japanese. It has an approved glossary of brand-specific words and a reference translation style, but a generic translation request uses several inconsistent synonyms for the same button label. What translation control should the team evaluate?
- Adapt a general multilingual chat model using a handful of previous product translations, but do not bind the approved glossary or validate its use in new Japanese onboarding instructions.
- Use a fixed word-for-word dictionary replacement for each glossary entry before translation, without validating Japanese syntax or context around the technical button label.
- Use supported glossary/dictionary or adaptive translation controls with reference examples, then validate terminology in complete sentences.
- Apply the approved glossary solely as a post-translation string replacement, without checking Japanese morphology, adjacent particles or whether the substituted term fits its sentence context.
Explanation
Correct Answer
C:Check whether the selected Azure Translator version supports the glossary/dictionary or adaptive translation mechanism appropriate to the language pair and deployed contract. Supply approved terminology and representative reference examples where supported, translate complete interface phrases with context, and test that the same button label remains consistent in screenshots and instructions. Use reviewers for ambiguous UI actions and verify that protected product names are not silently paraphrased. Adaptive translation can improve style but is not a universal guarantee of terminology accuracy, so maintain acceptance tests on the final localized content. This closes the observed inconsistent-synonym problem without altering product meaning.
Incorrect Answers
A:Examples can teach a language model the tone of a company's localization work, and they may produce fluent Japanese in many cases. A few demonstrations do not ensure that every technical brand label or button name follows the authorized glossary in new contexts. Variation remains possible, particularly when the same English word has several everyday meanings. Explicit terminology controls and full-sentence validation are necessary for the specified consistency requirement.
B:Term dictionaries are useful for preserving approved brand vocabulary and can reduce synonym drift. Raw token replacement without grammatical or contextual checks can produce awkward or incorrect Japanese forms, particularly where terminology interacts with particles or sentence structure. The product team needs consistent button labels and readable onboarding instructions. Apply supported glossary or adaptive translation controls and evaluate complete translated sentences against approved terminology and style references.
D:Postprocessing can repair some repeated terminology mismatches and is a tempting way to enforce a glossary without changing the translation engine. Japanese sentences may require inflection, spacing choices and contextual wording around a branded concept. Blindly replacing isolated substrings can damage a correctly translated sentence or modify an unrelated homograph. Use supported terminology-aware translation controls and validate the resulting complete instructions instead of treating vocabulary substitutions as sufficient assurance.
Question 142
A scanned 120-page safety manual has embedded diagrams and several tables. A proposed Azure AI Search pipeline splits the raw file into arbitrary text chunks before performing OCR, so the generated chunks contain no recognized warnings from the scanned images. Which TWO ingestion steps should occur before trusting retrieval? (Select TWO.)
- Create an index record for each scanned page and run the Text Split skill on its empty parsed text layer, without first applying OCR to the page image.
- Apply supported OCR or document layout extraction to recognize text, sections and relevant table relationships in the scanned pages.
- Index the printed labels extracted by OCR from each diagram but omit arrows, connectors and footnotes as decorative graphics, then rely on plain keyword search for procedure questions.
- Chunk the extracted structured content with enough context and source page references to preserve warning headings and related conditions.
- Generate visual embeddings for the diagrams and index those vectors alone, without extracting the warning text or linking table rows to their headings and page context.
Explanation
Correct Answers
B:Run a supported OCR/document-layout analyzer over the scanned pages to recover the text and structural relationships that a raw byte splitter cannot read, including warning headings and relevant table cells. Preserve page IDs and check low-confidence recognition on degraded scans or rotated pages. The extraction should be completed before text chunking so the index contains actual readable evidence rather than arbitrary binary fragments. Treat diagrams that carry safety meanings as separate visual evidence to validate, not invisible text assumed to be present.
D:After extraction, split along logical sections and tables rather than arbitrary raw-file offsets, retaining the warning heading and its required conditions together when possible. Add page/section references and stable document identifiers to every chunk, and test retrieval for questions where a warning spans pages or includes a table footnote. This step complements OCR: recognized words alone can still become misleading if their context is separated. Validate final indexed passages against original pages before a generative answer relies on them.
Incorrect Answers
A:Page-level indexing is a reasonable way to preserve document provenance, and a Text Split skill can divide genuinely extracted text into retrievable passages. A scanned page with no selectable text still provides no content for that skill to split. The missing warnings are stored as pixels. The pipeline must recognize them through supported OCR/layout extraction before constructing structured chunks. Changing the number of page records does not replace the upstream visual text recovery.
C:OCR is useful for recognizing printed symbols and labels, but safety procedures often encode sequence, dependencies or exceptions in arrows and neighboring footnotes. Treating those visual relationships as decoration may invert an instruction or separate a warning from the step it qualifies. The pipeline needs layout-aware or vision-capable extraction with provenance and appropriate chunking. Keyword search over labels alone cannot reconstruct omitted diagram structure reliably.
E:Visual embeddings can be useful for image similarity and may support retrieving a related diagram, so they are not inherently inappropriate in a multimodal search design. This proposed pipeline also contains printed safety warnings and tabular relationships that must be accurately quoted and cited. A vector alone is not verified OCR text and cannot prove that exceptions and associated conditions were captured. Layout-aware extraction and context-preserving chunking are both required before calling the result trustworthy.
Question 143
A CI security scanner finds a production Foundry API key committed in a pipeline YAML file and included in several past build logs. The team can keep future pipeline authentication in a supported secret store or managed identity, but the exposed current key may already have been copied. Which remediation closes the immediate exposure?
- Rename the YAML variable while leaving the same live key value in repository history and logs.
- Revoke or rotate the exposed key, remove it from active configuration and accessible logs/history, and migrate pipeline authentication to an approved restricted identity or secret-store reference.
- Mask the key in future CI log output but retain the same active value after it was exposed in repository history and earlier builds.
- Move the API key from YAML into a pipeline secret variable without revoking the existing production key already present in repository history.
Explanation
Correct Answer
B:Treat the current API key as exposed: revoke or rotate it using the resource's supported credential process, verify dependent services switch cleanly, and remove the old value from active pipeline configuration and accessible artifacts or logs where feasible. Audit access to historical records and follow repository-secret incident procedures; removing Git history alone cannot retract a key someone already copied. Replace embedded credentials with a managed identity or authorized vault/secret reference using least-privilege pipeline identity. Add a scanner and log-redaction tests to catch recurrence. This addresses both immediate credential validity and the pipeline practice that caused the leak.
Incorrect Answers
A:Variable renaming changes a label, not the compromised secret bytes. The key has already appeared in source history and build logs, so an attacker may have retained it even if the current YAML file is edited. The team must invalidate the credential and prevent re-exposure. A cosmetic property rename is insufficient incident response for a live service key.
C:Secret masking prevents some future accidental disclosures and is worthwhile as part of pipeline hardening. It cannot unexpose a credential that was already committed and copied into previous build logs. Anyone who obtained the original key could still call production APIs while it remains active. Revoke or rotate the compromised secret, review access and logs, purge or restrict exposure where practical and replace it with managed identity or approved secret storage.
D:Pipeline secret variables are generally safer than plaintext YAML for future runs, so this resembles a sound remediation. However, moving the same credential does not invalidate copies retained by earlier commits, caches or logs. The scanner reports an actual production key disclosure, requiring revocation or rotation and examination of affected accesses. Only then should the workflow use properly scoped secret management or keyless authentication.
Question 144
A Foundry agent's cost per conversation doubled immediately after a new retrieval prompt was released. The application sends both an input prompt and produces output completions, but the finance dashboard shows only total monthly spend. Developers need to identify which part of the update increased tokens. What measurement should be added?
- Divide the monthly token bill by the number of conversations to estimate mean tokens per session, without separating input from generated output or tracking which prompt version each session used.
- Record only average latency and completed-call counts before and after the prompt change, then estimate token cost from response time instead of collecting input and output token usage.
- Record model/deployment-level input and output token counts per versioned request and compare them around the prompt change.
- Aggregate total billed tokens per deployment per day without separating prompt from completion tokens or recording the version of the retrieval prompt that generated each request.
Explanation
Correct Answer
C:Instrument requests to capture reported input and output token usage, deployment identity, prompt/retrieval version and relevant latency/cost attribution, then compare distributions before and after the new retrieval prompt. Determine whether longer input context, increased model output or changed traffic mix explains the cost jump. Use representative cases and separate cached or other billed token categories where the selected API exposes them, because accounting contracts vary. This produces a targeted diagnosis that can inform trimming or output-limit changes without guessing which side caused the increase. Token telemetry is evidence, not by itself an authorization to remove needed citations.
Incorrect Answers
A:Average tokens per conversation can reveal an overall efficiency change and is a useful metric for finance. It cannot explain whether the new retrieval prompt inflated supplied context or whether users began receiving longer generated completions. Aggregating mixed versions obscures the release boundary. The developers need per-request input/output token breakdowns with prompt version and deployment labels to attribute the cost increase to the correct part of the workflow.
B:Response duration can correlate with model work but also reflects retrieval, network delay and external tools. The new retrieval prompt might add large input context without noticeably affecting latency, or longer output could increase costs on a faster deployment. Finance needs to separate input and output token counts at the request and model-version level. An estimate based on elapsed time would not identify which prompt component caused the cost increase.
D:Deployment-level billing totals are useful to finance and can reveal when overall consumption increases. They cannot isolate whether the newly released retrieval prompt expanded input context or whether the model began producing longer completions. The question explicitly needs that attribution around one version change. Recording per-request input and output token counts, deployment identity, and prompt version supports an apples-to-apples comparison; a daily combined total hides the causal breakdown.
Question 145
A support application sends account-label classification requests to an inexpensive small model and reserves a larger model for ambiguous billing investigations. Some low-confidence labels from the small model are wrong, but the app currently returns them without review. The larger deployment is already evaluated for these hard cases. What routing rule should be added?
- Escalate low-confidence or failing validation cases to the stronger approved model, with bounded cost and a human path if uncertainty remains.
- Lower the small model’s confidence threshold until nearly all account labels are accepted automatically, without verifying whether the resulting labels disagree with authoritative billing categories.
- Use the small model's self-reported confidence score alone as the final label, even when its proposed category contradicts a validated billing record.
- Increase the small model’s output-token limit to solicit a longer explanation for every account label, but accept its first predicted class without calibrating confidence or escalating conflicts.
Explanation
Correct Answer
A:Establish calibrated confidence or rule-based uncertainty thresholds using labeled billing cases and route those failures to the stronger approved deployment, retaining the original category evidence and model versions. Verify that the escalated answer meets the required classification schema and that a customer-impacting case can be reviewed by a person when both models remain uncertain. Apply a bounded retry and cost budget; escalation is a fallback for difficult cases, not a mandate to use the expensive model on every easy label. This directly closes the small model's observed high-risk error path while preserving the cost advantage on reliable cases.
Incorrect Answers
B:Confidence thresholds control how many low-confidence cases are escalated and can make a small-model pipeline cheaper when calibrated responsibly. Lowering the threshold solely to reduce escalation also accepts more uncertain predictions, precisely where the current classifier is making mistakes. The organization has an approved stronger model and validated category references. Use measured confidence and disagreement signals to route ambiguous cases for stronger evaluation or human review instead of suppressing the uncertainty.
C:Confidence-based routing is useful when a smaller model handles predictable cases, and low-confidence answers can be escalated. But a model's numeric confidence is not authoritative evidence about the customer's actual account category. A high-confidence wrong label can still conflict with a record. The application should validate labels against the permitted account data and send ambiguous or contradicted cases to the larger qualified model or a controlled exception flow.
D:Longer explanations can make a classifier easier for reviewers to understand, but the number of generated words does not establish whether a category matches the billing record. A wrong label can be accompanied by a persuasive explanation. The failure is concentrated in low-confidence cases, so the team must measure classifier calibration and route those cases to stronger checks. Increasing response length can also increase cost without reducing the material misclassification rate.
Question 146
A model-serving team already selected a supported provisioned-throughput deployment for steady production load. It reserved capacity based only on requests per second, but requests with long retrieved contexts still receive throttles during business-hour peaks. Management asks how to resize the reservation rather than whether to buy it. What should the team measure?
- Increase provisioned model-serving capacity solely by multiplying the expected requests per second by average output tokens, without measuring the unusually large retrieved input context.
- Size the provisioned deployment using monthly average requests-per-second and the model’s maximum nominal context length, without measuring actual peak input/output token use or concurrent long-context requests.
- Scale the existing reservation using average requests per second alone, assuming that every request consumes the same model capacity regardless of retrieved context length.
- Recalculate provisioned capacity from observed input/output tokens, request concurrency, model workload and throttling metrics, then load-test supported capacity changes.
Explanation
Correct Answer
D:Use inference telemetry to measure prompt tokens, completion tokens, sustained/peak token rates, request concurrency, latency and 429 or equivalent throttling under representative long-context workloads. Map those measurements to the selected model's current provisioned-throughput unit and quota guidance, considering deployment region, supported capacity increments and economics. Load-test before and after a supported adjustment and monitor utilization for overflow conditions; capacity units are not interchangeable across models without documented conversion. This scenario assumes a provisioned deployment already exists and asks how to size it correctly, distinct from choosing provisioned versus pay-as-you-go in the first place.
Incorrect Answers
A:Sizing provisioned inference using average output tokens leaves out the input side of the workload, which can dominate token volume when the application attaches large retrieved passages. A stable request count therefore can still generate a capacity or throughput problem as prompt sizes vary. The operator should measure real peak input-plus-output token demand, model/deployment-specific throughput, and headroom, then size provisioned capacity against that demand rather than one convenient average.
B:An average request count and published context limit can provide rough initial planning bounds, but neither indicates the workload’s real prefill, output generation, and concurrency profile during the business-hour burst. A large nominal context window is not consumed on every request. Because throttling correlates with lengthy retrieved context, the sizing decision needs observed token distributions, parallelism, and supported capacity load tests. Average request rate alone can underestimate the required reserved capacity.
C:Requests-per-second is a useful traffic measure and may be sufficient for a first capacity estimate on a very uniform workload. The observed throttling, however, correlates with long retrieved contexts and therefore variable token demand. Two requests can have radically different input/output processing costs. Provisioned throughput must be sized with actual token distributions, concurrency, deployment specifications, and throttling observations. Multiplying request count alone would repeat the same faulty capacity estimate.
Question 147
A repository-review assistant identifies a suspicious Python method call and proposes changing the function name. The method's signature actually changed between library versions, and the codebase pins an older release. A developer wants the reviewer to avoid making confident but incompatible edits. Which evidence should the review workflow use before approving a patch?
- Use the newest method name from a general Python coding example and apply the suggested patch to the pinned project release without checking that release’s actual API signature.
- Inspect the repository's pinned dependency, applicable API signature and tests, then verify the proposed diff against that exact environment.
- Approve the patch when it passes a general code-review benchmark and a clean static linter run, even if no test executes against the repository's pinned dependency version.
- Replace the suspected call with the newest method signature from online documentation, without confirming whether the repository’s pinned older dependency supports that API.
Explanation
Correct Answer
B:Read the lockfile or package pin, inspect the library API available at that version, and compare the proposed method call and arguments with the repository's code context. Apply the diff in a controlled branch, run static checks and targeted tests, and look for behavior changes beyond the requested fix. Retain traceable evidence of which symbols and signatures were verified, especially if the model suggested an API introduced only in a newer release. This is patch-acceptance evidence for the current environment, not just a general choice of a code-capable model. It protects the codebase from confident version-incompatible changes.
Incorrect Answers
A:A code-focused example may demonstrate a legitimate method in a newer library release while the repository intentionally pins an older version with a different interface. Replacing the name blindly can turn a review suggestion into a runtime error. The assistant should inspect the pinned dependency, its versioned API contract and the project's tests before approving a code change. Generic examples cannot establish compatibility with this particular repository.
C:Static linting and broad coding benchmarks provide useful signals about style, common errors and the general performance of a code assistant. Neither demonstrates that a renamed method exists in the specific older package installed in this project. The case describes a version-dependent signature mismatch, so validation must inspect the actual lockfile, compare the proposed call with that API contract and run applicable project tests. A syntactically clean patch can still raise a runtime attribute error on the pinned environment.
D:Current library documentation is valuable for discovering recommended usage and newer fixes, and may help plan an upgrade. It is not automatically compatible with code deliberately pinned to an earlier release. A proposed patch can compile or behave incorrectly if its method arguments changed between versions. Check the installed dependency, version-specific signature and tests for the actual environment before accepting the modification, or include an explicit tested dependency upgrade in the change.
Question 148
An editor has a timestamped training video with five scenes, each accompanied by a reviewed caption. A model changes the wording of a caption for scene three, and a faulty export then overwrites captions for all five scenes. Which editing boundary should the system preserve?
- Treat the entire video's captions as one undifferentiated string and replace all of them whenever any sentence changes.
- Remove timecodes and scene IDs so the generator can choose where each new caption belongs.
- Apply the edit only to scene three's time-addressable caption segment, preserving neighboring segments and validating timeline alignment.
- Regenerate the complete caption timeline from the five-scene script each time one scene changes, then overwrite the approved captions without comparing unchanged scene IDs.
Explanation
Correct Answer
C:Store captions as individual records keyed by scene or segment ID with start/end timestamps, update only the scene-three record, and validate that the resulting caption aligns with the intended visual action. Compare unchanged caption fingerprints and neighboring time boundaries before export so a local wording change cannot silently rewrite the other scenes. Preserve reviewed language and accessibility timing requirements, and verify playback around the edited interval. This tests safe localized timeline editing after media segmentation, not creating a new video or deriving a global summary.
Incorrect Answers
A:A global caption rewrite can unintentionally change other scenes that already passed review. The requirement is a local edit with stable boundaries. Concatenating all captions into one string loses the ability to preserve scene ownership and timing, causing the reported damage. Maintain addressable segment IDs rather than treating every scene as one replaceable document.
B:Timecodes and scene IDs provide the relationship between text and visible events. Removing them would make it harder to place the edited caption correctly and easier to overwrite another scene. The editor already has reviewed captions for four unaffected scenes. The application should protect that context with explicit identifiers and preserve start/end offsets through the export.
D:Regenerating a caption file from a script can be convenient when no prior captions exist and there are no strict review boundaries. Here four of the five scenes already have approved captions and only scene three is affected. Full regeneration risks changing wording or timestamps for unaffected scenes and may lose traceability. The editor must identify and update the precise time-addressable segment, then confirm neighboring captions and their alignment are unchanged.
Question 149
A legal department needs to extract counterparty, terminationDate, governingLaw and an exact citation from contracts. A generic summarizer returns plausible prose but sometimes swaps parties or invents dates. The documents are available through an authorized extraction service. What output contract improves the reliability of this task?
- Use a defined typed extraction schema with required fields, null/uncertain handling and source passage/page references, followed by business validation.
- Use strict structured-output constraints for counterparty, terminationDate and governingLaw, and accept any syntactically valid typed fields without linking them to contract evidence or the correct legal party.
- Prepopulate termination dates from contract file metadata such as creation and upload dates, and accept those as authoritative when the signed clause is absent.
- Use a generic named-entity recognition pass to return organizations and dates, but omit legal-role mapping, required schema validation, and exact clause-level citations.
Explanation
Correct Answer
A:Define explicit fields and value types for counterparty, terminationDate and governingLaw, with required evidence spans or page references for every extracted value. Let the analyzer return null or an uncertainty marker when a contract does not state a date rather than inventing one, and validate party identity, date format and contradictory clauses downstream. Test on contracts with amendments and multiple termination provisions to ensure the cited text actually supports the chosen field. A structured output makes missing values visible and traceable, but it still needs legal review for materially ambiguous language. This is evidence-backed field extraction, not open-ended document summarization.
Incorrect Answers
B:Structured output makes a legal extraction record easier to process, but a syntactically valid counterparty name can still belong to the wrong entity and an ISO-formatted termination date can still be invented. The case explicitly reports role mistakes and unsupported dates. A trustworthy extraction must map fields to actual authorized contract passages, retain precise citations and expose uncertainty when evidence is absent. Field types alone do not prove the legal values are correct.
C:Document metadata can help trace how and when a file entered a repository, and may occasionally correlate with the date of an agreement. It is not proof of a contractual termination date or governing law. A signed clause, amendment, or definition can specify an entirely different legal timeline. The requested extractor must preserve source evidence and represent uncertain fields honestly rather than fill a typed date with unrelated administrative timestamps.
D:Named-entity recognition can identify useful candidate names and dates from contract text, so it can form one component of a larger extraction workflow. By itself it cannot determine which organization is the counterparty, which date controls termination, or which passage supports governing law. The legal department needs a typed, role-aware record with verifiable citations and uncertainty handling. A list of unassigned entity spans would still require the additional contract-specific interpretation and validation.
Question 150
A finance department extracts hundreds of invoice lines from a scanned supplier statement. The service identifies each unit price and quantity, but the stated invoice grand total differs from the sum of the extracted line amounts by 14%. The supplier's original document shows possible discounts and taxes. What validation should run before accepting the extracted totals?
- Prefer the supplier’s printed grand total as authoritative and suppress the reconciliation warning whenever the extraction model assigns high confidence to the total field.
- Recompute line extensions and applicable taxes/discounts from verified fields, reconcile with the stated total, and flag unexplained discrepancies for review.
- Recompute only unit-price multiplied by quantity and reject the supplier’s printed total when it differs, without checking discounts, taxes, shipping charges or rounding shown elsewhere on the statement.
- Compare the supplier-stated grand total only with the sum of recognized line prices, omitting quantities, tax rules, discounts, and rounding before declaring a mismatch.
Explanation
Correct Answer
B:Recalculate quantity times unit price for each extracted line, apply the appropriate documented discount and tax rules, and compare the derived amount with the stated invoice total under a defined currency/rounding tolerance. Inspect lines with low-confidence OCR, missing negative adjustments or ambiguous tax columns, and preserve source cell coordinates so a reviewer can correct the exact discrepancy. If the 14% difference cannot be explained, keep the invoice pending rather than fabricate a balancing adjustment. This uses deterministic arithmetic as a quality gate after extraction, protecting financial approval from plausible but inconsistent model-produced totals.
Incorrect Answers
A:A printed invoice grand total is important source evidence and may indeed be correct when line parsing has omitted taxes or discounts. High OCR confidence means the number was read clearly, not that it agrees with the rest of the statement. A fourteen-percent discrepancy is material and requires arithmetic reconciliation against quantities, unit prices, applicable charges and credits before approval. Automatically suppressing that mismatch would accept a potentially incorrect record without identifying whether the source or extraction was wrong.
C:Recalculating line extensions from extracted quantity and price is an essential control for invoice validation. It is not the complete reconciliation when the original supplier statement includes possible discounts, tax and other adjustments. A difference between line subtotals and grand total may be entirely legitimate or may indicate extraction error. The application needs verified adjustment fields and clear arithmetic rules, with unexplained variance flagged for review rather than an automatic rejection based on a partial formula.
D:Summing line prices is a natural first reconciliation attempt and can expose obvious OCR mistakes on simple invoices. This statement has quantities as well as possible discounts and taxes, so a price-only sum is not the amount owed. The observed fourteen-percent difference may reflect legitimate adjustments or an extraction error. Validate each quantity-times-unit-price extension and applicable adjustments before deciding whether the stated total is unsupported and requires human review.
Developing AI Apps and Agents on Azure (AI-103) Practice Tests