Exam A
QUESTION 1
What attribute of the <cffunction> tag is used to make a ColdFusion component method accessible as a web service?
A. access = “public”
B. access = “remote”
C. webservice = “yes”
D. returnType = “webservice”
Correct Answer: B QUESTION 2
What are exception types for the <cfcatch> tag? (Choose THREE)
A. ftp
B. xml
C. lock
D. security
E. database
Correct Answer: CDE QUESTION 3
What attributes of the <cffunction> tag are optional in a ColdFusion component, but required if the method is used as a web service? (Choose TWO)
A. Name
B. Roles
C. Access
D. ReturnType
Correct Answer: CD QUESTION 4
What happens to the data because the OUTPUT attribute is NOT used? <cfwddx action=”CFML2WDDX” input=”#aCart#”>
A. nothing the page returns a syntax error
B. data is serialized but no data is outputted
C. data is serialized and outputted to the page
D. data is serialized and placed in the special variable wOutput
Correct Answer: C QUESTION 5
What is added to a URL to access the WSDL content for a ColdFusion web service?
A. /wsdl
B. ?wsdl
C. wsdl=yes
D. method=wsdl
Correct Answer: B QUESTION 6
What expression displays the string “Corfield”?
<employees>
<employee id=”1″>
<firstname>Raymond</firstname>
<lastname>Camden</lastname>
</employee>
<employee id=”2″>
<firstname>Sean</firstname>
<lastname>Corfield</lastname>
</employee>
</employees>
A. employees.employee.lastname[2]
B. employees.employee[2].lastname
C. employees.xmlchildren[2].lastname.xmlText
D. employees.xmlchildren[2].xmlchildren[2].lastname
Correct Answer: C
QUESTION 7
What is added to publish a CFC method as a WebService method?
A. access=”remote” attribute to the <cffunction> tag
B. webservice=”true” attribute to the <cffunction> tag
C. access=”remote” attribute to the <cfcomponent> tag
D. webservice=”true” attribute to the <cfcomponent> tag
Correct Answer: A
QUESTION 8
In what way are Web services consumed in a CFML page? (Choose TWO)
A. <cfhttp>
B. <cfinvoke>
C. <cfwebserver>
D. <cfcomponent>
E. createObject() within a <cfscript> block
Correct Answer: BE
QUESTION 9
What is NOT a means for invoking a web service?
A. <cfhttp>
B. <cfinvoke>
C. <cfservice>
D. createObject()
Correct Answer: C
QUESTION 10
In which order do the exception handling strategies listed provide increasingly more control over the application and code?
A. cferror ; cftry ; Site-Wide Error Template
B. Site-Wide Error Template ; cferror ; cftry
C. cftry ; Site-Wide Error Template ; cferror
D. Site-Wide Error Template ; cftry ; cferror
Correct Answer: B