option
Cuestiones
ayuda
daypo
buscar.php

Dev I - Set 1

COMENTARIOS ESTADÍSTICAS RÉCORDS
REALIZAR TEST
Título del Test:
Dev I - Set 1

Descripción:
Platform Developer 1 SFDC SUM23 - SET 1

Fecha de Creación: 2023/06/11

Categoría: Otros

Número Preguntas: 60

Valoración:(2)
COMPARTE EL TEST
Nuevo ComentarioNuevo Comentario
Comentarios
NO HAY REGISTROS
Temario:

A developer must create a Lightning componente that allows users 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?. <lightning-input-field field-name="Salary__c"> </lightning-input-field>. <lightning-input-currency value="Salary__c"> </lightning-input-currency>. <lightning-formatted-number value="Salary__c" format-style="currency"> </lightning-formatted-number>. <lightning-input- type="number" value="Salary__c" formatter="currency"> </lightning-input>.

A company has been adding data to Salesforce and has not done a good job of limiting the creation of duplicate Lead records. The developer is considering writing an Apex process to identify duplicates and merge the records together. Which two statements are valid considerations when using marge? Choose 2 answers. External ID fields can be used with the merge method. Merge is supported with accounts, contacts, cases, and leads. The field values on the master record are overwritten by the records being merged. The merge method allows up to three records, including the master and two additional records with the same sObject type, to be merged into the master record.

Which three steps allow a custom Scalable Vector Graphic (SVG) to be included in a Lightning web component? Choose 3 answers. Reference the property in the HTML template. Import the static resource and provide a JavaScript property for it. Reference the import in the HTML template. Upload the SVG as a static resource. Import the SVG as a content asset file.

Universal Containers wants to back up all of the data and attachments in its Salesforce org once a month. Which approach should a developer use to meet this requirement?. Schedule a report. Use the Data Loader command line. Define a Data Export scheduled job. Create a Schedulable Apex class.

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 ordermanagement system based on an ad-hoc basis when the user presses a custom button on the Opportunity detail page. Example values are as follows: - Name - Amount - Account Which two methods should the developer implement to fulfill the business requirement? Choose 2 answers. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page. Create a Remote Action on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated. Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the component on the Opportunity detail page. Create an after update trigger on the Opportunity object that calls a helper method using @Future {Callout=true} to perform the HTTP REST callout.

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?. 1. 2. 3. 4.

How can a developer check the test coverage of autolaunched Flows before deploying them in a change set?. Use SOQL and the Tooling API. Use the Flow Properties page. Use the ApexTestResult class. Use the Code Coverage Setup page.

Which action may cause triggers to fire?. Renaming or replacing a pickilist entry. Changing a user's default division when the transfer division option is checked. Updates to Feed Items. Cascading delete operations.

What can be used to override the Account’s standard Edit button for Lightning Experience?. Lightning action. Lightning component. Lightning flow. Lightning page.

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 2 answers. SOQL is able to return more records. SOSL is faster for text searches. SOQL is faster for text searches. SOSL is able to return more records.

Which Lightning code segment should be written to declare dependencies on a Lightning component, that is used in a Visualforce page?. <aura:application access="GLOBAL" extends="ltng:outApp"> <aura:dependency resource="c:accountList"/> </aura:application>. <aura:component access="GLOBAL" extends="ltng:outApp"> <aura:dependency resource="c:accountList"/> </aura:component>. <aura:application access="GLOBAL"> <aura:dependency resource="c:accountList"/> </aura:application>. <aura:component access="GLOBAL"> <aura:dependency resource="c:accountList"/> </aura:component>.

Which three statements are true regarding custom exceptions in Apex? Choose 3 answers. A custom exception class name must end with “Exception”. 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 implement one or many interfaces. A custom exception class can extend other classes besides the Exception class.

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?. Share the Case_Defect__c record. Share the parent Case and Defect __c records. Share the parent Case record. Share the parent Defect__c record.

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?. Mark the field as Required on the field definition. Mark the field as Required on the object's page layout. Set "Use the first value in the list as the default value” to True. Write an Apex trigger to ensure a value is selected.

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?. @AuraEnable. @AuraEnable (cacheable=true). @RemoteAction (cacheable=true). @RemoteAction.

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 3 answers. Custom objects and fields. Flows. Relationships. Triggers. Roll-up summaries.

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?. Use Test.loadData () and reference a JSON file in Documents. Use Anonymous Apex to create the required data. Use SOQL to query the org for the required data. Use Test.loadData () and reference a CSV file in a static resource.

