
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A company has a small Python application that processes JSON documents and outputs the results to an on-premises SQL database. The application runs thousands of times each day. The company wants to move the application to the AWS Cloud. The company needs a highly available solution that maximizes scalability and minimizes operational overhead.
Which solution will meet these requirements?
A
Place the JSON documents in an Amazon S3 bucket. Run the Python code on multiple Amazon EC2 instances to process the documents. Store the results in an Amazon Aurora DB cluster.
B
Place the JSON documents in an Amazon S3 bucket. Create an AWS Lambda function that runs the Python code to process the documents as they arrive in the S3 bucket. Store the results in an Amazon Aurora DB cluster.
C
Place the JSON documents in an Amazon Elastic Block Store (Amazon EBS) volume. Use the EBS Multi-Attach feature to attach the volume to multiple Amazon EC2 instances. Run the Python code on the EC2 instances to process the documents. Store the results on an Amazon RDS DB instance.
D
Place the JSON documents in an Amazon Simple Queue Service (Amazon SQS) queue as messages. Deploy the Python code as a container on an Amazon Elastic Container Service (Amazon ECS) cluster that is configured with the Amazon EC2 launch type. Use the container to process the SQS messages. Store the results on an Amazon RDS DB instance.
Explanation:
Correct Answer: B
Why Option B is correct:
Why other options are incorrect:
Option A: Using multiple EC2 instances requires manual scaling, load balancing, and infrastructure management, increasing operational overhead. EC2 instances need patching, monitoring, and scaling configuration.
Option C: EBS Multi-Attach with EC2 instances is complex, not designed for document processing, and creates a single point of failure. EBS volumes are block storage, not optimal for JSON document storage compared to S3.
Option D: While ECS with EC2 launch type can scale, it requires managing EC2 instances, containers, and scaling policies. This has higher operational overhead than serverless Lambda.
Key AWS Services Used:
This solution provides the best combination of high availability, scalability, and minimal operational overhead.