A retail company is launching a promotional website for a new product line. The website serves static content and retrieves product catalog information via an API. The website traffic is highly unpredictable, with extreme spikes during marketing campaigns and long periods of inactivity. Additionally, a nightly inventory synchronization process runs continuously for hours to update the catalog database. The company wants to design a serverless architecture that minimizes costs, especially during idle periods, while scaling automatically.
Which architecture should a solutions architect recommend to meet these requirements?
- Host static content on Amazon S3 with an Amazon CloudFront distribution, use Amazon API Gateway with AWS Lambda for the API, run the nightly inventory sync as an Amazon ECS task on AWS Fargate, and store product catalog data in Amazon DynamoDB configured in on-demand capacity mode.Cevap
- BHost static content on Amazon S3 with an Amazon CloudFront distribution, use Amazon API Gateway with a scheduled AWS Lambda function running a continuous loop for hours to process the nightly inventory sync, and store product catalog data in Amazon DynamoDB configured in on-demand capacity mode.
- CHost static content on Amazon S3 with an Amazon CloudFront distribution, use Amazon API Gateway with AWS Lambda for the API, run the nightly inventory sync as an Amazon ECS task on AWS Fargate, and store product catalog data in Amazon DynamoDB configured in provisioned capacity mode.
- DHost static content on Amazon S3 with an Amazon CloudFront distribution configured with a Time to Live (TTL) of for all cache behaviors, use Amazon API Gateway with AWS Lambda for the API, run the nightly inventory sync as an Amazon ECS task on AWS Fargate, and store product catalog data in Amazon DynamoDB configured in on-demand capacity mode.
Cevap
Host static content on Amazon S3 with an Amazon CloudFront distribution, use Amazon API Gateway with AWS Lambda for the API, run the nightly inventory sync as an Amazon ECS task on AWS Fargate, and store product catalog data in Amazon DynamoDB configured in on-demand capacity mode.
The correct solution recommends Amazon S3 and Amazon CloudFront for static hosting, AWS Lambda and Amazon API Gateway for lightweight API requests, Amazon ECS on AWS Fargate for the -hour inventory sync, and Amazon DynamoDB in on-demand capacity mode. This aligns the billing model of each service with the workload profile: compute costs scale to zero during idle periods, the long-running inventory task runs safely without timeout limits, and database costs reflect actual request volume rather than provisioned capacity.
Adım Adım Çözüm
Anahtar Kavram
Selecting cost-optimized compute, integration, and database services by aligning performance profiles with automated scaling and serverless architectures.
Tahmini Süre:1m 30s