The automation engineer must replace device configuration using RESTCONF. How is this configured using
the Python library Requests?
Suggested Answer: B
Get Premium 300-435 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
40 comments · newest first
PA
Pansy
11 months ago
Yup, put() is the right choice here!
TA
Taryn
11 months ago
Wait, is it really put()? Seems too simple.
AS
Ashley
11 months ago
I thought patch() was for updates, not replacements?
OT
Otis
11 months ago
Definitely C, that’s how REST works!
TO
Tonette
12 months ago
You use put() to replace the entire resource.
ME
Melodie
12 months ago
I’m leaning towards `put()` because it seems to fit the idea of replacing something completely, but I could be mixing it up with another method.
AL
Aleta
1 year ago
I feel like `post()` is for creating new resources, so it can't be the right answer here.
MA
Mari
1 year ago
I remember practicing a question where we had to update a resource, and I think `patch()` was mentioned, but that feels different from replacing.
EL
Eliz
1 year ago
I think we might need to use `put()` for replacing the entire configuration, but I'm not entirely sure.
VA
Vallie
1 year ago
I got this! The key is remembering that RESTCONF uses the standard HTTP methods. To replace the configuration, we'll want to use the `put()` method from the Requests library. Confident I can nail this on the exam.
LI
Linn
1 year ago
Okay, let me walk through this step-by-step. Since we need to replace the entire device configuration, we'll want to use a PUT request to overwrite the existing configuration. The Requests library provides the `put()` method for this purpose.
WH
Whitney
1 year ago
Hmm, I'm a bit unsure about this one. I know RESTCONF is used for configuration management, but I'm not totally clear on the specific HTTP methods to use. I'll have to think this through carefully.
AD
Adell
1 year ago
This looks like a straightforward RESTCONF question. I think the answer is C, using the `put()` method to replace the device configuration.
AS
Ashlee
1 year ago
This question seems straightforward, I think the key is to focus on user access and permissions.
KA
Kati
1 year ago
Ah, the age-old question of which HTTP method to use. Can't go wrong with a good ol' patch(). It's like the swiss army knife of RESTCONF!
ER
Erick
1 year ago
User 4: It's great to see how patch() is the go-to method for many automation engineers.
SA
Sabra
1 year ago
User 3: I always use patch() when I need to make small changes without affecting the entire configuration.
PE
Peggie
1 year ago
User 2: Definitely, it's perfect for updating specific parts of the configuration.
MA
Mable
1 year ago
User 1: I agree, patch() is so versatile!
GR
Gregoria
1 year ago
Haha, I almost went with B) post() because who doesn't love a good 'post' request? But in all seriousness, patch() is the way to go here.
MA
Marguerita
1 year ago
Yeah, patch() is the way to go when using the Python library Requests for device configuration.
MA
Matthew
1 year ago
I think patch() is the best option for this scenario.
VA
Vashti
1 year ago
I agree, patch() is the correct method to use for replacing device configuration.
TR
Trinidad
1 year ago
I was torn between C) put() and D) patch(), but patch() makes more sense since we're only replacing a part of the configuration, not the whole thing.
MA
Mattie
1 year ago
So, it seems like patch() is the best choice for replacing device configuration using RESTCONF with the Python library Requests.
SH
Shaunna
1 year ago
I agree, put() is used to completely replace a resource, while patch() is used for partial updates.
LE
Lezlie
1 year ago
Yes, patch() is used to make partial updates to a resource, so it makes sense to use it for replacing part of the configuration.
DO
Dorinda
1 year ago
I agree, patch() is the best choice for updating specific parts of the configuration using RESTCONF.
YO
Yolando
1 year ago
I think you're right, patch() is the correct method to use in this case.
CA
Carmen
1 year ago
Yes, patch() is the way to go for partial updates. It's more efficient than replacing the entire configuration with put().
RO
Rocco
1 year ago
I think you're right, patch() is the correct method to use when replacing only a part of the configuration.
CR
Craig
2 years ago
The correct answer is D) patch(). This allows you to update specific attributes of the device configuration without replacing the entire configuration.
IV
Ivette
1 year ago
The correct answer is D) patch(). This allows you to update specific attributes of the device configuration without replacing the entire configuration.
CA
Cassi
1 year ago
D) patch()
NO
Noah
1 year ago
C) put()
RI
Rickie
1 year ago
B) post()
AN
Anastacia
2 years ago
A) delete()
RO
Rodney
2 years ago
I'm not sure, but I think delete() is used to remove resources, so it can't be the answer
DE
Devora
2 years ago
I agree with Hillary, put() is used to update or replace resources in RESTCONF
HI
Hillary
2 years ago
I think the answer is C) put()