exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 5 question 26 discussion

Actual exam question from Microsoft's AZ-204
Question #: 26
Topic #: 5
[All AZ-204 Questions]

You are developing a web application that uses Azure Cache for Redis. You anticipate that the cache will frequently fill and that you will need to evict keys.
You must configure Azure Cache for Redis based on the following predicted usage pattern: A small subset of elements will be accessed much more often than the rest.
You need to configure the Azure Cache for Redis to optimize performance for the predicted usage pattern.
Which two eviction policies will achieve the goal?
NOTE: Each correct selection is worth one point.

  • A. noeviction
  • B. allkeys-lru
  • C. volatile-lru
  • D. allkeys-random
  • E. volatile-ttl
  • F. volatile-random
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

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
sghaha
Highly Voted 3 years ago
my choices are BC
upvoted 12 times
qwerty112233
2 years, 7 months ago
agree!
upvoted 3 times
...
...
alexein74
Highly Voted 2 years, 3 months ago
Selected Answer: BC
B. allkeys-lru C. volatile-lru allkeys-lru : This eviction policy evicts the least recently used (LRU) key among all keys, regardless of the key's time-to-live (TTL) value. This policy is suitable when you have a small subset of elements that will be accessed much more often than the rest, as the most frequently used elements will be kept in cache while the least frequently used elements will be evicted. volatile-lru: This eviction policy evicts the least recently used (LRU) key among keys with an expiring TTL. This policy is suitable when you have a small subset of elements that will be accessed much more often than the rest and also when you want to expire keys that are not used frequently.
upvoted 11 times
...
Vichu_1607
Most Recent 5 months, 1 week ago
Selected Answer: BC
B: allkeys-lru C: volatile-lru
upvoted 1 times
...
alinuxguru70
1 year, 7 months ago
allkeys-lru would include volatile-lru, it is redundant. Therefore B allkeys-lru and E volatile-ttl.
upvoted 2 times
1CY1
10 months, 2 weeks ago
volatile-ttl: Removes keys with expire field set to true and the shortest remaining time-to-live (TTL) value. Use the volatile-ttl if you want to be able to provide hints to Redis about what are good candidate for expiration by using different TTL values when you create your cache objects. Not seeing how expire field is set to true here?
upvoted 1 times
...
...
Ciupaz
1 year, 7 months ago
"least recently used", not "less recently used". Take care.
upvoted 2 times
...
AymanAkk
2 years, 4 months ago
Selected Answer: BC
correct answers.
upvoted 1 times
...
KingChuang
2 years, 4 months ago
On my exam 2022-12-26. Chose:B、C
upvoted 3 times
...
OPT_001122
2 years, 4 months ago
Selected Answer: BC
B. allkeys-lru C. volatile-lru
upvoted 2 times
...
ExamTopicsAnkur
2 years, 4 months ago
Selected Answer: BC
https://redis.io/docs/reference/eviction/
upvoted 3 times
...
TheExamMaster2020
2 years, 5 months ago
Did my exam on 15th November 2022. This question was on it.
upvoted 5 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