exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 5 question 31 discussion

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

You are building a web application that performs image analysis on user photos and returns metadata containing objects identified. The image analysis is very costly in terms of time and compute resources. You are planning to use Azure Redis Cache so duplicate uploads do not need to be reprocessed.
In case of an Azure data center outage, metadata loss must be kept to a minimum.
You need to configure the Azure Redis cache instance.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. Configure Azure Redis with AOF persistence.
  • B. Configure Azure Redis with RDB persistence.
  • C. Configure second storage account for persistence.
  • D. Set backup frequency to the minimum value.
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

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
finnishr
Highly Voted 2 years, 7 months ago
The key here is "In case of an Azure data center outage, metadata loss must be kept to a minimum." So the correct answer is AC.
upvoted 23 times
carlosfaria82
12 months ago
Which persistence model should I choose? AOF persistence saves every write to a log, which has a significant effect on throughput. Compared AOF with RDB persistence, which saves backups based on the configured backup interval with minimal effect to performance. Choose AOF persistence if your primary goal is to minimize data loss, and you can handle a lower throughput for your cache. Choose RDB persistence if you wish to maintain optimal throughput on your cache, but still want a mechanism for data recovery.
upvoted 2 times
...
ShoaibAnwar
1 year, 1 month ago
Azure Redis Cache does not allow for direct configuration to a second storage account for persistence. Persistence and backup configurations are managed within the service's settings, particularly in the premium tier where you can configure data persistence and backup frequency.
upvoted 1 times
...
Bear_Polar
2 years, 4 months ago
I think this is correct. "RDB is NOT good if you need to minimize the chance of data loss in case Redis stops working". source: https://redis.io/docs/management/persistence/ since the question doesn't mention ZRS for Redis cache, we can use AOF with a 2nd storage to store replica cache data. check the config with AOF: https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-how-to-premium-persistence#set-up-data-persistence
upvoted 5 times
...
...
serpevi
Highly Voted 2 years, 7 months ago
got it 10/09/2022. went with AC. Score 927
upvoted 15 times
dzits
2 years, 5 months ago
Very confused why it's AC if it states on MS website that Zone redundancy doesn't support AOF persistence or work with geo-replication currently. https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-how-to-zone-redundancy (as mentioned by coffecold). I would go with provided answer B,D unless someone can prove why this wouldn't be the case otherwise?
upvoted 2 times
...
...
Iaminall
Most Recent 2 days, 22 hours ago
Selected Answer: AB
A & B are the correct answers
upvoted 1 times
...
Vichu_1607
5 months ago
Selected Answer: AD
A: Configure Azure Redis with AOF persistence. D: Set backup frequency to the minimum value.
upvoted 1 times
...
Stel0Papad4
10 months, 2 weeks ago
Selected Answer: AD
Copilot: While option A (Configure Azure Redis with AOF persistence) is indeed a valid action, option C (Configure second storage account for persistence) is not directly related to the configuration of Azure Redis Cache. Option C suggests setting up a second storage account, which could be part of a broader disaster recovery strategy, but it doesn’t directly affect the configuration of the Azure Redis Cache instance. It’s more about the overall architecture of your application. Therefore, the most appropriate actions to minimize metadata loss in case of an Azure data center outage would be: A. Configure Azure Redis with AOF persistence. D. Set backup frequency to the minimum value. These actions ensure that every write operation is logged and that backups are created as frequently as possible, respectively. This combination provides the best protection against data loss in the event of an outage.
upvoted 1 times
...
OrfeasTsk
1 year, 1 month ago
Selected Answer: AC
In my opinion this question refers to the durability of the data and not to the availability. On the one hand AOF persistence does not support ZRS (availability) but on the other hand AOF persistence ensures the minimum data loss (durability)
upvoted 1 times
...
AndySmith
1 year, 5 months ago
Selected Answer: AC
Technically here could be just 2 valid answer: AC and BD. But, we need to select the option mostly matching the requirements. Since, they ask to minimize data loss (rather than speed of recovery) then AC is the right answer, because: 1) With AOF persistence every write transaction is logged. So, in theory we can recover everything up to the moment of failure. 2) Additionally, we'll enable Secondary Storage for AOF, which will help to restore Redis image if primary zone was fully destroyed. Why RDB is worse? Even if we minimize the period of snapshotting to minimum (15 mins), then we can lose up to 15 mins of data in case of data center outage. Though advantage is that we can restore the snapshot much faster than from the AOF logs. You can find full info about AOF and RDB settings in Azure Redis Cache on this link: https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-how-to-premium-persistence?tabs=premium
upvoted 8 times
...
Dianahu
1 year, 8 months ago
https://redis.io/docs/management/persistence/ Ok, so what should I use? If you care a lot about your data, but still can live with a few minutes of data loss in case of disasters, you can simply use RDB alone.
upvoted 1 times
...
nekkilodeon
1 year, 12 months ago
Selected Answer: BD
B,D is correct Zone redundancy doesn't support AOF persistence or work with geo-replication currently", meaning it shouldn't be A because "In case of an Azure data center outage, metadata loss must be kept to a minimum. https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-how-to-zone-redundancy
upvoted 2 times
...
lh2022
2 years ago
https://learn.microsoft.com/en-us/training/modules/develop-for-azure-cache-for-redis/3-configure-azure-cache-redis The Premium tier allows you to persist data in two ways to provide disaster recovery: RDB persistence takes a periodic snapshot and can rebuild the cache using the snapshot in case of failure. AOF persistence saves every write operation to a log that is saved at least once per second. This creates bigger files than RDB but has less data loss. So AOF has less data loss which satisfies the requirement. So AOF with data written is a second storage account with ZRS should do the job. I would also go with AC
upvoted 2 times
damianadalid
1 year, 11 months ago
Can we just use that second Storage account based in a different region WITHOUT ZRS? That is the main breaking point about not choosing AOF.
upvoted 2 times
damianadalid
1 year, 11 months ago
Even more, the restriction is: "Currently, you can't use Append-only File (AOF) persistence or geo-replication with multiple replicas (more than one replica).". So, as long as we have just one replica set, can we use AOF without issues? https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-how-to-multi-replicas
upvoted 1 times
...
...
...
adilkhan
2 years, 1 month ago
A,C chatGPT!
upvoted 1 times
...
wrak
2 years, 1 month ago
AOF leverage on the second storage account: With AOF persistence enabled, write operations to the cache are saved to the named storage account (or accounts if you've configured a second storage account). If there's a catastrophic failure that takes down both the primary and replica cache, the stored AOF log is used to rebuild the cache.
upvoted 2 times
examtopicsLogin123
6 months, 1 week ago
The same article says that the second storage account is designed to improve perfomance: "Setting up the secondary storage account helps ensure your cache doesn't reach storage bandwidth limits." https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-how-to-premium-persistence But no one prevents us from creating a second account in another region. I agree with AC.
upvoted 1 times
...
...
NombreFalso
2 years, 1 month ago
Goodluck!
upvoted 1 times
...
Sriniv
2 years, 2 months ago
Options C and D are not relevant for this scenario. Configuring a second storage account is not necessary since Redis cache already has persistence options available. Setting backup frequency to minimum value is also not necessary since AOF and RDB persistence options already ensure that data is regularly saved to disk.
upvoted 1 times
...
alexein74
2 years, 2 months ago
Selected Answer: AC
finnishr is right
upvoted 1 times
...
toysky731
2 years, 3 months ago
Selected Answer: AC
finnishr is correct
upvoted 1 times
...
edmond
2 years, 4 months ago
Selected Answer: BD
So many misleading guys, don't answer if you are not sure! Why do you think it's AC? "Zone redundancy doesn't support AOF persistence or work with geo-replication currently", meaning it shouldn't be A because "In case of an Azure data center outage, metadata loss must be kept to a minimum". And it's meaningless to use another storage account so it should not be C.
upvoted 3 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