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

Posted by Irene on Jul 13, 2024 at 05:42 AM

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?

Suggested Answer: B

Get Premium 350-901 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
39 comments · newest first
HE
Henriette 11 months ago
No way, HEAD is definitely the way to go here!
EL
Elenora 11 months ago
I thought cURL --silent would help with optimization too?
OM
Omega 11 months ago
Wait, can’t we just use a GET request? Seems simpler.
TA
Tayna 11 months ago
Totally agree, HEAD is efficient for checking last modified dates.
DO
Domonique 12 months ago
B is the right choice! HEAD requests are perfect for this.
LO
Loreta 12 months ago
I vaguely recall something about using Cache-Control, but it seems more related to caching than just checking the last modified date.
NI
Nidia 1 year ago
I think the HEAD request is the right choice because it should give us the last modified date without the extra load.
CA
Carlee 1 year 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.
DE
Derrick 1 year ago
I remember practicing with cURL commands, and I think a HEAD request is used to fetch headers without downloading the whole file.
JO
Joana 1 year 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.
PH
Phung 1 year ago
Wait, I'm a bit confused. Wouldn't the --silent option just suppress the output, but not actually optimize the API usage?
VI
Vincenza 1 year 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.
RU
Ruth 1 year 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.
LO
Loreta 1 year 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.
DO
Dorthy 1 year 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?
ER
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!
RE
Rex 1 year ago
↳ replying to Ernest
D) curl -H 'Cache-Control: no-cache' request
CA
Carylon 1 year ago
↳ replying to Ernest
That's a good point. Using a HEAD request would be more efficient.
JO
Jose 1 year ago
↳ replying to Ernest
B) curl HEAD request
RO
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.
IO
Iola 1 year ago
↳ replying to Roxane
D) curl -H 'Cache-Control: no-cache' request
CL
Clorinda 1 year ago
↳ replying to Roxane
C) curl --silent request
VI
Vicente 1 year ago
↳ replying to Roxane
B) curl HEAD request
HO
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.
MA
Marshall 1 year ago
↳ replying to Hollis
B) curl HEAD request
JU
Juan 1 year ago
↳ replying to Hollis
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.
AM
Amber 1 year ago
↳ replying to Hollis
D) curl -H 'Cache-Control: no-cache' request
MI
Micheal 1 year ago
↳ replying to Hollis
C) curl --silent request
MA
Mauricio 1 year ago
↳ replying to Hollis
B) curl HEAD request
TO
Tony 1 year ago
↳ replying to Hollis
A) curl GET request
RO
Rosio 1 year ago
I was initially thinking the GET request, but the HEAD request makes much more sense. Gotta love those optimizations!
UN
Una 1 year ago
↳ replying to Rosio
Using the --silent flag will help optimize the API usage by suppressing unnecessary output.
RE
Reuben 1 year ago
↳ replying to Rosio
C) curl --silent request
DA
Daryl 1 year ago
↳ replying to Rosio
Absolutely, the HEAD request is perfect for checking the last modified date without downloading the entire file.
NG
Nguyet 1 year ago
↳ replying to Rosio
B) curl HEAD request
CO
Colene 2 years 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!
GA
Gary 2 years ago
I'm not sure, but I think C) curl --silent request could also be a good option to optimize API usage.
AN
Angelyn 2 years ago
I agree with Vi, using HEAD request will only retrieve the headers without downloading the file.
VI
Vi 2 years ago
I think the answer is B) curl HEAD request.
0/2000 characters

Save Cancel