Salesforce
PDII · Question #101
PDII Question #101: Real Exam Question with Answer & Explanation
Sign in or unlock PDII to reveal the answer and full explanation for question #101. The question stem and answer options stay visible for context.
Question
A developer has generated Apex code from a WSDL for an external web service. The web service requires Basic authentication. What code should the developer use to authenticate?
Options
- AHttp.setHeader ('Authorization' , 'Basic QthZGprjpchVulHNchFtZQ')
- Bstub.inputHttpHeaders_x.put('Authorization' , 'Basic QthZGprjpchVulHNchFtZQ')
- CHttp.setAuthentication('Basic QthZGprjpchVulHNchFtZQ')
- Dstub.authentication.put ('Authorization','Basic QthZGprjpchVulHNchFtZQ')
Unlock PDII to see the answer
You've previewed enough free PDII questions. Unlock PDII 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.