Plat-Dev-201 Practice Test Questions Answers Updated 240 Questions
Plat-Dev-201 dumps & Salesforce Developers Sure Practice with 240 Questions
Salesforce Plat-Dev-201 Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
NEW QUESTION # 35
Universal Containers has a Visualforce page that displays a table of every Container__c being rented by a given Account. Recently this page is failing with a view state limit because some of the customers rent over 10,000 containers. What should a developer change about the Visualforce page to help with the page load errors?
- A. Implement pagination with an OffaetController.
- B. Use lazy loading and a transient List variable.
- C. Use JavaScript remotlng with SOQL Offset.
- D. Implement pagination with a StandardSetController.
Answer: D
NEW QUESTION # 36
A developer deployed a trigger to update the status__c of Assets related to an Account when the Account''s status changes and a nightly integration that updates Accounts in bulk has started to fail with limit failures.
What should the developer change about the code to address the failure while still having the code update all of the Assets correctly?
- A. Add List<Asset> assets = [SELECT Id, Status__c FROM Asset WHERE AccountId = :acctId] to line 14 and iterate over the assets list in the for loop on line 15.
- B. Move all of the logic to a Queueable class that queries for and updates the Assets and call it from the trigger.
- C. Change the gerAssetsToUpdac= method to process all Accounts in one call and call it outside of the for loop that starts on line 03.
- D. Add a LIMIT clause to the SOQL query on line 16 to limit the number of Assets queried for an Account.
Answer: C
NEW QUESTION # 37
A developer creates a batch Apex job to update a large number of records, and receives reports of the job timing out and not completing.
What is the first step towards troubleshooting the issue?
- A. Decrease the batch size to reduce the load on the system.
- B. Check the debug logs for the batch job.
- C. Check the asynchronous job monitoring page to view the job status and logs.
- D. Disable the batch job and recreate it with a smaller number of records.
Answer: C
NEW QUESTION # 38
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: true, composed: true
- B. bubbles: false, composed: false
- C. bubbles: tnje, composed: false
- D. bubbles: false, composed: true
Answer: A
NEW QUESTION # 39
Which annotation exposes an Apex class as a RESTful web service?
- A.

- B.

- C.

- D.

Answer: C
NEW QUESTION # 40
A developer wants to mark each Account in a List<Account> as either or Inactive based on the LastModified field value being more than 90 days.
Which Apex technique should the developer use?
- A. A for loop, with an if/else statement inside
- B. A Switch statement, with a for loop inside
- C. A for loop, with a switch statement inside
- D. An If/else statement, with a for loop inside
Answer: A
NEW QUESTION # 41
The sales management team at Universal Container requires that the Lead Source field of the Lead record be populated when a.. converted.
What should be done to ensure that a user populates the Lead Source field prior to converting a Lead?
- A. Use a validation rule.
- B. Use Lead Conversation field mapping.
- C. Create an after trigger on Lead.
- D. Use a formula field.
Answer: A
NEW QUESTION # 42
Which action causes a before trigger to fire by default for Accounts?
- A. Renaming or replacing picklist
- B. Updating addresses using the Mass Address update tool
- C. Importing data using the Data Loader and the Bulk API
- D. Converting Leads to Contact accounts
Answer: C
NEW QUESTION # 43
A developer is migrating a Visualforce page into a Lightning web component. The Visualforce page shows information about a single record. The developer decides to use Lightning Data Service to access record data.
Which security consideration should the developer be aware of?
- A. The isAccessible ( ) method must be used for field-level access checks
- B. Lightning Data Service ignores field-level security.
- C. The with sharing keyword must be used to enforce sharing rules.
- D. Lightning Data Service handles sharing rules and field-level security.
Answer: D
NEW QUESTION # 44
Refer to the following code snippet for an environment that has more than 200 Accounts belonging to the Technology' industry:
which three statements are accurate about debug logs? Choose 3 answers
- A. System debug logs are retained for 24 hours.
- B. Debug logs can be set for specific users, classes, and triggers.
- C. Only the 20 most recent debug logs for a user are kept.
- D. The maximum size of a debug log is 5 MB.
- E. Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.
Answer: A,B,C
NEW QUESTION # 45
A developer is designing a new application on the Salesforce platform and wants to ensure it can support multiple tenants effectively.
Which design framework should the developer consider to ensure scalability and maintainability?
- A. Agile Development
- B. Model-View-Controller (MVC)
- C. Waterfall Model
- D. Flux (view, action, dispatcher, and store)
Answer: A
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 DAYS formula on each of the availability date fields and a COUNT Roll-Up Summary field on the Order.
- B. Use a Max Roll-Up Summary field on the Latest availability date fields.
- C. Use a CEILING formula on each of the Latest availability date fields.
- D. Use a LATEST formula on each of the latest availability date fields.
Answer: B
NEW QUESTION # 47
A Next Best Action strategy uses an Enhance element that invokes an Apex method to determine a discount level for a Contact, based on a number of factors.
What is the correct definition of the Apex method?
- A.

- B.

- C.

