Universal Containers decided to transition from Classic to Lightning Experience. They asked a developer to replace a JavaScript button that was being used to create records with prepopulated values.
What can the developer use to accomplish this?
A developer needs to prevent the creation of Request__c records when certain conditions exist in the system. A RequestLogic class exists that checks the conditions.
What is the correct implementation?
A)
B)
C)
D)
Developers at Universal Containers (UC) use version control to share their code changes, but they notice that when they deploy their code to different environments they often have failures. They decide to set up Continuous Integration (CI).
What should the UC development team use to automatically run tests as part of their CI process?
A company has a custom object, order__ ¢, that has a required, unique external ID field called crder_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?
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?
While developing an Apex class with custom search functionality that will be launched from a Lightning Web Component, how can the developer ensure only records accessible to the currently logged in user are displayed?
Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?
A)
B)
C)
D)
In the following example, which sharing context will myMethod execute when it is invoked?
Universal Containers (UC) uses out-of-the-box order management, that has a Master-Detail relationship between Order and Order Line Item.
UC stores the availability date on each Order Line Item and Orders are only shipped when all of the Order Line Items are available.
Which method should be used to calculate the estimated ship date for an Order?
Which annotation exposes an Apex class as a RESTful web service?
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 developer identifies the following triggers on the Expense__c object:
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
A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces.
Which is the correct implementation?
A)
B)
Which exception type cannot be caught?
Which code statement includes an Apex method named updateaccounts in the class accountcontreoller for use in a Lightning web component?
team of developers is working on a source-driven project that allows them to work independently, with many different org configurations.
Which type of Salesforce orgs should they use for their development?
A developer wrote Apex code that calls out to an external system using REST API.
How should a developer write the test to prove the code is working as intended?
Which two operations affect the number of times a trigger can fire?
Choose 2 answers
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?
Universal Containers wants to assess the advantages of declarative development versus programmatic customization for specific use cases in its Salesforce implementation.
What are two characteristics of declarative development over programmatic customization?
Choose 2 answers
What Is the result of the following code?
A developer is migrating a Visualforce page into a Lightning web component.
Salesforce Certified Platform Developer I
The Visualforce page shows information about a single record. The developer decides to use Lightning Data Service to access record data.
Which security consideration should the developer be aware of?
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
What are three characteristics of change set deployments?
Choose 3 answers
What should a developer use to script the deployment and unit test execution as part of continuous integration?
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
What are two considerations for deploying from a sandbox to production? Choose 2 answers
Which two settings must be defined in order to update a record of a junction object? Choose 2 answers
What are three ways for a developer to execute tests in an org?
Choose 3 answers
What are three capabilities of the
Choose 3 answers
A developer must perform a complex SOQL query that joins two objects in a Lightning component.
How can the Lightning component execute the query?
What are three considerations when using the @InvocableMethod annotation in Apex?
Choose 3 answers
Which three statements are accurate about debug logs?
Choose 3 answers
A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunitylLineltem trigger.
Which method allows access to the price book?
What are two benefits of using declarative customizations over code? Choose 2 answers
Choose 2 answers
A developer considers the following snippet of code:
Based on this code, what is the value of %?
How is a controller and extension specified for a custom object named "Notice" on a Visualforce page?
Universal Containers has developed custom Apex code and Lightning Components in a Sandbox environment. They need to deploy the code and associated configurations to the Production environment.
What is the recommended process for deploying the code and configurations to Production?
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 PoataliCodeToTimezcone o custom object.
Which two automation tools can be used to implement this feature?
Choose 2 answers
A developer must write an Apex method that will be called from a Lightning component. The method may delete an Account stored in the accountRec variable.
Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletions?
What are two ways a developer can get the status of an enqueued job for a class that implements the queueable interface?
Choose 2 answers
Refer to the following Apex code:
What is the value of x when it is written to the debug log?
developer must provide custom user interfaces when users edit a Contact either Salesforce Classic or Lightning Experience.
What should the developer use to override the Contact's Edit button and provide this functionality?
Given the following Apex statement:
What occurs when more than one Account is returned by the SOQL query?
What is the value of the Trigger.old context variable in a before insert trigger?
How can a developer check the test coverage of autolaunched Flows before deploying them in a change set?
Since Aura application events follow the traditional publish- subscribe model, which method is used to fire an event?
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 failures 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 failure due to the Task insert statement, so that manual restarts are not needed?
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 query performance?
As part of new feature development, a developer Is asked to build a responsive application capable of responding to touch events, that will be executed on stateful clients.
Which two technologies are built on a framework that fully supports the business requirement?
Choose 2 answers
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:
What are two ways the developer can update the method to prevent a SOQL injection attack?
Choose 2 answers
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 retrieving the Contact's Job_Application__c records.
Based on the object's relationships, what is the most efficient statement to retrieve the list of Contacts?
A)
B)
C)
D)