Salesforce certification PDII Online Prep Questions

Posted by: Pdfprep Category: Salesforce Online Questions Tags:

Pdfprep Salesforce PDII prep questions are available in PDF format. You can practice all the PDII prep questions online anywhere. You can access the Salesforce Certified Platform Developer II (WI21) PDII exam pdf dump easily at any given place in your free time, making it more convenient. The Pdfprep PDII prep file has been crafted by experts and is verified to use. You will have a great time going through the PDII prep questions.

Page 1 of 11

1. [FIND 'map' IN ALL FIELDS RETURNING Account (Id, Name), Contact, Opportunity, Lead]

What is a valid return type for th|e following SOSL query?

2. A developer has a Debug method within a class, which is invoked hundreds of times.

What is the optimal functionality in the Developer Console to count the number of calls made to the method?

3. Invokable methods accept sObjects as parameters.

4. Which two of the examples above have correct System.debug statements? Choose 2 answers

Example 1:

AggregateResult[] groupedResults = [SELECT CampaignId, AVG(Amount) FROM

Opportunity GROUP BY CampaignId];

for (AggregateResult ar : groupedResults)

{

System.debug('Campaign ID' + ar.get('CampaignId'));

System.debug('Average amount' + ar.get('expr0'));

}

Example 2:

AggregateResult[] groupedResults = [SELECT CampaignId, AVG(Amount) theAverage

FROM Opportunity GROUP BY CampaignId];

for (AggregateResult ar : groupedResults)

{

System.debug('Campaign ID' + ar.get('CampaignId'));

System.debug('Average amount' + ar.get('theAverage'));

}

Example 3:

AggregateResult[] groupedResults = [SELECT CampaignId, AVG(Amount) FROM

Opportunity GROUP BY CampaignId];

for (AggregateResult ar : groupedResults)

{

System.debug('Campaign ID' + ar.get('CampaignId'));

System.debug('Average amount' + ar.get.AVG());

}

07B13F58239056B81577933EB624485B

Example 4:

AggregateResult[] groupedResults = [SELECT CampaignId, AVG(Amount) theAverage

FROM Opportunity GROUP BY CampaignId];

for (AggregateResult ar : groupedResults)

{

System.debug('Campaign ID' + ar.get('CampaignId'));

System.debug ('Average amount' + ar.theAverage);

}

5. Which of the following annotations is the right way jto invoke a single apex method?

6. When testing batch classes, what must a developer do? (Choose two.)

7. Given the following code, what value will be output in the logs by line #8?

1 Contact con = new Contact ( LastName =fSmith', Department = fAdminT)

2 insert con;

3 Contact insertedContact=[select Name from Contact where id=icon.Id];

4 Savepoint sp_admin = Database.setSavepoint();

5 con.Department = fHRf;

6 update con;

7 Database.rollback(sp_admin);

8 System.debug(Limits.getDmlStatements 0);

8. A company requires an external system to be notified whenever an account is updated.





What LimitException could the following code trigger?

9. Which statement is true regarding the use of user input as part of a dynamic SOQL query?

10. Refer to the component code above.



The information displays as expected (in three rows) on a mobile device. However, the information is not displaying as desired (in a single row) on a desktop or tablet.

Which option has the correct component changes to display correctly on desktops and tablets?