You have the following Python function for creating Azure Cognitive Services resources programmatically. def create_resource (resource_name, kind, account_tier,...


Microsoft AI-102 Exam

Questions Number: 80 out of 241 Questions
33.20%

Question 80
You have the following Python function for creating Azure Cognitive Services resources programmatically. def create_resource (resource_name, kind, account_tier, location) : parameters = CognitiveServicesAccount(sku=Sku(name=account_tier), kind=kind, location=location, properties={}) result = client.accounts.create(resource_group_name, resource_name, parameters)
You need to call the function to create a free Azure resource in the West US Azure region. The resource will be used to generate captions of images automatically.
Which code should you use?



F0 is the free tier.
Custom Vision Service -
Upload images to train and customize a computer vision model for your specific use case. Once the model is trained, you can use the API to tag images using the model and evaluate the results to improve your classifier.
Incorrect:
Not C, not D: S0 is the standard tier, which isn't free.
Not A, not C: The Computer Vision service provides developers with access to advanced algorithms for processing images and returning information.
Computer Vision -
Returns information about visual content found in an image:
Use tagging, descriptions, and domain-specific models to identify content and label it with confidence.
Apply adult/racy settings to enable automated restriction of adult content.
Identify image types and color schemes in pictures.
Reference:
https://docs.microsoft.com/en-us/python/api/overview/azure/cognitive-services?view=azure-python





Previous Questions Next Questions



Premium Version