Q177. A Solutions Architect is responsible for redesigning a legacy Java application to improve its availability data durability and scalability. Currently the application runs on a single high- memory Amazon EC2 instance. It a

欢迎免费使用小程序搜题/刷题/查看解析,提升学历,成考自考报名,论文代写、论文查重请加客服微信skr-web


Q177. A Solutions Architect is responsible for redesigning a legacy Java application to improve its availability data durability and scalability. Currently the application runs on a single high- memory Amazon EC2 instance. It accepts HTTP requests from upstream clients adds them to an in-memory queue and responds with a 200 status. A separate application thread reads items from the queue processes them and persists the results to an Amazon RDS MySQL instance. The processing time for each item takes 90 seconds on average. most of which is spent waiting on external service calls but the application is written to process multiple items in parallel.Traffic to this service is unpredictable. During periods of high load items may sit in the internal queue for over an hour while the application processes the backing. In addition the current system has issues with availability and data if the single application node fails.Clients that access this service cannot be modified. They expect to receive a response to each HTTP request they send within 10 seconds before they will time out and retry the request.Which approach would improve the availability and durability of the system while decreasing the processing latency and minimizing costs?

A.Create an Amazon API Gateway REST API that uses Lambda proxy integration to pass requests to an AWS Lambda function. Migrate the core processing code to a Lambda function and write a wrapper class that provides a handler method that converts the proxy events to the internal application data model and invokes the processing module.
B.Create an Amazon API Gateway REST API that uses a service proxy to put items in an Amazon SQS queue. Extract the core processing code from the existing application and update it to pull items from Amazon SQS queue. Extract the core processing code from the existing application and update it to pull items from Amazon SQS instead of an in-memory queue. Deploy the new processing application to smaller EC2 instances within an Auto Scaling group that scales dynamically based on the approximate number of messages in the Amazon SQS queue.
C.Modify the application to use Amazon DynamoDB instead of Amazon RDS. Configure Auto Scaling for the DynamoDB table. Deploy the application within an Auto Scaling group with a scaling policy based on CPU utilization. Back the in- memory queue with a memory-mapped file to an instance store volume and periodically write that file to Amazon S3.
D.Update the application to use a Redis task queue instead of the in-memory queue. Build a Docker container image for the application. Create an Amazon ECS task definition that includes the application container and a separate container to host Redis. Deploy the new task definition as an ECS service using AWS Fargate and enable Auto Scaling.
正确答案B
访客
邮箱
网址

通用的占位符缩略图

人工智能机器人,扫码免费帮你完成工作


  • 自动写文案
  • 自动写小说
  • 马上扫码让Ai帮你完成工作
通用的占位符缩略图

人工智能机器人,扫码免费帮你完成工作

  • 自动写论文
  • 自动写软件
  • 我不是人,但是我比人更聪明,我是强大的Ai
Top