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 8 Question 101 Discussion

A developer is building an application to access a website. When running the application, an HTTP 403 errorcode has been received. How should the application be modified to handle this code?
B) Use exponential backoff when retrying distributed services and other remote endpoints.
A) Create a loop on cancel the operation and run a new one after the code is received.
C) Build a try/except around the urlopen to find errors occurring in the request.
D) Redirect the request to an internal web server and make a new request from the internal resource.

Cisco 350-901 Exam - Topic 8 Question 101 Discussion

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

A developer is building an application to access a website. When running the application, an HTTP 403 error

code has been received. How should the application be modified to handle this code?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Ernie
5 months ago
True, but A is just looping. That won't help much.
upvoted 0 times
...
Dell
5 months ago
D seems risky. Redirecting might not solve the issue.
upvoted 0 times
...
Freeman
5 months ago
But what if the 403 is permanent? C is safer.
upvoted 0 times
...
Precious
5 months ago
Option B could work too. Exponential backoff is smart for retries.
upvoted 0 times
...
Krystina
5 months ago
I agree, C makes sense. Catching exceptions is crucial.
upvoted 0 times
...
Demetra
6 months ago
I think option C is the best choice. It handles errors directly.
upvoted 0 times
...
Freeman
6 months ago
I thought 403 meant forbidden access, how would retrying help?
upvoted 0 times
...
Ozell
6 months ago
Exponential backoff is great for rate limiting, but not sure it fits here.
upvoted 0 times
...
Lina
7 months ago
Wait, why would you redirect instead of just handling the error?
upvoted 0 times
...
Nicolette
7 months ago
I disagree, D could be useful if you have an internal server set up.
upvoted 0 times
...
Denny
7 months ago
I'm going to go with B. Trying to cancel and rerun the operation seems like a hacky solution.
upvoted 0 times
...
Farrah
7 months ago
Option D sounds like a weird workaround. Why would you redirect to an internal server? B is the obvious answer here.
upvoted 0 times
...
Minna
7 months ago
Haha, I bet the developer who wrote this question is just trying to trip us up. Option B is clearly the right choice.
upvoted 0 times
...
Corrina
7 months ago
I agree, B is the way to go. Retrying with exponential backoff is a robust way to handle these types of errors.
upvoted 0 times
...
Kanisha
8 months ago
Option B seems like the best approach. Exponential backoff is a common technique for handling transient errors like HTTP 403.
upvoted 0 times
...
Lezlie
8 months ago
I recall something about exponential backoff being useful for certain errors, but I’m not sure if it applies to a 403 specifically.
upvoted 0 times
...
Muriel
8 months ago
I’m a bit confused about the best way to handle a 403 error. Shouldn't we just retry the request with a different method?
upvoted 0 times
...
Stanton
8 months ago
I'm leaning towards option C. Catching the error and handling it directly seems like the most robust approach to me.
upvoted 0 times
...
Alexis
8 months ago
Option D seems interesting, redirecting to an internal server. That could work if the issue is with the external server, but I'm not sure how practical that would be in a real-world scenario.
upvoted 0 times
...
Cordelia
8 months ago
I think we practiced a similar question about handling errors in API requests. I feel like option C might be the right approach here.
upvoted 0 times
...
Wilburn
9 months ago
I remember discussing HTTP status codes in class, but I'm not entirely sure what a 403 means specifically.
upvoted 0 times
...
Paulene
9 months ago
I like the idea of the try/except block in option C. That would let us catch the specific error and handle it appropriately, rather than just retrying blindly.
upvoted 0 times
...
Jennie
9 months ago
Option C seems like the best choice for error handling.
upvoted 0 times
...
Haydee
9 months ago
Hmm, I think the exponential backoff strategy in option B could be a good way to handle this. That would allow the app to retry the request with some delay, which might help if the issue is temporary.
upvoted 0 times
...
Levi
10 months ago
I'm not sure about this one. The 403 error code usually means the server is refusing the request, so I'm not sure a loop or retry strategy would be the best approach.
upvoted 0 times
Theron
4 months ago
I agree, handling the error directly seems smarter.
upvoted 0 times
...
Scarlet
4 months ago
True, but if the server is refusing, a loop won't help.
upvoted 0 times
...
Enola
4 months ago
But what about option D? Redirecting could work too.
upvoted 0 times
...
Long
5 months ago
I think option C is the best. Catch the error first.
upvoted 0 times
...
Chana
9 months ago
Yeah, a try/except block makes sense.
upvoted 0 times
...
...

Save Cancel