DP-900 Azure Cosmos DB

 DP-900 Azure Cosmos DB

Step 1 : Go to the Azure Portal and search for Azure Cosmos DB.


Step 2 : Click on Create to create a new database.


Step 3 : Select the API in which you want to create your database.



Step 4 : Add details to create a Database.


Capacity Mode :
Provisioned Throughput : 
- Request Units/Second are predefined and billed hourly.
- Used when your traffic is Predictable.

Serverless : 
- Billed only for consumed Requested Units.
- Used when your traffic is unpredictable.


Multi-region writes :
Disable : 
- Normally, only one region can accept writes.

Enable : 
- With multi-region writes every selected region can access read and write.
- It automatically replicates data across all regions and resolves conflicts if two regions write at the same time.
- For higher availability, disaster recovery and low latency.

Geo- redundancy :
- Multi-region write and geo-redundancy both protect data from disaster, but geo-redundancy has one more advantage, which is that if you are unable to access data from your region, it automatically falls back to another region to get a copy of the data.








Step 5 : After adding all details, click Review + Create.


Step 6 : Check your details before clicking Create.



Step 7 : After deploying your database, click Go to resource.



Step 8 : From the sidebar, go to the Quick start page. 


Step 9 : Click Create Sample Application.

- By clicking on this button Azure portal will automatically create a container and a database.
- No SQL databases are created on containers.
- You can add and remove containers according to your requirements.



Step 10 : Go to the Replicate data globally page from the settings section in the sidebar.

- Here you can add and remove regions to replicate your data globally.
- Click the save button after adding or removing regions.








Step 11 : Search for the data explorer in the sidebar.




Step 12 : Click on New Items to add data. And add the data, after adding the data, click the save button.


Step 13 : After saving data, you can see there are some other details that are automatically added to the data.

- id : unique identifier for document.
- _self : eternal link that lets a document refer to itself.
- _etag : Tracks changes. It updates automatically as soon as the document is modified.
              Used for version control or concurrency checks.
- attachments : To store links to any files or attachments related to documents.


































































Comments

Popular posts from this blog

AI-900-3,4

AI-900 12,13

AI-900 10,11