Salesforce DEX-450リアル試験問題解答は無料 [Q113-Q138]

Share

Salesforce DEX-450リアル試験問題解答は無料

試験問題集でDEX-450練習無料最新のSalesforce練習テスト


Salesforce DEX-450試験は、ライトニングエクスペリエンスでApexおよびVisualforceを使用したプログラマティックな開発に関連する広範なトピックをカバーしています。これらのトピックには、Apexクラスとトリガー、Visualforceページとコンポーネント、ライトニングコンポーネント、Apexのテストとデバッグ、Salesforce開発のベストプラクティスが含まれます。この試験に合格した候補者は、これらのトピックについて強い理解を持ち、Salesforceでカスタムアプリケーションを開発し、ビジネスプロセスを自動化することができます。


Salesforce DEX-450認定を獲得するには、候補者は120分以内に60質問の多肢選択式試験に合格する必要があります。この試験は、Salesforceプラットフォーム上のプログラム開発のさまざまな分野で候補者の知識とスキルをテストするように設計されています。候補者は、Apexプログラミング言語、VisualForce Framework、およびLightningの経験を強く理解することが期待されています。さらに、候補者は、ApexとVisualForceを使用してカスタムアプリケーションを構築し、外部システムを統合する能力を実証できる必要があります。 Salesforce DEX-450認定は、開発者がキャリアを進め、収益の可能性を高めるのに役立つ貴重な資格情報です。

 

質問 # 113
Which three data types can a SOQL query return?
Choose 3 answers

  • A. List
  • B. Integer
  • C. sObject
  • D. Long
  • E. Double

正解:A、B、C

解説:
A SOQL query can return the following data types:
Option A: sObject
Example:
Account acc = [SELECT Id, Name FROM Account WHERE Id = :accountId];
Option D: List
Example:
List<Contact> contacts = [SELECT Id, Name FROM Contact WHERE AccountId = :accountId]; Option E: Integer Example:
Integer contactCount = [SELECT COUNT() FROM Contact WHERE AccountId = :accountId]; Why Other Options Are Incorrect:
Option B: Double
Aggregate functions like SUM() return Decimal, not Double.
Reference:
"Aggregate functions other than COUNT() must be aliased (using the AS keyword) so that they can be retrieved in the records."
- SOQL and SOSL Reference
Option C: Long
Long is not a data type returned by SOQL queries.


質問 # 114
What should a developer use to fix a Lightning web component bug in a sandbox?

  • A. VS Code
  • B. Developer Console
  • C. Execute Anonymous
  • D. Force.com IDE

正解:A


質問 # 115
A developer needs to implement a custom SOAP Web Service that is used by an external Web Application. The developer chooses to include helper methods that are not used by the Web Application in the implementation of the Web Service Class.
Which code segment shows the correct declaration of the class and methods?

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

正解:D


質問 # 116
Where are two locations a developer can look to find information about the status of batch or future methods?
Choose 2 answers

  • A. Apex Jobs
  • B. Developer Console
  • C. Paused Flow Interviews component
  • D. Apex Flex Queue

正解:A


質問 # 117
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.

Choose 3 answer

  • A. The method must specify the (cacheable-trun) attribute
  • B. The method must specify the (continuation-true) attribute
  • C. The method must be annotaled with true Invocablemethod annolation
  • D. The method cannot mutate the result set retrieved from the database.
  • E. The method must be annotated with the AureEnabled annolation

正解:A、D、E


質問 # 118
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 object.
Which two automation tools can be used to implement this feature? Choose 2 answers

  • A. Fast Field Updates record-triggered flow
  • B. Quick actions
  • C. Account trigger
  • D. Approval process

正解:A、C


質問 # 119
A Visual force page displays two fields named Phone Number and Email.User1 has access to Phone Number, but not to Email.User2 has access to Email, but not Phone NumberA developer needs to ensure that User1 can only see Phone Number, and User2 can only see Email.Which method can the developer use to achieve this?

  • A. Schema isReadable() method.
  • B. Schema isCreateable() method.
  • C. Schema isAccessible() method.
  • D. Schema isUpdateable() method.

正解:C


質問 # 120
Which feature should a developer use to update an inventory count on related Product records when the status of an Order is modified to indicate it is fulfilled?

  • A. Visualforce page
  • B. Lightning component
  • C. Process Builder process
  • D. Workflow rule

正解:C


質問 # 121
Which two statements are true about using the @testSetup annotation in an Apex test class?
Choose 2 answers

  • A. a method defined with the @tetestSetup annotation executes once for each test method in the test class and counts towards system limits.
  • B. Records created in the test setup method cannot be updated in individualtest methods.
  • C. In a test setup method, test data is inserted once and made available for all test methods in the test class.
  • D. The ©testSetup annotation is not supported when the cg5lsTest(SeeAIIData=True) annotation is used.

