Q40 — AWS DOP-C02 Ch.2

Question 40 of 100 | ← Chapter 2

A company operates an application that monitors customer activity on its website and mobile app. The application uses Amazon ElastiCache for Redis as a write-through cache and Amazon RDS for PostgreSQL for longer-term storage. When the application receives requests to record customer actions, it writes synchronously to both the Redis cluster and the database. The recommendation application uses this data to generate content recommendations for each customer. During peak hours, the recommendation application fails to generate recommendations due to stale or missing data. The Redis cache is configured without cluster mode enabled, and the database is configured with a single read replica. The company wants to ensure the recommendation application can generate content recommendations during peak hours. A DevOps engineer has already created a new ElastiCache cluster with cluster mode enabled.

Correct Answer: A. Create a target tracking scaling policy for the ElastiCachePrimaryEngineCPUUtilization metric of the Redis cluster. Configure the scaling policy to add and remove shards from the Redis cluster. Update the recommendation application to use the cluster configuration endpoint to access Redis.

Explanation

https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Endpoints.html