Salesforce PDII日常練習試験は2022年最新のに更新された395問あります [Q61-Q85]

Share

Salesforce PDII日常練習試験は2022年最新のに更新された395問あります

有効問題を試そう!PDII試験で実際の試験問題と解答

質問 61
<lightning: layout multipleRows="true"> <lightning: layoutItem size="12">{!v.account.Name} </flighting:
layoutitem> <lightning:layoutitem 3ize="12">{!v. account .AccountNumber} </lighting: layoutitem>
<lightning: layoutitem size="12">{!v.account. Industry} </lighting: layoutitem> </lightning: layout> Refer to the component code above. The information displays as expected (in three rows) on a mobile device.
However, the information is not displaying as desired (in a single row) on a desktop or tablet. Which option has the correct component changes to display correctly on desktops and tablets?

  • A.
  • B.
  • C.
  • D.

正解: B

 

質問 62
What is a valid return type for the following SOSL query? [FIND 'map"' IN ALL FIELDS RETURNING Account (Id, Name) , Contact, Opportunity,Lead]

  • A. List < List< sObject>>
  • B. List< Account>
  • C. List< sobject>
  • D. List< AggregateResult>

正解: A

 

質問 63
What Salesforce tool lets you deploy/retrieve metadata, check status of apex jobs, and check responses of REST calls?

  • A. Workbench
  • B. Developer Console
  • C. Force.com Migration Tool
  • D. Streaming API

正解: A

 

質問 64
A large company uses Salesforce across several departments. Each department has its own Salesforce Administrator. It was agreed that each Administrator would have their own sandbox in which to test changes.
Recently, users notice that fields that were recently added for one department suddenly disappear without warning. Also, Workflows that once sent emails and created tasks no longer do so. Which two statements are true regarding these issues and resolution? Choose 2 answers

  • A. A sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production.
  • B. Page Layouts should never be deployed via Change Sets, as this causes Workflows and Field-level Security to be reset and fields to disappear.
  • C. The administrators are deploying their own Change Sets, thus deleting each other's fields from the objects in production.
  • D. The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts and Workflows in Production

正解: A,D

 

質問 65
A developer needs to implement a system audit feature that allows users, assigned to a custom profile named "Auditors", to perform searches against the historical records in the Account object. The developer must ensure the search is able to return history records that are between 12 and 24 months old.
Given the code below, which select statement should be inserted below as a valid way to retrieve the Account History records ranging from 12 to 24 month old?
A)

B)

C)

D)

  • A. Option B
  • B. Option A
  • C. Option D
  • D. Option C

正解: B

 

質問 66
An Apex Trigger creates a Contract record every time an Opportunity record is marked as Closed and Won.
This trigger is working great, except (due to a recent acquisition) historical Opportunity records need to be loaded into the Salesforce instance. When a test batch of records are loaded, the Apex Trigger creates Contract records. A developer is tasked with preventing Contract records from being created when mass loading the Opportunities, but the daily users still need to have the Contract records created. What is the most extendable way to update the Apex Trigger to accomplish this?

  • A. Add a Validation Rule to the Contract to prevent Contract creation by the user who does the data loading.
  • B. Use a Hierarchy Custom Setting to disable the Trigger for the user who does the data loading.
  • C. add the Profile Id of the user who does the data loading to the Trigger so the Trigger won't fire for this user.
  • D. Use a List Custom Setting to disable the Trigger for the user who does the data loading.

正解: B

 

質問 67
Universal Containers wants to use an external Web Service provided by a third-party vendor to validate that shipping and billing addresses are correct. The current vendor uses basic password authentication, but Universal Containers might switch to a different vendor who uses OAuth. What would allow Universal Containers to switch vendors without updating the code to handle authentication?

  • A. Named Credential
  • B. Custom Metadata
  • C. Custom Setting (List)
  • D. Dynamic Endpoint

正解: A

 

質問 68
A Lightning Component functions in preview mode and needs to be used inside a Lightning App Builder page, but it is not available. What change should be applied to the component?

  • A. Delete the component, metadata, and Apex controller and recreate them.
  • B. Look for errors in the logic in the JavaScript controller.
  • C. Refresh the sandbox and upgrade it to the latest API version.
  • D. Expose it in the markup using the implements and access attributes.

正解: D

 

