You use Computer Vision OCR containers to extract printed text from a set of PDF documents.
To configure the docker runtime environment, you use following docker run command:
docker run --rm -it -p 5000:5000 \ --memory 2g --cpus 1 \ --mount type=bind,src=/home/<user>/output,target=/output \ <registry-location>/<image-name> \ Eula=accept \ Billing=<endpoint> \ ApiKey=<api-key> \ HTTP_PROXY=<proxy-url> \ HTTP_PROXY_CREDS=<proxy-user>:<proxy-password> \ Logging:Disk:Format=jsonIn this command, multiple configuration settings are used.
Review the answer choices below and choose settings that are optional.
(choose two answer choices)
Click on the arrows to vote for the correct answer
A. B. C. D. E.Correct Answers: B and C.
Option A is incorrect because the ApiKey setting is a required setting to track container's billing information.
You can find the ApiKeyin the Azure Portal, under the management blade of the Cognitive Services Resource.
Option B is correct because Logging is an optional setting.
It offers the ASP.NET Core logging support for the containers.
You can also use this setting for the debug purpose.
Option C is correct because HTTP_PROXY is also an optional setting.
If you have a requirement to configure a proxy for outbound calls, use this setting in your docker run command.
Option D is incorrect because Eula is a required setting that states that you have accepted the license agreement for the container.
Option E is incorrect because Billing is a required setting as it provides the billing endpoint url for the cognitive service.
You can find this value in the Azure Portal, under the overview blade of the Cognitive service resource.
Reference:
To learn more about configuring the Read OCR Docker containers, use the link given below:
In the given docker run command, there are several configuration settings that are used to configure the runtime environment for Computer Vision OCR containers. Out of these settings, two settings are optional. Let's review each setting one by one:
A. ApiKey: This setting is used to provide the API key for authentication with the Cognitive Services API. It is required to provide a valid API key to use the OCR functionality. Therefore, this setting is not optional.
B. Logging:Disk:Format=json: This setting is used to specify the format of the log files generated by the container. It is an optional setting because the default logging format is plain text, and it can be changed to JSON or other formats as per the requirement.
C. HTTP_PROXY: This setting is used to specify the URL of the proxy server that should be used to connect to the internet. It is an optional setting because the container can access the internet directly without a proxy server.
D. Eula: This setting is used to accept the end-user license agreement for using the Cognitive Services API. It is required to accept the EULA to use the OCR functionality. Therefore, this setting is not optional.
E. Billing: This setting is used to specify the endpoint for billing information for the Cognitive Services API. It is an optional setting because billing information is not required to use the OCR functionality.
Based on the above analysis, the two optional settings in the given docker run command are:
B. Logging:Disk:Format=json C. HTTP_PROXY