Soru

Zorluk: KolayDatabase and Storage Strategy

A startup is designing a new web application that allows users to upload profile pictures and view their user profile details. The profile photos are unstructured files up to 5 MB5\text{ MB} in size, and the profile details consist of structured, schema-flexible data. The application requires a storage and database strategy that is highly available, cost-effective, and automatically scales to handle highly variable read traffic. Which two database and storage configurations should the solutions architect choose to meet these requirements?

  1. Store user profile photos in Amazon S3 and serve them via Amazon CloudFront.Cevap
  2. Store user profile details in Amazon DynamoDB with on-demand capacity mode.Cevap
  3. C
    Deploy Amazon RDS for MySQL in a Multi-AZ configuration, and configure the web application to query the standby instance directly to scale read performance.
  4. D
    Use Amazon ElastiCache for Memcached to store user session data that requires persistent, multi-Availability Zone replication.
  5. E
    Encrypt the S3 bucket containing public profile photos using an AWS-managed KMS key (aws/s3) and modify its key policy to allow cross-account access.

Cevap

Store user profile photos in Amazon S3 and serve them via Amazon CloudFront, and store user profile details in Amazon DynamoDB with on-demand capacity mode.
Storing unstructured images in Amazon S3 combined with Amazon CloudFront provides highly available, low-latency, and cost-effective object delivery. Storing key-value user profile details in Amazon DynamoDB with on-demand capacity mode ensures that the database scales automatically with traffic fluctuations without manual provisioning.

Adım Adım Çözüm

1
Analyze the storage requirements for unstructured user profile photos.
Identify that files up to 5 MB5\text{ MB} are unstructured object data, making Amazon S3 the optimal and most cost-effective service, especially when combined with Amazon CloudFront for low-latency distribution.
Amazon S3 provides durable, scale-out object storage designed for unstructured content like images.
2
Analyze the database requirements for structured, variable-demand profile details.
Identify that schema-flexible key-value data with highly variable workloads maps directly to Amazon DynamoDB using on-demand capacity mode.
DynamoDB scales seamlessly and on-demand mode eliminates the need to pre-provision capacity, which fits variable traffic patterns.
3
Evaluate the architectural validity of the remaining options.
Rule out options that attempt to query RDS Multi-AZ standbys, use Memcached for persistent replication, or modify AWS-managed KMS key policies.
RDS standby instances do not accept traffic, Memcached lacks persistence/replication, and AWS-managed KMS key policies cannot be modified.

Anahtar Kavram

Selecting the optimal database and storage services based on unstructured object vs. structured key-value data patterns, while understanding scaling limits of standbys, caching engines, and KMS keys.
Tahmini Süre:1m 30s
Bu soruyu puanla