What code should the developer use to authenticate?

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?A . Http.setHeader ('Authorization' , 'Basic QthZGprjpchVulHNchFtZQ!)B . stub.inputHttpHeaders_x.put('Authorization' , 'Basic QthZGprJpchVulHNchFtZQ')C . Http.setAuthentication('Basic QthZGprjpchVulHNchFtZQ')D . stub.authentication.put ('Authorization','Basic QthZGprjpchVulHNchFtZQ')View AnswerAnswer: B

April 22, 2022 No Comments READ MORE +

Which assertion would be used in a negative test case?

A developer is writing unit tests for the following method: Which assertion would be used in a negative test case?A . System.assertEquals(true, isFreezing(null))B . System.assertEquals (true, isFreezing('O')C . System.assertEquals(null, isFreezing('asdf))D . System.assertEquals(true, isFreezingClOO'))View AnswerAnswer: C

April 22, 2022 No Comments READ MORE +

In which of the following scenarios would it be acceptable to use programmatic sharing instead of declarative sharing? (Choose three.)

In which of the following scenarios would it be acceptable to use programmatic sharing instead of declarative sharing? (Choose three.)A . Every record created by sales users needs to be visible to their respective managerB . Poor performance when using native sharing componentsC . Team functionality is required on custom...

April 22, 2022 No Comments READ MORE +

What is the optimal code that should be added to fire the event when the search has completed?

A company has a custom component that allows users to search for records of a certain object type by invoking an Apex Controller that returns a list of results based on the user's input, when the search Is completed, a searchComplete event is fired, with the results put in a...

April 22, 2022 No Comments READ MORE +

What might be causing the failed assertion?

A developer wrote a trigger on Opportunity that will update a custom Last Sold Date field on the Opportunity's Account whenever an Opportunity is dosed. In the test class for the trigger, the assertion to validate the Last Sold Date field fails. What might be causing the failed assertion?A ....

April 22, 2022 No Comments READ MORE +

What is the optimal way to automate this?

A company has reference data stored in multiple Custom Metadata records that represent default information for certain. When a Contact is inserted, the default information should be set on the Contact from the Custom Metadata records .. Address information. What is the optimal way to automate this?A . Process BuilderB...

April 22, 2022 No Comments READ MORE +

What is the transaction limit on the recursive trigger depth?

What is the transaction limit on the recursive trigger depth?A . 10B . 17C . 16D . 3E . There is no limitView AnswerAnswer: C

April 21, 2022 No Comments READ MORE +

What is the outcome after executing the following code snippet in the org?

The Contact object has a custom field called "Zone." Its data type is "Text" and field length is 3 . What is the outcome after executing the following code snippet in the org?A . Both inserts succeed and the contact record that has the Zone value of 'PI'IT is set...

April 21, 2022 No Comments READ MORE +

Invokable methods accept sObjects as parameters.

Invokable methods accept sObjects as parameters.A . TrueB . FalseView AnswerAnswer: B

April 21, 2022 No Comments READ MORE +

What is the optimal way to implement these requirements?

An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecting one Contact will de-select any others. The client wants a checkbox on the Contact called 'Is Primary' to control this feature. The client also wants to ensure that the...

April 21, 2022 No Comments READ MORE +