質問 69
A company has a custom object, Order__c, that has a custom picklist field, Status__c, with values of 'New',
'In Progress', or 'Fulfilled' and a lookup field, Contact__c, to Contact.
Which SOQL query will return a unique list of all the Contact records that have no 'Fulfilled' Orders?
SELECT Id FROM Contact WHERE Id NOT IN (SELECT Id FROM Order__c WHERE

  • A. SELECT Id FROM Contact WHERE Id NOT IN (SELECT Contact__c FROM Order__c
  • B. WHERE Status__c = 'Fulfilled')
    SELECT Contact__c FROM Order__c WHERE Id NOT IN (SELECT Id FROM Order__c
  • C. Where Status__c = 'Fulfilled')
  • D. Status__c = 'Fulfilled')
    SELECT Contact__c FROM Order__c WHERE Status__c <> 'Fulfilled'

正解: C

 

質問 70
Employee_c is a Child object of Company_c. The Company_c object has an external Id field Company_ld_c.
How can a developer insert an Employee_c record linked to Company_c with a Company_ld_c of '999'?

  • A. Employee_c emp = new Employee_c(Name=fDeveloperT); emp. Company_c = new Company_c(Company_Id_c=f 999 T) insert emp;
  • B. Employee_c emp = new Employee_c(Name=fDeveloperf); emp.Company_r = new Company _ r(Company Id c=f999f) insert emp;
  • C. Employee_c emp = new Employee_c(Name=fDeveloperf); emp.Company_c = f999f insert emp;
  • D. Employee_c emp = new Employee_c(Name=fDeveloperf); emp.Company_r = f999f insert emp;

正解: B

 

質問 71
Exhibit:

The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Account are simultaneously updated to be customer.
The test method fails at the Line 20 because of too many SOQL queries
What is the correct way to fix this?

The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated to be customers.
The test method fails at the Line 20 because of too many SOQL queries.
What is the correct way to fix this?

  • A. Change the DataFactory class to create fewer Accounts so that the number of queries in the trigger is reduced.
  • B. Replace most of the Apex Trigger with Process Builder processes to reduce the number of queries in the trigger.
  • C. Add TeststartTest() before Line 18 of the code and add Test.stopTest() after line 18 of the code.
  • D. Add TesLstartTest() before and Test.stop Test() after both Line 7 of the code and Line 20 of the code.

正解: D

 

質問 72
A developer is asked to create a Lightning web component that will be invoked via button on a record page. The component must be displayed in a model dialog.
Which three steps should the developer take to achieve this/
Choose 3 answers

  • A. Set action Type to screenAction.
  • B. Add a tarqetConfig anf set targets to lightning_RecordAction.
  • C. Set eventType to action.
  • D. In target, add lightning_RecordAction as a target.
  • E. In targetConfigs, add Lightning_Apppage as a target.

正解: A,D

 

質問 73
A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow.
What can a developer to do address the issue?

  • A. Move the prerequisite reference data setup to the constructor for the test class.
  • B. Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.
  • C. Move the prerequisite reference data setup to a @testSetup method in the test class.
  • D. Move the prerequisite reference data setup to a static method in the test class and call that from each test method.

正解: B

解説:
Explanation/Reference:

 

質問 74
A developer needs to create a service that will process an email sent to it and create an account and contact using the contents of the email as data for the records. How might a developer accomplish this requirement?

  • A. Use the Apex Inbound Email Handler.
  • B. Use Auto-launched Flow and Process Builder.
  • C. Use Heroku Data Clips to Process Email.
  • D. Use the Fuel API with Email Data Extensions.

正解: A

 

質問 75
A developer created a Visualforce page that has a custom controller that navigates to an external website after the' command button is pressed. What is the recommended way to test this functionality?

  • A. Test the navigation by executing the use case through the browser and manually inspecting the resulting URL
  • B. Use .getURL() on the result of the action method and System.assertEquals () to compare the resulting URL.
  • C. Use ApexPages.currentPage () .getUrl () and System.assertElquals () to compare the end URL.
  • D. Use Test.getCurrentPage() .getUrl () and System.assertEquals () to compare the end URL.

正解: B

 

質問 76
Choose the correct definition for <apex:actionFunction>.

  • A. Allows for controller methods to be called directly from Javascript. Must be| encapsulated in <apex:form> tags. Unlike actionSupport, these function<apex:actionPoller>s can be called directly from Javascript code B Sends an AJAX request according to the time interval you specify. If this ever gets re-rendered, it resets
  • B. Adds AJAX support to another component (e.g. onClick, onMouseUp, onFocus, etc.)
  • C. Can be associated with an AJAX request (actionFunction/actionSupport/actionPoller) and shows content conditionally depending on the status of the request (in progress/complete). Use the "id" field to specify name; use "status" field on related components to connect them
  • D. Signifies which components should be processed by the server when an AJAX request is generated

