Azure Storage Account Flashcards
You have two video files stored as blobs. One of the videos is business-critical and requires a replication policy that creates multiple copies across geographically diverse datacenters.
The other video is non-critical, and a local replication policy is sufficient.
Which of the following options would satisfy both data diversity and cost sensitivity consideration?
A: Create a single storage account that makes use of Local-redundant storage (LRS) and host both videos from here.
B: Create a single storage account that makes use of Geo-redundant storage (GRS) and host both videos from here.
C: Create a two storage accounts. The first account makes use of Geo-redundant storage (GRS) and hosts the business-critical video content. The second account makes use of Local-redundant storage (LRS) and hosts the non-critical video content.
C: Create a two storage accounts.
In general, increased diversity means an increased number of storage accounts. A storage account by itself has no financial cost. However, the settings you choose for the account do influence the cost of services in the account. Use multiple storage accounts to reduce costs
The usage of single storage account to host both videos in a single RRS enabled storage account takes data diversity into consideration, but doesn’t consider the cost savings requirements for non-critical content.
The usage of single storage account to host both videos in a single LRS enabled storage account takes cost savings into consideration, but doesn’t consider the data diversity storage requirements for business-critical content.
The name of a storage account must be:
(Pick 1)
A: Unique within the containing resource group.
B: Unique within your Azure subscription.
C: Globally unique.
C: Globally unique.
The storage account name is used as part of the URI for API access, so it must be globally unique.
In a typical project, when would you create your storage account(s)?
A At the beginning, during project setup.
B After deployment, when the project is running.
C At the end, during resource cleanup.
A At the beginning, during project setup.
Storage accounts are stable for the lifetime of a project. It’s common to create them at the start of a project.
How many access keys are provided for accessing your Azure storage account?
2
You can use either the REST API or the Azure client library to programmatically access a storage account. What is the primary advantage of using the client library?
Code that uses the client library is much shorter and simpler than code that uses the REST API. The client library handles assembling requests and parsing responses for you.
https://docs.microsoft.com/en-us/learn/modules/connect-an-app-to-azure-storage/11-knowledge-check
Which of the following is a good analogy for the access keys of a storage account?
IP Address
REST Endpoint
Username and password
Cryptographic algorithm
Username and password
Possession of an access key identifies the account and grants you access. This is very similar to login credentials like a username and password.
You have to use Azure Table storage to store customer information for an application.
The data contains customer details and is partitioned by last name.
You need to create a query that returns all customers with the last name Smith. Which code segment should you use in Java?
A. TableQuery.GenerateFilterCondition(“LastName”, QueryComparisons.Equal, “Smith”) ;
B. TableQuery.GenerateFilterCondition(“PartitionKey”, QueryComparisons.Equal, “Smith”) ;
C. TableQuery.GenerateFilterCondition(“LastName”, Equals, “Smith”) ;
D. TableQuery.GenerateFilterCondition(“PartitionKey”, Equals, “Smith”) ;
Answer – B
To retrive all entries from a cosmos db table created with partitionaKey with last name “Smith”
We need to create the query operation for allcustomer entities
where PartitionKey=”Smith”.
TableQuery query = new TableQuery().Where(TableQuery.GenerateFilterCondition(“PartitionKey”,QueryComparisons.Equal, “Smith”));
You are retrieveing data from an Azure Blob Storage account with read access geo redundant storage (RA-GRS)
If the Primary node is unavailable will the client read from the secondary node by default?
No
The default configuration is to read from the Primary node only
You can configure the client read order as either
PrimaryOnly, PrimaryThenSecondary, SecondaryThenPrimary, SecondaryOnly