Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Cisco 350-901 Exam - Topic 7 Question 78 Discussion

An architect must optimize traffic that targets a popular API endpoint Currently, the application downloads a large file hourly, but often the file is unchanged and the download causes unnecessary load and delays Which cURL command must be used to determine the last modified date of the file and to optimize the API usage?
B) curl HEAD request
A) curl GET request
C) curl --silent request
D) curl -H 'Cache-Control: no-cache' request

Cisco 350-901 Exam - Topic 7 Question 78 Discussion

Actual exam question for Cisco's 350-901 exam
Question #: 78
Topic #: 7
[All 350-901 Questions]

An architect must optimize traffic that targets a popular API endpoint Currently, the application downloads a large file hourly, but often the file is unchanged and the download causes unnecessary load and delays Which cURL command must be used to determine the last modified date of the file and to optimize the API usage?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Henriette
9 months ago
No way, HEAD is definitely the way to go here!
upvoted 0 times
...
Elenora
9 months ago
I thought cURL --silent would help with optimization too?
upvoted 0 times
...
Omega
10 months ago
Wait, can’t we just use a GET request? Seems simpler.
upvoted 0 times
...
Tayna
10 months ago
Totally agree, HEAD is efficient for checking last modified dates.
upvoted 0 times
...
Domonique
10 months ago
B is the right choice! HEAD requests are perfect for this.
upvoted 0 times
...
Loreta
10 months ago
I vaguely recall something about using Cache-Control, but it seems more related to caching than just checking the last modified date.
upvoted 0 times
...
Nidia
11 months ago
I think the HEAD request is the right choice because it should give us the last modified date without the extra load.
upvoted 0 times
...
Carlee
11 months ago
I'm not entirely sure, but I feel like the GET request would still download the file, which isn't what we want here.
upvoted 0 times
...
Derrick
11 months ago
I remember practicing with cURL commands, and I think a HEAD request is used to fetch headers without downloading the whole file.
upvoted 0 times
...
Joana
11 months ago
I've got it! The cURL command I need is the HEAD request. That will let me check the last modified date without downloading the entire file, which should help reduce the unnecessary load on the API.
upvoted 0 times
...
Phung
11 months ago
Wait, I'm a bit confused. Wouldn't the --silent option just suppress the output, but not actually optimize the API usage?
upvoted 0 times
...
Vincenza
11 months ago
Okay, I think the key here is to determine the last modified date of the file. The HEAD request should give me that information without downloading the entire file.
upvoted 0 times
...
Ruth
11 months ago
Hmm, this seems like a tricky one. I'll need to think carefully about the different cURL options and how they could help optimize the API usage.
upvoted 0 times
...
Loreta
11 months ago
Hmm, I'm a bit unsure about this one. The question is asking about multiple file uploading modes, but I'm not too familiar with Alibaba Cloud's OSS service. I'll have to read through the options carefully and try to eliminate the incorrect ones.
upvoted 0 times
...
Dorthy
11 months ago
I’m not really sure, but I feel like extending the bid opening date isn't a common reason for bribery. Maybe it’s B?
upvoted 0 times
...
Ernest
1 year ago
You know, the developer who wrote this code must have been really bored. Downloading a file every hour, even when it's unchanged? That's just asking for trouble!
upvoted 0 times
Rex
1 year ago
D) curl -H 'Cache-Control: no-cache' request
upvoted 0 times
...
Carylon
1 year ago
That's a good point. Using a HEAD request would be more efficient.
upvoted 0 times
...
Jose
1 year ago
B) curl HEAD request
upvoted 0 times
...
...
Roxane
1 year ago
Bingo! The HEAD request is the way to go. I can practically hear the servers sighing in relief from all that unnecessary traffic.
upvoted 0 times
Iola
1 year ago
D) curl -H 'Cache-Control: no-cache' request
upvoted 0 times
...
Clorinda
1 year ago
C) curl --silent request
upvoted 0 times
...
Vicente
1 year ago
B) curl HEAD request
upvoted 0 times
...
...
Hollis
1 year ago
Hah, the no-cache option is a bit overkill, don't you think? We just want to check the modified date, not bypass the cache entirely.
upvoted 0 times
Marshall
1 year ago
B) curl HEAD request
upvoted 0 times
...
Juan
1 year ago
Hah, the no-cache option is a bit overkill, don't you think? We just want to check the modified date, not bypass the cache entirely.
upvoted 0 times
...
Amber
1 year ago
D) curl -H 'Cache-Control: no-cache' request
upvoted 0 times
...
Micheal
1 year ago
C) curl --silent request
upvoted 0 times
...
Mauricio
1 year ago
B) curl HEAD request
upvoted 0 times
...
Tony
1 year ago
A) curl GET request
upvoted 0 times
...
...
Rosio
1 year ago
I was initially thinking the GET request, but the HEAD request makes much more sense. Gotta love those optimizations!
upvoted 0 times
Una
1 year ago
Using the --silent flag will help optimize the API usage by suppressing unnecessary output.
upvoted 0 times
...
Reuben
1 year ago
C) curl --silent request
upvoted 0 times
...
Daryl
1 year ago
Absolutely, the HEAD request is perfect for checking the last modified date without downloading the entire file.
upvoted 0 times
...
Nguyet
1 year ago
B) curl HEAD request
upvoted 0 times
...
...
Colene
1 year ago
The HEAD request seems like the obvious choice here. It allows you to check the last modified date without downloading the entire file. Very efficient!
upvoted 0 times
...
Gary
1 year ago
I'm not sure, but I think C) curl --silent request could also be a good option to optimize API usage.
upvoted 0 times
...
Angelyn
1 year ago
I agree with Vi, using HEAD request will only retrieve the headers without downloading the file.
upvoted 0 times
...
Vi
1 year ago
I think the answer is B) curl HEAD request.
upvoted 0 times
...

Save Cancel