nerdexam
Amazon

AIP-C01 · Question #82

A financial services company needs to build a document analysis system that uses Amazon Bedrock to process quarterly reports. The system must analyze financial data, perform sentiment analysis, and…

The correct answer is B. Use AWS Step Functions with a Parallel state to invoke separate AWS Lambda functions for. Sequential processing of 5 reports takes 45 seconds. To finish within 10 seconds, the reports must be processed concurrently. AWS Step Functions Parallel state launches multiple execution branches simultaneously, allowing all 5 reports to be processed at the same time. If each…

Deployment, Operations, and Optimization

Question

A financial services company needs to build a document analysis system that uses Amazon Bedrock to process quarterly reports. The system must analyze financial data, perform sentiment analysis, and validate compliance across batches of reports. Each batch contains 5 reports. Each report requires multiple foundation model (FM) calls. The solution must finish the analysis within 10 seconds for each batch. Current sequential processing takes 45 seconds for each batch. Which solution will meet these requirements?

Options

  • AUse AWS Lambda functions with provisioned concurrency to process each analysis type
  • BUse AWS Step Functions with a Parallel state to invoke separate AWS Lambda functions for
  • CCreate an Amazon SQS queue to buffer analysis requests. Deploy multiple AWS Lambda
  • DDeploy an Amazon ECS cluster that runs containers that process each report sequentially. Use a

How the community answered

(35 responses)
  • A
    11% (4)
  • B
    57% (20)
  • C
    6% (2)
  • D
    26% (9)

Explanation

Sequential processing of 5 reports takes 45 seconds. To finish within 10 seconds, the reports must be processed concurrently. AWS Step Functions Parallel state launches multiple execution branches simultaneously, allowing all 5 reports to be processed at the same time. If each report takes roughly 9 seconds sequentially, parallel execution completes all 5 in approximately 9 seconds, meeting the 10-second requirement. Each branch can invoke dedicated Lambda functions for financial analysis, sentiment analysis, and compliance validation. Step Functions also provides built-in error handling and retry logic. Option A with Lambda provisioned concurrency does not inherently parallelize report processing. Option C (SQS queue) adds queuing overhead. Option D (ECS sequential) does not reduce total time below the sequential baseline.

Topics

#Workflow orchestration#Parallel processing#Performance optimization#Serverless architecture

Community Discussion

No community discussion yet for this question.

Full AIP-C01 Practice