Question #851

A web application runs on Amazon EC2 instances behind an ELB Application Load Balancer. The instances run in an EC2 Auto Scaling group across multiple Availability Zones. Data is stored in Amazon DynamoDB tables. The application records how many times each operation is invoked in a DynamoDB table, with each operation having a corresponding item containing an operation ID and a count of invocations. All application logs are streamed to Amazon CloudWatch Logs using the unified CloudWatch agent. During a recent audit, the number of GET requests recorded in the ELB access logs were much higher than the count of GET invocations in the DynamoDB table. While investigating this issue, a Solutions Architect enabled debug logging for the application and saw the following statements in the application log: 2018-11-03 11:20:20.23 DEBUG "Retrieved GET count: 23" 2018-11-03 11:20:20.26 DEBUG "Saved incremented GET count: 24" 2018-11-03 11:20:23.45 DEBUG "Retrieved GET count: 24" 2018-11-03 11:20:23.48 DEBUG "Saved incremented GET count: 25" 2018-11-03 11:20:27.56 DEBUG "Retrieved GET count: 25" 2018-11-03 11:20:27.57 DEBUG "Retrieved GET count: 25" 2018-11-03 11:20:27.59 DEBUG "Saved incremented GET count: 26" 2018-11-03 11:20:27.60 DEBUG "Saved incremented GET count: 26" 2018-11-03 11:20:30.43 DEBUG "Retrieved GET count: 26" 2018-11-03 11:20:30.46 DEBUG "Saved incremented GET count: 27" How should the Solutions Architect fix the application?

问题反馈