Topic 4, Misc. Questions
D18912E1457D5D1DDCBD40AB3BF70D5D
You are building a website that uses Azure Blob storage for data storage. You configure
Azure Blob storage lifecycle to move all blobs to the archive tier after 30 days.
Customers have requested a service-level agreement (SLA) for viewing data older than 30
days.
You need to document the minimum SLA for data recovery.
Which SLA should you use?
A.
at least two days
B.
between one and 15 hours
C.
at least one day
D.
between zero and 60 minutes
between one and 15 hours
The archive access tier has the lowest storage cost. But it has higher data retrieval costs
compared to the hot and cool tiers. Data in the archive tier can take several hours to
retrieve depending on the priority of the rehydration. For small objects, a high priority
rehydrate may retrieve the object from archive in under 1 hour.
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storagetiers?
tabs=azure-portal
A company is implementing a publish-subscribe (Pub/Sub) messaging component by using
Azure Service Bus. You are developing the first subscription application.
In the Azure portal you see that messages are being sent to the subscription for each topic.
You create and initialize a subscription client object by supplying the correct details, but the
subscription application is still not consuming the messages.
You need to complete the source code of the subscription client
What should you do?
A.
await subscriptionClient.CloseAsync();
B.
await subscriptionClient.AddRuleAsync(new
RuleDescription(RuleDescription.DefaultRuleName, new TrueFilter()));
C.
subscriptionClient.RegisterMessageHandler(ProcessMessagesAsync,
messageHandlerOptions);
D.
subscriptionClient = new SubscriptionClient(ServiceBusConnectionString, TopicName,
SubscriptionName);
subscriptionClient.RegisterMessageHandler(ProcessMessagesAsync,
messageHandlerOptions);
Explanation:
Using topic client, call RegisterMessageHandler which is used to receive messages
continuously from the entity. It registers a message handler and begins a new thread to
receive messages. This handler is waited on every time a new message is received by the
receiver.
subscriptionClient.RegisterMessageHandler(ReceiveMessagesAsync,
messageHandlerOptions);
References:
https://www.c-sharpcorner.com/article/azure-service-bus-topic-and-subscription-pub-sub/
You have a web service that is used to pay for food deliveries. The web service uses Azure
Cosmos DB as the data store.
You plan to add a new feature that allows users to set a tip amount. The new feature
requires that a property named tip on the document in Cosmos DB must be present and
contain a numeric value.
There are many existing websites and mobile apps that use the web service that will not be
updated to set the tip property for some time.
How should you complete the trigger?
NOTE: Each correct selection is worth one point.
Box 1: getContext().getRequest();
Box 2: if(isNaN(i)["tip"] ..
In JavaScript, there are two ways to check if a variable is a number :
isNaN() – Stands for “is Not a Number”, if variable is not a number, it return true, else return false.
typeof – If variable is a number, it will returns a string named “number”.
Box 3:r.setBody(i);
// update the item that will be created
References:
https://docs.microsoft.com/bs-latn-ba/azure/cosmos-db/how-to-write-stored-procedurestriggers-
udfs
https://mkyong.com/javascript/check-if-variable-is-a-number-in-javascript/
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a
correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You develop a software as a service (SaaS) offering to manage photographs. Users upload
photos to a web service which then stores the photos in Azure Storage Blob storage. The
storage account type is General-purpose V2.
When photos are uploaded, they must be processed to produce and save a mobile-friendly
version of the image. The process to produce a mobile-friendly version of the image must
start in less than one minute.
You need to design the process that starts the photo processing.
Solution: Convert the Azure Storage account to a BlockBlobStorage storage account. Does the solution meet the goal?
A.
Yes
B.
No
No
Not necessary to convert the account, instead move photo processing to an Azure Function
triggered from the blob upload..
Azure Storage events allow applications to react to events. Common Blob storage event
scenarios include image or video processing, search indexing, or any file-oriented
workflow.
Note: Only storage accounts of kind StorageV2 (general purpose v2) and BlobStorage
support event integration. Storage (general purpose v1) does not support integration with
Event Grid.
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-event-overview
A company is developing a gaming platform. Users can join teams to play online and see
leaderboards that include player statistics. The solution includes an entity named Team.
You plan to implement an Azure Redis Cache instance to improve the efficiency of data
operations for entities that rarely change.
You need to invalidate the cache when team data is changed.
How should you complete the code? To answer, select the appropriate options in the
answer area.
NOTE: Each correct selection is worth one point
You are using Azure Front Door Service.
You are expecting inbound files to be compressed by using Brotli compression. You
discover that inbound XML files are not compressed. The files are 9 megabytes (MB) in
size.
You need to determine the root cause for the issue.
To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Box 1: No
Front Door can dynamically compress content on the edge, resulting in a smaller and faster
response to your clients. All files are eligible for compression. However, a file must be of a MIME type that is eligible for compression list.
Box 2: No
Sometimes you may wish to purge cached content from all edge nodes and force them all
to retrieve new updated assets. This might be due to updates to your web application, or to
quickly update assets that contain incorrect information.
Box 3: Yes
These profiles support the following compression encodings: Gzip (GNU zip), Brotli
You are developing an ASP.NET Core website that uses Azure FrontDoor. The website is
used to build custom weather data sets for researchers. Data sets are downloaded by
users as Comma Separated Value (CSV) files. The data is refreshed every 10 hours.
Specific files must be purged from the FrontDoor cache based upon Response Header
values.
You need to purge individual assets from the Front Door cache.
Which type of cache purge should you use?
A.
single path
B.
wildcard
C.
root domain
single path
These formats are supported in the lists of paths to purge:
Single path purge: Purge individual assets by specifying the full path of the asset
(without the protocol and domain), with the file extension, for example,
/pictures/strasbourg.png;
Wildcard purge: Asterisk (*) may be used as a wildcard. Purge all folders,
subfolders, and files under an endpoint with /* in the path or purge all subfolders
and files under a specific folder by specifying the folder followed by /*, for example,
/pictures/*.
Root domain purge: Purge the root of the endpoint with "/" in the path
You are developing a software solution for an autonomous transportation system. The
solution uses large data sets and Azure Batch processing to simulate navigation sets for
entire fleets of vehicles.
You need to create compute nodes for the solution on Azure Batch.
What should you do?
A.
In Python, implement the class: TaskAddParameter
B.
In Python, implement the class: JobAddParameter
C.
In the Azure portal, create a Batch account
D.
In a .NET method, call the method: BatchClient.PoolOperations.CreateJob
In a .NET method, call the method: BatchClient.PoolOperations.CreateJob
Explanation:
A Batch job is a logical grouping of one or more tasks. A job includes settings common to
the tasks, such as priority and the pool to run tasks on. The app uses the
BatchClient.JobOperations.CreateJob method to create a job on your pool.
Note:
Step 1: Create a pool of compute nodes. When you create a pool, you specify the number
of compute nodes for the pool, their size, and the operating system. When each task in
your job runs, it's assigned to execute on one of the nodes in your pool.
Step 2 : Create a job. A job manages a collection of tasks. You associate each job to a
specific pool where that job's tasks will run.
Step 3: Add tasks to the job. Each task runs the application or script that you uploaded to
process the data files it downloads from your Storage account. As each task completes, it
can upload its output to Azure Storage.
You are creating a CLI script that creates an Azure web app related services in Azure App
Service. The web app uses the following variables:
Box 1: az appservice plan create
The azure group creates command successfully returns JSON result. Now we can use
resource group to create a azure app service plan
Box 2: az webapp create
Create a new web app..
Box 3: -plan $webappname
with the serviceplan we created in step 1.
Box 4: az webapp deployment
Continuous Delivery with GitHub. Example:
az webapp deployment source config -name firstsamplewebsite1 -resource-group
websites-repo-url $gitrepo -branch master -git-token $token
Box 5: -repo-url $gitrepo -branch master -manual-integration
A company is developing a Node.js web app. The web app code is hosted in a GitHub
repository located at https://github.com/TailSpinToys/weapp.
The web app must be reviewed before it is moved to production. You must deploy the initial
code release to a deployment slot named review.
You need to create the web app and deploy the code.
How should you complete the commands? To answer, select the appropriate options in the
answer area.
NOTE: Each correct selection is worth one point.
Page 7 out of 28 Pages |
Previous |