How can the developer generate the code coverage?
An Apex class does not achieve expected code coverage. The testSetup method explicitly calls a method in the Apex class. How can the developer generate the code coverage?A . Verify the user has permissions passing a user into System.runAs().B . Call the Apex class method from a testMethod instead of...
Given a list of Opportunity records named opportunityList, which code snippet is best for querying all Contacts of the Opportunity’s Account?
Given a list of Opportunity records named opportunityList, which code snippet is best for querying all Contacts of the Opportunity’s Account?A . List <Contact> contactList = new List <Contact>(); for(Opportunity o : opportunityList){ Account a = [SELECT Id, (SELECT Id FROM Contacts) FROM Account WHERE Id = :o.AccountId] contactList.addAll(a.Contacts); )B...
Which functionality consideration impacts the final decision?
A developer is trying to decide between creating a Visualforce component or a Lightning component for a custom screen. Which functionality consideration impacts the final decision?A . Does the screen need to be rendered as a PDF?B . Does the screen need to be accessible from the Lightning Experience UI?C...
Which two changes should a developer make in this trigger to adhere to best practices?
Consider the above trigger intended to assign the Account to the manager of the Account’s region. trigger AssignOwnerByRegion on Account ( before insert, before update ) { List<Account> accountList = new List<Account>(); for( Account anAccount : trigger.new ) { Region__c theRegion = [ SELECT Id, Name, Region_Manager__c FROM Region__c WHERE...
Which are relevant practices while analyzing the timeline of different types of transactions in the execution overview panel? (Choose two.)
Which are relevant practices while analyzing the timeline of different types of transactions in the execution overview panel? (Choose two.)A . Log lines in the execution log panel can be analyzed for details about specific eventsB . The performance tree should be use to analyze events further starting from the...
What is the optimal way for a developer to fix the issue?
A company has many different unit test methods that create Account records as part of their data setup. A new required field was added to the Account and now all of the unit tests fail. What is the optimal way for a developer to fix the issue?A . Add a...
Which are relevant practices while analyzing the timeline of different types of transactions in the execution overview panel? (Choose two.)
Which are relevant practices while analyzing the timeline of different types of transactions in the execution overview panel? (Choose two.)A . Log lines in the execution log panel can be analyzed for details about specific eventsB . The performance tree should be use to analyze events further starting from the...
Which feature of Apex code is required to facilitate this solution?
A developer is writing a Visualforce page that queries accounts in the system and presents a data table with the results. The users want to be able to filter the results based on up to five fields. However, the users want to pick the five fields to use as filter...
Which options are valid?
The progress of an apex job queued is using the System.enqueueJob method and needs to be monitored. Which options are valid? (Choose two.)A . Use the Apex Jobs page in setupB . Query the Queueable Apex recordC . Query the AsyncApexJob recordD . Use the Scheduled Jobs page in setupView...
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: A