Baixe o app para aproveitar ainda mais
Prévia do material em texto
Itfreedumps provides the latest online questions for all IT certifications, such as IBM, Microsoft, CompTIA, Huawei, and so on. Hot exams are available below. AZ-204 Developing Solutions for Microsoft Azure 820-605 Cisco Customer Success Manager MS-203 Microsoft 365 Messaging HPE2-T37 Using HPE OneView 300-415 Implementing Cisco SD-WAN Solutions (ENSDWI) DP-203 Data Engineering on Microsoft Azure 500-220 Engineering Cisco Meraki Solutions v1.0 NACE-CIP1-001 Coating Inspector Level 1 NACE-CIP2-001 Coating Inspector Level 2 200-301 Implementing and Administering Cisco Solutions Share some PDII exam online questions below. 1.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. @RemoteAction B. @AuraEnabledcacheable=true) C. @QRemoteAction(caccheable=true) 1 / 9 https://www.itfreedumps.com/exam/real-microsoft-az-204-dumps/ https://www.itfreedumps.com/exam/real-cisco-820-605-dumps/ https://www.itfreedumps.com/exam/real-microsoft-ms-203-dumps/ https://www.itfreedumps.com/exam/real-hp-hpe2-t37-dumps/ https://www.itfreedumps.com/exam/real-cisco-300-415-dumps/ https://www.itfreedumps.com/exam/real-microsoft-dp-203-dumps/ https://www.itfreedumps.com/exam/real-cisco-500-220-dumps/ https://www.itfreedumps.com/exam/real-nace-nace-cip1-001-dumps/ https://www.itfreedumps.com/exam/real-nace-nace-cip2-001-dumps/ https://www.itfreedumps.com/exam/real-cisco-200-301-dumps/ D. @AuraEnabled Answer: B 2.Exhibit. A developer created a JavaScript function as a part of a Lightning web component (LWC) that surfaces information… about leads by imperatively calling getFetchLeadList when certain criteria are met. What are these changes the developer should implement in the Apex class above to ensure the LWC can display data efficiently while preserving security? Choose 3 answers A. Annotate the Apex method with gAuraEnabled- B. Annotate the Apex method with 8AuraEnabled (Cacheable-true). C. Use the WITH SECURITY_ENFORCED clause within the SOQL query. D. Implement the with sharing keyword in the class declaration. E. Implement the without sharing keyword in the class declaration. Answer: B,C,D 3.A company uses an external system to manage its custom account territory assignments. Every quarter, millions of Accounts may be updated in Salesforce with new Owners when the territory assignments are completed in the external system. What is the optimal way to update the Accounts from the external system? A. Apex REST Web Service B. Composite REST API C. SOAP API D. Bulk API Answer: A 4.Universal Containers needs to integrate with a Heroku service that resizes product images submitted by users. What are two alternatives to implement the integration and protect against malicious calls to Heroku app's endpoint? Choose 2 answers A. Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data and some form of pre-shared secret key. so that the Heroku app can authenticate requests and store the resized images in Salesforce. B. Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data; therefore the Heroku app can automatically reply back to the callout with the resized images in Salesforce. 2 / 9 C. Create a Workflow Rule with an Outbound Message and select Send Session ID so that the Heroku app can use it to send the resized images back to Salesforce. D. Create a Workflow Rule with an Outbound Message allowing the Heroku app to automatically store the resized images in Salesforce. Answer: C,D 5.A developer created a Lightning web component that allows users to input a text value that is used to search for Accounts by calling an Apex method. The Apex method returns a list of AccountWrappers and is called imperatively from a JavaScript event handler. Which two changes should the developer make so the Apex method functions correctly? Choose 2 answers A. Add @AuraEnafcle3 to line 09. B. Add @AuraEnabled to line 03. C. Add @AuraEnabled to lines 11 and 12. D. Add @AuraEnat:ei to line 01. Answer: B,C 6.As part of a custom development, a developer creates a Lightning component to show how a particular opportunity progresses over time. The component must display the date stamp when any of the following fields change: • Amount, Probability, Stage, or Close Date How should the developer access the data that must be displayed? A. Execute a SOQL query for Amount, Probability, Stage, and Close Date on the OpportunityHistory object. B. Create custom a custom date field on Opportunity for each field to track the previous date and execute a SOQL query for date fields. C. Subscribe to the Opportunity Change Data Capture event in the Lightning component. D. Subscribe to the OpportunityHistory Change Data Capture event in the Lightning component. Answer: A 3 / 9 7.An end user reports that a Lightning component is performing poorly. Which two steps should to taken in production to investigate? Choose 2 answers A. Enable Debug Mode for Lightning component B. Print consoIe.log{} statements to identify where actions are delayed. C. Use the salesforce Lightning inspector chrome extension. D. Add a trace flag to the user who reported the issue. Answer: C,D 8.Universal Containers (UC) calculates commissions on their Opportunities in different ways based on complex rules that vary depending on the line of business of the Opportunity. Whenever a new line of business Is added to Salesforce at UC, it is likely that a different calculation will need to be added too. When an Opportunity’s stage is changed to Closed/Won, its commission should be calculated in real time. What should a developer use so that different implementations of the commission calculation can be invoked on the stage change? A. A final dass with multiple methods B. Apex Describe Schema methods C. An Apex class with @ custom enum D. An Interface and implementing classes Answer: C 9.What should a developer use to query all Account fields for the Acme account in their sandbox? A. SELECT FROM ACCOUNT WHERE Name = ‘Acme’ LIMIT 1 B. SELECT ALL FROM Account WHERE Name = ‘Acme’ LIMIT 1 C. SELECT FIELDS FROM Account WHERE Name = ‘Acme’ LIMIT 1 D. SELECT FIELDS (ALL) FROM Account WHERE Name = ‘Acme’ LIMIT 1 Answer: D 10.A developer creates a Lightning web component to allow a Contact to be quickly entered- However, error messages are not displayed. Which component should the developer add to the form to display error messages? A. apex:messages 4 / 9 B. aura:messages C. lightning-messages D. lightning-error Answer: C 11.Which statement is true regarding savepoints? A. Savepoints are not limited by DML statement governor limits B. You can roll back to any savepoint variable created In any order C. Static variables are not reverted during a rollback. D. Reference to savepoints can cross trigger invocations. Answer: C 12.A developer created an Apex class that updates an Account based on input from a Lightning web component that is used to register an Account. The update to the Account should only be made if it has not already been registered. What should the developer do to ensure that users do not overwrite each other’s updates to the same Account if they make updates at the same time? A. Use CastiCase.update(account, false). B. Add a try/catch block around the update. C. Use upsert instead of update. D. Use FOR UPDATE in a SOQL query. Answer: A 13.Universal Containers uses Salesforce to manage its product offerings to customers. A developer is building a custom mobile app that must allow app users to view product information, in real time, that is stored in Salesforce. What should the developer use to get the product information from Salesforce? A. SOAP API B. User Interface API C. Streaming APID. REST APT Answer: D 14.A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field. 5 / 9 When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the Accounts associated with the selected industry. What is the optimal way to implement this? A. Add an <apex: actionFunction> within the <apex : selectOptions>. B. Add an <apex: actionFunction> within the <apex: select List >. C. Add an <apex: actionSupport> within the <apex:selectList>. D. Add an <apex: actionSupport> within the <apex: selectOptions>. Answer: B 15.A developer created a Lightning web component that uses a Lightning-record-edit-force to collect information about Leads. Users complain that they only see one error message at a time when they save a Lead record. What can the developer use to perform the validations, and allow multiple error messages to be displayed simultaneously? A. Apex REST B. External JavaScript Library C. Apex Trigger D. Process Builder Answer: B 16.Account object has a field, Audit_Code__, that is used to specify what type of auditing the Account needs and a Lookup to user, Auditor__ that is the assigned auditor. When an Account is initially created, the user specifies the Audit_Code__. Each User in the org has a unique text field, that is used to automatically assign the correct user to the Account Auditor__ field. 6 / 9 What should be changed to most optimize the code's efficiency? Choose 2 answers A. Build a Map<String, List<Account>> of audit code to accounts. B. Add an initial SOQL query to get all distinct audit codes. C. Add a WHERE clause to the SOQL query to filter On audit codes. D. Build a Map <Id, List<String>> of Account Id to audit codes. Answer: A,C 17.A company uses Opportunism to track sales to their customers and their org has millions of Opportunities. They want to begging to track revenue over time through a related Revenue object. As part of their initial implementation, they want to perform a one-time seeding of their data by automatically creating and populating Revenue records for Opportunities, based on complex logic. They estimate that roughly 100,000 Opportunities will have revenue records and populated. What is the optimal way to automate this? A. Use System.enqueueJob>() to Invoke a Queueable class. B. Use System.scheduleJob() to schedule a Database.Scheduleable class. C. Use Database.executeBatch() to invoke a Queueable dass. D. Use Database.txtcuteBatch() to invoke a Database.Batchable class. Answer: D 18.An org records customer order information In a custom object, Orcer__c, that has fields for the shipping address. A developer is tasked with adding code to calculate shipping charges on an order, based on a fiat percentage rate associated with the region of the shipping address. What should the developer use to store the rates by region, so that when the changes are deployed to production no additional steps are needed for the calculation to work? 7 / 9 A. Custom object B. Custom metadata type C. Custom list setting D. Custom hierarchy setting Answer: B 19.Universal Containers allows customers to log into a Salesforce Community and update their orders via a custom Visualforce page. Universal Containers' sales representatives can edit the orders on the same Visualforce page. What should a developer use in an Apex test class to test that record sharing is enforced on the Visualforce page? A. Use System.profllels() to test as an administrator and a community user, B. Use System.profilels() to test as a sales rep and a community user. C. Use System.runAs() to test as a sales rep and a community user. D. Use System.runAs() to test as an administrator and a community user. Answer: C 20.A developer is asked to build a solution that will automatically send an email to the Customer when an Opportunity stage changes. The solution must scale to allow for 10,000 emails per day. The criteria to send the email should be evaluated after all Workflow Rules have fired. What is the optimal way to accomplish this? A. Use a Workflow Email Alert. B. Usea MassEmailMessage() with an Apex Trigger. C. Use a SingleEmailMessage() with an Apex Trigger. D. Use an Email Alert with Process Builder. Answer: D 21.A developer created the code to perform an HTP GET request to an external system. 8 / 9 When the code is executed, the callout is unsuccessful and the following error appears within the Developer Console:System.CalloutException: Unauthorized endpoint Which recommended approach should the developer implement to the callout exception? A. create a remote site setting configuration that includes the endpoint. B. Annotate the getERPCatalogContents method With @Future (Callout-true) C. use the setHeader () method to specify Basic Authentication. D. Change the access modifier for ERPCatelog from Public to global Answer: D Get PDII exam dumps full version. 9 / 9 https://www.itfreedumps.com/exam/real-salesforce-pdii-dumps/
Compartilhar