What is the optimal way to fix this?
The test method above calls a web service that updates an external system with Account information and sets the Account’s Integration_Updated__c checkbox to True when it completes. The test fails to execute and exits with an error: "Methods defined as TestMethod do not support Web service callouts. " What is...
What are two limitations to the data being returned by the Controller?
A developer wants to call an Apex Server-side Controller from a Lightning Aura Component. What are two limitations to the data being returned by the Controller? (Choose two.)A . A custom Apex Class can be returned, but only the values of public instance properties and methods annotated with @AuraEnabled are...
What should the developer ensure to correct these errors?
A developer created and tested a Visualforce page in their developer sandbox, but now receives reports that users are encountering ViewState errors when using it in Production. What should the developer ensure to correct these errors?A . Ensure queries do not exceed governor limits.B . Ensure properties are marked as...
What is the optimal way to fix this?
The test method above calls a web service that updates an external system with Account information and sets the Account’s Integration_Updated__c checkbox to True when it completes. The test fails to execute and exits with an error: "Methods defined as TestMethod do not support Web service callouts. " What is...
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...
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
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
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...
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 =...
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...