[2025年12月]更新のDEX-450認定実際の問題を提供します [Q91-Q112]

Share

[2025年12月]更新のDEX-450認定実際の問題を提供します

更新されたのはDEX-450問題集PDFでDEX-450リアル有効なブレーン問題集には202問があります!


Salesforce DEX-450試験は、ApexおよびVisualforceを使用したプログラマティック開発に特化した開発者の知識とスキルをテストするように設計されています。この認定は、Salesforceプラットフォーム上でカスタムアプリケーションを開発する経験を持つ開発者がスキルを向上させたい場合に最適です。試験は、Apexプログラミング言語、Visualforceフレームワーク、Lightningコンポーネントなど、幅広いトピックをカバーしています。

 

質問 # 91
A develop created these three roll-up summary fields on the custom object. Project_c:

The developer is asked to create a new field that should the ratio between rejected and approved timesheet for a given project.
What are two benefits of choosing a formula held instead of an Apex trigger to fulfill the request? Choose 2 answers

  • A. A formula field will calculate the retroactively for existing records
  • B. Using a formula field reduces maintenance overhead.
  • C. A formula field will trigger existing automation when deployed.
  • D. A test class will validate the formula field during deployment.

正解:A、C


質問 # 92
A developer must write an Apex method that will be called from a Lightning component. The method may delete an Account stored in the accountRec variable.
Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletions?

  • A. Account,isDeleteable
  • B. accuntRec, sObjectType,isDeletable()
  • C. accountRec, isDeletable()
  • D. Schema,sObjectType,Account, isDeletable ()

正解:D


質問 # 93
A developer wrote the following two classes:

The StatusFetcher class successfully compiled and saved. However, the Calculator class has a compile time error.
How should the developer fix this code?

  • A. Change the class declaration for the statusFetcher class to public with inherited sharing.
  • B. Change the class declaration for the Calculator class to public with inherited sharing.
  • C. Make the doCalculations method in the Calculation class private.
  • D. Make the isActive method in the StatusFetcher class public.

正解:D


質問 # 94
A developer has a Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the developer prevent a cross site scripting vulnerability?

  • A. String.ValueOf(ApexPages.currentPage() .getParameters() .get('url_param'))
  • B. ApexPages.currentPage() .getParameters() .get('url_param')
  • C. String.escapeSingleQuotes(ApexPages.currentPage() .getParameters(). get('url_param'))
  • D. ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()

正解:D


質問 # 95
How should a developer make sure that a child record on a custom object, with a lookup to the Account object, has the same sharing access as its associated account?

  • A. Create a Sharing Rule comparing the custom object owner to the account owner.
  • B. Include the sharing related list on the custom object page layout.
  • C. Ensure that the relationship between the objects is Master-Detail.
  • D. Create a validation rule on the custom object comparing the record owners on both records.

正解:C


質問 # 96
What should a developer use to implement an automatic Approval Process submission for Cases?

  • A. A Workflow Rule
  • B. Scheduled Apex
  • C. Process Builder
  • D. An Assignment Rule

正解:C


質問 # 97
A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles.
Which two tools can they use to run a script that deploys to a sandbox?
Choose 2 answers

  • A. Change Sets
  • B. VSCode
  • C. SFDX CLI
  • D. Developer Console

正解:B、C


質問 # 98
A developer wrote Apex code that calls out to an external system using REST API.
How should a developer write the test to prove the code is working as intended?

  • A. Write a class that extends webserviceloo.
  • B. Write a class that implements HTTPcalloutMock.
  • C. Write a class that implements webservicemock.
  • D. Write a class that extends HTTPcalloutMock.

正解:B


質問 # 99
The Account object in an organization has a master-detail relationship to a child object called Branch. The following automations exist:
Roll-up summary fields
Custom validation rules
Duplicate rules
developer created a trigger on the Account object.
Which two things should the developer consider while testing the trigger code?
Choose 2 answers

  • A. Duplicate rules are executed once all DML operations commit to the database.
  • B. The trigger may fire multiple times during a transaction.
  • C. The validation rules will cause the trigger to fire again,
  • D. Rollup summary fields can cause the parent record to go through Save.

正解:B、D

