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:
explained answers
plan to take theaws certified developer - associate dva-c02 in the next few weeks
very helpfull
good questions
help to practice csa exam
nice tip and well documented
i need the exam
please upload
prepping for fsc exam
pd1 with great experience
@t it seems like azure service bus message quesues could be the best solution
helpful to check your understanding.
question 128 the answer should be static not auto
more comments here
great support to appear for exams
useful dumps
making progress
q31 answer should be d i think
is this real?
q10: c and f are also true. q11: this is outdated. you no longer need ownership on a pipe to operate it
good questions with simple explanation
admin guide (windows) respond to malicious causality chains. when the cortex xdr agent identifies a remote network connection that attempts to perform malicious activity—such as encrypting endpoint files—the agent can automatically block the ip address to close all existing communication and block new connections from this ip address to the endpoint. when cortex xdrblocks an ip address per endpoint, that address remains blocked throughout all agent profiles and policies, including any host-firewall policy rules. you can view the list of all blocked ip addresses per endpoint from the action center, as well as unblock them to re-enable communication as appropriate. this module is supported with cortex xdr agent 7.3.0 and later. select the action mode to take when the cortex xdr agent detects remote malicious causality chains: enabled (default)—terminate connection and block ip address of the remote connection. disabled—do not block remote ip addresses. to allow specific and known s
very inciting
question 5, it seems a instead of d, because: - care plan = case - patient = person account - product = product2;
it look like real one
i am taking oracle fcc certification test next two days, pls share question dumps
i need dumps
its time to comptia sec+
question 35 has an answer for a different question. i believe the answer is "a" because it shut off the firewall. "0" in registry data means that its false (aka off).
helpful content
oracle 19c is complex db
helpful for practice
support team is fast and deeply knowledgeable. i appreciate that a lot.
helpful questions