Preguntas Examenes PDF

Summary

This document contains Salesforce exam questions. The questions cover topics such as Apex programming, Visualforce, and Lightning Components.

Full Transcript

1) 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 Most eficiente way to ensure a valu...

1) 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 Most eficiente way to ensure a value is selected every time a record is saved?  Mark the field as Required on the field definition.  Mark the field as Requires on the object´s page layout.  Set a validation rule to enforcé a value is selected.  Set “Use the first value in the list as the default value” as True. 2) Universal Containers wants Oppotunities to no longer be editable when reaching the Closed/Won Stage. How should a Developer accomplish this?  Use a validation rule.  Use the Process Automation Settings.  Use Flow Biulder.  Mark fields as read-only on the page layout. 3) While working in a sandbox, an Apex test fails when run in the Test Framework. However, running the Apex test logic in the Execute Anonymous window succeeds with no exceptions or error. Why didthemethod fail in the sandbox test framework but suceed in the Developer Console?  The test method has a syntax error ni the code.  The test method does not use System.runAs to execute as a specific user.  The test method relies on existing data in the sandbox.  The test method is calling an @future method. 4) A recursiver transaction is initiated by a DML statement creating records for these two objects: o Accounts o Contacts The Account trigger hits a stack depth of 16. Which statement is true regarding the outcome of the transaction?  The transaction succeeds as long as the Contact trigger stack depth is less or equal to 16.  The transaction fails and all the changes are rolled back.  The transaction is partially committed up until the stack depth is exceded.  The transaction succeeds and all changes are committed to the database. 5) Which aspecto of Apex programming is limited due to multitenancy?  The number of records processed in a loop.  The number of methods in the Apex class.  The number of active Apex classes.  The Number or records returned from database queries. 6) How should a Developer write unit test for a private method in an Apex class?  Use the SeeAllData annotation.  Use the TestVisible annotanion.  Add a test method in the Apex class.  Mark the Apex class as global. 7) Given the following code sinpper, that is part of Custom controller for a Visualfoce page: public void updateContact (Contact thisContact){ thisContact.Is_Active__c = false; try{ Update thisContact; }catch (Exception e){ String errorMessage = ‘An error ocurred while updating the Contact. ‘+e.getMessage()); ApexPages.addmessage(new ApexPages.message(ApexPages.severity.FATAL, errorMessage)); } } In which two ways can the try/catch be enclosed to enforce object and field-level permissions and prevent the DML statement from beingexecute if the current logged-in user does not have the appropiated level of access? Chose 2 answers.  Use if(thisContact.OwnerId == UserInfo.getUserId())  Use if(Schema.aObjectType.Contact.isUpdatable())  Use if(Schema.aObjectType.Contact.isAccesible())  Use if(Schema.aObjectType.Contact.fields.is_Arrive__r.isUpdatable()) 8) What is an example of a polymorphic lookup field in Salesforce?  The ParentId field on the standard Account object.  The WhatId field on the standard Event object.  The LeadId and ContactId fields on the standard Campaing Member object  A Custom field, Link__C, on the standard Contact object that looks up to an Account or Campaign. 9) Universal Containers wants to back up all of the data and attachments in its Salesforceorg a month. Which approach should a Developer use to meet this requierement?  Define a Data Export scheduled job.  Use the Data Loader command line.  Create a Schedulable Apex class.  Schedule a report. 10) In the following example, which sharing context will myMethod execute when it is invoked? public Class myClass { public void myMethod() { } }  Sharing rules will be enforced by the instantiating class.  Sharing rules will be inherited from the calling context.  Sharing rules will be enforced for the running user.  Sharing rules will not be enforced for the running user. 11) A Developer created a new trigger that inserts a Task when a new Lead is Created. After deploying to production, an outside Integration that reads task records is periodically reporting errors. Which change should the Developer make to ensure the Integration is not a ected with minimal impact to business logic?  Deactivate the trigger before the Integration runs.  Use a try-catch block after the insert statement.  Remove the Apex class from the Integration user’s profile.  Use the Database method with allOrNone set to false. 12) Which two are best practices when it comes to Aura component and application event handing? Choose 2 answers  Try to use application events as opposed to component events.  Reuse the event logic in a component budle, by putting the logic in the helper.  Handle low-level events in the evento handler and re-fire them as higher-level events.  Use component events to communicate actions that should be hndled at the application level. 13) What are two ways that a controller and extensión can be specified for a custom object named “Notice” on a Visualforce page? Choose 2 answers  apex:page controllers=”Notice__c, myControllerExtension”  apex:page controller=”Notice__c” extensions=”myControllerExtension”  apex:page standardController=”Notice__c” extensions=”myControllerExtension”  apex:page=Notice extenis=”myControllerExtension” 14) What should a Developer do to check the code coverage of a class after running all test?  View the Code Coverage columns in the list vie won the Apex Classes page.  View the Class Test Percentage tab on the Apex Class list view in Salesforce Setup.  View the code coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Test tab.  Select and run the class on the Apex Test Execution page in the Developer Console. 15) Which process automation should be used to send an outbound message without Apex code?  Workflow Rule.  Process Builder.  Strategy Builder.  Flow Builder. 16) A Developer has a single custom controller class that Works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL. Which three statements are useful inside the unit test to e ectively test the Custom controller? Choose 3 answers  String nextPage = controller.save().getUrl();  Test.setCurrentPage(pageRef);  insert.pageRef;  ApexPages.currentPage().getParameters().put(‘input’, ’TestValue’);  public ExtendedController(ApexPages.StandardController cntrl) { } 17) A Developer must create an Apex class, ContactController, that a Ligthning component can use to search for Contact records. Users of the Ligthning component should only be able to search for Contact records to which they have Access. Which two will restrict the records correctly?  public with sharing class ContactControler.  public class ContactController.  public inherited sharing class ContactController.  public without sharing class ContactController. 18) A Developer needs to prevent the Creation of Request__c records when certain conditions exist in the system. A RequestLogic class exits that check theconditions. What is the correct implementation?  trigger RequestTrigger on Request__c (after insert) { RequestLogic.validateRecords(trigger.new); }  trigger RequestTrigger on Request__c (before insert){ if (RequestLogic.isValid(Request__c)) Request.addError(‘Your request cannot be Created at this time.’); }  trigger RequestTrigger on Request__c (after insert){ if (RequestLogic.isValid(Request__c)) Request.addError(‘Your request cannot be Created at this time.’); }  trigger RequestTrigger on Request__c (before insert){ RequestLogic.validateRecords(trigger.new); } 19) A Developer must create a ShippingCalculator class that cannot be instantiated and must include a working default implementation of a calculate method, that sub-classes can Override. What is the correct implementation of the ShippingCalculator class?  public abstract class ShippingCalculator { public override calculate () { } }  public abstract class ShippingCalculator { public virtual calculate () { } }  public abstract class ShippingCalculator { public abstract calculate () { } }  public abstract class ShippingCalculator { public void calculate () { } } 20) Which statement describes the execution order when triggers are associated to the same object and event?  Trigger execution order cannot be guaranteed.  Triggers are executed in the order they are Created.  Triggers are executed alphabetically by Trigger name.  Triggers are axecuted in the order they are modiied. 21) For which three items can a trace flag be configured? Choose 3 answers  Apex Class  Visualforce  Apex Trigger  User  Process Builder 22) Since Aura application events follow the traditional publich-subscribe model, which method is used to fire an event?  fire()  emit()  registerEvent()  fireEvent() 23) A Developer needs create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a Custom Visualforce page. Which three attributes need to be defined with values in the tag to accomplish this? Choose 3 answers  standardController  extensions  renderAs  readOnly  action 24) A developer wants to invoke an outbound message when a record meets a specific criteria. Which two features satisfy this use case? Choose 2 answers  Approval Process has the capability to check the record criterio an send an outbound message without Apex Code.  Next Best Action can be used to check the record criterio and send an outbound message.  Flow Builder can be used to check the record criterio and send an outbound message.  Process Builder 25) 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 PostalCodeToimezone__c custom object. What should be built to implement this feature?  Account custom trigger  Account approval process  Account assignament rule  Account workflow rual 26) Which annotation exposes an Apex class as a RESTful web service?  @RestResource  @RemoteAction  @SttpInvocable  @AuraEnabled 27) A Developer needs to create a baseline set of data (Accounts, Contacts, Productos, Assets) for an entire suite of test allowing them to test independent requirements various types of Salesforce Cases. Which approach can e iciently generate the required data for each unit test?  Use @TestSetup with a void method.  Add @IsTest (AllData=true) at the start of hte unit test class.  Create a mock using the Stub API.  Create test data before Test.startTest() in the unit test. 28) An Opportunity needs to have an amount rolled up from a Custom object that is not in a master-detail relationship. How can this be achieved?  Write a trigger on the child object and use a red-black tree sorting to um the Amount for all related child objects under the Opportunity.  Write a Process Builder that links the Custom objects to the Opportunity.  Write a trigger on the child object and use an aggregate funtion to sum the amount for all related child objects under the Opportunity.  Use the Streaming API to create real-time roll-up summaries. 29) A Developer has the following requirements: o Calculate the total Amount on an Order. o Calculate the line Amount for each Line Item base don Quantity selected and price. o Move Line Items to a di erent Order if a Line Items is not in stock. Which relationship implementation supports these requirements?  Line Item has a master-detail field to Order and the master can be re-parented.  Order has a master-detail field to Line Item and there can be many Line items per Order.  Line Item has a lookup field to Order and there can be many Orders per Line Items.  Order has a lookup field to Line Item and there can be many Line Items pero Order. 30) Universal Containers recently transitioned from Classic to Lightning Experience.One of its business processes requires certain values from the Opportunity object to be sent via an HTTP REST callout to its external order management system base don a user-initiated action on the Opportunity detal page. Example values are as follows: o Name o Amount o Account Which two methods should the Developer implement to fulfillthe business requirement? Choose two answers  Create a Process Builder on the Oppotunity object tan executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.  Create an after update trigger on the Opportunity object that calls a helper method using @Future(Callout=true) to perform the HTTP REST callout.  Create a Lightning component that performs the HHTP REST callout, and use a Lightning Action to expose the componen ton the Opportunity detal page.  Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the componen ton the Opportunity detael page. 31) Which exception type cannot be caugth?  CalloutException  LimitException  NoAccessException  A Custom Exception 32) A Developer writes a Trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is Created or updated. The field Update in the workflow rule is configured to not re-evaluate workflow rules. What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other aotumation logic is implemente don the Account?  2  3  1  4 33) Given the following trigger implementation_ trigger leadTrigger on Lead (before updae){ final ID BUSINESS_RECORDTYPEID = ‘012500000009Qad’; for(Lead thisLead : Trigger.new){ if (thisLead.Company != null && thisLead.RecordTypeId != BUSINESS_RECORDTYPEID){ thisLead.RecordTypeId = BUSINESS_RECORDTYPEID; } } } The Developer receives deployment errors every time a deployment is attempted from a sandbox to Production. What should the Developer do to ensure a sucessful deployment?  Ensure BUSSINES_RECORDTYPEID is retrieved using Schema.Describe calls.  Ensure a record type with an ID of BUSSINES_RECORDTYPE exists on Production prior to deployment.  Ensure the deployment is validated by a System Admin user on Production.  Ensure BUSSINES_RECORDTYPEID is pushed as part of the deployment components. 34) What can be Developer using the Lightning Component framework?  Dynamic web sites.  Hosted web applications.  Salesforce integrations.  Single-page web apps. 35) A Developer is implementing an Apex class for a financial system. Within the class, the variables ‘creditAmount’ and ‘debitAmount’ should not be able to change once a value is assigned. In which two ways can the Developer declare the variables to ensure their value can only be assigned one time? Choose 2 answers  Use the final keyword and assign its value in the class constructor.  Use the static keyword and assingn its value in the class contructor.  Use the final keyword and assign its value when declaring the variable.  Use the static keyword and assign its value in a static initializer. 36) Universal Containers has an order System that uses an Order Number to identify an order for customers and service agents. Order records Will be imported into Salesforce. How should the Order number field be defined in Salesforce?  Number with External ID  Direct Lookup  Lookup  Indirect lookup 37) A Developer created these three roll-up summary fields on the custom object, Project__c: Total_Timesheets__c Total_Approved_Timesheets__c Total_Rejected_Timesheet__c The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given Project. What are two benefits of choosing a formula field instead of an Apex Trigger to fulfill the request? Choose 2 answers  A test class Will validate the formula field during deployment.  A formula field will trigger existing automation when deployed.  A formula field will calculate the value retroactively for existing records.  Using a formula field reduces Maintenance overhead. 38) The values ‘High’, ‘Medium’, and ‘Low’ are identified as common values for multiple picklists across diferente objects. What is an approach a Developer can take to streamline maintenance of the picklists and their values, while also restricting the values to the ones mentioned above?  Create the Picklist on each object as a required field and select ‘Display values alphabetically, not in the order entered’.  Create the Picklist on each object and use a Global Piclist Value Set containing the values.  Create the Picklist on each object and select ‘Restrict picklist to the values defined in the value set’.  Create the Picklist on each object and add a validation rule to ensure data integrity. 39) A custom Visualforce controller calls the ApexPages.addMessage() method, but no messages are rendering on the page. Which component should be added to the Visualforce page to display the message?     40) What is the result of the following code? Account a = new Account(); Database.insert(a, false);  The record will not be Created and an exception will be thrown.  The record will be created and a message will be in the debug log.  The record will be Created andno error will be reported.  The record will not be Created and no error Will be reported. 41) A team of developers is working on a source-driven project that allows them to work independently, with many di erent org configurations. Which type of Salesforce orgs should they use for their development?  Developer orgs  Full Copy sandboxes  Scratch orgs  Developer sandboxes 42) A Developer has an Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the Developer prevent a cross site scripting vulnerability?  String.escapeSingleQuotes(ApexPages.currentPage().getParameters().get(‘url_param’))  ApexPages.currentPage().getParameters().get(‘url_param’).escapeHtml4()  String.ValueOf(ApexPages.currentPage().getParameters().get(‘url_param’))  ApexPages.currentPage().getParameters().get(‘url_param’) 43) Which three statements are true regarding custom exceptions in Apex? Choose 3 answers  A custom exception class must extend the System Exception class.  A custom exception class cannot contain member variables or methods.  A custom exception class can extend other classes besides the Exception class.  A custom exception class can implement one or many interfaces.  A custom exception class name must end with “Exception”. 44) Instead of sending emails to support personnel directly from Salesforce from the finish method of a batch process, Universa Containers wants to notify an external system in the event that an unhandled exception occurs. What is the appropriate publish/subscribe logic to meet this requierement?  Since this only involves sending emails, no publishing is necessary. Havethe external system subscribe to the BatchApexError event.  Publish the error event using the addError() method and write a trigger to subscribe to the event and notify the external system.  Publish the error event using the addError() method and have the external system subscribe to the event using CometD.  Publish the error event using the Eventbus.publish() method and have the external system subscribe to the event using CometD. 45) A Developer identifies the following triggers on the Expense__c object: deleteExpense, applyDefaultsToExpense, validateExpenseUpdate; The triggers process before delete,before insert, and before Update events respectively. Which two techniques should the Developer implement to ensure trigger best practices are followed? Choose 2 answers  Unify all three triggers in a single trigger on the Expense__c object than includes all events.  Maintain all three triggers on the Expense__c object, but move the Apex logic out of the trigger definition.  Unify the before insert and before Update triggers and use Process Builder for the delete action.  Create helper classes to execute the appropriate logic when a record is saved. 46) A Developer is creating a page that allows users to create multiple Opportunities. The Developer is asked to verify the current user’s default Opportunity record type, and set certain default values based on the record type before inserting the record. How can the Developer find the current user’s default record type?  Query the Profile where the ID Equals userInfo.getProfileID() and then use the profile.Opportunity.getDefaultRecordType() method.  Use Opportunity.SObjectType.getDescribe().getRecordTypeInfos() to get a list of record types, and iterate through them until isDefaultRecordTypeMapping() is true.  Use the Schema.userInfo.Opportunity.getDefaultRecordType() method.  Create the Opportunity and check the opporunity.recordType, which will have the record ID of the current user’s default record type, before inserting. 47) Which three Salesforce resources can be accessed form a lightning web component? Choose 3 answers  Third-party web components  SVG resources  Static resources  Content asset files  All external libraries 48) Universal Containers uses a Master-Detail relationship and stores the availability date on each Line Item of an Order and Orders are only shipped when all of the Line Items are available. Which method should be used to calculate the estimated ship date for an Order?  Use a LASTEST formula on each of the latest availability date fields.  Use a CEILING formula on each of the latest availability date fields.  Use a MAX Roll-Up Summary field on the latest availability date fields.  Use a DAYS formula on each of the availability date fields and a COUNT Roll-Up Summary fiel don the Order. 49) Given the following Anonymous block: List casesToUpdate = new List{}; For(Case thisCase : [SELECT Id, Status FROM Cases LIMIT 50000]){ Thiscase.Status = ‘Working’; casesToUpdate.add(thisCase); } try{ Database.update(casesToUpdate, false); }catch (Exception e){ System.debug(e.getMessage()); } What should a Developer consider for an environment that has over 10.000 Case rocords?  The try catch block will handle any DML exceptions thrown.  The transactions will succeed and changes will be committed.  The transaction will fail due to exceeding the governor limit.  The try catch block Will handle exceptions throw by governor limits. 50) A team of many developers work in their own individual orgs that have the same configuration as the production org. Which type of org is best suited for this scenario?  Full Sandbox  Developer Edition  Partner Developer Edition  Developer Sandbox 51) What are two ways for a Developer to execute test in an org? Choose 2 answers  Bulk API  Developer Console  Tooling API  Metada API 52) A Developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the Platform governor limit. public without sharing class OpportunityService{ public static List getOppotunityProducts(Set opportunityIds){ List oppLineItems = new List< OpportunityLineItem >; For(Id thisOppId : opportunityIds){ oppLineItems.addAll([SELECT Id FROM OpportunityLineItems WHERE OpportunityId = :thisOppId]); } Returns oppLineItems } } The above method might be called during a trigger execution via a Lightniing component. Which technique should be implemented to avoid reaching the governor limit?  Refactor the code above to perform only one SOQL query, filtering by the set of opportunityIds.  Use the System.Limits.getQueries() method to ensure the Number of queries is less tan 100.  Refactor the code above to perform the SOQL query only if the set of opportunityIds contains less 100 Ids.  Use the System.Limits.getLimitQueries() method to ensure the number of queries is less than 100. 53) What should be used to create scratch orgs?  Workbench  Salesforce CLI  Developer Console  Sandbox refresh. 54) Which Salesforce feature allows a developer to see when a user last logged in to Salesforce if real-time notification is not required?  Asynchronous Data Capture Events  Calendar Events  Developer Log  Event Monitoring Log 55) Universal Contains has a large number of custom applications that were built using a third-party framework and exposed using Visualforce pages. The company wants to Update these applications to apply styling that resembles the look and feel of Lightning Experience. What should the developer do to fulfill the business request in the quickest and most e ective manner?  Enable Available for Lightning Experience, Lightning Communities, and the mobile app on Visualforce pages used by the custom application.  Set the attribute enableLightning to true in the definition.  Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications.  Rewrite all Visualfoce pages as Lightning components. 56) Flow builder uses an Apex Action to provide additional information about multiple Contacts, store dina a Custom class, ContactInfo. Which is the correct definition of the Apex method that gets the additional information?  @InvocableMethod (label=’Additional Info’) public ContactInfo getInfo(Id contactId) {}  @InvocableMethod (label=’Additional Info’) Public List getInfo(List contactIds) {}  @InvocableMethod (label=’Additional Info’) Public static ContactInfo getInfo(Id contactId) {}  @InvocableMethod (label=’Additional Info’) public static List getInfo(List contactIds) {} 57) Refer to the following code snippet for an enviroment has more than 200 Accounts belonging to the ‘Technology’ industry: for(Account thisAccount : [SELECT Id, Industry FROM Account LIMIT 150]){ if(thisAccount.Industry == ‘Tecnology’){ thisAccount.Is_Tech__C = true; } Update thisAccount; } When the code executes, what happens as result of the Apex transaction?  If executed in a synchronous context, the Apex transacion is likely to fail by exceeding the DML governor limit.  The Apex transaction succeeds regadles of any uncaught exception and all processed accounts are updated.  The Apex transaction fsild with the following message_ SObject row was retrived via SQL without querying the requested field: Account.Is_Tech__c.  If executed in an asynchronous context, the Apex transaction is likely to fail by exceeding the DML governor limit. 58) Universal Containers decides to use exclusively declarative development to built out a new Salesforce application. Which three options should be used to build out the database layer for the application? Choose 3 answers  Triggers  Process Builder  Roll-up summaries  Relationships  Custom objects and fields. 59) An org has existing Flow that creates an Opportunity with an Update Records element. A developer must update the Flow to also create a Contact and store the created Contact´s ID on the Opportunity. Which update should the developer make in the Flow?  Add a new Create Records element.  Add a new Get Records element.  Add a new Quick Action element (of Type Create).  Add a new Update Records ement. 60) A developer is writing test for a class and needs to insert records to validate funcionality. Which annotation method should be used to create records for every method in the test class?  @TestSetup  @isTest (SeeAllData = true)  @StartTest  @PreTest 61) Universal Containers wants to back up all of the data and attachments in Salesforce org once month. Which approach should a developer use to meet this requirement?  Schedule a report.  Define a Data Export scheduled job.  Create a Schedulable Apex class.  Use the Data Loader command line. 62) Which two statements accurately represent the MVC framework implementation in Salesforce? Choose 2 answers  Records created or updated by triggers represent the Model (M) part of the MVC framework.  Validation rules enforcé business rules and represent the Controller ( C) part of the MVC framework.  Standard and Custom ojects used in the app schema represent the View (V) part of the MVC framework.  Lightning component HTML files represent the Model (M) part of the MVC framework. 63) Universal Container has a large number of custom applications that were built using a third-party JavaScript framework and exposed using Visualforce pages. The company wants to Update these applications to apply styling that resembles the look and feel of Lightning Experience. What should the developer do to fulfill the business request in the quickest and Most e ective manner?  Incorporate the Salesforce Lightning Desing System CSS stylesheet into the JavaScript applications.  Enabled Available for Lightning Experience, Lightning Communities, and the mobile app on Visualforce pages used by the custom application.  Set the attribute enableLightning to true in the definition.  Rewrite all Visualforce pages as Lightning components. 64) Which process automation should be used to send an outbound message without using Apex Code?  Workflow Rule  Process Builder  Flow Builder  Strategy Builder 65) What does the Lightning Component framework provide to developer?  Support for Classic and Lightning UIs  Templates to create custom components  Prebuilt components that can be reused  Extended governor limits for applications 66) What are two benefits of using declarative customizations over code? Choose 2 answers  Declarative customizations automatically update with each Salesforce release.  Declarative customizations cannot generate run time errors.  Declarative customizations automatically generate test classes.  Declarative customizations generally require less Maintenance. 67) What are three considerations when using the @InvocableMethod annotationin Apex? Choose 3 answers  Only one method using the @InvocableMethod annotation can be defined per Apex class.  A method using the @InvocableMethod annotation can have multiple inputs parameters.  A method using the @InvocableMethod annotation can be declared as Public or Global.  A method using the @InvocableMethod annotation must define a return value.  A method using the @InvocableMethod annotation must be declared as static. 68) Which code displays the contents of a Visualforce page as a PDF?     69) Whar should a developer use to obtain the Id and Name of all the Leads, and Contacts that have the company name”Universal Containers”?  SELECT lead(id, name), Account(id, name), contact(id, name) FROM Lead, Account, Contact WHERE Name= ‘Universal Containers’  FIND ‘Universal Containers’ IN Name Fields RETURNING lead(id, name), Account(id, name), contact(id, name)  SELECT Lead.id, Lead.Name, Acount.Id, Account.Name, Contact.Id, Contact.Name FROM Lead, Account, Contact WHERE CompanyName = ‘Universal Containers’  fIND ‘Universal Containers’ IN CompanyName Fields RETURNING Lead(id, name), Account)id, name), contact(id, name) 70) How many Accounts will be inserted by the following block of code? for(Integer i = 0; i < 500; i++){ Account a = new Account(Name = ‘new Account’ + i); Insert a; }  0  150  500  100 71) A developer created a new Trigger than inserts a Task when a new Lead is created. After deploying to production, an outside Integration that reads task records is periodically reporting errors. Which change should the developer make to ensure the Integration is not a ected with minimal impact to business logic?  Use the Database method with allOrNone set to false.  Deactivate the trigger before the integrations runs.  Use a try-catch block the insert statement.  Remove the Apex classfrom the integrations user’s profile. 72) A developer considers the following snippet of code: Boolean isOK; integer x; String theString = ‘Hello’; If (isOK == false && theString == ‘Hello’){ X = 1; } else if (isOK == true && theString == ‘Hello’){ X = 2; } else if (isOK ¡= null && theString == ‘Hello’){ X = 3; } else { X = 4; } Based on this code, what is the value of x?  3  4  1  2 73) 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 avaliable to the test?  Use Anonymous Apex to create the required data.  Use Test.loadData() and reference a JSON file in Documents.  Use Test.loadData() and reference a CSV file in a static resource.  Use SOQL to query the org for the required data. 74) Which two statements are true about using the @testSetup annotation in an Apex test class? Choose 2 answers  A method defined with the @testSetup annotation executes foreach test methodin the test class and count towards System limits.  In the test setup method, test data is inserted once and made avaliable for all test methods in the test class.  The @testSetup annotation is not supported when the @isTest(SeeAlldata=True) annotation is used.  Records created in the test setup method cannot be updated in individual test methods. 75) A developer must created a Lightning component that alllows a user to input Contact record information to create a Contact record, including a Salary__c custom field. What should the developer use, along with a lightning-record-edit-form, so that Salary__c field functions as a Currency input and is only viewable and editable by users that have the correct field level permissions on Salary__c?     76) Which three steps allow a custom Scalable Vector Graphic (SVG) to be included in a Lightning web component? Choose 3 answers  Upload the SVG as a static resource.  Import the static resource and provide a variable for it in JavaScript.  Reference the import in the HTML template.  Reference the variable in the HTML template.  Import the SVG as a content asset file 77) Which exception type cannot be caught?  CalloutException  LimitException  A Custom Exception  NoAccessException 78) Universal Containers uses a simple Order Management app. On the Order Lines, the order line total is calculated by multiplying the item price with the Quantity ordered. There is a master-detail relationship between the Order and the Order Lines object. What is the best practice to get the sum of all order line total son the order header?  Roll-up summary field  Declarative Roll-up Summaries app  Apex trigger  Process Builder 79) A team of developers is working on a source-driven project that allows them to work indepedently, whith many diferente org configurations. Which type of Salesforce orgs should they use for their development?  Developer orgs  Developer sandboxes  Full Copy sandbxes  Scratch orgs 80) 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 sabe the changes to the database. Which two techniques should the Developer implement as a best practice to ensure transaction control avoid exceeding governor limits? Choose 2 answers  Use the Database.Savepoint method to enforcé database integrity.  Use partial DML statements to ensure only valid data is committed.  Use the @ReadOnly annotation to bypass the Number of rows returned by SOQL.  Use the System.Limit class to monitor the current CPU governor limit consumption. 81) What is the value of the Trigger.old context variable in a before insert trigger?  A list of newly Created sObject without IDs  null  An empty list of sObjects  Undefined 82) 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?  AppExchange  Developer Console  Visual Studio Code IDE  Setup Menu 83) How should a custom user interface be provided when a user edits an Account in Lightning Experience?  Override the Account’s Edit button with a Lighting Action.  Override the Account’s Edit button with a Lighting Flow.  Override the Account’s Edit button with a Lighting page.  Override the Account’s Edit button with a Lighting component. 84) Instead of sending emails to Support personnel directly from Salesforce from the finish method of a batch process, Universal Containers wants to notify an external system in the event that an unhandled exception occurs. What is the appropiate publish/subscribe logic to meet this requierement?  Publish the error event using the Eventbus.publish() method and have the external system subscribe to the event using CornetD.  Publish the error event using the addError() method and write a Trigger to subscribre to the event and notify the external system.  Since this only involves sending emails, no publishing is necessary. Mave the external system subscribe to the SearchApexError evento.  Publish the error event using the addError() method and have the external system subscribe to the evento using CornetD. 85) How can a developer check the test coverage of active Process Builders and Flows before deploying them in a Change Set?  Use SOQL and the Tooling API.  Use the ApexTestResult class.  Use the Code Coverage Setup page.  Use the Flow Properties page. 86) A Lightning component has a wire property, searchResults, that stores a list of Opportunities. Which definition of the Apex method, to which the searchResults property is wired, should be used?  @AuraEnabled(cacheable=false) public static List search(String tern) { }  @AuraEnabled(cacheable=true) public static List search(String tern) { }  @AuraEnabled(cacheable=false) public List search(String tern) { }  @AuraEnabled(cacheable=true) public List search(String tern) { } 87) Which statement generates a list of Leads and Contacts that have a field with the phrase ‘ACME’?  List searchList = [SELECT Name, ID FROM Contact, Lead WHERE Name like ‘%ACME’];  List searchList = [FIND “*ACME*” IN ALL FIELDS RETURNING Contact, Lead];  Map searchList = [FIND “*ACME*” IN ALL FIELDS RETURNING Contact, Lead];  List searchList = [FIND “*ACME*” IN ALL FIELDS RETURNING Contact,Lead]; 88) In the Lightning UI, where should a developer look to find information about a Paused Flow Interview?  In the system debug log by filtering on Paused Flow Interview  On the Paused Flow Interviews related list for a given record  On the Paused Flow Interviews component on the Home page  In the Paused Interviews section of the Apex Flex Queue 89) Refer to the following code snippet for an enviroment has more than 200 Accounts belonging to the ‘Technology’ industry: for(Account thisAccount : [SELECT Id, Industry FROM Account LIMIT 150])){ if(thisAccount.Industry == ‘Technology’){ thisAccount.Is_Tech__c = true; } Update thisAccount; } When the code executes, what happens as a result of the apex transaction?  The Apex transaction succeeds regardless of any uncaught exception and processed accounts are updated.  If executed in an asynchronous context, the Apex transaction is likely to fail by exceeding the DML governor limit.  If executed in a synchronous context, the apex transaction is likely to fail by exeeding the DML governor limit.  The Apex transaction fail with the following message: sObject row was retrived vis SOQL without querying the request fields: Account.Is__Tech__c. 90) Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers  $Lightning.createComponent  $Lightning.userComponent   $Lightning.use  91) What are two characteristics related to formulas? Choose 2 answers  Formulas can reference themselves.  Formulas can reference values in related objects.  Fileds that are used in a formula field can be deleted or edited without editing the formula.  Formulas are calculated at runtime and are not stored in the database. 92) What is a benefit of developing applications in a multi-tenant enviroment?  Default out-of-the-box configuration  Unlimited processing power and memory  Enforced best practices for development  Access to predefined computing resources 93) Which action may cause triggers to fire?  Changing a user’s default división when the transfer división option is checked  Renaming or replacing a picklist entry  Updates to Feed Items  Cascading deleteoperations 94) Which two events need to happen when deploying to a production org? Choose 2 answers  All Apex code must have at least 75% test coverage.  All Visual Flows must have at least 1% test coverage.  All triggers must have some test coverage.  All Process Builder Processes must have at least 1% test coverage. 95) The Job_Application__c custom object has a field that is a master-detail to the Contect object, where the Contact object is the master. As a part a feature implementation, a developer needs to retrieve a list containing all Contact records where Account Industry is ‘Technology’, while also retrieving the Contact’s Job_Application__c records. Based on the object’s relationships, what is the most e icient statement to retrieve the list of Contacts?  [SELECT Id, (SELECT Id FROM Job_Applications__r) FROM Contact WHERE Account.Industry = ‘Technology’];  [SELECT Id, (SELECT Id FROM Job_Applications__r) FROM Contact WHERE Accounts.Industry = ‘Technology’];  [SELECT Id, (SELECT Id FROM Job_Application__c) FROM Contact WHERE Account.Industry = ‘Technology’];  [SELECT Id, (SELECT Id FROM Job_Applications__c) FROM Contact WHERE Accounts.Industry = ‘Technology’]; 96) What is the result of the following code snippet? public void doWork (Account acct){ for (Integer i= 0; i 75% code coverage.  The deployment fails because the Apex Trigger has no code coverage. 112) A company has a custom object, Order__c, that has a required, unique external ID field called Order__Number__c. Which statement should be used to perform the DML necessary to insert new records and Update existing records in a list of Order__c records using the external ID field?  merge orders;  merge orders Order_Number__c;  upsert orders Order_Number__c;  upsert orders; 113) An org has an existing flow that edits an Opportunity with an Update Records element. A developer must update the flow to also create a Contact and store the created Contact’s ID on the Opportunity. Which update must the developer make in the flow?  Add an new Update Records element.  Add an new Roll Back Records element.  Add an new Create Records element.  Add an new Get Records element. 114) Which Lightning Web Component custom event property settings enable the event to bubble up the containment hierarchy and cross the Shadow DOM boundary?  bubbles: true, composed: false  bubbles: false, composed: false  bubbles: true, composed: true  bubbles: false, composed: true 115) Universal Containers needs to create a custom user interface component that allows users to enter information about their accounts. The component should be able to validate the user input before saving información to the database. What is the best technology to create this component?  Flow  Lightning Web Component  Visualforce  VUE JavaScript framework 116) Assuming that name is a String obtained by an tag on a Visualforce page, which two SOQL queries performed are saf from SOQL injection? Choose 2 answers  String query = ‘%’ + name + ‘%’ List results = [SELECT Id FROM Account WHERE Name LIKE :query];  String query = ‘SELECT Id FROM Account WHERE Name LIKE \’%’ + name.noQuotes() + ’%\’’; List results = Database.query(query);  String query = ‘SELECT Id FROM Account WHERE Name LIKE \’%’ + String.escapeSingleQuotes(name) + ’%\’’; List results = Database.querºy(query);  String query = ‘SELECT Id FROM Account WHERE Name LIKE \’%’ + name + ’%\’’; List results = Database.query(query); 117) Universal Containers has implemented an order management application. Each Order can have one or more Order Line items. Tho 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?  Roll-up summary field  Formula field  Apex trigger  Quick action 118) Refer to the following Apex code: Integer x = 0; do { x = 1; x++; } while (x