Certified Platform Developer II Exam QuestionsBrowse all questions from this exam

Certified Platform Developer II Exam - Question 80


A developer has created a solution using the SOAP API for authenticating Communities users.

What is needed when issuing the login() Call? (Choose two.)

Show Answer
Correct Answer: ACD

When issuing the login() Call in the SOAP API for authenticating Communities users, the required elements are the Username and Password, as well as the Security Token. The Username and Password are used to identify and authenticate the user, while the Security Token is appended to the end of the user's password to provide an additional layer of security. The Organization Id is not required for this specific authentication process.

Discussion

9 comments
Sign in to comment
amerbearatOptions: CD
Aug 13, 2021

The correct answer is CD Explanation/Reference: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm

RegNavOptions: AC
May 21, 2023

I don't think Communities user have Security Token. Not D then. AC?

amerbearat
Aug 13, 2021

A developer has created a solution using the SOAP API for authenticating Communities users. What is needed when issuing the login() Call?

Rp194Options: CD
Jul 16, 2022

Should be CD

sf2022Options: CD
Dec 7, 2022

CD are correct ans

lorenac2Options: CD
Dec 29, 2022

CD, can also be used in the REST API: https://developer.salesforce.com/docs/atlas.en-us.202.0.api_rest.meta/api_rest/intro_understanding_username_password_oauth_flow.htm

santo_ajOptions: CD
May 11, 2023

C D is the correct answer. LoginResult = connection.login(string username, string password); To log in, the user must add the security token at the end of the user’s password. https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm

santo_ajOptions: CD
May 11, 2023

<?xml version="1.0" encoding="utf-8" ?> <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Body> <n1:login xmlns:n1="urn:partner.soap.sforce.com"> <n1:username>{{username}}</n1:username> <n1:password>{{password}}{{secretToken}}</n1:password> </n1:login> </env:Body> </env:Envelope>

MarkusTOptions: AC
May 30, 2024

Answer is AC. Reference link same as others posted and it clearly states: "To authenticate an active Experience Cloud site user who has the API Enabled permission, use LoginScopeHeader to specify the Organization ID of the org with Experience Cloud sites." https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm Communities users don't have security token either.