Salesforce Plat-Dev-201 Test Engine Practice Test Questions, Exam Dumps
100% Free Plat-Dev-201 Daily Practice Exam With 240 Questions
NEW QUESTION # 28
Ursa Major Solar has a custom object, serviceJob-o, with an optional Lookup field to Account called partner-service-Provider_c.
The TotalJobs-o field on Account tracks the total number of serviceJob-o records to which a partner service provider Account is related.
What is the most efficient way to ensure that the Total job_o field kept up to data?
- A. Change TotalJob_o to a roll-up summary field.
- B. Create a schedule-triggered flow on ServiceJob_o.
- C. Create a record-triggered flow on ServiceJob_o.
- D. Create an Apex trigger on ServiceJob_o.
Answer: C
NEW QUESTION # 29
Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page.
Example values are as follow:
Name
Amount
Account
Which two methods should the developer implement to fulfill the business requirement? (Choose
2 answers)
- A. Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the component on the Opportunity detail page.
- B. Create a Process Builder on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.
- C. Create an after update trigger on the Opportunity object that calls a helper method using
@Future(Callout=true) to perform the HTTP REST callout. - D. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.
Answer: A,D
NEW QUESTION # 30
Universal Container wants Opportunities to no longer be editable when reaching the Clousd stage.
How should a develoiper accomplish this?
- A. Use the Process Automation setting.
- B. Use a validation rule.
- C. Mark fields as read-only on the page layout.
- D. Use flow Builder
Answer: B
NEW QUESTION # 31
Which three Salesforce resources can be accessed from a Lightning web component? Choose 3 answers
- A. All external libraries
- B. Content asset files
- C. Third-party web components
- D. SVG resources
- E. Static resources
Answer: A,D,E
NEW QUESTION # 32
A develop completed modification to a customized feature that is comprised of two elements:
Apex trigger
Trigger handler Apex class
What are two factors that the developer must take into account to properly deploy the modification to the production environment?
- A. All methods in the test classes must use @isTest.
- B. Test methods must be declared with the testMethod keyword.
- C. At least one line of code must be executed for the Apex trigger.
- D. Apex classes must have at least 75% code coverage org-wide.
Answer: C,D
NEW QUESTION # 33
A Salesforce Administrator is creating a record-triggered flow. When certain criteria are met, the flow must call an Apex method to execute complex validation involving several types of objects.
When creating the Apex method, which annotation should a developer use to ensure the method Can be used within the flow?
- A. @InvocableMethod
- B. @future
- C. @RemoteAction
- D. @AuraEnaled
Answer: A
NEW QUESTION # 34
A company has a custom object, Sales, }_Help_Request__c, that has a Lookup relationship to Opportunity. The Seles Help Request__c has a mumber field, Number_ct_Hours__c, that represents the amount of time spent on the Sales_Help Request__C.
A developer is tasked with creating a field, total_Hour2__c, on Opportunity that should be the sum of all of the Number_of_Hours_c values for the Sales_Help_Request__c records related to that Opportunity.
What should the developer use to implement this?
- A. A roll-up summary field on the sales Help_Request__c object
- B. A record-triggered flow on the Sales Help Request__c object
- C. A roll-up summary field on the Opportunity object
- D. A trigger on the Opportunity object
Answer: B
NEW QUESTION # 35
The code below deserializes input into a list of Accounts.
Which code modification should be made to insert the Accounts so that field-level security is respected?
- A. 01: Public with sharing class AcctCreator
- B. 05: If (SobjectType.Account, isCreatable())
- C. 05: Accts = database.stripinaccesible (accts, Database. CREATEABLE);
- D. 05: SobjectAcessDecision sd= Security,stripINaccessible(AccessType,CREATABLE,
Answer: A
NEW QUESTION # 36
Managers at Universal Containers want to ensure that only decommissioned containers are able to be deleted in the system. To meet the business requirement a Salesforce developer adds
"Decommissioned" as ipicklist value for the Statu3__c custom field within the Container__c object.
Which two approaches could a developer use to enforce only Container records with a status of
"Decommissioned" can be deleted? Choose 2 answers
- A. Validation rule
- B. Before record-triggered flow
- C. Apex trigger
- D. After record-triggered flow
Answer: C,D
NEW QUESTION # 37
A developer has an integer variable called maxAttempts. The developer meeds to ensure that once maxAttempts is initialized, it preserves its value for the lenght of the Apex transaction; while being able to share the variable's state between trigger executions. How should the developer declare maxAttempts to meet these requirements?
- A. Declare maxattempts as a private static variable on a helper class
- B. Declare maxattempts as a variable on a helper class
- C. Declare maxattempts as a constant using the static and final keywords
- D. Declare maxattempts as a member variable on the trigger definition.
Answer: C
NEW QUESTION # 38
Which three statements are true regarding custom exceptions in Apex? (Choose three.)
- A. A custom exception class cannot contain member variables or methods.
- B. A custom exception class can extend other classes besides the Exception class.
- C. A custom exception class can implement one or many interfaces.
- D. A custom exception class name must end with "Exception".
- E. A custom exception class must extend the system Exception class.
Answer: B,C,D
NEW QUESTION # 39
What are two characteristics related to formulas? Choose 2 answers
- A. formulas can reference themselves.
- B. Fields that are used in a formula field can be deleted or edited wlthojt editing the formjta.
- C. Formulas are calculated at runtime and are not stored in the database
- D. Formulas can reference vaues m reiatea objects.
Answer: C,D
NEW QUESTION # 40
Which Lightning Web Component custom event property settings enable the event to bubble up the containment hierarchy and cross the Shadow DOM boundary?
- A. bubbles: tnje, composed: false
- B. bubbles: true, composed: true
- C. bubbles: false, composed: false
- D. bubbles: false, composed: true
Answer: B
NEW QUESTION # 41
What is an example of a polymorphic lookup field in Salesforce?
- A. The LeadId and ContactId fields on the standard Campaign Member object
- B. The Whatld field on the standard Event object
- C. A custom field, Link__c, on the standard Contact object that looks up to an Account or a Campaign
- D. The Parentid field on the standard Account object
Answer: B
NEW QUESTION # 42
Universal Hiring uses Salesforce to capture job applications. A salesforce administrator created two custom objects; Job__c acting as the maste object, Job _Application__c acting as the detail.
Within the Job ___c object, a custom multi-select picklist, preferred Locations __c, contains a list of approved states for the position. Each Job_Application__c record relates to a Contact within the system through a master-detail relationship.
Recruiters have requested the ability to view whether the Contact's Mailing State value matches a value selected on the Preferred_Locations__c field, within the Job_Application__c record. Recruiters would like this value to be kept in sync if changes occur to the Contact's Mailing State.
What is the recommended tool a developer should use to meet the business requirement?
- A. Formula field
- B. Roll-up summary field
- C. Apex trigger
- D. Record-triggered flow
Answer: D
NEW QUESTION # 43
A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violation to the user. How can the developer make sure that validation rule violations are displayed?
- A. Add cuatom controller attributes to display the message.
- B. Include <apex:message> on the Visualforce page.
- C. Use a try/catch with a custom exception class.
- D. Perform the DML using the Database.upsert() method.
Answer: B
NEW QUESTION # 44
A team of developers is working on a source-driven project that allows them to work independently, with many different org configurations. Which type of Salesforce orgs should they use for their development?
- A. Developer orgs
- B. Full Copy sandboxes
- C. Developer sandboxes
- D. Scratch orgs
Answer: D
NEW QUESTION # 45
What writing an Apex class, a developer warts to make sure thai all functionality being developed Is handled as specified by the requirements.
Which approach should the developer use to be sure that the Apex class is working according tospecification?
- A. Include a try/catch block to the Apex class.
- B. Run the code in an Execute Anonymous block n the Deceloper Consider.
- C. Create a test class to execute the business logic and run the test in the Developer Console.
- D. Include a savepoint and Database,rollback.
Answer: C
NEW QUESTION # 46
Universal Containers stores the availability date on each Line Item of an Order and Orders are only shipped when all of the Line Items are available. Which method should be used to calculate the estimated ship date for an Order?
- A. Use a LATEST formula on each of the latest availability date fields.
- B. Use a CEILING formula on each of the Latest availability date fields.
- C. Use a DAYS formula on each of the availability date fields and a COUNT Roll-Up Summary field on the Order.
- D. Use a Max Roll-Up Summary field on the Latest availability date fields.
Answer: D
NEW QUESTION # 47
Cloud kicks has a multi-screen flow that its call center agents use when handling inbound service desk calls.
At one of the steps in the flow, the agents should be presented with a list of order numbers and dates that are retrieved from an external order management system in real time and displayed on the screen.
What should a developer use to satisfy this requirement?
- A. An Apex controller
- B. An outbound message
- C. An invocable method
- D. An Apex REST class
Answer: D
NEW QUESTION # 48
Given the following code snippet, that is part of a custom controller for a Visualforce page:
In which two ways can the try/catch be enclosed to enforce object and field-level permissions and prevent the DML statement from being executed if the current logged-in user does not have the appropriate level of access? Choose 2 answers
- A. Use if (thisContact.Owner = = UserInfo.getuserId ( ) )
- B. Use if (Schema, sobjectType, Contact, isUpdatable ( ) )
- C. Use if (Schema.sObjectType.Contact.isAccessible ( ) )
- D. Use if (Schema , sobjectType. Contact. Field, Is_Active_c. is Updateable ( ) )
Answer: B,D
NEW QUESTION # 49
A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or updated. The field update in the workflow rule is configured to not re-evaluate workflow rules.
What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on the Account?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: B
NEW QUESTION # 50
An org tracks customer orders on an Order object and the items of an Order on the Line Item object. The Line Item object has a MasterDetail relationship to the order object. A developer has a requirement to calculate the order amount on an Order and the line amount on each Line item based on quantity and price.
What is the correct implementation?
- A. Implement the line amount as a numeric formula field and the order amount as a roll-up summary field.
- B. Write a single before trigger on the Line Item that calculates the item amount and updates the order amount on the Order.
- C. Write a process on the Line item that calculates the item amount and order amount and updates the filed on the Line Item and the order.
- D. Implement the Line amount as a currency field and the order amount as a SUM formula field.
Answer: A
NEW QUESTION # 51
......
Use Valid New Plat-Dev-201 Test Notes & Plat-Dev-201 Valid Exam Guide: https://itcertspass.itcertmagic.com/Salesforce/real-Plat-Dev-201-exam-prep-dumps.html