Cisco
300-635 · Question #34
300-635 Question #34: Real Exam Question with Answer & Explanation
Sign in or unlock 300-635 to reveal the answer and full explanation for question #34. The question stem and answer options stay visible for context.
Question
A server profile with the string "WEST15" in its name must have the string "WEST15" changed to "LXT14". For example, server profile "VMHOST-WEST15-01" would need to be changed to "VMHOST-LXT14-01".
Using the Cisco Intersight REST API in a Python script, which two GET API requests are used to retrieve just the server profile with the string "WEST15" in the name and the correct body for the API request to update the name? Assume the variable "sp_name" contains the name of the retrieved server profile. (Choose two.)
Options
- AGET https://intersight.com/api/v1/server/Profiles?$select=Name&$filter=contains(Name,'WEST15')
- BGET https://intersight.com/api/v1/server/Profiles?$select=Name&$filter=Name in('WEST15')
- CBODY = {"Name": sp_name.format('WEST15', 'LXT14')}
- DGET https://intersight.com/api/v1/server/Profiles?$select=Name&$filter=startswith(Name,'WEST15')
- EBODY = {"Name": sp_name.replace('WEST15','LXT14')}
Unlock 300-635 to see the answer
You've previewed enough free 300-635 questions. Unlock 300-635 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.