正解:C、D

解説:
Option C: In a test setup method, test data is inserted once and made available for all test methods in the test class.
True.
The @testSetup method runs once before any test methods in the class.
Test data created in this method is available to all test methods, promoting code reuse and efficiency.
Reference:
Option D: The @testSetup annotation is not supported when the @isTest(SeeAllData=True) annotation is used.
True.
The @testSetup method is not supported in test classes annotated with @isTest(SeeAllData=true).
Using SeeAllData=true accesses existing organization data, conflicting with the isolation provided by @testSetup.
Option A: A method defined with the @testSetup annotation executes once for each test method in the test class and counts towards system limits.
False.
The @testSetup method executes only once per test class, not once per test method.
It does count towards the per-test-class limits but improves overall test performance.
Option B: Records created in the test setup method cannot be updated in individual test methods.
False.
Records created in a @testSetup method can be queried and modified within individual test methods.
This allows tests to manipulate shared test data as needed.
Conclusion:
The correct statements are C and D, as they accurately describe the behavior and restrictions of the @testSetup annotation.


質問 # 122
A developer needs to have records with specific field values in order to test a new Apex class. What should the developer do to ensure the data is available to the test?

  • A. Use SOQL to query the org for the required data.
  • B. Use Test.loadData() and reference a static resource.
  • C. Use Test.loadData() and reference a CSV file.
  • D. Use Anonymous Apex to create the required data.

正解:B


質問 # 123
A Primaryid__c custom field exists on the candidate_ c custom object. The field is used to store each candidate's id number and is marked as Unique in the schema definition.
As part of a data enrichment process, Universal Containers has a CSV file that contains updated data for all candidates in the system. The file contains each Candidate's primary id as a data point. Universal Containers wants to upload this information into Salesforce, while ensuring all data rows are correctly mapped to a candidate in the system.
Which technique should the developer implement to streamline the data upload?

  • A. Create a before Insert trigger to correctly map the records.
  • B. Upload the CSV into a custom object related to Candidate__ c.
  • C. Create a before save flow to correctly map the records.
  • D. Update the PrimaryId__ c field definition to mark it as an External Id.

正解:D

解説:
Option C: Update the PrimaryId__c field definition to mark it as an External Id.
Correct Answer.
Marking PrimaryId__c as an External ID allows data loading tools to match records based on this field.
This facilitates upserting data and ensures that the CSV data correctly maps to existing records.
A trigger is unnecessary when External IDs can be used for mapping.
Option B: Create a before save flow to correctly map the records.
Incorrect.
A flow adds unnecessary complexity; External IDs suffice.
Option D: Upload the CSV into a custom object related to Candidate__c.
Unnecessary.
This does not streamline the process and complicates data management.
Conclusion:
The developer should update the PrimaryId__c field to mark it as an External ID, which is Option C.
Reference:
Upserting Records with External IDs
Option A: Create a before Insert trigger to correctly map the records.
Incorrect.


質問 # 124
A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type.
Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)

  • A. Use the getRecordTypeInfosByName() method in the DescribeSObjectResult class.
  • B. Execute a SOQL query on the RecordType object.
  • C. Make an outbound web services call to the SOAP API.
  • D. Hardcode the ID as a constant in an Apex class.

正解:A、B


質問 # 125
A developer needs to create a Visualforce page that will override the standard Account edit button. The page will be used to validate the account's address using a SOQL query. The page will also allow the user to make edits to the address. Where would the developer write the Account address verification logic?

  • A. In a Standard Extension.
  • B. In a Standard Controller.
  • C. In a Custom Controller.
  • D. In a Controller Extension.

正解:D


質問 # 126
Universal Hiring uses Salesforce to capture job applications. A salesforce administrator created two custom objects; Job__c acting as the master object, to 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. Apex trigger
  • B. Record-triggered flow
  • C. Roll-up summary field

正解:B


質問 # 127
A developer needs to create a custom Visualforce button for the Opportunity object page layout that will cause a web service to be called and redirect the user to a new page when clicked. Which three attributes need to be defined in the <apex:page> tag of the Visualforce page to enable this functionality? Choose three answers.

  • A. Extensions
  • B. StandardController
  • C. Controller
  • D. Action

正解:A、B、D


質問 # 128
What is a valid statement about Apex classes and interfaces? Choose 2 answers:

  • A. The default modifier for a class is private.
  • B. The default modifier for an interface is private.
  • C. A class can have multiple levels of inner classes.
  • D. Exception classes must end with the word exception.

正解:B、D


質問 # 129
To which data type in Apex a currency field automatically assigned?

  • A. Integer
  • B. Decimal
  • C. Double
  • D. Currency

正解:B