Which scenario is valid for execution by unit tests?. Execute anonymous Apex as a different user. Load data from a remote site with a callout. Generate a Visualforce PDF with getContentAsPDF (). Set the created date of a record using a system method.

A developer wants to import 500 Opportunity records into a sandbox. Why should the developer choose to use Data Loader instead of Data Import Wizard?. Data Import Wizard can not import all 500 records. Data Loader automatically relates Opportunities to Accounts. Data Loader runs from the developer's browser. Data Import Wizard does not support Opportunities.

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?. Decorate the server-side method with @AuraEnable (storable=true). Call the setStorable () method on the action in the JavaScript client-side code. Decorate the server-side method with @AuraEnable (cacheable=true). Set a cookie in the browser for use upon return to the page.

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?. Use a formula field. Create an after trigger on Lead. Use a validation rule. Use Lead Conversion field mapping.

A Salesforce administrator used Flow Builder to create a flow named “accountOnboarding”. The flow must be used inside an Aura component. Which tag should a developer use to display the flow in the component?. aura:flow. lightning-flow. aura-flow. lightning:flow.

How should a developer write unit tests for a private method in an Apex class?. Use the SeeAllData annotation. Mark the Apex class as global. Use the TestVisible annotation. Add a test method in the Apex class.

In the following example, which sharing context will myMethods execute when it is invoked? public Class myClass { public void myMethod () { /* implementation */ } }. Sharing rules will be inherited from the calling context. Sharing rules will be enforced for the running user. Sharing rules will be enforced by the instantiating class. Sharing rules will not be enforced for the running user.

A developer created a child Lightning web component nested inside a parent Lightning web component. The parent component needs to pass a string value to the child component. In which two ways can this be accomplished? Choose 2 answers. The parent component can use the Apex controller class to send data to the child component. The parent component can invoke a method in the child component. The parent component can use a custom event to pass the data to the child component. The parent component can use a public property to pass the data to the child component.

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 2 answers. Validation Rules. Record-Triggered Flows. Scheduled Jobs. Invocable Actions.

Which three statements are accurate about debug logs? Choose 3 answers. The maximum size of a debug log is 5 MB. Debug logs can be set for specific users, classes, and triggers. Only the 20 most recent debug logs for a user are kept. Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels. System debug logs are retained for 24 hours.

An org has an 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 must the developer make in the flow?. Add a new Update Records element. Add a new Create Records element. Add a new Get Records element. Add a new Roll Back Records element.

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 another custom object called PostalCodeToTimezone__c. What is the optimal way to Implement this feature?. Build a flow with Flow Builder. Build an account assignment rule. Create a formula field. Create an account approval process.

Where are two locations a developer can look to find information about the status of batch or future methods? Choose 2 answers. Apex Flex Queue. Apex Jobs. Developer Console. Paused Flow Interviews component.

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?. <apex:facet name="messages”/>. <apex:message for="info"/>. <apex:pageMessages />. <apex:pageMessage severity="info"/>.

Which action causes a before trigger to fire by default for Accounts?. Updating addresses using the Mass Address update tool. Renaming or replacing picklists. Converting Leads to Contacts. Importing data using the Data Loader and the Bulk API.

