exam questions

Exam AWS Certified Database - Specialty All Questions

View all questions & answers for the AWS Certified Database - Specialty exam

Exam AWS Certified Database - Specialty topic 1 question 280 discussion

Exam question from Amazon's AWS Certified Database - Specialty
Question #: 280
Topic #: 1
[All AWS Certified Database - Specialty Questions]

A media company hosts a highly available news website on AWS but needs to improve its page load time, especially during very popular news releases. Once a news page is published, it is very unlikely to change unless an error is identified. The company has decided to use Amazon ElastiCache.

What is the recommended strategy for this use case?

  • A. Use ElastiCache for Memcached with write-through and long time to live (TTL)
  • B. Use ElastiCache for Redis with lazy loading and short time to live (TTL)
  • C. Use ElastiCache for Memcached with lazy loading and short time to live (TTL)
  • D. Use ElastiCache for Redis with write-through and long time to live (TTL)
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
koki2847
1 year, 1 month ago
Selected Answer: B
B is answer. Write through means low availability while providing fresh data, so A and D are out. Memcached is incorrect in terms of HA, because it doesn't have replication feature and would lose data when node failure occur. There's an exception, though. If Memcached is severless, C would be answer. It supports replication https://aws.amazon.com/blogs/aws/amazon-elasticache-serverless-for-redis-and-memcached-now-generally-available/
upvoted 1 times
...
zanhsieh
1 year, 9 months ago
Selected Answer: C
C. Noted that: 1. The news website needs HA, not the cache system. 2. Write-though can't rescue node failure or scaling out, whereas lazy-loading stale data can be overcome by adding TTL. 3. Simpler, easy to scale out goes to Memcached; complex and fancy features goes to Redis. So A and D dropped because no write-though. Pick C and drop B due to simpler, scale-out architecture. https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/SelectEngine.html https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/Strategies.html
upvoted 1 times
...
aviathor
1 year, 12 months ago
It does not matter if you lose a Memcached node - any data lost will be reloaded from the source. You do not need replication of data offered by Redis. "Short TTL" is a relative term. A new story is newsworthy 24 hrs? Is that short enough to qualify as short? How long is a long TTL?
upvoted 1 times
...
aviathor
1 year, 12 months ago
Selected Answer: C
This is not an easy one... One has to choose between * Redis or Memcached * write-through and long TTL, or short TTL with lazy loading I'll choose lazy loading because there is no way of saying whether an article will be popular I'll choose Memcached because there is no need for complex data structures and Memcached scales better vertically.
upvoted 2 times
...
dougporto1988
2 years, 1 month ago
Selected Answer: D
A long time to live (TTL) is recommended in this scenario because news pages are unlikely to change frequently. Setting a long TTL will allow the cached data to be reused for a longer period, reducing the number of requests to the database and improving page load times. Therefore, the correct answer is D. Use ElastiCache for Redis with write-through and long time to live (TTL).
upvoted 2 times
...
jpj
2 years, 2 months ago
Selected Answer: D
D. Use ElastiCache for Redis with write-through and long time to live (TTL). The use case requires improving the page load time of a highly available news website, especially during popular news releases, where there is a high level of traffic. ElastiCache can help in achieving this by caching frequently accessed data in-memory, reducing the number of requests to the database and improving the overall performance of the website. Redis is recommended for this use case because it provides better performance for read-intensive workloads and has more advanced features for caching, such as write-through caching. Write-through caching ensures that any changes made to the data in the cache are also written back to the database, ensuring data consistency.
upvoted 4 times
...
milofficial
2 years, 3 months ago
Selected Answer: D
long time to live as the articles are unlikely to change. Redis over Memcached, as it supports a wider range of data structures.
upvoted 2 times
...
lollyj
2 years, 4 months ago
Selected Answer: A
Why not Memcache though? Can someone please explain?
upvoted 2 times
Mintwater
2 years, 1 month ago
I agree with A. We need to look at the difference between Memcache and Redis: Memcache for simple value return, but redis for complex data model.
upvoted 1 times
...
mawsman
2 years, 1 month ago
Because the requirement is for highly available site - Memcached can not be made highly available out of the box, Redis can.
upvoted 1 times
...
...
parle101
2 years, 4 months ago
D is the answer - Since the news is not likely to change it will be there once it is written and with long TTL it will be there for longer time.
upvoted 1 times
...
catboy
2 years, 5 months ago
D right answer
upvoted 1 times
Sab
2 years, 5 months ago
With Write through, if a node goes down it won't cache again until there is a write operation. So if the pages are not modified, caching won't happen. Also, with Write-Through, all the writes will be cached and it can reason for memory being used be less frequently accessed pages. High TTL can further increase that problem.
upvoted 1 times
...
...
Sab
2 years, 5 months ago
Selected Answer: B
Elasticache for redis since application needs to be highly available. Memcache dont have HA. Lazy Writing since there is no much modifications expected on page.
upvoted 3 times
khun
2 years, 5 months ago
How about the short TTL?
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago