Docsity

Azure Developer Associate Exam AZ-204: Cosmos DB and Blob Storage Solutions, Exams of Computer Science

Toggle sidebar
bg1
Developing Solutions for Microsoft Azure - Exam
Ref AZ-204 Chapter 2 - D306 Azure Developer
Associate
What is Cosmos DB - CORRECT ANSWER ✅✅It is a premium storage service that Azure provides for a
globally distributed, low latency, highly responsive, and always online Database. Has scalability and
throughput in mind.
What are the 4 ways you can store your data in Cosmos DB? - CORRECT ANSWER ✅✅Key-Value
Column Family
Documents
Graph Approaches
What are the current APIs that can access CosmosDB? - CORRECT ANSWER ✅✅SQL, Cassandra, Table,
Gremlin, and MongoDB
What is SQL API? - CORRECT ANSWER ✅✅It is the core and default API for accessing data in
CosmosDB. You can query JSON objects using SQL syntax, Uses Javascript. This is a Data Structure based
on Documents.
What is Table API - CORRECT ANSWER ✅✅It is like the evolution of Azure Table Storage. It has High
Performance, low latency, and highly scalable features. Can migrate from Azure table storage with no
code modifications. You can define your own indexes. This is a data structure based on Documents.
What is Cassandra API? - CORRECT ANSWER ✅✅This is a wire protocol Apache Data Base. How this is
implemented means you do not have to worry about operations or performance management tasks
related to managing this DB. Can migrate from a Cassandra DB to this DB merely by changing the
connection string. Compatible with CQLv4 wire protocol. This is a Column Based DB that stores info in a
Key-Value approach.
pf3
pf4
pf5
pf8

Partial preview of the text

Download Azure Developer Associate Exam AZ-204: Cosmos DB and Blob Storage Solutions and more Exams Computer Science in PDF only on Docsity!

Developing Solutions for Microsoft Azure - Exam

Ref AZ-204 Chapter 2 - D306 Azure Developer

Associate

What is Cosmos DB - CORRECT ANSWER ✅✅It is a premium storage service that Azure provides for a globally distributed, low latency, highly responsive, and always online Database. Has scalability and throughput in mind. What are the 4 ways you can store your data in Cosmos DB? - CORRECT ANSWER ✅✅Key-Value Column Family Documents Graph Approaches What are the current APIs that can access CosmosDB? - CORRECT ANSWER ✅✅SQL, Cassandra, Table, Gremlin, and MongoDB What is SQL API? - CORRECT ANSWER ✅✅It is the core and default API for accessing data in CosmosDB. You can query JSON objects using SQL syntax, Uses Javascript. This is a Data Structure based on Documents. What is Table API - CORRECT ANSWER ✅✅It is like the evolution of Azure Table Storage. It has High Performance, low latency, and highly scalable features. Can migrate from Azure table storage with no code modifications. You can define your own indexes. This is a data structure based on Documents. What is Cassandra API? - CORRECT ANSWER ✅✅This is a wire protocol Apache Data Base. How this is implemented means you do not have to worry about operations or performance management tasks related to managing this DB. Can migrate from a Cassandra DB to this DB merely by changing the connection string. Compatible with CQLv4 wire protocol. This is a Column Based DB that stores info in a Key-Value approach.

What is MongoDB API? - CORRECT ANSWER ✅✅This is a NoSQL DB with a Document based Structure. CosmosDB enables a wire protocol to connect but this API must be version 3.2 or higher. What is Gremlin API? - CORRECT ANSWER ✅✅Based on Apache TinkerPop Graph transversal language. This uses a Graph structure. This stores entities but also:

  1. Vertices - (entity such as person, device or event)
  2. Edges - Relationships between vertices
  3. Properties - each of the attributes that are assigned to a vertex or edge. Can you use multiple APIs in a single CosmosDB account? - CORRECT ANSWER ✅✅No you can only choose one. What is a logical partition for Cosmos DB - CORRECT ANSWER ✅✅When you divide a CosmosDB container into smaller pieces, each piece is a logical partition. All items stored on this partition share the same partition key. What is a physical partition for CosmosDB? - CORRECT ANSWER ✅✅A group of replicas of data that is physically stored on servers. Azure manages this group of replicas. Can contain one or more Logical partitions. By default what is the storage limit for a logical partition? - CORRECT ANSWER ✅✅20GB What is a "hot" partition? - CORRECT ANSWER ✅✅It is when you select a partition key with few possible values and the partition receives most of the requests reaching the throughput limit. What is the min throughput for DB's - CORRECT ANSWER ✅✅100 request units per second (R/Us) What is the min throughput for Containers? - CORRECT ANSWER ✅✅400 request units per second (R/Us)

What is Session consistency? - CORRECT ANSWER ✅✅Offers the best balance between strong consistency and performance. Best fits write operations occurring in the user session. What is Consistent Prefix consistency? - CORRECT ANSWER ✅✅Guarantees that you always read data in the same order that you wrote the data, but no guarantee that you can read all the data. What is Eventual Consistency? - CORRECT ANSWER ✅✅No guarantee for the order of data. In an absence of write operations the replicas eventually converge. Offers best performance at the cost of complexity. Only use if data is not essential. What is the Recommended default consistency level? - CORRECT ANSWER ✅✅Session The Cassandra Write Consistency level does... - CORRECT ANSWER ✅✅This maps to the default Cosmos DB account consistency level. The Cassandra Read Consistency level does... - CORRECT ANSWER ✅✅Cosmos DB dynamically maps the consistency level specified by the Cassandra driver client to one of the Cosmos DB levels. Mongo DB Write consistency level does... - CORRECT ANSWER ✅✅Maps to the default Cosmos DB consistency level. MongoDB Read consistency level does... - CORRECT ANSWER ✅✅Dynamically mapped to the level specified by the MongoDB driver client to one of the Cosmos DB levels How do you configure a master region? - CORRECT ANSWER ✅✅You can configure a MongoDB Master region by configuring the region as the first writable Cassandra API does not call itself a database, instead it calls itself a... - CORRECT ANSWER ✅✅Keyspace

What is Dedicated Throughput for CosmosDB? - CORRECT ANSWER ✅✅All the throughput is provisioned for a container, Azure makes a reservation of resources for the container that is backed by SLAs. What is Shared Throughput for CosmosDB? - CORRECT ANSWER ✅✅Throughput is shared between all containers, configured at Database level. IndexingPolicy Property for Containers. - CORRECT ANSWER ✅✅By default all properties of an item are automatically indexed. This property allows you to configure how to index the items in a container. TimeToLive Property for Containers - CORRECT ANSWER ✅✅Expressed in seconds. Will delete when the TTL is reached. If configured at the container level, all items in container have same TTL. Value of - 1 means item will not expire. If you set a TTL on an item inside a container without a TTL the item TTL will have no effect. ChangeFeedPolicy Property for Containers - CORRECT ANSWER ✅✅Provides a readable log that shows original and modified values of an item. Can process changes asynchronously. Can use this for triggering notifications or calling APIs when a new item is inserted or an existing item is modified. UniqueKeyPolicy Property for Containers - CORRECT ANSWER ✅✅Can configure which property of an item is used as the unique key. Ensures that you cannot insert two items with the same value for the same item. Cannot be changed once created. If you need to change properties for a container already created what must you do? - CORRECT ANSWER ✅✅Delete and recreate with the correct properties. Before you can call on a trigger, stored procedure or user defined function, what must be done? - CORRECT ANSWER ✅✅They must be registered. What is Azure Blob Storage? - CORRECT ANSWER ✅✅A service that allows you to store lots of data such as images, videos, office documents and more for a fairly low price. Highly available.

What is a block lease? - CORRECT ANSWER ✅✅A short block that the blob service sets on a blob or container item for granting exclusive access to that item. What are the 5 forms of Lease? - CORRECT ANSWER ✅✅1. Available

  1. Leased
  2. Expired
  3. Breaking
  4. Broken What does the Available lease mean? - CORRECT ANSWER ✅✅The lease is unlocked and you can acquire a new license. What does the Leased Lease mean? - CORRECT ANSWER ✅✅There is a lease granted to the resource and it is locked. You can acquire a new lease if you use the same ID that you got when you created it. Can also release, change, renew, or break the lease. What does the Expired lease mean? - CORRECT ANSWER ✅✅The duration for the lease has expired. You can acquire, renew, release, or break the lease in this state. What does the Breaking lease mean? - CORRECT ANSWER ✅✅You have broken the lease, but it is still locked until the break period expires. You can release or break the lease in this stage. What does the Broken lease mean? - CORRECT ANSWER ✅✅Break period has expired, and lease has been broken. You can acquire, release, and break a lease. You need to break a lease when the process that acquired the lease finishes suddenly, and the lease is not released correctly. You can end up with an orphaned lease, and you cannot write or delete a blob with an orphaned lease. What is an orphaned lease? - CORRECT ANSWER ✅✅It is a lease that happens when you try to acquire a lease but it fails suddenly such as a network outage. You must Break the lease or else you can not write or delete the blob connected.

Leasing assures what? - CORRECT ANSWER ✅✅That only you have access to make modifications to a blob. Extremely helpful when moving blobs. When you get a lease for a blob what happens? - CORRECT ANSWER ✅✅You get exclusive write and delete access. When you get a lease for a container what happens? - CORRECT ANSWER ✅✅You get exclusive delete access. What are the 3 Data access tiers. - CORRECT ANSWER ✅✅Hot Cool Archive What is the Hot access tier - CORRECT ANSWER ✅✅More frequently accessed data. Default tier. What is the cool access tier? - CORRECT ANSWER ✅✅Less frequently accessed data. Stored for atleast 30 days. What is the archive access tier? - CORRECT ANSWER ✅✅Use this for long term storage. Stored for atleast 180 days. Available only at the Blob level. What is rehydration? - CORRECT ANSWER ✅✅Moving any Archive tier storage to either cool or hot. Costs money and takes time. What is a Filter set? - CORRECT ANSWER ✅✅A policy when trying to write the rule to move stored data between tiers. Sets the limits to the actions to only a group of items that match a filter criteria. What is a Action Set - CORRECT ANSWER ✅✅A policy when trying to write the rule to move stored data between tiers. Use this to define the actions that are performed on the items that matched the filter.