crackyourinterview.com


(200-901) DevNet Associate (DEVASC) Exam Page 3 (Dumps)


Question No:-21

Refer to the exhibit.


Which Python data structure does my_json contain?


  1. map
  2. list
  3. json
  4. dict

 






Question No:-22

Refer to the exhibit.


Which Python data structure does my_json contain?


  1. (1)
  2. (2)
  3. (3)
  4. (4)

 





Question No:-23

FILL BLANK -

Fill in the blanks to complete the Python script to request a service ticket using the APIC-EM REST API for the user `devnetuser`. import requests import json controller = 'devnetapi.cisco.com/sandbox/apic_em' url = `https://` + controller + `api/va/ticket` payload = {'username': '_________________', 'password': '370940885'} header = {'Content-type': 'application.json'} response = _______________________.post(url, data=json.dumps(payload), \ headers= ______________________, verify=False) r_json = response.json() print(r_json) ticket = r_json[`response`][`serviceTicket`] print(ticket)

Choose from below list

  (1)devnetuser , requests , header
  (2)header, footer, requests
  (3)devnetuser, header, requests
  (4)None of above

 





Question No:-24

Refer to the exhibit.


The output of a unified diff when comparing two versions of a Python script is shown. Which two `single_request_timeout()` functions are defined in fish.py and cat.py? (Choose two.)



  (1) Option 1
  (2) Option 2
  (3) Option 3
  (4) Option 4
  (5) Option 5

 









Question No:-25

DRAG DROP -

Drag and drop the Git commands from the left onto the right that add modified local files to a remote repository. Not all options are used.

Select and Place:



 





Question No:-26

A developer is reviewing a code that was written by a colleague. It runs fine, but there are many lines of code to do a seemingly simple task repeatedly. Which action organizes the code?


  1. Refactor the code by removing any unnecessary tests.
  2. Reverse engineer and rewrite the code logic.
  3. Using functions, rewrite any pieces of code that are repeated.
  4. Modify the code to use loops.

 





Question No:-27

Which principle is a value from the manifesto for Agile software development?


  1. processes and tools over teams and interactions
  2. detailed documentation over working software
  3. adhering to a plan over responding to requirements
  4. customer collaboration over contract negotiation

 





Question No:-28

Which advantage does the agile process offer compared to waterfall software development?


  1. to add or update features with incremental delivery
  2. to view the full scope of end-to-end work
  3. to have each phase end before the next begins
  4. to fix any issues at the end of the development cycle

 





Question No:-29

How do XML and JSON compare regarding functionality?


  1. XML provides more support for mapping data structures into host languages than JSON.
  2. XML provides more human readability than JSON.
  3. JSON provides less support for data types than XML.
  4. JSON natively supports arrays and XML does not natively support arrays.

 





Question No:-30

What are two principles of an infrastructure as code environment? (Choose two.)


  1. Components are coupled, and definitions must be deployed for the environment to function.
  2. Redeployments cause varying environment definitions.
  3. Environments must be provisioned consistently using the same inputs.
  4. Service overlap is encouraged to cater for unique environment needs.
  5. Complete complex systems must be able to be built from reusable infrastructure definitions.

 




1 | 2 | 3 | 4















@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap