Frage 1
Frage
You are developing an application that monitors data added to an Azure Blob storage account.
You need to process each change made to the storage account.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Answer Area:
var changeFeedClient = new BlobServiceClient("…").GetChangeFeedClient();
var x = default(string);
while (true)
{
var changeFeed = changeFeedClient.[blank_start][Option 1][blank_end];
foreach (var c in changeFeed)
{
x = c.[blank_start][Option 2][blank_end];
ProcessChanges(c.Values);
}
}
Antworten
-
GetChanges()
-
GetChangesAsync()
-
GetChanges(x).AsPages()
-
GetChanges(x).GetEnumerator()
-
ContinuationToken
-
GetRawResponse().ReasonPhrase
-
Values.Max(x=>x.EventTime).ToString()
-
Values.Min(x=>x.EventTime).ToString()
Frage 2
Frage
You develop an application that sells AI generated images based on user input. You recently started a marketing campaign that displays unique ads every second day.
Sales data is stored in Azure Cosmos DB with the date of each sale being stored in a property named ‘whenFinished’.
The marketing department requires a view that shows the number of sales for each unique ad.
You need to implement the query for the view.
How should you complete the query? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Answer Area:
SELECT
[blank_start][Option 1][blank_end]
[blank_start][Option 2][blank_end]
FROM c
group by
[blank_start][Option 3][blank_end]
Antworten
-
max(c.whenFinished
-
sum(c.whenFinished)
-
count(c.whenFinished)
-
DateTimeBin(c.whenFinished, 'day', 2)
-
DateTimePart(c.whenFinished, 'day', 2)
-
DateTimeBin(c.whenFinished, 'hour', 12)
-
DateTimePart(c.whenFinished, 'hour', 12)
-
DateTimeBin(c.whenFinished, 'day', 2)
-
DateTimePart(c.whenFinished, 'day', 2)
-
DateTimeBin(c.whenFinished, 'hour', 12)
-
DateTimePart(c.whenFinished, 'hour', 12)
Frage 3
Frage
You implement an Azure solution to include Azure Cosmos DB, the latest Azure Cosmos DB SDK, and the Core (SQL) API. You also implement a change feed processor on a new container instance by using the Azure Functions trigger for Azure Cosmos DB.
A large batch of documents continues to fail when reading one of the documents in the batch. The same batch of documents is continuously retried by the triggered function and a new batch of documents must be read.
You need to implement the change feed processor to read the documents.
Which feature should you implement? To answer, select the appropriate features in the answer area.
NOTE: Each correct selection is worth one point.
Answer Area:
Requirement || Feature
Read a new batch of documents while keeping track of the failing batch of documents. || [blank_start][Option 1][blank_end]
handle errors in the change feed processor. || [blank_start][Option 2][blank_end]
Antworten
-
Lease container
-
Dead-letter queue
-
Life-Cycle notifications
-
Change feed estimator
-
Lease container
-
Dead-letter queue
-
Life-cycle notifications
-
Change feed estimator
Frage 4
Frage
You are developing an application to store business-critical data in Azure Blob storage.
The application must meet the following requirements:
• Data must not be modified or deleted for a user-specified interval.
• Data must be protected from overwrites and deletes.
• Data must be written once and allowed to be read many times.
You need to protect the data in the Azure Blob storage account.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Antworten
-
Configure a time-based retention policy for the storage account.
-
Create an account shared-access signature (SAS).
-
Enable the blob change feed for the storage account.
-
Enable version-level immutability support for the storage account.
-
Enable point-in-time restore for containers in the storage account.
-
Create a service shared-access signature (SAS).
Frage 5
Frage
You are updating an application that stores data on Azure and uses Azure Cosmos DB for storage. The application stores data in multiple documents associated with a single username.
The application requires the ability to update multiple documents for a username in a single ACID operation.
You need to configure Azure Cosmos DB.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Antworten
-
Create a collection sharded on username to store documents.
-
Configure Azure Cosmos DB to use the Gremlin API.
-
Create an unsharded collection to store documents.
-
Configure Azure Cosmos DB to use the MongoDB API.
Frage 6
Frage
You develop Azure solutions.
You must connect to a No-SQL globally-distributed database by using the .NET API.
You need to create an object to configure and execute requests in the database.
Which code segment should you use?
Antworten
-
database_name = 'MyDatabase'
database = client.create_database_if_not_exists(id=database_name)
-
client = CosmosClient(endpoint, key)
-
container_name = 'MyContainer'
container = database.create_container_if_not_exists(
id=container_name, partition_key=PartitionKey(path="/lastName"), offer_throughput=400 )
Frage 7
Frage
You develop a web application that provides access to legal documents that are stored on Azure Blob Storage with version-level immutability policies. Documents are protected with both time-based policies and legal hold policies. All time-based retention policies have the AllowProtectedAppendWrites property enabled.
You have a requirement to prevent the user from attempting to perform operations that would fail only when a legal hold is in effect and when all other policies are expired.
You need to meet the requirement.
Which two operations should you prevent? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Frage 8
Frage
You provisioned an Azure Cosmos DB for NoSQL account named account1 with the default consistency level.
You plan to configure the consistency level on a per request basis. The level needs to be set for consistent prefix for read and write operations to account1.
You need to identify the resulting consistency level for read and write operations.
Which levels should you configure? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Answer Area:
operation type || Resulting consistency level
Read operations || [blank_start][Option 1][blank_end]
Write operations || [blank_start][Option 2][blank_end]
Antworten
-
strong
-
session
-
consistent prefix
-
strong
-
session
-
consistent prefix
Frage 9
Frage
You are developing an application to store millions of images in Azure blob storage. The images are uploaded to an Azure blob storage container named companyimages contained in an Azure blob storage account named companymedia. The stored images are uploaded with multiple blob index tags across multiple blobs in the container.
You must find all blobs whose tags match a search expression in the container. The search expression must evaluate an index tag named status with a value of final.
You need to construct the GET method request URI.
How should you complete the URI? To answer, drag the appropriate parameters to the correct request URI targets. Each parameter may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Answer Area:
https://[blank_start][Option 1][blank_end].blob.core.windows.net/[blank_start][Option 2][blank_end]?restype=container&comp=blobs&where=[blank_start][Option 3][blank_end]
Antworten
-
companymedia
-
companyimages
-
Status='Final'
Frage 10
Frage
You develop two Python scripts to process data.
The Python scripts must be deployed to two, separate Linux containers running in an Azure Container Instance container group. The containers must access external data by using the Server Message Block (SMB) protocol. Containers in the container group must run only once.
You need to configure the Azure Container Instance.
Which configuration value should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Answer Area:
Configuration Setting || Configuration Value
External data volume || [blank_start][Option 1][blank_end]
Container restart policy || [blank_start][Option 2][blank_end]
Antworten
-
Secret
-
Empty directory
-
Cloned git repo
-
Azure file share
-
Never
-
Always
-
OnFailure
Frage 11
Frage
You are developing a static website hosted on Azure Blob Storage. You create a storage account and enable static website hosting.
The website must support the following requirements:
• Custom domain name
• Custom header values for all responses
• Custom SSL certificate
You need to implement the static website.
What should you configure? To answer, select the appropriate values in the answer area.
NOTE: Each correct selection is worth one point.
Answer Area:
Requirement || Configuration Value
Custom domain name || [blank_start][Option 1][blank_end]
Custom header values || [blank_start][Option 2][blank_end]
Custom SSL certificate || [blank_start][Option 3][blank_end]
Antworten
-
Blob index tags
-
Azure Content Delivery Network (CDN)
-
Cross-Origin Resource Sharing (CORS)
-
Azure Storage Service Encryption (SSE)
-
Blob index tags
-
Azure Content Delivery Network (CDN)
-
Cross-Origin Resource Sharing (CORS)
-
Azure Storage Service Encryption (SSE)
-
Blob index tags
-
Azure Content Delivery Network (CDN)
-
Cross-Origin Resource Shareing (CORS)
-
Azure Storage Service Encryption (SSE)