AWS Certified Generative AI – Professional (AIP-C01) — Question 70

A company is creating a workflow to review customer-facing communications before the company sends the communications. The company uses a pre-defined message template to generate the communications and stores the communications in an Amazon S3 bucket. The workflow needs to capture a specific portion from the template and send it to an Amazon Bedrock model. The workflow must store model responses back to the original S3 bucket.
Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

Option B is correct because it utilizes AWS Step Functions to manage the workflow, effectively retrieving, parsing, and storing data with integrated S3 actions. The other options either do not provide the structured workflow management required or involve unnecessary complexity, such as the multiple Lambda functions in option D, which is less efficient than the direct integration in option B.