Soru

Zorluk: KolayHigh-Performing Database Solutions

A solutions architect is designing a high-performance database tier for a web application. The application requires a caching layer to reduce read latency of frequently accessed database queries to sub-milliseconds. Additionally, the application requires a key-value database to store user session data that can scale dynamically to support high write volume without performance degradation. Which two actions should the solutions architect take to meet these requirements? (Select TWO.)

  1. Deploy an Amazon ElastiCache cluster to cache frequently accessed read queries.Cevap
  2. Design Amazon DynamoDB tables using partition keys with high cardinality, such as a unique user ID.Cevap
  3. C
    Create Amazon RDS Read Replicas and configure them as the primary targets for automatic disaster recovery write failover.
  4. D
    Design Amazon DynamoDB tables using a monotonically increasing sequence or timestamp as the partition key.
  5. E
    Configure AWS Lambda functions to run continuously to buffer and write incoming session data to Amazon S3.

Cevap

Deploying an Amazon ElastiCache cluster to cache read queries and designing Amazon DynamoDB tables using a partition key with high cardinality.
The correct options are deploying an Amazon ElastiCache cluster and using partition keys with high cardinality for DynamoDB tables. ElastiCache is an in-memory caching service that reduces read latency to sub-milliseconds. High cardinality partition keys in DynamoDB ensure even write distribution across partitions, avoiding write throttling.

Adım Adım Çözüm

1
Analyze the read caching requirement.
Identify that ElastiCache provides sub-millisecond caching to offload reads from databases.
The requirement specifies sub-millisecond read latency for frequently accessed database queries, which is a classic use case for an in-memory cache like ElastiCache.
2
Analyze the key-value database and write scaling requirements.
Identify that Amazon DynamoDB tables should be designed with high cardinality partition keys to prevent hot partitions.
DynamoDB is a high-performance key-value database. A partition key with high cardinality distributes the write throughput across multiple partition keys, preventing write throttling.

Anahtar Kavram

High-performing database architectures using in-memory caching (ElastiCache) and proper partitioning strategies in NoSQL databases (DynamoDB) to optimize read and write latency.
Bu soruyu puanla