[Q60-Q80] 実際にあるCRT-450問題集でリアルSalesforce問題集PDFを提供しています [2024年08月]

Share

実際にあるCRT-450問題集でリアルSalesforce問題集PDFを提供しています [2024年08月]

実際のFast2test CRT-450問題集PDFで100%合格率を保証します

質問 # 60
A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case.Status field are on a custom Visualforce page. Which action can the developer perform to get the record types and picklist values in the controller? (Choose 2)

  • A. Use SOQL to query case records in the org to get all values for the Status picklist field.
  • B. Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos().
  • C. Use SOQL to query Case records in the org to get all the RecordType values available for Case.
  • D. Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues().

正解:B、D


質問 # 61
Universal Container wants Opportunities to no longer be editable when reaching the Clousd stage.
How should a develoiper accomplish this?

  • A. Use a validation rule.
  • B. Use flow Builder
  • C. Mark fields as read-only on the page layout.
  • D. Use the Process Automation setting.

正解:A


質問 # 62
A developer can use the debug log to see which three types of information? Choose 3 answers

  • A. Database changes
  • B. User login events
  • C. HTTP callout to external systems
  • D. Actions triggered by time-based workflow
  • E. Resource usage and limits

正解:A、C、D


質問 # 63
A developer needs to prevent the creation of Request__c records when certain coVraitions exist in the system.
A RequeatLogic class exists that checks the conditions.
What is the correct implementation?

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

正解:C

