Question 170
An AWS developer is designing a production GenAI workflow. Requirement: A model processing supplier statements fails when the request uses malformed Bedrock message roles. Which design decision addresses the requirement most directly?
Explanation
Correct Answer
Bedrock model messages are structured API inputs rather than arbitrary concatenated strings. This is the action that directly meets the stated design requirement. Acceptance evidence: A valid role/content message succeeds and malformed blocks fail application validation.
Incorrect Answers
The alternative addresses: An FM cannot reliably infer exchange rates or financial meaning from ambiguous numbers. The reported constraint here is different: Bedrock model messages are structured API inputs rather than arbitrary concatenated strings. The case-specific choice is: Validate the supported Converse request schema, content block types and message roles before invocation.
Flattening images into filenames loses visual evidence and structured metadata. By contrast, the relevant technical condition here is: Bedrock model messages are structured API inputs rather than arbitrary concatenated strings. The appropriate selection is: Validate the supported Converse request schema, content block types and message roles before invocation.
That option concerns: Privacy controls belong before the model boundary and must retain necessary operational provenance. The current question instead depends on: Bedrock model messages are structured API inputs rather than arbitrary concatenated strings. The directly supported result is: Validate the supported Converse request schema, content block types and message roles before invocation.