解説:
Option A: Roll-up summary fields can cause the parent record to go through Save.
True.
When a child record changes, roll-up summary fields on the parent object are recalculated.
This causes the parent record to save, which can trigger triggers on the parent object.
Reference:
Option D: The trigger may fire multiple times during a transaction.
True.
Triggers can fire multiple times due to workflow updates, process builders, or roll-up summary field recalculations.
Developers should design triggers to handle potential recursion and multiple executions.
Option B: The validation rules will cause the trigger to fire again.
False.
Validation rules execute after triggers and do not cause triggers to fire again.
They validate the data before the final commit but do not initiate additional trigger executions.
Option C: Duplicate rules are executed once all DML operations commit to the database.
False.
Duplicate rules are evaluated after triggers but before the DML operations are committed.
They can prevent records from being saved but do not affect trigger execution after commit.
Conclusion:
The developer should consider options A and D while testing the trigger code, as they can impact trigger execution during transactions.


質問 # 100
A developer wants to create a custom object to track Customer Invoices.How should Invoices and Accounts be related to ensure that all Invoices are visible to everyone with access to an Account?

  • A. The Account should have a Lookup relationship to the Invoice
  • B. The Account should have a Master-Detail relationship to the Invoice.
  • C. The Invoice should have a Lookup relationship to the Account Previous
  • D. The Invoice should have a Master-Detail relationship to the Account

正解:D


質問 # 101
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 a picklist value for the Status__: custom field within the Contact__c object.
Which tool should the developer use to enforce only Container records with a status of "Decommissioned" can be deleted?

  • A. After record-triggered flow
  • B. Apex trigger
  • C. Validation rule
  • D. Before record-triggered flow

正解:B


質問 # 102
Which code in a Visualforce page and/or controller might present a security vulnerability?

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

正解:C


質問 # 103
Which two sosl searches will return records matching search criteria contained in any of the searchable text fields on an object? choose 2 answers

  • A. [find 'acme*' in any fields returning account,opportunity]
  • B. [find 'acme*'returning account,opportunity]
  • C. [find 'acme*' in text fields returning account,opportunity]
  • D. [find 'acme*'in all fields returning account,opportunity]

正解:D


質問 # 104
A developer at AW Computing is tasked to create the supporting test class for programmatic customization that leverages records stored within the custom object, Pricing_Structure__c. AW Computing has a complex pricing structure for each item on the store, spanning more than 500 records, Which two approaches can the developer use to ensure Pricing Strucrture_c records are available when the test class is executed?
Choose 2 answers

  • A. Use the Test.loadTesc() method.
  • B. Use the @T=Test (SeefAllDaca=rru=) annotation.
  • C. Use without sharing on the class declaration.
  • D. Use a Test Data Factory class.

正解:A、D

解説:
To ensure Pricing_Structure__c records are available when the test class is executed, the developer can use the following approaches:
Option A: Use a Test Data Factory class.
Valid Approach.
A Test Data Factory class is a utility class that creates test data for use in test methods.
It helps in generating consistent test data and promotes reusability.
The factory class can create the necessary Pricing_Structure__c records for testing.
Test.loadData() allows loading test data from a static resource (CSV file) into test methods.
This is useful for loading large datasets, such as over 500 records.
The CSV file can contain the Pricing_Structure__c records needed for testing.
Using SeeAllData=true accesses existing org data, which is not recommended due to test data isolation.
Tests should create their own data to ensure reliability and avoid dependencies on org data.
The without sharing keyword affects record sharing and visibility, not data availability in tests.
It does not help in creating or accessing test data.
Reference:
Test Data Factory Pattern
Best Practices for Test Classes
Option B: Use the Test.loadData() method.
Valid Approach.
Test.loadData Method
Using Test.loadData()
Incorrect Options:
Option C: Use the @IsTest(SeeAllData=true) annotation.
Not Recommended.
Isolation of Test Data from Organization Data in Unit Tests
Option D: Use without sharing on the class declaration.
Irrelevant.
Using the with sharing or without sharing Keywords
Conclusion:
To ensure Pricing_Structure__c records are available in tests, the developer can use Option A (Test Data Factory) and Option B (Test.loadData()).


質問 # 105
Universal Containers (UC) processes orders in Salesforce in a custom object, ord=xr <. They also allow sales reps to upload CSV files with thousands of orders at a time.
A developer is tasked with integrating orders placed in Salesforce with UC's enterprise resource planning (ERP) system.
After the status for an order__ c is first set to 'Placed', the order information must be sent to a REST endpoint in the ERP system that can process one order at a time.
What should the developer implement to accomplish this?

  • A. Callout from an Qfuture method called from a trigger
  • B. Flow with a callout from an invocable method
  • C. Callout from a Batchable class called from a scheduled job
  • D. Callout from a Queueable class called from a trigger

正解:D

