Business rules require a Contact to always be created when a new Account is created.What can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact fails?
Answer(s): D
trigger AssignOwnerByRegion on Account ( before insert, before update ){ List<Account> accountList = new List<Account>(); for( Account anAccount : trigger.new ) { Region__c theRegion = [ SELECT Id, Name, Region_Manager__c FROM Region__c WHERE Name = :anAccount.Region_Name__c ]; anAccount.OwnerId = theRegion.Region_Manager__c; accountList.add( anAccount ); } update accountList;}Consider the above trigger intended to assign the Account to the manager of the Account’s region. Which two changes should a developer make in this trigger to adhere to best practices? (Choose two.)
Answer(s): B,C
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());}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);}Which two of the examples above have correct System.debug statements? (Choose two.)
Answer(s): A,B
Which method should be used to convert a Date to a String in the current user’s locale?
Answer(s): A
A company has a custom object, Order c, that has a required, unique, external ID field called Order_Number c.Which statement should be used to perform the DML necessary to insert new records and update existing records in a List of Order c records?
Answer(s): B
Share your comments for Salesforce Certified Platform Developer II exam with other users:
nice questions
my 3rd purcahse from this site. these exam dumps are helpful. very helpful.
found it good
excellent material
very helpfull
well explained.
i need the pdf, please.
a good source for exam preparation
i need ielts general training audio guide questions
please make this content available
content is good
latest dumps please
aside from pdf the test engine software is helpful. the interface is user-friendly and intuitive, making it easy to navigate and find the questions.
questions and options are correct, but the answers are wrong sometimes. so please check twice or refer some other platform for the right answer
90% of questions was there but i failed the exam, i marked the answers as per the guide but looks like they are not accurate , if not i would have passed the exam given that i saw about 45 of 50 questions from dump
answer to this question "what administrative safeguards should be implemented to protect the collected data while in use by manasa and her product management team? " it should be (c) for the following reasons: this administrative safeguard involves controlling access to collected data by ensuring that only individuals who need the data for their job responsibilities have access to it. this helps minimize the risk of unauthorized access and potential misuse of sensitive information. while other options such as (a) documenting data flows and (b) conducting a privacy impact assessment (pia) are important steps in data protection, implementing a "need to know" access policy directly addresses the issue of protecting data while in use by limiting access to those who require it for legitimate purposes. (d) is not directly related to safeguarding data during use; it focuses on data transfers and location.
password lockout being the correct answer for question 37 does not make sense. it should be geofencing.
for question 4, the righr answer is :recover automatically from failures
question number 4s answer is 3, option c. i
very good questions
i am confused about the answers to the questions. are the answers correct?
very usefull
need certification.
great exam prep
i require dump
good morning, could you please upload this exam again,
hi can you please upload the dumps for sap contingent module. thanks
good questions
looking forward to the real exam
good ones for exam preparation
this is a good experience
hi everyone
waiting for the dump. please upload.