質問 # 130
A candidate may apply to multiple jobs at the company Universal Containers by submitting a single application per job posting, that application cannot be modified to be resubmitted to a different job posting.What can the administrator do to associate an application with each job posting in the schema for the organization?

  • A. Create a master-detail relationship in the Job Postings custom object to the Applications custom object.
  • B. Create a master-detail relationship in the Application custom object to the Job Postings custom object.
  • C. Create a lookup relationship in the Applications custom object to the Job Postings custom object.
  • D. Create a lookup relationship on both objects to a junction object called Job Posting Applications.

正解:B


質問 # 131
Which option should a developer use to create 500 Accounts and make sure that duplicates are not created for existing Account Sites?

  • A. Salesforce-to-Salesforce
  • B. Data Import Wizard
  • C. Data Loader
  • D. Sandbox template

正解:B


質問 # 132
A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration chat reads task records is periodically reporting errors.
Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?

  • A. Deactivate the trigger before the integration runs.
  • B. Use a try-catch block after the insert statement.
  • C. Use the Database method with all or None set to false
  • D. Remove the Apex class from the integration user's profile.

正解:C


質問 # 133
What is an example of a polymorphic lookup field in Salesforce?

  • A. The Parentld field on the standard Account 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 Leadld and Contactld fields on the standard Campaign Member object

正解:B

解説:
A polymorphic lookup field is a special type of lookup relationship field that can reference multiple object types.
Option C: The WhatId field on the standard Event object
Correct Answer.
The WhatId field on Event (and Task) can refer to multiple types of objects, such as Account, Opportunity, Custom Objects, etc.
This makes WhatId a polymorphic lookup field.
The ParentId field on Account is a standard lookup to another Account (parent account).
It is not polymorphic.
Option B: The LeadId and ContactId fields on the standard Campaign Member object Incorrect.
Campaign Member uses either LeadId or ContactId, but these are separate fields, not a single polymorphic field.
Option D: A custom field, Link__c, on the standard Contact object that looks up to an Account or a Campaign
*Incorrect, unless it's a polymorphic field, which is not possible for custom fields.
Custom polymorphic lookup fields cannot be created.
Polymorphic lookups are only available on certain standard objects.
Conclusion:
An example of a polymorphic lookup field is Option C, the WhatId field on the standard Event object.
Reference:
Polymorphic Relationships
Incorrect Options:
Option A: The ParentId field on the standard Account object
Incorrect.


質問 # 134
How can a developer use a Set<Id> to limit the number of records returned by a SOQL query?

  • A. Reference the Set in the WHERE clause of the query
  • B. Pass the Set as an argument in a reference to the Database.query() method
  • C. Reference the Set in the LIMIT clause of the query
  • D. Pass the query results as an argument in a reference to the Set.containsAll() method.

正解:A


質問 # 135
Universal container wants a list button to display a visualforce page that allows users to edit multiple records which visualforce feature supports this requirement.

  • A. Recordsetvar page attribute

正解:A


質問 # 136
If Apex code executes inside the =x=cuz=() method of an Apex class when implementing the Batchable interface, which two statements are true regarding governor limits?
Choose 2 answers

  • A. The Apex governor limits will use the asynchronous limit levels.
  • B. The Apex governor limits are omitted while calling the constructor of the Apex class.
  • C. The Apex governor limits cannot be exceeded due to the asynchronous nature of the transaction.
  • D. The Apex governor limits are reset for each iteration of the execute () method.

正解:A、D

解説:
Option A: The Apex governor limits are reset for each iteration of the execute() method.
True.
In Batch Apex, each execution of the execute() method is a separate transaction.
Governor limits are reset at the start of each transaction.
Batch Apex operates asynchronously.
Asynchronous Apex has different (often higher) governor limits compared to synchronous Apex.
Even though asynchronous Apex has higher limits, governor limits can still be exceeded, leading to exceptions.
Governor limits apply to all Apex code, including constructors.
There are no exceptions for constructors.
Reference:
Batch Apex
Governor Limits
Option C: The Apex governor limits will use the asynchronous limit levels.
True.
Asynchronous Apex Limits
Option B: The Apex governor limits cannot be exceeded due to the asynchronous nature of the transaction.
False.
Governor Limit Exceptions
Option D: The Apex governor limits are omitted while calling the constructor of the Apex class.
False.
Governor Limits
Conclusion:
The correct statements are A and C.


質問 # 137
Which is a valid Apex assignment?

  • A. Integer x = 5*1.0;
  • B. Double x = 5;
  • C. Integer x = 5.0;
  • D. Float x = 5.0;

正解:B


質問 # 138
......

確認済みDEX-450試験問題集と解答で時間限定無料提供!DEX-450には正解付き:https://www.goshiken.com/Salesforce/DEX-450-mondaishu.html

DEX-450試験問題、リアルDEX-450練習問題集:https://drive.google.com/open?id=1m8G4YXbsmiCQGwN-17Q_wQiWC3ZESKLi