Which two events need to happen when deploying ta a production arg? Choose 2 answers. All triggers must have some test coverage. All Visual flows must have at least 1% test coverage. All Workflow rules must have at least 1% test coverage. All Apex code must have at least 75% test coverage.

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 <OpportunityLineItem> getOpportunityProducts (Set<Id> opportunityIds) { List <OpportunityLineItem> oppLineItems = new List <OpportunityLineItem> []; for (Id thisOppId:opportunityIds){ oppLineItems.addAll ([Select Id FROM OpportunityLineItem WHERE OpportunityId =:thisOppId]); } return oppLineItems; } } The above method might be called during a trigger execution via a Lightning component. Which technique should be Implemented to avoid reaching the governor limit?. Use the System.Limits.getLimitQueries () method to ensure the number of queries is less than 100. Use the System.Limits.getQueries () method to ensure the number of queries is less than 100. Refactor the code above to perform the SOQL query only if the set of opportunityIds contains less 100 IDs. Refactor the code above to perform only one SOQL query, filtering by the set of opportunityIds.

A developer is asked to prevent anyone other than a user with Sales Manager profile from changing the Opportunity Status to Closed Lost if the lost reason is blank. Which automation allows the developer to satisfy this requirement in the most efficient manner?. An approval process on the Opportunity object. A record trigger flow on the Opportunity object. An error condition formula on a validation rule on Opportunity. An Apex trigger on the Opportunity object.

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. Create the opportunity and check the opportunity.recordType, which will have the record ID of the current user's default record type, before inserting. Use the Schema.userInfo.Opportunity.getDefaultRecordType () method. Use Opportunity.SObjectType.getDescribe () .getRecordTypeInfos () to get a fist of record types, and iterate through them until isDefaultRecordTypeMapping () is true.

Which two are phases in the Aura application event propagation framework? Choose 2 answers. Bubble. Init. Control. Default.

Which three Salesforce resources can be accessed from a Lightning web component? Choose 3 answers. All external libraries. Content asset files. SVG resources. Third-party web components. Static resources.

What are three characteristics of change set deployments? Choose 3 answers. Sending a change set between two args requires a deployment connection. Change sets can deploy custom settings data. Deployment is done in a one-way, single transaction. Change sets can only be used between related organizations. Change sets can be used to transfer records.

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?. Apex trigger. Quick action. Roll-up summary field. Formula field.

A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Within the class, the developer Identifies the following method as a security threat: List <Contact> performSearch (String lastName) { return Database.query ('SELECT id, FirstName, LastName FROM Contact WHERE LastName Like %'+lastName+'%'); } What are two ways the developer can update the method to prevent a SOQL injection attack? Choose 2 answers. Use a regular expression on the parameter to remove special characters. Use the @ReadOnly annotation and the with sharing keyword on the class. Use variable blinding and replace the dynamic query with a static SOQL. Use the escapeSingleQuotes method to sanitize the parameter before its use.

What should a developer use to script the deployment and unit test execution as part of continuous integration?. VS Code. Salesforce CLI. Developer Console. Execute Anonymous.

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 primary id 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?. Update the PrimaryId__c field definition to mark it as an External Id. Upload the CSV into a custom object related to Candidate__c. Create a before insert trigger to correctly map the records. Create a before save flow to correctly map the records.

A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces. public interface Sortable { void sort (); } public interface Drawable { void draw (); } Which is the correct implementation?. public class DrawList implements Sortable, implements Drawable { public void sort () {/* implementation */} public void draw () {/* implementation */} }. public class DrawList extends Sortable, extends Drawable { public void sort () {/* implementation */} public void draw () {/* implementation */} }. public class DrawList extends Sortable, Drawable { public void sort () {/* implementation */} public void draw () {/* implementation */} }. public class DrawList implements Sortable, Drawable { public void sort () {/* implementation */} public void draw () {/* implementation */} }.

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?. Flow Builder. Approvals. Apex trigger. Einstein Next Best Action.

The Job_Application__c custom object has a field that is a master-detail relationship to the Contact object, where the Contact object is the master. As part of a feature Implementation, a developer needs to retrieve a list containing all Contact records where the related Account Industry is 'Technology', while also the Contacts Job_Application__c records. Based on the object's relationships, what is the most efficient statement to retrieve the list of Contacts?. [SELECT Id, (SELECT Id FROM Job_Applications__r) FROM Contact WHERE Accounts.Insdustry = 'Technology'];. [SELECT Id, (SELECT Id FROM Job_Applications__c) FROM Contact WHERE Accounts.Insdustry = 'Technology'];. [SELECT Id, (SELECT Id FROM Job_Application__c) FROM Contact WHERE Account.Insdustry = 'Technology'];. [SELECT Id, (SELECT Id FROM Job_Applications__r) FROM Contact WHERE Account.Insdustry = 'Technology'];.

