PD1 4
![]() |
![]() |
![]() |
Título del Test:![]() PD1 4 Descripción: gogogogo |




Comentarios |
---|
NO HAY REGISTROS |
Which three operations affect the number of times a trigger can fire? (Choose three.). A. Lightning Flows. B. Roll-Up Summary fields. C. Criteria-based Sharing calculations. D. Workflow Rules. E. Email messages. What is the result of the following code snippet? public void doWork(Account acct){ for(Integer i = 0;i<=200;i++){ insert acct; } }. A. 200 Accounts are inserted. B. 1 Account is inserted. C. 201 Accounts are inserted. D. 0 Accounts are inserted. What are three capabilities of the tag <ltng:require> when loading JavaScript resources in Aura components? (Choose three.). A. One-time loading for duplicate scripts. B. Specifying loading order. C. Loading externally hosted scripts. D. Loading files from Documents. E. Loading scripts in parallel. Which process automation can be used to calculate the shipping cost for an Order when the Order is placed and apply a percentage of the shipping cost to some of the related Order Products?. A. Lightning Component. B. Flow Builder. C. Entitlement Rules. D. Approval Process. Considering the following code snippet: public static void insertAccounts(List<Account> theseAccounts){ for(Account thisAccount : theseAccounts){ if(thisAccount.website == null){ thisAccount.website = 'https://www.demo.com'; } } update theseaAccounts } When the code executes, a DML exception is thrown. How should the developer modify the code to ensure exceptions are handled gracefully?. A. Implement Change Data Capture. B. Implement the upsert DML statement. C. Remove null items from the list of Accounts. D. Implement a try/catch block for the DML. A developer is debugging the following code to determine why Accounts are not being created. List<Account> accts = getAccounts(); Database.insert(accts,false); How should the code be altered to help debug the issue?. A. Change the DML statement to insert method. B. Collect the insert method return value in a SaveResult record. C. Set the second insert method parameter to TRUE. D. Add a try/catch around the insert method. Universal Hiring is using Salesforce to capture job applications. A salesforce administrator created two custom objects; Job__c acting as the master object, Job_Application__c acting as the detail. Within the Job__c object, a custom multi-select picklist, Preferred_Locations__c, contains a list of approved states for the position. Each Job_Application__c record relates to a Contact within the system through a master-detail relationship. Recruiters have requested the ability to view whether the Contact's Mailing State value matches a value selected on the Preferred_Locations__c field, within the Job_Application__c record. Recruiters would like this value to be kept in sync, if changes occur to the Contact's Mailing State or if the Job's Preferred_Locations__c field is updated. What is the recommended tool a developer should use to meet the business requirement?. A. Apex Trigger. B. Process Builder. C. Record-triggered flow. D. Formula field. Consider the following code snippet: public static List<Lead> obtainAllFields (Set<Id> leadIds){ List<Lead> result = new List<Lead>(); for(Id leadId : leadIds){ result.add([SELECT FIELDS(ALL) FROM LEAD WHERE ID = :leadId]); } return result; } Given the multi-tenant architecture of the Salesforce platform, what is a best practice a developer should implement and ensure successful execution of the method?. A. Avoid performing queries Inside for loops. B. Avoid executing queries without a limit clause. C. Avoid using variables as query filters. D. Avoid returning an empty List of records. The Account object in an organization has a master detail relationship to a child object called Branch. The following automations exist: • Rollup summary fields • Custom validation rules • Duplicate rules A developer created a trigger on the Account object. What two things should the developer consider while testing the trigger code? (Choose two.). A. The trigger may fire multiple times during a transaction. B. Rollup summary fields can cause the parent record to go through Save. C. Duplicate rules are executed once all DML operations commit to the database. D. The validation rules will cause the trigger to fire again. In terms of the MVC paradigm, what are two advantages of implementing the view layer of a Salesforce application using Lightning Web Component-based development over Visualforce? (Choose two.). A. Self-contained and reusable units of an application. B. Log capturing via the Debug Logs Setup page. C. Built-in standard and custom set controllers. D. Rich component ecosystem. A developer needs to implement a custom SOAP Web Service that is used by an external Web Application. The developer chooses to Include helper methods that are not used by the Web Application in the implementation of the Web Service Class. Which code segment shows the correct declaration of the class and methods?. A. webservice class WebServiceClass{ private Boolean helperMethod(){} global static String updateRecords(){} }. B. global class WebServiceClass{ private Boolean helperMethod(){} global static String updateRecords(){} }. C. webservice class WebServiceClass{ private Boolean helperMethod(){} webservice static String updateRecords(){} }. D. global class WebServiceClass{ private Boolean helperMethod(){} global String updateRecords(){} }. no. What are two best practices when it comes to Lightning Web Component events? (Choose two.). A. Use event.detail to communicate data to elements in the same shadow tree. B. Use CustomEvent to pass data from a child to a parent component. C. Use event.target to communicate data to elements that aren't in the same shadow tree. D. Use events configured with bubbles: false and composed: false. A developer wrote the following two classes: public with sharing class StatusFetcher{ private Boolean active = true; private Boolean isActive(){ return active; } } The StatusFetcher class successfully compiled and saved. However, the Calculator class has a compile time error. How should the developer fix this code?. A. Change the class declaration for the StatusFetcher class to public with inherited sharing. B. Make the isActive method in the StatusFetcher class public. C. Make the doCalculations method in the Calculator class private. D. Change the class declaration for the Calculator class to public with inherited sharing. An org has two custom objects: • Plan__c, that has a master-detail relationship to the Account object • Plan_Item__c, that has a master-detail relationship to the Plan__c object What should a developer use to create a Visualforce section on the Account page layout that displays all of the Plan__c records related to the Account and all of the Plan_Item__c records related to those Plan__c records. A. A standard controller with a custom controller. B. A standard controller with a controller extension. C. A controller extension with a custom controller. D. A custom controller by itself. A developer has identified a method in an Apex class that performs resource intensive actions in memory by iterating over the result set of a SOQL statement on the account. The method also performs a DML statement to save the changes to the database. Which two techniques should the developer implement as a best practice to ensure transaction control and avoid exceeding governor limits? (Choose two.). A. Use the @ReadOnly annotation to bypass the number of rows returned by a SOQL. B. Use partial DML statements to ensure only valid data is committed. C. Use the System.Limit class to monitor the current CPU governor limit consumption. D. Use the Database.Savepoint method to enforce database integrity. Universal Containers decides to use exclusively declarative development to build out a new Salesforce application. Which three options should be used to build out the database layer for the application? (Choose three.). A. Flows. B. Roll-up summaries. C. Triggers. D. Relationships. E. Custom objects and fields. Universal Containers hires a developer to build a custom search page to help users find the Accounts they want. Users will be able to search on Name, Description, and a custom comments field. Which consideration should the developer be aware of when deciding between SOQL and SOSL? (Choose two.). A. SOSL is faster for text searches. B. SOQL is able to return more records. C. SOQL is faster for text searches. D. SOSL is able to return more records. Universal Containers has a Visualforce page that displays a table of every Container__c being rented by a given Account. Recently this page is failing with a view state limit because some of the customers rent over 10,000 containers. What should a developer change about the Visualforce page to help with the page load errors?. A. Use lazy loading and a transient List variable. B. Use JavaScript remoting with SOQL Offset. C. Implement pagination with a StandardSetController. D. Implement pagination with an OffsetController. A developer migrated functionality from JavaScript Remoting to a Lightning web component and wants to use the existing getOpportunities() method to provide data. Which modification to the method is necessary?. A. The method must return a String of a serialized JSON Array. B. The method must be decorated with (cacheable=true). C. The method must be decorated with @AuraEnabled. D. The method must return a JSON Object. A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org. Which tool should the developer use to troubleshoot?. A. Visual Studio Code IDE. B. AppExchange. C. Developer Console. D. Setup Menu. Universal Containers has implemented an order management application. Each Order can have one or more Order Line items. The Order Line object is related to the Order via a master-detail relationship. For each Order Line item, the total price is calculated by multiplying the Order Line item price with the quantity ordered. What is the best practice to get the sum of all Order Line item totals on the Order record?. A. Roll-up summary field. B. Quick action. C. Apex trigger. D. Formula field. How can a developer check the test coverage of autolaunched Flows before deploying them in a change set?. A. Use the Flow Properties page. B. Use the ApexTestResult class. C. Use SOQL and the Tooling API. D. Use the Code Coverage Setup page. A developer created a Lightning web component called StatusComponent to be inserted into the Account record page. Which two things should the developer do to make this component available? (Choose two.). A. Add true to the statusComponent.js-meta.xml file. B. Add lightning_RecordPage to the statusComponent.js file. C. Add lightning_RecordPage to the statusComponent.js-meta.xml file. D. Add Account to the statusComponent.js-meta.xml file. A developer created these three Rollup Summary fields in the custom object, Project__c: Total_Timesheets__c - Total_Approved_Timesheets__c - Total_Rejected_Timesheets__c - The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given project. Which should the developer use to implement the business requirement in order to minimize maintenance overhead?. A. Apex trigger. B. Record-triggered flow. C. Formula field. D. Field Update actions. Which three resources in an Aura component can contain JavaScript functions? (Choose three.). A. Helper. B. Design. C. Renderer. D. Style. E. Controller. Which two events need to happen when deploying to a production org? (Choose two.). A. All Workflow rules must have at least 1% test coverage. B. All Apex code must have at least 75% test coverage. C. All triggers must have some test coverage. D. All Visual Flows must have at least 1% test coverage. A business has a proprietary Order Management System (OMS) that creates orders from their website and fulfills the orders. When the order is created in the OMS, an integration also creates an order record in Salesforce and relates it to the contact as identified by the email on the order. As the order goes through different stages in the OMS, the integration also updates it in Salesforce. It is noticed that each update from the OMS creates a new order record in Salesforce. Which two actions will prevent the duplicate order records from being created in Salesforce? (Choose two.). A. Use the order number from the OMS as an external ID. B. Write a before trigger on the order object to delete any duplicates. C. Ensure that the order number in the OMS is unique. D. Use the email on the contact record as an external ID. Refer to the following Apex code: Integer x = 0; do{ x = 1; x++; }while(x<1); System.debug(x); What is the value of x when it is written to the debug log?. A. 0. B. 1. C. 2. D. 3. Einstein Next Best Action is configured at Universal Containers to display recommendations to internal users on the Account detail page. If the recommendation is approved, a new opportunity record and task should be generated. If the recommendation is rejected, an Apex method must be executed to perform a callout to an external system. Which three factors should a developer keep in mind when implementing the Apex method? (Choose three.). A. The method must use the @AuraEnabled annotation. B. The method must use the @InvokableMethod annotation. C. The method must be defined as static. D. The method must be defined as public. E. The method must use the @Future annotation. Given the following Anonymous block: List<Case> caseToUpdate = new List<Case>(); for(Case thisCase : [SELECT ID, STATUS FROM CASE LIMIT 50000]){ thisCase.Status = 'Working'; caseToUpdate.add(thisCase); } try{ Database.update(caseToUpdate,false); }catch(Exception e){ System.debug(e.getMessage()); } What should a developer consider for an environment that has over 10,000 Case records?. A. The try-catch block will handle exceptions thrown by governor limits. B. The transaction will fall due to exceeding the governor limit. C. The transaction will succeed and changes will be committed. D. The try-catch block will handle any DML exceptions thrown. A Salesforce Administrator is creating a record-triggered now. When certain criteria are met, the now must call an Apex method to execute a complex validation involving several types of objects. When creating the Apex method, which annotation should a developer use to ensure the method can be used within the flow?. A. @RemoteAction. B. @future. C. @AuraEnabled. D. @InvocableMethod. Which action causes a before trigger to fire by default for Accounts?. A. Renaming or replacing picklists. B. Importing data using the Data Loader and the Bulk API. C. Updating addresses using the Mass Address update tool. D. Converting Leads to Contacts. What are two ways for a developer to execute tests in an org? (Choose three.). A. Tooling API. B. SalesforceDX. C. Metadata API. D. Bulk API. E. Setup Menu. A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles. Which two tools can they use to run a script that deploys to a sandbox? (Choose two.). A. SFDX CLI. B. Developer Console. C. Change Sets. D. VSCode. The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records: @AuraEnabled public void static updateLeads(){ for(Lead thisLead : [SELECT Origin__c From Lead]){ thisLead.LeadSource = thisLead.Origin; update thisLead; } } Which governor limit will likely be exceeded within the Apex transaction?. A. Total number of SOQL queries issued. B. Total number of DML statements issued. C. Total number of records processed as a result of DML statements. D. Total number of records retrieved by SOQL queries. A PrimaryId__c custom field exists on the Candidate__c custom object. The field is used to store each candidate's id number and is marked as Unique in the schema definition. As part of a data enrichment process, Universal Containers has a CSV file that contains updated data for all candidates in the system. The file contains each Candidate's social security number as a data point. Universal Containers wants to upload this information into Salesforce, while ensuring all data rows are correctly mapped to a candidate in the system. Which technique should the developer implement to streamline the data upload?. A. Update the PrimaryId__c field definition to mark it as an External Id. B. Upload the CSV into a custom object related to Candidate__c. C. Create a before save flow to correctly map the records. D. Create a before insert trigger to correctly map the records. In the Lightning UI, where should a developer look to find information about a Paused Flow Interview?. A. On the Paused Flow Interviews related list for a given record. B. In the system debug log by filtering on Paused Flow Interview. C. In the Paused Interviews section of the Apex Flex Queue. D. On the Paused Flow Interviews component on the Home page. A developer created a trigger on the Account object and wants to test if the trigger is properly bulkified. The developer team decided that the trigger should be tested with 200 account records with unique names. What two things should be done to create the test data within the unit test with the least amount of code? (Choose two.). A. Use the @isTest(seeAllData=true) annotation in the test class. B. Create a static resource containing test data. C. Use the @isTest(isParallel=true) annotation in the test class. D. Use Test.loadData to populate data in your test methods. A developer is asked to create a Visualforce page that lists the contacts owned by the current user. This component will be embedded in a Lightning page. Without writing unnecessary code, which controller should be used for this purpose?. A. Standard controller. B. Custom controller. C. Standard list controller. D. Lightning controller. Assuming that name is a String obtained by an a Visualforce page, which two SOQL Queries performed are safe from SOQL injection? (Choose two.). A. String query = '%'+ name + '%'; List<Account> results = [SELECT ID FROM ACCOUNT WHERE NAME LIKE :query];. B. String query = 'SELECT ID FROM ACCOUNT WHERE NAME LIKE \'%'+name.noquotes() + '%''; List<Account> results = Database.query(query);. C. String query = 'SELECT ID FROM ACCOUNT WHERE NAME LIKE \'%'+String.escapingSingleQuotes(name)+'%\''; List<Account> results = Dataabase.query(query);. D. String query = 'SELECT ID FROM ACCOUNT WHERE NAME LIKE \'%'+NAME + '%\''; List<Account> results = Database.query(query);. Which three statements are accurate about debug logs? (Choose three.). A. Only the 20 most recent debug loos for a user are kept. B. System debug logs are retained for 24 hours. C. Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels. D. The maximum size of a debug log is 5 MB. E. Debug logs can be set for specific users, classes, and triggers. Which action may cause triggers to fire?. A. Renaming or replacing a picklist entry. B. Updates to Feed Items. C. Cascading delete operations. D. Changing a user's default division when the transfer division option is checked. When a user edits the Postal Code on an Account, a custom Account text field named “Timezone” must be updated based on the values in a PostalCodeToTimezone__c custom object. Which two automation tools can be used to implement this feature? (Choose two.). A. Quick actions. B. Approval Process. C. Fast Field Updates record-triggered flow. D. Account trigger. What should a developer use to obtain the Id and Name of all the Leads, Accounts, and Contacts that have the company name "Universal Containers"?. A. SELECT Lead.Id, Lead.Name, Account.Id, Account.Name, Contact.Id, Contact.Name FROM Lead, Account, Contact WHERE CompanyName = ‘Universal Containers’. B. FIND ‘Universal Containers’ IN Name Fields RETURNING lead(id, name), account (id, name), contact(id, name). C. FIND ‘Universal Containers’ IN CompanyName Fields RETURNING lead(id, name), account (id, name), contact(id, name). D. SELECT lead(id, name), account (id, name), contact(id, name) FROM Lead, Account, Contact WHERE Name = ‘Universal Containers’. The sales management team at Universal Containers requires that the Lead Source field of the Lead record be populated when a Lead is converted. What should be done to ensure that a user populates the Lead Source field prior to converting a Lead?. A. Create an after trigger on Lead. B. Use a Validation Rule. C. Use a Formula Field. D. Use Lead Conversion field mapping. A developer is creating an app that contains multiple Lightning web components. One of the child components is used for navigation purposes. When a user clicks a button called Next in the child component, the parent component must be alerted so it can navigate to the next page. How should this be accomplished?. A. Create a custom event. B. Call a method in the Apex controller. C. Update a property on the parent. D. Fire a notification. Universal Containers is building a recruiting app with an Applicant object that stores information about an individual person and a Job object that represents a job. Each applicant may apply for more than one job. What should a developer implement to represent that an applicant has applied for a job?. A. Lookup field from Applicant to Job. B. Junction object between Applicant and Job. C. Master-detail field from Applicant to Job. D. Formula field on Applicant that references Job. A developer is creating a Lightning web component to show a list of sales records. The Sales Representative user should be able to see the commission field on each record. The Sales Assistant user should be able to see all fields on the record except the commission field. How should this be enforced so that the component works for both users without showing any errors?. A. Use Lightning Data Service to get the collection of sales records. B. use WITH SECURITY_ENFORCED in the SOQL that fetches the data for the component. C. Use Lightning Locker Service to enforce sharing rules and field-level security. D. Use Security.stripInaccessible to remove fields inaccessible to the current user. Which Lightning code segment should be written to declare dependencies on a Lightning component, c:accountList, that is used in a Visualforce page?. A. <aura:application access='GLOBAL'> <aura:dependency resource="c:accountList" /> </aura:application>. B. <aura:application access="GLOBAL" extends="ltng:outApp"> <aura:dependency resource="c:accountList" /> </aura:application>. C. <aura:component access='GLOBAL'> <aura:dependency resource="c:accountList" /> </aura:component>. d. <aura:component access="GLOBAL" extends="ltng:outApp"> <aura:dependency resource="c:accountList"/> </aura:component>. A software company uses the following objects and relationships: • Case: to handle customer support issues • Defect__c: a custom object to represent known issues with the company's software • Case_Defect__c: a junction object between Case and Defect__c to represent that a defect is a cause of a customer issue Case and Defect__c have Private organization-wide defaults. What should be done to share a specific Case_Defect__c: record with a user?. A. Share the parent Defect__c record. B. Share the parent Case and Defect__c records. C. Share the Case_Defect__c record. D. Share the parent Case record. As part of a data cleanup strategy, AW Computing wants to proactively delete associated opportunity records when the related Account is deleted. Which automation tool should be used to meet this business requirement?. A. Scheduled job. B. Record-triggered flow. C. Workflow rules. D. Outbound messaging. While working in a sandbox, an Apex test falls when run in the Test Framework. However, running the Apex test logic in the Execute Anonymous window succeeds with no exceptions or errors. Why did the method fall in the sandbox test framework but succeed in the Developer Console?. A. The test method is calling an @future method. B. The test method has a syntax error in the code. C. The test method does not use System.runAs to execute as a specific user. D. The test method relies on existing data in the sandbox. The Account object in an organization has a master-detail relationship to a child object called Branch. The follow automations exist: • Roll-up summary fields • Custom validation rules • Duplicate rules A developer created a trigger on the Account object. Which two things should the developer consider while testing the trigger code? (Choose two.). A. The validation rules will cause the trigger to fire again. B. Duplicate rules are executed once all DML operations commit to the database. C. The trigger may fire multiple times during a transaction. D. Rollup summary fields can cause the parent record to go through Save. Where are two locations a developer can look to find information about the status of batch or future methods? (Choose two.). A. Apex Flex Queue. B. Paused Flow Interviews component. C. Apex Jobs. D. Developer Console. What are three characteristics of change set deployments? (Choose three.). A. Change sets can deploy custom settings data. B. Change sets can only be used between related organizations. C. Deployment is done in a one-way, single transaction. D. Sending a change set between two orgs requires a deployment connection. E. Change sets can be used to transfer records. While writing an Apex class, a developer wants to make sure that all functionality being developed is handled as specified by the requirements. Which approach should the developer use to be sure that the Apex class is working according to specifications?. A. Include a try/catch block to the Apex class. B. Create a test class to execute the business logic and run the test in the Developer Console. C. Include a savepoint and Database.rollback(). D. Run the code in an Execute Anonymous block in the Developer Console. Which two scenarios require an Apex method to be called imperatively from a Lightning web component? (Choose two.). A. Calling a method that makes a web service callout. B. Calling a method that is not annotated with cacheable=true. C. Calling a method with the click of a button. D. Calling a method that is external to the main controller for the Lighting web component. Refer to the code snippet below: import fetchOpps from '@salesforce/apex/OpportunitySearch.fetchOpportunities'; @wire(fetchOpps); opportunities; When a Lightning web component is rendered, a list of opportunities that match certain criteria should be retrieved from the database and displayed to the end-user. Which three considerations must the developer implement to make the fetchOpportunities method available within the Lightning web component? (Choose three.). A. The method cannot mutate the result set retrieved from the database. B. The method must be annotated with the @InvocableMethod annotation. C. The method must specify the (cacheable=true) attribute. D. The method must be annotated with the @AuraEnabled annotation. E. The method must specify the (continuation=true) attribute. Universal Containers decides to use purely declarative development to build out a new Salesforce application. Which two options can be used to build out the business logic layer for this application? (Choose two.). A. Record-Triggered Flow. B. Validation Rules. C. Batch Jobs. D. Remote Actions. Universal Containers (UC) is developing a process for their sales teams that requires all sales reps to go through a set of scripted steps with each new customer they create. In the first step of collecting information, UC’s ERP system must be checked via a REST endpoint to see if the customer exists. If the customer exists, the data must be presented to the sales rep in Salesforce. Which two should a developer implement to satisfy the requirements? (Choose two.). A. Trigger. B. Flow. C. Invocable method. D. Future method. A developer created these three Rollup Summary fields in the custom object, Project__c: Total_Timesheets__c - Total_Approved_Timesheets__c - Total_Rejected_Timesheets__c - The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given project. Which should the developer use to implement the business requirement in order to minimize maintenance overhead?. A. Apex trigger. B. Record-triggered flow. C. Formula field. D. Roll-up summary field. Ursa Major Solar has a custom object, ServiceJob_c, with an optional Lookup field to Account called Partner_Service_Provider_c. The TotalJobs_c field on Account tracks the total number of ServiceJob_c records to which a partner service provider Account is related. What is the most efficient way to ensure that the TotalJobs_c field is kept up to date?. A. Create an Apex trigger on ServiceJob_c. B. Change TotalJobs_c to a roll-up summary field. C. Create a record-triggered flow on ServiceJob_c. D. Create a schedule-triggered flow on ServiceJob_c. Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?. A. emit(). B. fireEvent(). C. fire(). D. registerEvent(). If Apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which two statements are true regarding governor limits? (Choose two.). A. The Apex governor limits are reset for each iteration of the execute() method. B. The Apex governor limits cannot be exceeded due to the asynchronous nature of the transaction. C. The Apex governor limits will use the asynchronous limit levels. D. The Apex governor limits are omitted while calling the constructor of the Apex class. A developer at Universal Containers is tasked with implementing a new Salesforce application that will be maintained completely by their company's Salesforce administrator. Which two options should be considered for building out the business logic layer of the application? (Choose two.). A. Record-Triggered Flows. B. Scheduled Jobs. C. Invocable Actions. D. Validation Rules. A developer wants to improve runtime performance of Apex calls by caching results on the client. What is the most efficient way to implement this and follow best practices?. A. Decorate the server-side method with @AuraEnabled(storable=true). B. Set a cookie in the browser for use upon return to the page. C. Call the setStorable() method on the action in the JavaScript client-side code. D. Decorate the server-side method with @AuraEnabled(cacheable=true). A company wants to implement a new call center process for handling customer service calls. It requires service reps to ask for the caller’s account number before proceeding with the rest of their call script. Following best practices, what is the optimal approach to satisfy this requirement?. A. Flow Builder. B. Apex trigger. C. Einstein Next Best Action. D. Approvals. Which annotation should a developer use on an Apex method to make it available to be wired to a property in a Lightning web component?. A. @RemoteAction(cacheable=true). B. @AuraEnabled. C. @RemoteAction. D. @AuraEnabled(cacheable=true). A custom picklist field, Food_Preference_c, exists on a custom object. The picklist contains the following options: “Vegan”, “Kosher”, “No Preference”. The developer must ensure a value is populated every time a record is created or updated. What is the optimal way to ensure a value is selected every time a record is saved?. A. Write an Apex trigger to ensure a value is selected. B. Set “Use the first value in the list as the default value” to True. C. Mark the field as Required on the object’s page layout. D. Mark the field as Required on the field definition. A developer needs to have records with specific field values in order to test a new Apex class. What should the developer do to ensure the data is available to the test?. A. Use SOQL to query the org for the required data. B. Use Anonymous Apex to create the required data. C. Use Test.loadData() and reference a CSV file in a static resource. D. Use Test.loadData() and reference a JSON file in Documents. |