- D.

Answer: C
NEW QUESTION # 48
A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple subjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL. Which three statements are useful inside the unit test to effectively test the custom controller? Choose 3 answers
- A. ApexPages.CurrentPage().getParameters().put('input\', 'TestValue');
- B. insert pageRef.
- C. public ExtendedController(ApexPages StandardController cntrl) { }
- D. String nextPage -controller.save().getUrl();
- E. Test.setCurrentPage(pageRef);
Answer: A,D,E
NEW QUESTION # 49
Given the following Anonymous Block:
Which one do you like?
What should a developer consider for an environment that has over 10,000 Case records?
- A. The transaction will succeed and changes will be committed.
- B. The try/catch block will handle any DML exceptions thrown.
- C. The try/catch block will handle exceptions thrown by governor limits.
- D. The transaction will fail due to exceeding the governor limit.
Answer: D
NEW QUESTION # 50
Which two scenarios require an Apex method to be called imperatively from a Lightning web component? Choose 2 answer
- A. Calling a method that makes a web service callout
- B. Calling a method with the click of a button
- C. Calling a method that is not annotated with cacheable-true
- D. Calling a method that is external to the main controller for the Lightning web component
Answer: C,D
NEW QUESTION # 51
Which annotation should a developer use on an Apex method to make it available to be wired to a property in a Lightning web component?
- A. @AureEnabled
- B. @AureEnabled (cacheable=true)
- C. @RemoteAction
- D. @RemoteAction(|cacheable=true)
Answer: B
NEW QUESTION # 52
Universal Containers has a Visualforce page that displays a table of every Container_c.
being ....... Is falling with a view state limit because some of the customers rent over 10,000 containers. What should a developer change about the Visualforce page to help with the page load errors?
- A. Implement pagination with a StandardSetController,
- B. Implement pagination with an OffsetController.
- C. Use JavaScript remoting with SOQL Offset.
- D. Use Lazy loading and a transient List variable.
Answer: A
NEW QUESTION # 53
A developer must create a lightning component that allows users to input contact record information to create a contact record, including a salary__c custom field. what should the developer use, along with a lightning-record-edit form, so that salary__c field functions as a currency input and is only viewable and editable by users that have the correct field levelpermissions on salary__C?
- A. <lightning-formatted-number value="Salary__c" format-style="currency"> </lightning-formatted- number>
- B. <lightning-input-currency value="Salary__c">
</lightning-input-currency> - C. <lightning-input type="number" value="Salary__c" formatter="currency"> </lightning-input>
- D. <ligthning-input-field field-name="Salary__c">
</lightning-input-field>
Answer: D
NEW QUESTION # 54
When a user edits the postal Code on an Account, a custom Account text field named. Timezone` must be updated based on the values in a PostalCodeToTimezone_c custom ogject. Which two automationtools can be used to implement this feature? Choose 2 answers
- A. Fast field Updates record-triggered flow
- B. Approval process
- C. Account trigger
- D. Quick actions
Answer: A,C
NEW QUESTION # 55
Refer to the code snippet below:
When a Lightning web component is rendered, a list of apportunities that match certain criteria shopuld be retrievved from the database and displayed to the end user.
Which three Considerations must the developer implement to make the method available within the Lightning web component? Choose 3 answer
- A. The method must be annotated with the AureEnabled annolation
- B. The method must specify the (continuation-true) attribute
- C. The method must be annotaled with true Invocablemethod annolation
- D. The method must specify the (cacheable-trun) attribute
- E. The method cannot mutate the result set retrieved from the database.
Answer: A,D,E
NEW QUESTION # 56
What are two considerations for deploying from a sandbox to production? Choose 2 answers
- A. Should deploy during business hours to ensure feedback can be Quickly addressed
- B. Unit tests must have calls to the System.assert method.
- C. All triggers must have at least one line of test coverage.
- D. At least 75% of Aptx code must be covered by unit tests.
Answer: C,D
NEW QUESTION # 57
Universal Containers hires a developer to build a custom search page to help user-find the Accounts they want. Users will be able to search on Name, Description, and a custom comments field. Which consideration should the developer be aware of when deciding between SOQL and SOSL? Choose 2 answers
- A. SOQL is faster for text searches.
- B. SOSL is faster for tent searches.
- C. SOQL is able to return more records.
- D. SOSL is able to return more records.
Answer: B,C
NEW QUESTION # 58
Which scenario is valid for execution by unit tests?
- A. Load data from a remote site with a callout.
- B. Execute anonymous Apex as a different user.
- C. Set the created date of a record using a system method.
- D. Generate a Visualforce PDF with geccontentAsPDF ().
Answer: C
NEW QUESTION # 59
......
New Plat-Dev-201 Exam Questions| Real Plat-Dev-201 Dumps: https://www.examcost.com/Plat-Dev-201-practice-exam.html
Get New Plat-Dev-201 Certification – Valid Exam Dumps Questions: https://drive.google.com/open?id=1DU7BZIKzOMIz3nRejNCxpnnNep-m7b8q