What are two use cases for executing Anonymous Apex code? Choose 2 answers. To add unit test code coverage to an org. To schedule an Apex class to run periodically. To delete 15,000 inactive Accounts in a single transaction after a deployment. To run a batch Apex class to update all Contacts.

A developer has an integer variable called maxAttempts. The developer needs to ensure that once maxAttempts is initialized, it preserves its value for the length of the Apex transaction; while being able to share the variable's state between trigger executions. How should the developer declare maxAttempts to meet these requirements?. Declare maxAttempts as a private static variable on a helper class. Declare maxAttempts as a constant using the static and final keywords. Declare maxAttempts as a member variable on the trigger definition. Declare maxAttempts as a variable on a helper class.

A developer wants to mark each Account in a List<Account> as either Active or Inactive, based on the value in the LastModifiedDate field of each Account being greater than 90 days in the past. Which Apex technique should the developer use?. A for loop, with an if-else statement inside. A for loop, with a switch statement inside. A switch statement, with a for loop inside. An if-else statement, with a for loop inside.

What are three capabilities of the <ltng:require> tag when loading JavaScript resources in Aura components? Choose 3 answers. Loading files from Documents. Loading externally hosted scripts. Loading scripts in parallel. Specifying loading order. One-time loading for duplicate scripts.

If Apex code executes inside the execute () method of an Apex class when implementing the Satchable interface, which two statements are true regarding governor limits? Choose 2 answers. The Apex governor limits cannot be exceeded due to the asynchronous nature of the transaction. The Apex governor limits are reset for each iteration of the execute () method. The Apex governor limits are omitted while calling the constructor of the Apex class. The Apex governor limits will use the asynchronous limit levels.

Which Apex class contains methods to return the amount of resources that have been used for a particular governor, such as the number of DML statements?. Exception. Orglimits. Limits. Messaging.

What are two ways for a developer to execute tests in an org? Choose 2 answers. Bulk API. Developer Console. Metadata API. Tooling API.

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. n 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 2 answers. Flow. Future method. Trigger. Invocable method.

A lead developer creates an Apex interface called Laptop. Consider the following code snippet: public class SilverLaptop { //code implementation } How can a developer use the Laptop interface within the SilverLaptop class?. @Extends (class = "Laptop") Public class SilverLaptop. public class SilverLaptop extends Laptop. public class SilverLaptop implements Laptop. @Interface (class = "Laptop") Public class SilverLaptop.

Which statement describes the execution order when triggers are associated to the same object and event?. Triggers are executed in the order they are modified. Triggers are executed alphabetically by trigger name. Triggers are executed in the order they are created. Trigger execution order cannot be guaranteed.

A developer created a new after insert trigger on the Lead object that creates Task records for each Lead. After deploying to production, an existing outside Integration that inserts Lead records in batches to Salesforce Is occasionally reporting total batch fallures being caused by the Task insert statement. This causes the Integration process in the outside system to stop, requiring a manual restart. Which change should the developer make to allow the Integration to continue when some records in a batch cause failures due to the Task Insert statement, so that manual restarts are not needed?. Deactivate the trigger before the integration runs. Use a try-catch block after the insert statement. Use the Database method with allOrNone set to false. Remove the Apex class from the integration user's profile.

What should a developer do to check the code coverage of a class after running all tests?. View the code coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests tab. Select and run the class on the Apex Test Execution page in the Developer Console. View the Code Coverage column in the list view on the Apex Classes page. View the Class Test Percentage tab on the Apex Class list view in Salesforce Setup.

Universal Containers wants Opportunities to no longer be editable when it reaches the Closed/Won stage. Which two strategies can a developer use to accomplish this? Choose 2 answers. Use a validation rule. Use a trigger. Use an after-save flow. Use the Process Automation settings.

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?. Visual Studio Code IDE. AppExchange. Setup Menu. Developer Console.

Denunciar Test