
[2021] Use Real Salesforce Dumps - 100% Free PDI Exam Dumps
Realistic PDI Dumps Latest Salesforce Practice Tests Dumps
NEW QUESTION 104
A reviewer is required to enter a reason in the comments field only when a candidate is recommended to be hired. Which action can a developer take to enforce this requirement?
- A. Create a required comments field.
- B. Create a required Visualforce component.
- C. Create a formula field.
- D. Create a validation rule.
Answer: D
NEW QUESTION 105
A developer created a Visualforce page and custom controller to display the account type field as shown below. Custom controller code: public class customCtrlr{ private Account theAccount; public String actType; public customCtrlr() { theAccount = [SELECT Id, Type FROM Account WHERE Id = :apexPages.currentPage().getParameters().get('id')]; actType = theAccount.Type; } } 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 property referenced on the Visualforce page, what should the developer do to correct the problem?
- A. Change theAccount attribute to public.
- B. Add with sharing to the custom controller.
- C. Add a getter method for the actType attribute.
- D. Convert theAccount.Type to a String.
Answer: C
NEW QUESTION 106
What is an important consideration when developing in a multi-tenant environment?
- A. Governor limits prevent tenants from impacting performance in multiple orgs on the same instance.
- B. Unique domain names take the place of namespaces for code developed for multiple orgs on multiple instances.
- C. Polyglot persistence provides support for a global, multilingual user base in multiple orgs on multiple instances.
- D. Org-wide data security determines whether other tenants can see data in multiple orgs on the same instance.
Answer: A
NEW QUESTION 107
A developer wrote a workflow email alert on case creation so that an email is sent to the case owner manager when a case is created. When will the email be sent?
- A. After Trigger execution.
- B. Before Committing to database.
- C. Before Trigger execution.
- D. After Committing to database.
Answer: D
NEW QUESTION 108
developer created this Apex trigger that calls MyClass .myStaticMethod:
trigger myTrigger on Contact(before insert) ( MyClass.myStaticMethod(trigger.new, trigger.oldMap); } The developer creates a test class with a test method that calls MyClass.mystaticMethod, resulting in 81% overall code coverage. What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exist?
- A. The deployment passes because both classes and the trigger were included in the deployment.
- B. The deployment fails because the Apex trigger has no code coverage.
- C. The deployment fails because no assertions were made in the test method.
- D. The deployment passes because the Apex code has required (>75%) code coverage.
Answer: B
NEW QUESTION 109
what are the methods used to show input in classic and lightning ?
- A. Use visualforce page in classic and lightning component in lightning
Answer: A
NEW QUESTION 110
Given the code below, what can be done so that recordcount can be accessed by a test class, but not by a non-test class? Public class mycontroller{ private integer recordcount; }
- A. Add the testvisible annotation to recordcount
- B. Add a seealldata annotation to the test class
- C. Add the testvisible annotation to the mycontroller class
- D. Change recordcount from private to public
Answer: A
NEW QUESTION 111
Universal Containers wants Opportunities to be locked from editing when reaching the Closed/Won stage.
Which two strategies should a developer use to accomplish this? Choose 2 answers
- A. Use a validation rule.
- B. Use a trigger.
Answer: A,B
NEW QUESTION 112
Which two approaches optimize test maintenance and support future declarative configuration changes?
Choose 2 answers.
- A. Create a methods that loads valid Account records from a static resources, then call this method within test methods.
- B. Create a method that queries for valid records, then call this method within test methods.
- C. Create a method that performs a callout for valid records, then call this method within test methods.
- D. Create a method that creates valid records,then call this method within test methods.
Answer: A,D
NEW QUESTION 113
A developer needs to create a custom visualforce button for the opportunity object page layout that will cause a web service to be called and redirect the user to a new page when clicked. Which three attributes need to be defined in the <apx:page> tag of the visualforce page to enable this functionality?
- A. Extensions
- B. Renderas
- C. Readonly
- D. AcTion
- E. Standardcontroller
Answer: A,D,E
NEW QUESTION 114
A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console:Account myAccount = new Account(Name = 'MyAccount');Insert myAccount;For (Integer x = 0; x <
150; x++)
{Account newAccount = new Account (Name='MyAccount' + x);try {Insert newAccount;} catch (Exception ex) {System.debug (ex) ;}}insert new Account (Name='myAccount');How many accounts are in the org after this code is run?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: A
NEW QUESTION 115
Which exception type cannot be caught?
- A. CalloutException
- B. Custom Exception
- C. NoAccessException
- D. LimitException
Answer: D
NEW QUESTION 116
What are two characteristics related to formulas? Choose 2 answers.
- A. Fields that are used in a formula field can be deleted or edited without the formula.
- B. Formulas can reference values in related objects.
- C. Formulas are calculated at runtime and are not stored in the database.
- D. Formula can reference themselves.
Answer: B,C
NEW QUESTION 117
The operation manager at a construction company uses a custom object called Machinery to manage the usage and maintenance of its cranes and other machinery. The manager wants to be able to assign machinery to different constructions jobs, and track the dates and costs associated with each job. More than one piece of machinery can be assigned to one construction job.
What should a developer do to meet these requirements?
- A. Create a Master-Detail Lookup on the Machinery object to the Construction Job object.
- B. Create a lookup field on the Construction Job object to the Machinery object.
- C. Create a junction object with Master-Detail Relationship to both the Machinery object and the Construction Job object.
- D. Create a lookup field on the Machinery object to the Construction Job object.
Answer: B
NEW QUESTION 118
Which two statements are accurate regarding Apex classes and interfaces?
Choose 2 answers
- A. Inner classes are public by default.
- B. Classes are final by default.
- C. A top-level class can only have one inner class level.
- D. Interface methods are public by default.
Answer: C,D
NEW QUESTION 119
A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console:
Account myAccount = new Account(Name = 'MyAccount');Insert myAccount;For (Integer x = 0; x < 250; x++)
{Account newAccount = new Account (Name='MyAccount' + x);try {Insert newAccount;}catch (Exception ex) {System.debug (ex) ;}}insert new Account (Name='myAccount'); How many accounts are in the org after this code is run?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: A
NEW QUESTION 120
Which code displays the contents of a Visualforce page as a PDF?
- A. <apex:page rendersAs="application/pdf">
- B. <apex:page contentType="application/pdf">
- C. <apex:page contentType="pdf">
- D. <apex:page renderAs="pdf">
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_output_pdf_renderas.htm You can generate a downloadable, printable PDF file of a Visualforce page using the PDF rendering service. Convert a page to PDF by changing the <apex:page> tag.
<apex:page renderAs="pdf">
Answer: D
NEW QUESTION 121
......
PDI Exam topics
Candidates must know the exam topics before they start of preparation. Because it will really help them in hitting the core. Our Salesforce PDI dumps will include the following topics:
- Salesforce Fundamentals 10%
- User Interface 10%
- Logic and Process Automation 46%
- Testing 12%
- Data Modeling and Management 12%
- Debug and Deployment Tools 10%
PDI Dumps PDF - PDI Real Exam Questions Answers: https://www.free4dump.com/PDI-braindumps-torrent.html
PDI Exam [2021] Dumps Salesforce PDF Questions: https://drive.google.com/open?id=1EaJ-iCA0901kb87c0Y4FauTPbJABrJUY