200-901 Practice Test practice questions, page 6 of 26, with answer review and explanations.
Question 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?
Refactor the code by removing any unnecessary tests.
Reverse engineer and rewrite the code logic.
Using functions, rewrite any pieces of code that are repeated.
Modify the code to use loops.
Question 27
Which principle is a value from the manifesto for Agile software development?
processes and tools over teams and interactions
detailed documentation over working software
adhering to a plan over responding to requirements
customer collaboration over contract negotiation
Question 28
Which advantage does the agile process offer compared to waterfall software development?
to add or update features with incremental delivery
to view the full scope of end-to-end work
to have each phase end before the next begins
to fix any issues at the end of the development cycle
Question 29
How do XML and JSON compare regarding functionality?
XML provides more support for mapping data structures into host languages than JSON.
XML provides more human readability than JSON.
JSON provides less support for data types than XML.
JSON natively supports arrays and XML does not natively support arrays.
Question 30
What are two principles of an infrastructure as code environment? (Choose two.)
Components are coupled, and definitions must be deployed for the environment to function.
Redeployments cause varying environment definitions.
Environments must be provisioned consistently using the same inputs.
Service overlap is encouraged to cater for unique environment needs.
Complete complex systems must be able to be built from reusable infrastructure definitions.