exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 5 question 54 discussion

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

You have a Standard tier instance of Azure Cache for Redis named redis1 configured with the default settings.

You need to configure a Maxmemory policy to increase the amount of cache available for read operations.

How should you configure the Maxmemory policy?

  • A. Decrease the value of maxmemory-reserved.
  • B. Increase the value of maxmemory-reserved.
  • C. Set the Maxmemory policy to noeviction.
  • D. Set the Maxmemory policy to volatile-lru.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
sonnov24
Highly Voted 5 months, 3 weeks ago
Selected Answer: A
https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-best-practices-memory-management Microsoft: "The maxmemory-reserved setting configures the amount of memory, in MB per instance in a cluster, that is reserved for non-cache operations, such as replication during failover. Setting this value allows you to have a more consistent Redis server experience when your load varies. This value should be set higher for workloads that write large amounts of data. When memory is reserved for such operations, it's unavailable for storage of cached data."
upvoted 5 times
...
emma09
Most Recent 2 months, 4 weeks ago
Selected Answer: D
You need to configure a Maxmemory policy... I go with D
upvoted 1 times
...
bbc9a52
3 months, 2 weeks ago
Selected Answer: D
Answer: D. Set the Maxmemory policy to volatile-lru. Explanation: The Maxmemory policy determines how Redis handles keys when memory reaches the configured maximum limit.
upvoted 1 times
florianwicher
2 months, 3 weeks ago
The question explicitly asks how to increase the amount of space available; also, volatile-lru is the default setting for maxmemory-policy, and the question explicitly tells us that we have defaults set. I would go with A instead.
upvoted 1 times
...
Zezere
3 months, 1 week ago
Are you learning thse days?
upvoted 1 times
...
...
Vichu_1607
5 months, 2 weeks ago
Selected Answer: D
D. Set the Maxmemory policy to volatile-lru.
upvoted 2 times
...
Mattt
6 months ago
Selected Answer: D
Setting the Maxmemory policy to volatile-lru will allow the cache to evict the least recently used keys with expiration, which helps increase available cache space for read operations by prioritizing frequently accessed data.
upvoted 3 times
...
lincio96
6 months, 1 week ago
Selected Answer: A
I'd choose A because: Decreasing maxmemory-reserved (option A) directly increases the amount of memory available for storing cached data by reducing the memory reserved for Redis internal operations. This effectively increases the available memory for both read and write operations. While you need to be cautious not to reduce it too much (to avoid stability issues), this option provides more memory for caching data, which helps with read operations.
upvoted 4 times
lincio96
6 months, 1 week ago
(Option B) is incorrect because increasing maxmemory-reserved reduces the memory available for caching data, which would decrease the space available for reads. (Option C) is not appropriate because setting the Maxmemory policy to noeviction stops Redis from evicting any data. While this ensures no data is lost due to eviction, it also means that once the cache is full, new data can’t be added, reducing cache efficiency for both reads and writes. (Option D), which sets the Maxmemory policy to volatile-lru, is likely already the default policy in the Standard tier. It evicts less frequently accessed data with an expiration, optimizing memory usage. However, this doesn’t increase the total available memory for read operations, especially if the current policy is already set to an eviction-based policy like volatile-lru. Sorry for not providing a doc link.
upvoted 1 times
...
...
_tharindus
6 months, 2 weeks ago
Selected Answer: C
Set the Maxmemory policy to noeviction
upvoted 1 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