nerdexam
Cisco

300-635 · Question #16

300-635 Question #16: Real Exam Question with Answer & Explanation

Sign in or unlock 300-635 to reveal the answer and full explanation for question #16. The question stem and answer options stay visible for context.

Question

Refer to the exhibit. Assuming a new ACI instance, what is the result when this script is run?
def add_tenant():
 token = apic_login.aaaLogin()
 for tenant in range(1,10):
 try:
 response = requests.post(
 url=constant.APIC_URL + '/api/node/mo/uni-tn%s.json' % (tenant),
 headers={
 "Cookie": "APIC-cookie=" + token,
 "Content-Type": "application/json; charset=utf-8"
 },
 data=json.dumps({
 "fvTenant": {
 "attributes": {
 "status": "created",
 "dn": "uni/tn-exam%s" % (tenant),
 "name": "tn-exam%s" % (tenant),
 "rn": "tn-exam%s" % (tenant)
 },
 "children": [

 ]
 }
 })
 )
 print('Response HTTP Status Code: {status_code}'.format(
 status_code=response.status_code))
 print('Response HTTP Response Body: {content}'.format(
 content=response.content))
 except requests.exceptions.RequestException:
 print('HTTP Request failed')
 add_tenant()

Options

  • ATen objects are created and subsequently deleted.
  • BNine objects are created.
  • CAn exception is thrown.
  • DTen objects are created.

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.

Full 300-635 Practice