正解: C

 

質問 77
Which type of controller is best suited when you want all of the basic DML functions from an object's normal new/edit page?

  • A. Controller Extensions
  • B. Custom Controller
  • C. Standard List/Set Controller
  • D. Standard Controller

正解: C

 

質問 78
A developer needs to implement a system audit feature that allows users, assigned to a custom profile named "Auditors", to perform searches against the historical records in the Account object. The developer must ensure the search is able to return history records that are between 12 and 24 months old.
Given the code below, which select statement should be inserted below as a valid way to retrieve the Account History records ranging from 12 to 24 month old?

  • A.
  • B.
  • C.
  • D.

正解: D

 

質問 79
The REST API...

  • A. Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects
  • B. Is used to to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment
  • C. Is used to to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to allows you to maintain passwords, perform searches, and much more
  • D. Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAll, insert, update, upsert, or delete many records asynchronously by submitting batches

正解: A

 

質問 80
A developer wants to use an Aura component with a custom action.
What should be considered in order to do this?

  • A. A default value must be provided for each component attribute marked as required
  • B. The component must implement the flexipage:availableForRecordHome interface
  • C. The class "slds-modal_ _container" must be added to the top-level element of the component
  • D. The component's JavaScript controller must handle a method on initialization

正解: B

 

質問 81
A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow. What can a developer to do address the issue?

  • A. Move the prerequisite reference data setup to the constructor for the test class.
  • B. Move the prerequisite reference data setup to a @testSetup method in the test class.
  • C. Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.
  • D. Move the prerequisite reference data setup to a static method in the test class and call that from each test method.

正解: B

 

質問 82
A company has a native i0S app for placing orders that needs to connect to Salesforce to retrieve consolidated information from many different objects in a JSON format.
Which is the optimal method to implement this in Salesforce?

  • A. Apex REST Web Service
  • B. Apex SOAP Web Service
  • C. Apex SOAP Callout
  • D. Apex REST Callout

正解: A

 

質問 83
A developer has built a multi-page wizard using a single Custom Controller to query and update data. Users are complaining that the pages are loading slowly. What will improve performance? Choose 3 answers

  • A. Using selective queries.
  • B. Reducing the view state.
  • C. Turning off the standard stylesheet.
  • D. Setting the Apex Page attribute cache=true.
  • E. Using actionRegion and rerender.

正解: A,B,D

 

質問 84
Universal Containers uses a custom Lightning page to provide a mechanism to perform a step-by-step wizard search for Accounts. One of the steps in the wizard is to allow the user to input text into a text field, ERP_Number__c, that is then used in a query to find matching Accounts.

A developer receives the exception 'SOQL query not selective enough.
Which step should be taken to resolve the issue?

  • A. Move the SOQL query to within an asyncronous process.
  • B. Mark the ERP_Number__c field as required.
  • C. Perform the SOQL query as part of a for loop.
  • D. Mark the lRP_Number__c field as an external ID.

正解: B

 

質問 85
......


Salesforce PDII 認定試験の出題範囲:

トピック出題範囲
トピック 1
  • Analyze a set of requirements and determine the benefits of using asynchronous or batch Apex coding
  • Demonstrate knowledge of the localization features and capabilities and how they affect coding
トピック 2
  • Given a set of requirements, choose the appropriate integration technique
  • Given a scenario, formulate the deployment process, supporting tools, and mechanisms
トピック 3
  • Identify the appropriate dynamic Apex feature to use in the solution
  • Given a scenario, propose and justify the optimal programmatic or declarative solution
トピック 4
  • Apex code or trigger that is not performing as expected
  • Identify use cases for different types of custom metadata and custom settings
トピック 5
  • Apply techniques and tools for testing Visualforce controllers and controller extensions
  • Outline the benefits of adopting a low-code approach in Salesforce
トピック 6
  • Demonstrate knowledge of the best practices for writing Apex triggers
  • Identify the keywords used in a SOQL query and explain where they're used in a query's structure
トピック 7
  • Identify how an Apex method can be made available for use by Lightning Web Components
  • Determine if a declarative or custom-coded solution should be implemented
トピック 8
  • Compare and contrast the usage of Visualforce and Apex controllers
  • Describe the use cases for and benefits of external IDs

 

テストエンジンに練習PDIIテスト問題:https://www.goshiken.com/Salesforce/PDII-mondaishu.html

PDIIリアル試験問題でテストエンジン問題集トレーニングには395問あります:https://drive.google.com/open?id=13_CnaUQ4Ukv87qUqAnJpEDs47zUQAEBH