What are three benefits of using static resources in Visualforce and Lightning Components? (Choose three.)

What are three benefits of using static resources in Visualforce and Lightning Components? (Choose three.)A . Static resource files are automatically minified.B . Static resource files can be referenced by using the $Resource global variable instead of hardcoded IDs.C . Static resource files can be packaged into a collection of...

June 10, 2020 No Comments READ MORE +

Which interface needs to be implemented by a Lightning Component so that it may be displayed in modal dialog by clicking a button on a Lightning Record page?

Which interface needs to be implemented by a Lightning Component so that it may be displayed in modal dialog by clicking a button on a Lightning Record page?A . force:lightningQuickActionB . lightning:quickActionC . lightning:editActionD . force:lightningEditActionView AnswerAnswer: B

June 10, 2020 1 Comment READ MORE +

Which method should be used to convert a Date to a String in the current user’s locale?

Which method should be used to convert a Date to a String in the current user’s locale?A . Date.formatB . String formatC . String.valueOfD . Date.parseView AnswerAnswer: C

June 9, 2020 1 Comment READ MORE +

What is the optimal way to achieve this?

A company wants to incorporate a third-party web service to set the Address fields when an Account is inserted, if they have not already been set. What is the optimal way to achieve this?A . Create a Process, call an Apex @future(callout=true) method from it, and make the callout from...

June 9, 2020 No Comments READ MORE +

What is the optimal way to fix this?

The test method above calls an @future method that increments the Number_of_Times_Viewed__c value. The assertion is failing because the Number_of_Times_Viewed__c equals 0. @isTest static void testIncrement() { Account acct = new Account(Name = 'Test'); acct.Number_Of_Times_Viewed__c = 0; insert acct; AuditUtil.incrementViewed(acct.Id); Account acctAfter = [SELECT Number_Of_Times_Viewed__c FROM Account WHERE Id =...

June 9, 2020 1 Comment READ MORE +

What is the optimal way to implement this?

A company represents their customers as Accounts that have an External ID field called Customer_Number__c. They have a custom Order (Order__c) object, with a Lookup to Account, to represent Orders that are placed in their external order management system (OMS). When an order is fulfilled in the OMS, a REST...

June 9, 2020 No Comments READ MORE +

Which code block will accurately meet the business requirements?

A developer is asked to update data in an org based on new business rules. The new rules state that Accounts with the type set to 'Customer' should have a status of 'Active', and Accounts with the type set to 'Prospect' should have a status of 'Pending'. No other changes...

June 9, 2020 No Comments READ MORE +

What can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact fails?

Business rules require a Contact to always be created when a new Account is created. What can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact fails?A . Use the Database.Delete method if the Contact insertion fails.B . Use...

June 8, 2020 No Comments READ MORE +

What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?

What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?A . Use the Schema namespace.B . Use a static resource.C . Perform a callout to the Metadata APE . Perform a SOQL Query.View AnswerAnswer: A

June 8, 2020 No Comments READ MORE +

What is the optimal method to implement this?

A company processes Orders within their Salesforce instance. When an Order’s status changes to 'Paid' it must notify the company’s order management system (OMS). The OMS exposes SOAP web service endpoints to listen for when to retrieve the data from Salesforce. What is the optimal method to implement this?A ....

June 8, 2020 No Comments READ MORE +