解説:
The correct implementation is option D, where the trigger is set to execute before the insertion of a Request__c record. It calls the validateRecords method from the RequestLogic class to check if certain conditions are met before allowing the creation of a new record. This ensures that validation occurs prior to record insertion, preventing the creation of records that do not meet specified conditions. References: The explanation can be inferred from knowledge on triggers and their execution context as per Salesforce developer documentation and learning materials available on
[Trailhead](1(https://trailhead.salesforce.com/content/learn/modules/apex_triggers%29.


質問 # 64
Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page. Example values are as follow Name Amount Account Which two methods should the developer implement to fulfill the business requirement? (Choose 2 answers)

  • A. Create a Process Builder on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.
  • B. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.
  • C. Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the component on the Opportunity detail page.
  • D. Create an after update trigger on the Opportunity object that calls a helper method using @Future(Callout=true) to perform the HTTP REST callout.

正解:B、D


質問 # 65
A developer has the following requirements:
* Calculate the total amount on an Order.
* Calculate the line amount for each Line Item based on quantity selected and price.
* Move Line Items to a different Order if a Line Item is not in stock.
Which relationship implementation supports these requirements on its own7

  • A. Order has a re-parentable master-detail field to Line Item.
  • B. Order has a re-parentable lookup field to Line Item.
  • C. Line Item has a re-parentable lookup field to Order.
  • D. Line Item has a re-parentable master-detail field to Order.

正解:D


質問 # 66
What are three ways for 2 developer to execute tests in an org? Choose 3 answers

  • A. Bulk API
  • B. SalesforceDX
  • C. Metadata APT
  • D. Setup Menu
  • E. Tooling API

正解:B、D、E

解説:
A developer can execute tests in an org using the following methods:
* Setup Menu: By browsing to setup->Apex Test Execution, the developer can select and run tests from the user interface1.
* SalesforceDX: By using the Salesforce CLI on the command line, the developer can run tests in an org using the force:apex:test:run command2. This command can also be used from Salesforce Extensions for VS Code or from within third-party continuous integration tools, such as Jenkins or CircleCI2.
* Tooling API: The developer can also run tests using the Tooling REST API. Use the /runTestsAsynchronous/ and /runTestsSynchronous/ endpoints to run tests asynchronously or synchronously3.
References:
* 1: Get a Refresh on Testing Unit | Salesforce Trailhead
* 2: Run Apex Tests | Salesforce DX Developer Guide | Salesforce Developers
* 3: What are three ways for a developer to execute tests in an Org?


質問 # 67
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 DML statement issued
  • B. Total number of records processed as a result of DML statements
  • C. Total number of records retrieved by SOQL queries
  • D. Total number of SOQL queries issued

正解:C


質問 # 68
When the number of record in a recordset is unknown, which control statement should a developer use to implement a set of code that executes for every record in the recordset, without performing a .size() or
.length() method call?

  • A. While (Condition) { ... }
  • B. Do { } While (Condition)
  • C. For (init_stmt, exit_condition; increment_stmt) { }
  • D. For (variable : list_or_set) { }

正解:D


質問 # 69
Which tag should a developer include when styling from external CSS is required in a Visualforce page?

  • A. Apex : require
  • B. Apex : includeScript
  • C. Apex : stylesheet
  • D. Apex : includeStyle

正解:C


質問 # 70
Which three resources in an Azure Component can contain JavaScript functions?

  • A. Controllers
  • B. helper
  • C. Design
  • D. Style
  • E. Renderer

正解:A、B、E


質問 # 71
Which two are best practices when it comes to component and application event handling? (Choose two.)

  • A. Use component events to communicate actions that should be handled at the application level.
  • B. Reuse the event logic in a component bundle, by putting the logic in the helper.
  • C. Handle low-level events in the event handler and re-fire them as higher-level events.
  • D. Try to use application events as opposed to component events.

正解:B、C

解説:
Component and application events are two types of events that can be used to communicate between components in Lightning. Component events are handled by the component that fired the event or a component in its containment hierarchy. Application events are handled by any component that is listening to the event, regardless of where it is in the DOM1. Some of the best practices when it comes to component and application event handling are:
* Reuse the event logic in a component bundle, by putting the logic in the helper. This practice allows the developer to avoid duplicating code and to maintain consistency and modularity. The helper class can contain common methods that can be invoked by the controller or the renderer of the component2.
* Handle low-level events in the event handler and re-fire them as higher-level events. This practice allows the developer to abstract away the details of the low-level events and provide a more meaningful and relevant event for the consumers. For example, a component can handle a mouse click event and re-fire it as a select event with additional data3.
The other options are not best practices because:
* Use component events to communicate actions that should be handled at the application level. This practice is not recommended, because component events are scoped to the component that fired them or its parents. If the action should be handled by a component that is not in the same containment hierarchy, the component event will not reach it. Application events are more suitable for cross-component communication1.
* Try to use application events as opposed to component events. This practice is not advisable, because application events are broadcast to all components that are listening to them, which can cause performance issues and unwanted side effects. Component events are more efficient and secure, as they are only handled by the relevant components1.
References:
* : Communicating with Events
* : Helper Functions
* : Advanced Events Example


質問 # 72
Management asked for opportunities to be automatically created for accounts with annual revenue greater than
$1,000,000. A developer created the following trigger on the Account object to satisfy this requirement.

Users are able to update the account records via the UI and can see an opportunity created for high annual revenue accounts. However, when the administrator tries to upload a list of 179 accounts using Data Loader, It fails with system. Exception errors.
Which two actions should the developer take to fix the code segment shown above?
Choose 2 answers

  • A. Check if all the required fields for Opportunity are being added on creation.
  • B. Query for existing opportunities outside the for loop.
  • C. Use Database.query to query the opportunities.
  • D. Move the DML that saves opportunities outside the for loop.

正解:B、D

解説:
The error occurs because the code is not bulkified, meaning it doesn't efficiently handle more than one record at a time. In Salesforce, there are governor limits that restrict the number of records you can process to ensure that no single operation consumes too many resources. In this case:
* Option C: Moving the DML that saves opportunities outside of the for loop will help in bulkifying the code to handle multiple records efficiently without hitting governor limits.
* Option D: Querying for existing opportunities outside of the for loop will also contribute to making sure that the code is bulkified and efficient.
References: Apex Developer Guide on Bulkifying Code (1


質問 # 73
niversal Containers (UC) processes orders in Salesforce in a custom object, Crder_c. They also allow sales reps to upload CSV files with 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 Craer__c is first set to "Placed', the order information must be sent to a REST endpoint in the ERP system that can process ne order at a time.
What should the developer implement to accomplish this?

  • A. Flow with 2 callout from an invocable method
  • B. Callout from a queseatie class called from a trigger
  • C. Callout from an Gurare method called from a trigger
  • D. Callout from a Sarchabie class called from a scheduled job

正解:B

解説:
The developer should implement a callout from a queueable class called from a trigger to accomplish this. A callout is a request that is sent from Salesforce to an external service, such as a REST endpoint in the ERP system1. A queueable class is an Apex class that implements the Queueable interface and can be executed asynchronously by adding it to the Apex job queue2. A trigger is an Apex script that executes before or after specific data manipulation language (DML) events on a Salesforce object, such as insert, update, or delete3.
The reason why this option is the best is because:
* A callout from a future method called from a trigger (option A) is not recommended, because future
* methods have some limitations, such as not being able to pass sObjects as parameters, not being able to chain future calls, and not being able to monitor the status of the execution4.
* A callout from a schedulable class called from a scheduled job (option B) is not suitable, because scheduled jobs run at a specified time or interval, and not in response to a data change event, such as setting the order status to "Placed"5.
* A flow with a callout from an invocable method (option C) is not feasible, because flows cannot be triggered by data changes, but only by user actions, such as clicking a button, or by process automation tools, such as Process Builder or Workflow.
References:
* 1: Callouts | Apex Developer Guide | Salesforce Developers
* 2: Queueable Apex | Apex Developer Guide | Salesforce Developers
* 3: Triggers | Apex Developer Guide | Salesforce Developers
* 4: Using the Future Annotation | Apex Developer Guide | Salesforce Developers
* 5: Schedulable Interface | Apex Developer Guide | Salesforce Developers
* : [Flow Trigger Workflow Actions | Salesforce Help]


質問 # 74
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. Implement pagination with a StandardSetController.
  • C. Use lazy loading and a transient List variable.
  • D. Use JavaScript remotlng with SOQL Offset.

正解:B

解説:
The view state limit is the maximum size of the serialized version of the page state that can be transferred between the server and the client. The view state includes the components, field values, and controller state of the page. To reduce the view state size, a developer can use a StandardSetController, which allows the developer to create pagination for a set of records without having to manually manage the query and the results. A StandardSetController can handle up to 10,000 records, and only the records that are displayed on the current page are included in the view state. This way, the developer can avoid querying and storing all the records in a list variable, which would increase the view state size and potentially cause errors. References:
* Visualforce Developer Guide: StandardSetController Methods
* Visualforce Developer Guide: Working with Very Large SOQL Queries
* Trailhead: Visualforce Basics


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

  • A. Qo The @testSetup annotation is not supported when the GisTest(SeeAllData=True) annotation is used.
  • B. Test data is inserted once for all test methods in a class.
  • C. Records created in the test setup method cannot be updated in individual test methods.
  • D. A method defined with the @testSetup annotation executes once for each test method in the test class and counts towards system limits.

正解:A

解説:
* The @testSetup annotation is a way to create test data for a test class. It allows you to define a method that runs once before any test methods in the class and inserts common test data into the test context12.
* The @testSetup annotation is not supported when the GisTest(SeeAllData=True) annotation is used.
The GisTest(SeeAllData=True) annotation allows a test class or method to access all data in the organization, including pre-existing data that the test didn't create. If this annotation is used, the test setup method is skipped and no test data is inserted12.
* Test data is inserted once for all test methods in a class when the @testSetup annotation is used. This means that the test data is shared across all test methods and only counts once towards the governor limits. This can improve the performance and efficiency of the test class12.
* A method defined with the @testSetup annotation does not execute once for each test method in the test class and does not count towards system limits. It only executes once before any test methods and only counts once towards the governor limits. However, any DML operations or queries performed in the individual test methods do count towards the system limits12.
References:
* 1: Using Test Setup Methods
* 2: Cert Prep: Platform Developer I: Testing and Debugging


質問 # 76
A developer considers the following snippet of code:

Based on this code, what is the value of x?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

正解:B


質問 # 77
When a Task is created for a Contact, how can a developer prevent the task from being included on the Activity Timeline of the Contact's Account record?

  • A. Create a Task trigger to set the Account field to NULL.
  • B. By default, tasks do not display on the Account Activity Timeline.
  • C. In Activity Setting, uncheck Roll up activities to a contact's primary account.
  • D. Use Process Builder to create a process to set the Task Account field to blank.

正解:C


質問 # 78
Universal Container uses Service Cloud with a custom field, stage_c, on the Case object.
Management wants to send a follow-up email reminder 6 hours after the stage_c field is set to '';Waiting on customer'' The .... Administrator wants to ensure the solution used is bulk safe.
Which two automation tools should a developer recommend to meet these business requirements?
Choose 2 answers

  • A. Scheduled Flow
  • B. Einstein Next Best Action
  • C. Process Builder
  • D. Record_Triggered Flow

正解:A、D

解説:
* Scheduled Flow and Record-Triggered Flow are two automation tools that a developer can recommend to meet the business requirements of sending a follow-up email reminder 6 hours after the stage_c field is set to 'Waiting on customer'. They are both bulk safe, meaning they can handle large volumes of records without hitting governor limits12.
* Scheduled Flow is an automation tool that allows you to run a flow at a specific time or on a recurring
* schedule. You can use it to query the Case object for records that have the stage_c field set to 'Waiting on customer' and then send an email reminder to the case owner or the customer3 .
* Record-Triggered Flow is an automation tool that allows you to run a flow when a record is created or updated. You can use it to create a scheduled path that executes 6 hours after the stage_c field is set to
'Waiting on customer' and then send an email reminder to the case owner or the customer .
* Einstein Next Best Action and Process Builder are two other automation tools, but they are not suitable for meeting the business requirements. They are not bulk safe, meaning they can hit governor limits when processing large volumes of records12.
* Einstein Next Best Action is an automation tool that allows you to provide intelligent and contextual recommendations to users based on business rules and predictive models. It is not designed to send email reminders based on field values .
* Process Builder is an automation tool that allows you to create a process that performs actions when certain criteria are met. It can send email alerts, but it does not support time-based actions for record update triggers. It also has lower limits for the number of email alerts and scheduled actions than flows .
References:
* 1: Bulk Apex Triggers
* 2: Cert Prep: Platform Developer I: Automation and Logic
* 3: Schedule a Flow to Run at a Specific Time
* : Cert Prep: Platform Developer I: User Interface
* : [Create a Record-Triggered Flow]
* : Cert Prep: Platform Developer I: Data Modeling and Management
* : [Einstein Next Best Action Basics]
* : Cert Prep: Platform Developer I: Business Logic and Process Automation
* : [Create a Process That Performs Scheduled Actions]
* : Cert Prep: Platform Developer I: Testing and Debugging


質問 # 79
A developer created a Visualforce page with a custom controller to show a list of accounts. The page uses the <apex:SelecList> component, with a variable called "selection", to show the valid values for Account.Type. The page uses an <apex:pageBlockTable> component to display the list of accounts, where the iteration variable is "acct". The developer wants to ensure that when a user selects a type on the <apex : selectList> component, only accounts with that type are shown on the page. What should the developer do to accomplish this?

  • A. Create a component for each option and use a variable with hide parameter on the element.
  • B. Create multiple lists in the controller that represent the relevant accounts for each account type when the page loads, then reference the correct one dynamically on the pageBlockTable.
  • C. Use the onChange event to update the list of accounts in the controller when the value changes, and then re-render the pageBlockTable.
  • D. Add the Rendered={!Acct.type==selection} attribute to the pageBlockTable component

正解:C


質問 # 80
......


Salesforce CRT-450試験は、Salesforce開発のキャリアを追求する人にとって重要なステップです。これは、Salesforce開発のさまざまな分野で個人のスキルと知識をテストする包括的な試験です。この試験に合格することは、個人がSalesforceプラットフォーム上のカスタムアプリケーションやソリューションを開発するために必要なスキルと知識を持っていることを示し、Salesforceを使用する組織にとって貴重な資産となります。

 

検証済みCRT-450問題集と解答で最新CRT-450をダウンロード:https://jp.fast2test.com/CRT-450-premium-file.html

無料Salesforce CRT-450試験問題と解答があります:https://drive.google.com/open?id=11EzTieU8tC-r4sFu794zXGVcYUW0IMrw


弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

我々の働いている時間: ( GMT 0:00-15:00 )
月曜日から土曜日まで

サポート: 現在連絡 

English Deutsch 繁体中文 한국어