Professional Cloud Architect free question 5 / 10 · Domain 2: Managing and provisioning a cloud solution infrastructure
In the Altostrat Media case study, the business requirements include “Extract rich metadata from media assets using NLP and computer vision” and “Detect and filter inappropriate content.” From program videos stored in Cloud Storage, you want to extract information about the content of each segment of the video and also find inappropriate footage. Which API should be at the center?
- The Vision API’s label detection and SafeSearch applied directly to the video file, to get the content and explicitness of each segment
- Speech-to-Text to turn the audio into text, then the Natural Language API to classify each segment and judge inappropriateness
- The Natural Language API’s content classification applied directly to the video file, to get the content and the inappropriate parts of each segment
- The Video Intelligence API, to get annotations for each segment, shot, or frame of the input and detection of explicit content
Show the answer and explanation
Answer: D
Why this is correct
The Video Intelligence API annotates videos stored locally or in Cloud Storage, or live-streamed, with contextual information at the level of the entire video, per segment, per shot, and per frame. The guides in its documentation include detecting explicit content, transcribing audio tracks, recognizing text, tracking objects, and detecting people. Both extracting metadata from video and detecting inappropriate content can be handled with one API.
Why the other options are wrong
"The Vision API’s label detection and SafeSearch applied directly to the video file, to get the content and explicitness of each segment" … The Vision API features (text detection, label detection, SafeSearch, and others) work on images; for example, text detection is described as OCR for images. Annotation at the level of shots and frames of a video is the role of the Video Intelligence API.
"Speech-to-Text to turn the audio into text, then the Natural Language API to classify each segment and judge inappropriateness" … Speech-to-Text is a speech recognition API that returns transcription results from audio data, and the Natural Language API analyzes text. Inappropriate content that appears on screen cannot be known from the transcribed speech. The detection of explicit content in video is in the Video Intelligence API guides.
"The Natural Language API’s content classification applied directly to the video file, to get the content and the inappropriate parts of each segment" … The Natural Language API provides natural language understanding for text, such as sentiment analysis, entity analysis, content classification, and syntax analysis. It does not take video as direct input.
How to tell them apart
It is easiest to tell them apart by input type: Vision API for images, Video Intelligence API for video, Speech-to-Text for audio, and Natural Language API for text. Speech-to-Text has three recognition methods: synchronous (up to 1 minute), asynchronous (up to 480 minutes), and streaming (case study: Altostrat Media business requirements).