The following Apex method is part of the ContactServiceclass that is called from a trigger:
How should the developer modify the code to ensure best practices are met?
A. Option A
B. Option B
C. Option C
D. Option D
A developer must create a Lightning component that allows users to input Contact record information to create a Contact record, including a Salary_ccustom 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?
A.
B.
C.
D.
Universal Containers (UC) uses a custom object called Vendor. The Vendor custom object has a Master-Detail relationship with the standard Account object. Based on some internal discussion, the UC administrator tried to change the Master-Detail relationship to a Lookup relationship but was not able todo so. What is apossible reason that this change was not permitted?
A. The Account records contain Vendor roll-up summary fields.
B. The Vendor object must use a Master-Detail field for reporting.
C. The Vendor records have existing values in the Account object.
D. The Account object is included on a workflow on the Vendor object.
A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of new Apex helper class. Change Set deployment to production fails with the test coverage warning: "Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required"
What should the developer do to successfully deploy the new Apex trigger and helper class?
A. Create a test class and methods to cover the Apex trigger
B. Run the tests using the 'Run All Tests' method.
C. Remove the falling test methods from the test class.
D. Increase the test class coverage on the helper class
How should a custom user interface be provided when a user edits an Account in Lightning Experience?
A. Override the Account's Edit button with Lightning Flow
B. Override the Account's Edit button with Lightning Action
C. Override the Account's Edit button with Lightning page.
D. Override the Account's Edit button with Lightning component.
A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) { /*implementation*/ } } Which is the correct implementation?
A. Public class CreditcardPayment extends Payment { public override void makePayment(Decimal amount) { /*implementation*/ } }
B. Public class CreditCardPayment implements Payment { public virtual void makePayment(Decimal amount) { /*implementation*/ } }
C. Public class CreditCardPayment extends Payment { public virtual void makePayment(Decimal amount) { /*implementation*/ } }
D. Public class CreditCardPayment implements Payment { public override void makePayment(Decimal amount) { /*Implementation*/ } }
Universal Containers (UC) wants to lower its shipping cost while making the shipping process more efficient. The Distribution Officer advises UC to implement global addresses to allow multiple Accounts to share a default pickup address. The developer is tasked to create the supporting object and relationship for this business requirement and uses the Setup Menu to create a custom object called "Global Address".
Which field should the developer add to create the most efficient model that supports the business need?
A. Add a Master-Detail field on the Account object to the Global Address object
B. Add a Master-Detail field on the Global Address object to the Account object.
C. Add a Lookup field on the Account object to the Global Address object.
D. Add a Lookup field on the Global Address object to the Account object
A developer created a Visualforce page and custom controller to display the account type field as shown below.
Custom controller code:
Visualforce page snippet:
The Account Type is {!actType}
The value of the account type field is not being displayed correctly on the page. Assuming the custom controller is properly referenced on the Visualforce page, what should the developer do to correct the problem?
A. Add a getter method for the actType attribute.
B. Change theAccount attribute to public.
C. Convert theAccount.Type to a String.
D. Add with sharing to the custom controller.
A Visual Flow uses an apex Action to provide additional information about multiple Contacts, stored in a custom class, contactInfo. Which is the correct definition of the Apex method that gets additional information?
A. @InvocableMethod(label='Additional Info') public List
B. @InvocableMethod(label='additional Info') public static ContactInfo getInfo(Id contactId) { /*implementation*/ }
C. @invocableMethod(label)='Additional Info') public static List
D. @InvocableMethod(Label='additional Info') public ContactInfo(Id contactId) { /*implementation*/ }
A developer needs to confirm that a Contact trigger works correctly without changing the organization's data What should the developer do to test the Contact trigger?
A. Use the New button on the Salesforce Contacts Tab to create a new Contact record.
B. Use the Open execute Anonymous feature on the Developer Console to run an 'insert Contact' DML statement
C. Use Deploy from the VSCode IDE to display an 'insert Contact' Apex class.
D. Use the Test menu on the Developer Console to run all test classes for the Contact trigger
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDI exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.