exam questions

Exam Professional Cloud Network Engineer All Questions

View all questions & answers for the Professional Cloud Network Engineer exam

Exam Professional Cloud Network Engineer topic 1 question 60 discussion

Actual exam question from Google's Professional Cloud Network Engineer
Question #: 60
Topic #: 1
[All Professional Cloud Network Engineer Questions]

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ESP_SAP
Highly Voted 4 years ago
Correct Answer is (A): Path matcher constraints Path matchers and path rules have the following constraints: A path rule can only include a wildcard character (*) after a forward slash character (/). For example, /videos/* and /videos/hd/* are valid for path rules, but /videos* and /videos/hd* are not. Path rules do not use regular expression or substring matching. For example, path rules for either /videos/hd or /videos/hd/* do not apply to a URL with the path /video/hd-abcd. However, a path rule for /video/* does apply to that path. https://cloud.google.com/load-balancing/docs/url-map-concepts#pm-constraints
upvoted 20 times
AzureDP900
1 year, 11 months ago
Agree with A
upvoted 1 times
...
narangikhatmal
3 years, 9 months ago
why not D,there is no constraint avoiding /*/video
upvoted 2 times
...
lukedj87
3 years, 11 months ago
Agree with A. Thanks for the link!
upvoted 1 times
...
...
RKS_2021
Most Recent 1 month, 2 weeks ago
Selected Answer: C
C is correct.
upvoted 1 times
...
thewalker
6 months, 1 week ago
Selected Answer: C
The correct answer is 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. This solution meets all of the requirements: It does not require rearranging the directory structure. It uses a URL map to direct traffic to the correct backend bucket. It uses a path rule to match the language code in the URL to the correct backend bucket. It minimizes operational overhead by using a single URL map and path rule to handle all of the different languages. The other options are incorrect because:
upvoted 3 times
thewalker
6 months, 1 week ago
A. Rearrange the directory structure, create a URL map and leverage a path rule such as /video/ and /audio/*. * This solution requires rearranging the directory structure, which could be disruptive to the development team. B. Rearrange the directory structure, create DNS hostname entries for video and audio and leverage a path rule such as /video/ and /audio/*. * This solution requires rearranging the directory structure and creating DNS hostname entries, which could be complex and time-consuming to manage. D. Leave the directory structure as-is, create a URL map and leverage a path rule such as / /video and / /audio. This solution will not work because the path rule will match all traffic, not just traffic for the video and audio directories. Therefore, the best solution is to 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.
upvoted 1 times
...
...
Komal697
1 year, 7 months ago
Selected Answer: A
With this solution, the directory structure can be reorganized so that all audio files are in one folder and all video files are in another folder. Then, a URL map can be created that maps requests to the appropriate backend storage bucket based on the path. Using a path rule such as /video/* and /audio/* will route traffic to the appropriate storage bucket based on the path of the request. This solution minimizes operational overhead and is a scalable solution as more languages can be added to the directory structure with ease. Option B is not a recommended solution as it requires creating DNS hostname entries for each bucket, which can be complex and cumbersome to manage. Option C is not optimal as it requires more complex path rules and may not be as scalable for future language additions. Option D is not recommended as it does not provide a clear separation of audio and video files, and could lead to potential conflicts in the future.
upvoted 1 times
...
pk349
1 year, 9 months ago
A. Rearrange the directory structure, create a URL map and leverage a path rule such as /video/* and /audio/*.
upvoted 1 times
...
[Removed]
2 years, 8 months ago
when a request is sent for http://example.net/video/../abc, the load balancer responds with a 302 redirect to http://example.net/abc. Most clients then react by issuing a request to the URL returned by the load balancer (in this case, http://example.net/abc). This 302 redirection isn't logged in Cloud Logging. https://cloud.google.com/load-balancing/docs/url-map-concepts?hl=en So C & D is not correct, B is not related with URL maps, so A.
upvoted 3 times
...
gaggleoxfoggy
2 years, 8 months ago
Selected Answer: A
Answer is A. Though D doesn't seem to be specifically excluded in their documentation as it really only talks about it being after a / and not specifically the end /, I just tested it and it only allows me to put the wildcard at the end.
upvoted 4 times
...
kumarp6
2 years, 10 months ago
Answer is : A
upvoted 1 times
...
seddy
3 years, 5 months ago
200% A For those who claim it's D, I assure you it is not. The reason is that you can only use a '*' at the end of a path rule followed by a '/'. So a path rule consisting of a '*' MUST end like '....../*' and that's the rule!
upvoted 3 times
...
Vidyasagar
3 years, 7 months ago
A is right
upvoted 1 times
...
eeghai7thioyaiR4
3 years, 8 months ago
I would go with D There is probably a lot of links everywhere, so rearranging the directory structure may not be easy With D, you do not change any of the code, SEO is left unaffected too, and you can map the old paths to the right buckets
upvoted 3 times
...
[Removed]
3 years, 11 months ago
Ans - A
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago