How should you comp...
 
Notifications
Clear all

How should you complete the code segment? To answer, select the appropriate options in the answer area. NOTE:

1 Posts
1 Users
0 Likes
159 Views
(@sextoncletus)
Noble Member
Joined: 2 years ago
Posts: 695
Topic starter  

HOTSPOT

You need to implement the bindings for the CheckUserContent function.

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.

Show Answer Hide Answer

Suggested Answer:

Explanation:

Box 1: [BlobTrigger(..)]

Box 2: [Blob(..)]

Azure Blob storage output binding for Azure Functions. The output binding allows you to modify and delete blob storage data in an Azure Function.

The attribute's constructor takes the path to the blob and a FileAccess parameter indicating read or write, as shown in the following example:

[FunctionName("ResizeImage")]

public static void Run(

[BlobTrigger("sample-images/{name}")] Stream image,

[Blob("sample-images-md/{name}",

FileAccess.Write)] Stream imageSmall)

{

...

}

Scenario: You must create an Azure Function named CheckUserContent to perform the content checks.

The company’s data science group built ContentAnalysisService which accepts user generated content as a string and returns a probable value for inappropriate content. Any values over a specific threshold must be reviewed by an employee of Contoso, Ltd.

Reference: https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-output


   
Quote

Latest Microsoft AZ-204 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: