Question 9 of 32 from exam 300-635-DCAUTO: Automating and Programming Cisco Data Center Solutions

Question 9 of 32 from exam 300-635-DCAUTO: Automating and Programming Cisco Data Center Solutions

Question

Refer to the exhibit.

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-exam%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": "exam%s" % (tenant),
“m": "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()

Assuming a new ACI instance, what is the result when this script is run?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.