Cisco
300-635 · Question #5
300-635 Question #5: Real Exam Question with Answer & Explanation
Sign in or unlock 300-635 to reveal the answer and full explanation for question #5. The question stem and answer options stay visible for context.
Question
Refer to the exhibit. Which change allows the code to configure VLAN 10 in the Cisco UCS?
1 from ucsmsdk.ucshandle import UcsHandle
2 from ucsmsdk.mometa.fabric.FabricVlan import FabricVlan
3
4 handle = UcsHandle("corpucsm.example.com", "admin", "MySecretPassword")
5 handle.login()
6
7 fabric_lan_dn = handle.query_dn("fabric/lan")
8 newvlan = FabricVlan(parent_mo_or_dn=fabric_lan_dn,
9 name="vlan10",
10 id="10")
11
12 handle.add_mo(newvlan)
13
14 handle.logout()
Options
- ALines 8 and 9 should have a line continuation \ at the end.
- BLine 13 should include
handle.commit(). - CLine 4 should include transport 443 option.
- DLine 3 should add an import for query_dn.
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.