Question 282:
Your company has developed a Serverless web and mobile application that allows users to upload and monetize video courses. The application uses the API Gateway and Lambda as the front-end stack and uses MongoDB as the database. All the video contents are stored in the S3 and served via the CloudFront. The MongoDB is hosted outside of the AWS environment as a 3rd party database service. After the initial launch, the company started receiving performance-related issues for some of its popular courses.
Answer options:
A.Use the DynamoDB instead of MongoDB as it provides better scalability and performance. B.Migrate the MongoDB from outside of the AWS to inside the AWS. This will reduce the additional latency required to connect with the database from the AWS environment. C.Integrate the AWS X-Ray and create a segment around the MongoDB connections to measure actual latency per request. D.Use ElastiCache to cache the popular or frequently used courses data to reduce the interaction with the database. E.Use the AWS SQS in front of the database connection to decouple the application with direct database connectivity.