
Answer-first summary for fast verification
Answer: Leave the directory structure as-is, create a URL map and leverage a path rule such as \/[a-z]{2}\/video and \/[a-z]{2}\/audio.
The optimal solution leverages the existing directory structure without unnecessary changes, utilizing URL maps with path rules that match the pattern of language codes followed by 'video' or 'audio'. This approach minimizes operational overhead by avoiding DNS changes or directory restructuring. Option C's use of regex accurately targets the required paths, making it the correct choice. Options A and B suggest restructuring, which is not necessary, and Option D's wildcard syntax is less precise than regex for this scenario.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How should you configure URL maps to route audio and video traffic from a multilingual streaming application to separate backend Google Cloud storage buckets while minimizing operational overhead, given the current directory structure:
/fr/video
/en/video
/es/video
/../video
/fr/audio
/en/audio
/es/audio
/../audio
(Note: Corrected "/en/video" typo to "/en/video" in the path list for consistency)
A
Rearrange the directory structure, create a URL map and leverage a path rule such as /video/* and /audio/*.
B
Rearrange the directory structure, create DNS hostname entries for video and audio and leverage a path rule such as /video/* and /audio/*.
C
Leave the directory structure as-is, create a URL map and leverage a path rule such as /[a-z]{2}/video and /[a-z]{2}/audio.
D
Leave the directory structure as-is, create a URL map and leverage a path rule such as //video and //audio.
No comments yet.