解説:
To integrate Order__c records with the ERP system after their status is set to 'Placed', and considering that orders may be uploaded in bulk, the developer should:
Option D: Callout from a Queueable class called from a trigger
Trigger: Implement an after-update trigger on Order__c to detect when the status changes to 'Placed'.
Queueable Apex: Use Queueable Apex to handle asynchronous processing and callouts. Queueable classes support callouts by implementing the Database.AllowsCallouts interface.
Benefits:
Handles Bulk Data: Queueable Apex can process records in batches and can be chained for processing large volumes.
Supports Callouts: Unlike future methods, Queueable Apex allows for more complex data types and supports callouts with fewer limitations.
Reference:
"To make a Web service callout to an external service or API, you must use asynchronous Apex, such as future methods, Queueable Apex, or batch Apex."
"Queueable Apex is an asynchronous Apex feature that is a superset of future methods with some extra features."
- Apex Developer Guide: Queueable Apex
Why Other Options Are Incorrect:
Option A: Callout from an @future method called from a trigger
@future methods have limitations, such as accepting only primitive types as parameters and a limit of 50 calls per transaction, which can be exceeded when processing thousands of records.
"Methods with the future annotation must be static methods and can only return a void type. The specified parameters must be primitive data types, arrays of primitive data types, or collections of primitive data types."
- Apex Developer Guide: Future Methods
Option B: Callout from a Batchable class called from a scheduled job
Batch Apex is not immediately triggered by record changes and may not meet the requirement of processing the order after the status changes.
Scheduling adds delay and complexity unnecessary for this use case.
Option C: Flow with a callout from an invocable method
Flows invoked from triggers (record-triggered flows) cannot perform callouts unless they are configured to run asynchronously, and managing bulk operations with flows can be less efficient.


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

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

正解:A、C、D


質問 # 107
The Account object has a custom formula field,Level__c, that is defined as a Formula(Number) with two decimal places. Which three are valid assignments? Choose 3.

  • A. Object myLevel = acct.Level__c;
  • B. Decimal myLevel = acct.Level__c;
  • C. Long myLevel = acct.Level__c;
  • D. Integer myLevel = acct.Level__c;
  • E. Double myLevel = acct.Level__c;

正解:A、B、E


質問 # 108
A developer is debugging the following code to determinate why Accounts are not being created Account a = new Account(Name = 'A'); Database.insert(a, false); How should the code be altered to help debug the issue?

  • A. Add a System.debug() statement before the insert method
  • B. Collect the insert method return value a Saveresult variable
  • C. Set the second insert method parameter to TRUE
  • D. Add a try/catch around the insert method

正解:B


質問 # 109
What should a developer use to obtain the Id and Name of all the Leads, Accounts, and Contacts that have the company name "Universal Containers"?

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

正解:C


質問 # 110
The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records:

Which governor limit will likely be exceeded within the Apex transaction?

  • A. Total number of SOQL queries issued
  • B. Total number of records processed as a result of DML statements
  • C. Total number of DML statements issued
  • D. Total number of records retrieved by SOQL queries

正解:C


質問 # 111
A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. public class without sharing OpportunityService( public static List<OpportunityLineItem> getOpportunityProducts(Set<Id> opportunityIds){ List<OpportunitylineItem> oppLineItems = new List<OpportunityLineItem>(); for(Id thisOppId : opportunityIds){ oppLineItems.addAll([Select Id FROM OpportunityLineItems WHERE OpportunityId = :thisOppId)]; } return oppLineItems; } } The above method might be called during a trigger execution via a Lightning component. Which technique should be implemented to avoid reaching the governor limit?

  • A. Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds.
  • B. Use the System.Limits.getlimitQueries() method to ensure the number of queries is less than 100.
  • C. Refector the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.
  • D. Use the System.Limits.getQueries() method to ensure the number of queries is less than 100.

正解:D


質問 # 112
......


Salesforce DEX-450認定試験は、Apexプログラミング言語とVisualforceフレームワークを扱う開発者の知識とスキルを評価するように設計されています。この認定は、Salesforceプラットフォームに精通しており、Lightning体験でApexとVisualforceを使用してプログラム開発のスキルを向上させたい人に最適です。この試験に合格すると、候補者はSalesforceプラットフォームを完全に理解し、ApexとVisualforceを使用してカスタムビジネスロジックとユーザーインターフェイスを開発できることが示されています。

 

あなたをお手軽にDEX-450試験合格させるし100%試験合格保証:https://www.passtest.jp/Salesforce/DEX-450-shiken.html

100%無料DEX-450試験問題集実際問題を使おうSalesforce Developer問題集:https://drive.google.com/open?id=1FcmlY2PvIVt8Nhhm-VhSY5haf7NAgN10