exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 3 question 12 discussion

Actual exam question from Microsoft's AZ-203
Question #: 12
Topic #: 3
[All AZ-203 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 in network outages or other unforseen failures
✑ Process reservations in the exact sequence as reservation 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: Explanation
Box 1: Strong -
Strong consistency offers a linearizability guarantee. 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.
" Process reservations in the exact sequence as reservation are submitted to minimize overbooking or selling the same seat to multiple travelers."
Box 2: Enable-automatic-failover
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.
" Accept reservations even in network outages or other unforseen failures"

Box 3: southcentralus -
" You provision a resource group named airlineResourceGroup in the Azure South-Central US region."
References:
https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/cosmos-db/high-availability.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
AK89
Highly Voted 5 years ago
The correct answer in sequence is: Bounded Staleness --enable-automatic-failover true 'southcentralus=0 eastus=1 westus-2'
upvoted 63 times
...
TaiH
Highly Voted 5 years, 4 months ago
Based on this: ✑ Process reservations in the exact sequence as reservation 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. The first box should be staleness.
upvoted 54 times
...
meoukg
Most Recent 3 years, 2 months ago
Got it on 03/2022, I chose as below (not sure it was correct :))) 1. Strong 2. --enable-automatic-failover true 3. --locations'southcentralus=0 eastus=1 westus=2
upvoted 1 times
...
dancsita
4 years, 3 months ago
According to the docs: --enable-automatic-failover Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.
upvoted 1 times
...
Cornholioz
4 years, 5 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 1 times
...
Nitin121
4 years, 7 months ago
Consistency level should be Bounded Staleness --max-interval When used with Bounded Staleness consistency, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 1 - 100. default value: 5 https://docs.microsoft.com/en-us/cli/azure/cosmosdb?view=azure-cli-latest#az_cosmosdb_create
upvoted 1 times
...
Sumee_das
4 years, 8 months ago
Same question is there in AZ204, correct answer for 1st is Bounded staleness. Other 2 is fine
upvoted 1 times
...
NPaul_92
4 years, 8 months ago
https://vceguide.com/how-should-you-complete-the-azure-cli-commands/
upvoted 1 times
...
malawneh
4 years, 9 months ago
I passed today with score 860, i got this in my exam. My answer was: Bounded Staleness --enable-automatic-failover true 'southcentralus=0 eastus=1 westus-2'
upvoted 9 times
sinh
4 years, 7 months ago
You may not be the right answer.
upvoted 2 times
...
...
chaudh
4 years, 10 months ago
1. BoundedStaleness: question doesn't require 100% consistency (only exact sequence, minimize overbooking or selling), and also allow for 5-second tolerance window. 2. --enable-automatic-failover 3. --locations 'southcentralus'. Note that 'southcentralus=0..." is the failover policy, not locations as specified.
upvoted 9 times
Satheesh88
4 years, 6 months ago
https://docs.microsoft.com/en-us/azure/cosmos-db/high-availability#:~:text=For%20multi%2Dregion%20Azure%20Cosmos,will%20automatically%20failover%20your%20account.
upvoted 1 times
...
Satheesh88
4 years, 6 months ago
Multiple write region is set by fail over policies. az cosmosdb failover-priority-change --ids $accountId \ --failover-policies 'West US 2=0' 'South Central US=1' 'East US 2=2' Ref: https://docs.microsoft.com/en-us/azure/cosmos-db/manage-with-cli#enable-automatic-failover Box 3 - SouthcentralUs
upvoted 2 times
Juanlu
4 years, 3 months ago
Thanks, they look like good arguments, so: Box 1: BoundedStaleness Box2: --enable-automatic-failover Box 3: SouthCentra US
upvoted 1 times
...
...
...
Raevex
4 years, 11 months ago
Options: https://vceguide.com/wp-content/uploads/2020/05/Microsoft-AZ-203-date-05-08-2020_Page_139_Image_0001.jpg
upvoted 16 times
...
Suchismita
4 years, 11 months ago
The correct answer in sequence is: Bounded Staleness --enable-automatic-failover true southcentralus - As provision is to create a resource group named airlineResourceGroup in the Azure South-Central US region.
upvoted 1 times
...
Dayakar
5 years, 1 month ago
In the question it is mentioned that low latency , In this case it should be bounded staleness. If you want high latency then only strong consistency
upvoted 3 times
...
Daltonic75
5 years, 2 months ago
Options: https://www.sharetotest.com/images/AZ-202.files/image095.jpg
upvoted 27 times
...
Khang
5 years, 3 months ago
First box should be: Staleness Allow simultaneous and out-of-order reservations with a maximum five-second tolerance window.
upvoted 19 times
...
boldarev
5 years, 4 months ago
✑ Accept reservations even in network outages or other unforseen failures Box 3 shoul be with several locations
upvoted 37 times
LTiwana
4 years, 10 months ago
I think you are right. I found 2 links that explain this: https://docs.azure.cn/zh-cn/cli/cosmosdb?view=azure-cli-latest --locations Space-separated locations in 'regionName=failoverPriority' format. E.g eastus=0 westus=1. https://stackoverflow.com/questions/51197375/creating-cosmosdb-with-azure-cli-in-powershell
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 ...