Google Cloud Professional Cloud Network Engineer — Question 51
Your company's Google Cloud-deployed, streaming application supports multiple languages. The application development team has asked you how they should support splitting audio and video traffic to different backend Google Cloud storage buckets. They want to use URL maps and minimize operational overhead. They are currently using the following directory structure:
/fr/video
/en/video
/es/video
/../video
/fr/audio
/en/audio
/es/audio
/../audio
Which solution should you recommend?
Answer options
- 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.
Correct answer: A
Explanation
The correct answer is A because rearranging the directory structure allows for a more organized and manageable setup, while creating a URL map with specific path rules efficiently directs traffic to the correct buckets. Options B and C do not address the need for a directory rearrangement, and D lacks specificity in handling language prefixes, which could lead to incorrect traffic routing.