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 based on a user-initiated action on the Opportunity detail page. Example values are as follows:
1.
Name
2.
Amount
3.
Account
Which two methods should the developer implement to fulfill the business requirement? (Choose two.)
A. 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.
B. Create a Process Builder on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.
C. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.
D. 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 must build an application that tracks which Accounts have purchased specific pieces of equipment that are represented as Products. Each Account could purchase many pieces of equipment.
How should the developer track that an Account has purchased a piece of equipment?
A. Use the Asset object
B. Use a Master-Detail on Product to Account
C. Use a Custom object
D. Use a Lookup on Account to Product
A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of the 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. Increase the test class coverage on the helper class.
B. Remove the failing test methods from the test class.
C. Run the tests using the 'Run All Tests' method.
D. Create a test class and methods to cover the Apex trigger.
A 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 orgs
B. Developer sandboxes
C. Full Copy sandboxes
D. Scratch orgs
Which code should be used to update an existing Visualforce page that uses standard Visualforce components so that the page matches the look and feel of Lightning Experience?
A.
B.
C.
D.
A developer has a requirement to create an Order when an Opportunity reaches a 'Closed-Won' status.
Which tool should be used to implement this requirement?
A. Lightning Component
B. Apex Trigger
C. Lightning Flow
D. Process Builder
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 Global Address object to the Account object.
B. Add a Master-Detail field on the Account object to the Global Address object.
C. Add a Lookup field on the Global Address object to the Account object.
D. Add a Lookup field on the Account object to the Global Address object.
Which two events need to happen when deploying to a production org? (Choose two.)
A. All Process Builder Processes must have at least 1% test coverage.
B. All Apex code must have at least 75% test coverage.
C. All triggers must have at least 1% test coverage.
D. All Visual Flows must have at least 1% test coverage.
A developer uses a loop to check each Contact in a list. When a Contact with the Title of 'Boss' is found, the Apex method should jump to the first line of code outside of the for loop.
Which Apex solution will let the developer implement this requirement?
A. return;
B. continue;
C. break;
D. System.assert(false);
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?
A. ApexPages.currentPage().getParameters().get('url_param')
B. String.escapeSingleQuotes(ApexPages.currentPage().getParameters().get('url_param'))
C. String.ValueOf(ApexPages.currentPage().getParameters().get('url_param'))
D. ApexPages.currentPage().getParameters().get('url_param').escapeHtml4()
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.