hiexam
microsoft · AI-102 · Q679 · code_completion · azure, ai_content_safety, code_completion

HOTSPOT - You have an Azure subscription that contains an Azure AI Content Safety resource. You are building a social…

HOTSPOT - You have an Azure subscription that contains an Azure AI Content Safety resource. You are building a social media app that will enable users to share images. You need to configure the app to moderate inappropriate content uploaded by the users. How should you complete the code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. //IMG//
public static void Analyze(AnalyzeImageOptions request)
{
    var endpoint = Environment.GetEnvironmentVariable("ENDPOINT");
    var key = Environment.GetEnvironmentVariable("KEY");
    var client = new {{slot1}}(new Uri(endpoint), new AzureKeyCredential(key));

    return {{slot2}}(request);
}
Correct slot values

Answer hidden

Unlock AI-102

First 5 questions of every exam are free. Unlock the rest.

Includes
  • · All — questions
  • · Verified answers + AI explanations
  • · Spaced-repetition mistake notebook
  • · Phone, tablet, laptop sync

One-time payment. Doesn't auto-renew. · Already paid? Sign in