• Pradeep Gupta 18
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
Hi Friend,
Need your help on below questions.

1.A custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated every time a record is created or updated.
 What is the most efficient way to ensure a value is selected every time a record is saved?

A.Set a validation rule to enforce a value is selected.
B.Mark the field as Required on the object's page layout.
C.Set "Use the first value in the list as the default value" as True.
D.Mark the field as Required on the field definition.- Correct Ans




2.A developer has an Apex controller for a Visualforce page that takes an ID as a URL parameter. 
How should the developer prevent a cross site scripting vulnerability?

A.String.ValueOf(ApexPages.currentPage() .getparameters() .get('url_param'))
B.ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()- Correct Ans
C.ApexPages.currentPage() .getparameters() .get('url_param')
D.String.escapeSingleQuotes(ApexPages.currentpages() .getParameters() .get('url_param'))


3.Universal Containers stores Orders and Line Items in Salesforce.
 For security reason, financial representatives are allowed to see information on the Order such as order amount, but they are not allowed to see the Line items on the Order. Which type of relationship should be used?

A.Lookup - Correct Ans
B.Master Detail
C.Direct Lookup
D.Indirect lookup


4.Which three process automations can immediately send an email notification to the owner of an Opportunity 
when its Amount is changed to be greater than $10,000? Choose 3 answers

A.Escalation Rule
B.Approval Process- Correct
C.Flow Builder
D.Process Builder- coorect
E.Workflow Rule- Correct


5.Given the following block of code: try{      List<Accounts> retrievedRecords = [SELECT Id FROM Account WHERE Website 
= null]; }catch(Exception e){      //manage exception logic } What should a developer do to ensure the code execution 
is disrupted if the retrievedRecordlist remains empty after the SOQL query?

A.Check the state of the retrievedRecords variable and throw a custom exception if the variable is empty.
B.Replace the retrievedRecords variable declaration from a List of Account to a single Account.
C.Check the state of the retrievedRecords variable and access the first element of the list if the variable is empty.
D.Check the state of the retrievedRecords variable and use System.assert(false) if the variable is empty.


6.What are three ways for a developer to execute tests in an org? Choose 3 answers

A.Setup Menu- Correct
B.SalesforceDX- Correct
C.Metadata API
D.Bulk API
E.Tooling API- Correct


7.Universal Containers has large number of custom applications that were built using a third-party javaScript framework and exposed using Visualforce pages. The Company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience. What should the developer do to fulfill the business request in the quickest and most effective manner?

A.Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications.- Correct
B.Rewrite all Visualforce pages asLightning components.
C.Enable Available for Lightning Experience, Lightning Comminities, and the mobile app on Visualforce pages used by the custom application.
D.Set the attribute enableLightning to treu in the definition.


8.An Approval Process is defined in the Expense_Item__c. A business rule dictates that whenever a user changes 
the Status to 'Submitted' on an Expense_Report__c record, all the Expense_Item__c records related to the expense 
report must enter the approval process individually. Which approach should be used to ensure the business requirement 
is met?

A.Create a Process Builder on Expense_Report__c with an 'Apex' action type to submit all related Expense_Item__c records when the criteria is met.
B.Create a Process Builder on Expense_Report__c with a 'Submit for Approval' action type to submit all related Expense_Item__c records when the criteria is met.
C.Create two Process Builder, one on Expense_Report__c to mark the related Expense_Item__c as submittable and the second on Expense_Item__c to submit the records for approval.
D.Create a Process Builder on Expense_Report__c to mark the related Expense_Item__c as submittable and trigger on Expense_item__c to submit the records for approval.
Hi Friend,
Need your help on below questions.

1.A custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated every time a record is created or updated.
 What is the most efficient way to ensure a value is selected every time a record is saved?

A.Set a validation rule to enforce a value is selected.
B.Mark the field as Required on the object's page layout.
C.Set "Use the first value in the list as the default value" as True.
D.Mark the field as Required on the field definition.- Correct Ans




2.A developer has an Apex controller for a Visualforce page that takes an ID as a URL parameter. 
How should the developer prevent a cross site scripting vulnerability?

A.String.ValueOf(ApexPages.currentPage() .getparameters() .get('url_param'))
B.ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()- Correct Ans
C.ApexPages.currentPage() .getparameters() .get('url_param')
D.String.escapeSingleQuotes(ApexPages.currentpages() .getParameters() .get('url_param'))


3.Universal Containers stores Orders and Line Items in Salesforce.
 For security reason, financial representatives are allowed to see information on the Order such as order amount, but they are not allowed to see the Line items on the Order. Which type of relationship should be used?

A.Lookup - Correct Ans
B.Master Detail
C.Direct Lookup
D.Indirect lookup


4.Which three process automations can immediately send an email notification to the owner of an Opportunity 
when its Amount is changed to be greater than $10,000? Choose 3 answers

A.Escalation Rule
B.Approval Process- Correct
C.Flow Builder
D.Process Builder- coorect
E.Workflow Rule- Correct


5.Given the following block of code: try{      List<Accounts> retrievedRecords = [SELECT Id FROM Account WHERE Website 
= null]; }catch(Exception e){      //manage exception logic } What should a developer do to ensure the code execution 
is disrupted if the retrievedRecordlist remains empty after the SOQL query?

A.Check the state of the retrievedRecords variable and throw a custom exception if the variable is empty.
B.Replace the retrievedRecords variable declaration from a List of Account to a single Account.
C.Check the state of the retrievedRecords variable and access the first element of the list if the variable is empty.
D.Check the state of the retrievedRecords variable and use System.assert(false) if the variable is empty.


6.What are three ways for a developer to execute tests in an org? Choose 3 answers

A.Setup Menu- Correct
B.SalesforceDX- Correct
C.Metadata API
D.Bulk API
E.Tooling API- Correct


7.Universal Containers has large number of custom applications that were built using a third-party javaScript framework and exposed using Visualforce pages. The Company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience. What should the developer do to fulfill the business request in the quickest and most effective manner?

A.Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications.- Correct
B.Rewrite all Visualforce pages asLightning components.
C.Enable Available for Lightning Experience, Lightning Comminities, and the mobile app on Visualforce pages used by the custom application.
D.Set the attribute enableLightning to treu in the definition.


8.An Approval Process is defined in the Expense_Item__c. A business rule dictates that whenever a user changes 
the Status to 'Submitted' on an Expense_Report__c record, all the Expense_Item__c records related to the expense 
report must enter the approval process individually. Which approach should be used to ensure the business requirement 
is met?

A.Create a Process Builder on Expense_Report__c with an 'Apex' action type to submit all related Expense_Item__c records when the criteria is met.
B.Create a Process Builder on Expense_Report__c with a 'Submit for Approval' action type to submit all related Expense_Item__c records when the criteria is met.
C.Create two Process Builder, one on Expense_Report__c to mark the related Expense_Item__c as submittable and the second on Expense_Item__c to submit the records for approval.
D.Create a Process Builder on Expense_Report__c to mark the related Expense_Item__c as submittable and trigger on Expense_item__c to submit the records for approval.
Hi friends,

Usually after Update trigger will gives the error saying maximum Trigger depth Exceeded.
How many times trigger will execute to reach this error Or in other words What is the depth of the trigger?



Thanks,
Raghu
Hi,

I am sending a large attachment from salesforce to an external system. While sending the attachments I am facing some issue, I am not able to send attachments size is greater than 12 MB, is there any possibility to send the attachments 12 MB?

Please let me know how to achieve this.

Thanks,
Vijay