Ready to Pass Your Certification Test

Ready to guarantee a pass on the certification that will elevate your career? Visit this page to explore our catalog and get the questions and answers you need to ace the test.

salesforce CERTIFIED_PLATFORM_DEVELOPER_II

Custom view settings

Exam contains 343 questions

Page 17 of 58
Question 97 🔥

A developer wants to create a Visualforce page that allows a user to search for a given account by Name. If the account is found, the account details should be populated on screen. If no account is found, an error message should be displayed to the user.How can this be accomplished? (Choose two.)

Which database solution meets these requirements?
Highly voted
Highly voted
Discussion of the question
Question 98 🔥

A developer has built a multi-page wizard using a single Custom Controller to query and update data. Users are complaining that the pages are loading slowly.What will improve performance? (Choose three.)

Which database solution meets these requirements?
Highly voted
Highly voted
Highly voted
Discussion of the question
Question 99 🔥

A developer writes the following Apex trigger so that when a Case is closed, a single Survey record is created for that Case. The issue is that multiple Survey_c records are being created per Case. trigger CaseTrigger on Case (after insert, after update){ List<Survey_c> createSurveys = new List<Survey_c>(); for (Case c : trigger.new){ if (c.IsClosed && (trigger.isInsert II trigger.isUpdate && trigger.oldMap.get(c.Id).IsClosed == false)){ createSurveys.add(new Survey_c(Case_c = c.Id)); } } insert createSurveys; }What could be the cause of this issue?

Which database solution meets these requirements?
Highly voted
Discussion of the question
Question 100 🔥

What is a potential design issue with the following code?trigger accountTrigger on Account (before update){ Boolean processOpportunity = false; List<opportunity> opptysClosedLost = new List<opportunity>() List<opportunity> IstAllOpp = [select StageName from Opportunity where accountId IN :Trigger.newMap.keySet()]; if(!IstAllOpp.isEmpty()) processOpportunity = true; while(processOpportunity){ for(opportunity o : IstAllOpp) if(o.StageName == 'Closed - Lost') opptysClosedLost.add(o); processOpportunity = false; if(!opptysClosedLost.isEmpty()) delete opptysClosedLost;

Which database solution meets these requirements?
Highly voted
Discussion of the question
Question 101 🔥

The Contact object has a custom field called "Zone." Its data type is "Text" and field length is 3.What is the outcome after executing the following code snippet in the org?List<Contact> contactsToBeInserted=new List<Contact>(); Contact contactInstance= new Contact(LastName='Smith',Department='Tech', Zone_c='IAD'); contactsToBeInserted.add(contactInstance); contactInstance= new Contact(LastName='Sm1th', Department='Tech', Zone_c='PITT'); contactsToBeInserted.add(contactInstance); Database.insert(contactsToBeInserted,true);

Which database solution meets these requirements?
Highly voted
Discussion of the question
Question 102 🔥

A Visualforce page loads slowly due to the large amount of data it displays.Which strategy can a developer use to improve the performance?

Which database solution meets these requirements?
Highly voted
Discussion of the question

Lorem ipsum dolor sit amet consectetur. Eget sed turpis aenean sit aenean. Integer at nam ullamcorper a.

© 2024 Exam Prepare, Inc. All Rights Reserved.