exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 3 question 3 discussion

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

HOTSPOT -
You are developing a ticket reservation system for an airline.
The storage solution for the application must meet the following requirements:
✑ Ensure at least 99.99% availability and provide low latency.
✑ Accept reservations even when localized network outages or other unforeseen failures occur.
✑ Process reservations in the exact sequence as reservations are submitted to minimize overbooking or selling the same seat to multiple travelers.
✑ Allow simultaneous and out-of-order reservations with a maximum five-second tolerance window.
You provision a resource group named airlineResourceGroup in the Azure South-Central US region.
You need to provision a SQL API Cosmos DB account to support the app.
How should you complete the Azure CLI commands? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: BoundedStaleness -
Bounded staleness: The reads are guaranteed to honor the consistent-prefix guarantee. The reads might lag behind writes by at most "K" versions (that is,
"updates") of an item or by "T" time interval. In other words, when you choose bounded staleness, the "staleness" can be configured in two ways:
The number of versions (K) of the item
The time interval (T) by which the reads might lag behind the writes
Incorrect Answers:

Strong -
Strong consistency offers a linearizability guarantee. Linearizability refers to serving requests concurrently. The reads are guaranteed to return the most recent committed version of an item. A client never sees an uncommitted or partial write. Users are always guaranteed to read the latest committed write.
Box 2: --enable-automatic-failover true\
For multi-region Cosmos accounts that are configured with a single-write region, enable automatic-failover by using Azure CLI or Azure portal. After you enable automatic failover, whenever there is a regional disaster, Cosmos DB will automatically failover your account.
Question: Accept reservations event when localized network outages or other unforeseen failures occur.
Box 3: --locations'southcentralus=0 eastus=1 westus=2
Need multi-region.
Reference:
https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/cosmos-db/manage-with-cli.md

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
sasisang
Highly Voted 4 years, 5 months ago
Answer is correct.
upvoted 73 times
cbn
4 years, 2 months ago
Last option is correct as well https://stackoverflow.com/questions/51197375/creating-cosmosdb-with-azure-cli-in-powershell
upvoted 7 times
cbn
4 years, 2 months ago
I guess there is a typo on quotes though.
upvoted 5 times
...
...
...
ning
Highly Voted 3 years, 9 months ago
No need to overthink here, max-interval, indicates this must be bounded-slateness, enable-automatic-failover, indicated this must be multi-region
upvoted 65 times
OPT_001122
2 years, 4 months ago
this is best explanation
upvoted 2 times
...
...
examtopics44556677
Most Recent 1 year, 1 month ago
Confused how most of the people here scored same score - 927. I see 927 everywhere.
upvoted 4 times
0cc50bf
8 months, 2 weeks ago
Bots, buddy. They're bots.
upvoted 2 times
...
...
jakobste
1 year, 8 months ago
It's important to carefully read the entire question.
upvoted 3 times
...
Dianahu
1 year, 9 months ago
I think that enable-automatic-failover = true option does not make any sense without other regions specified but given syntax for regions and priorities is wrong and does not work
upvoted 1 times
...
Dats1987
2 years ago
I think ans should be using chat gpt: 1. Eventual : maintain high availability and low latency 2. enable-automatic-failover = true 3. locations "South Central US"=0 : This is primary region
upvoted 2 times
IvanIco
1 year, 10 months ago
Eventual is definitely not correct
upvoted 10 times
...
...
AzSimuz
2 years, 1 month ago
BoundedStaleness doesn't guarantee the order of the order, that's session consistency. Where am I wrong?
upvoted 2 times
...
Esward
2 years, 2 months ago
It was there in 13 Feb 2023 exam
upvoted 5 times
...
mdg3501
2 years, 4 months ago
got this on 2022-12-7
upvoted 2 times
...
leandrocantiero
3 years, 1 month ago
esse aqui ta tudo errado
upvoted 4 times
...
glam
3 years, 11 months ago
correct
upvoted 2 times
...
crepatata
4 years ago
The strong consistency doesn't work here: 1) there is a --max-interval property which is being used with bounded staleness only 2) there is a requirement "Accept reservations event when localized network outages or other unforeseen failures occur." which points us to multiple writes for multiple regions which is not being supported by the Strong consistency. --locations syntax looks like obsolete as for late march 2021
upvoted 11 times
Spooky7
3 years, 11 months ago
Ad. 2 - it is not true that it implies writes to multiple regions. In this case there is single write region with automatic failover configured (which provides write availability). Besides with write to multiple regions BoundedStaleness minimum time is 300 seconds, while requirement is 5 seconds (which is actually a minimum for BoundedStaleness with single write region)
upvoted 3 times
...
...
Ralph
4 years ago
Answer is wrong .. "strong" instead of "boundedStaleness"
upvoted 4 times
TakumaK
3 years, 11 months ago
Are you sure? If then, elaborate why. Does this option --max-interval work for strong?
upvoted 8 times
...
...
[Removed]
4 years, 3 months ago
I think this should be "locations southcentralus". The requirement for 99.99% availability is covered by a single region and the syntax for providing multiple regions is wrong. https://docs.microsoft.com/en-us/azure/cosmos-db/high-availability https://docs.microsoft.com/en-us/cli/azure/cosmosdb?view=azure-cli-latest#az_cosmosdb_check_name_exists-optional-parameters
upvoted 3 times
agcertif
4 years, 3 months ago
I agree with you.... 99,99 can be reached with only one region. Why it's not the right solution (someone can helps please) ?
upvoted 3 times
Brak
4 years, 3 months ago
Because of the need for high availability during local network outages. Hence the auto failover selection.
upvoted 5 times
...
...
NikB
4 years, 2 months ago
Agreed, also according to the documentation, multiple regions have a min T of 300s: "For a single region account, the minimum value of K and T is 10 write operations or 5 seconds. For multi-region accounts the minimum value of K and T is 100,000 write operations or 300 seconds."
upvoted 2 times
...
...
RaviKS
4 years, 3 months ago
Given Answer is Correct
upvoted 4 times
...
tomis
4 years, 3 months ago
--locations : Add a location to the Cosmos DB database account. Usage: --locations KEY=VALUE [KEY=VALUE ...] Required Keys: regionName, failoverPriority Optional Key: isZoneRedundant Default: single region account in the location of the specified resource group. Failover priority values are 0 for write regions and greater than 0 for read regions. A failover priority value must be unique and less than the total number of regions. Multiple locations can be specified by using more than one `--locations` argument.
upvoted 8 times
diligent176
4 years, 3 months ago
You are correct about this - none of the given options will work (all wrong syntax). But I think they "meant" to use the 3 regions answer.
upvoted 4 times
...
...
Cornholioz
4 years, 4 months ago
Tried the CLI in the portal's Cloud Shell: --locations has wrong syntax in the options. az cosmosdb create -n myaccount4 --enable-automatic-failover true --max-interval 5 -g myRG --locations regionname=eastus --default-consistency-level=BoundedStaleness --locations needs regionname. Because it also takes in failoverPriority and isZoneRedundant params. So either the option with just the SouthCentralUS should work or if the rest of the regions need to be mentioned, then it's a deprecated syntax which makes no sense to answer now.
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