[2024年06月14日]CRT-450試験問題集で100%合格率CRT-450試験! [Q36-Q53]

Share

[2024年06月14日]CRT-450試験問題集で100%合格率CRT-450試験!

試験問題集リアルSalesforce Developers問題集238解答を試そう!

質問 # 36
If apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which statement are true regarding governor limits? Choose 2 answers

  • A. The Apex governor limits are relaxed while calling the constructor of the Apex class.
  • B. The apex governor limits are reset for each iteration of the execute() method.
  • C. The Apex governor limits might be higher due to the asynchronous nature of the transaction.
  • D. The Apex governor limits cannot be exceeded due to the asynchronous nature of the transaction,

正解:A、B


質問 # 37
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 Calculator class to public with inherited sharing.
  • B. Change the class declaration for the statusFetcher 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


質問 # 38
n org has an existing flow that creates an Opportunity with an Update Records element. A developer must update the flow to aiso create a 'Contact and store the created Contact's 1D on the Opportunity.
Which update must the developer make in the flow?

  • A. Add a new Get Records element.
  • B. Add a new Create Records element.
  • C. Add a new Update Records element.
  • D. Add a new Roll back Records element

正解:B


質問 # 39
An Apex method, getAccounts, that returns a list of Accounts given a searchTern, is available for Lightning Web Components to use.
What is the correct definition of a Lightning Web Component property that uses the getAccounts method?

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

正解:C

解説:
The correct definition of a Lightning Web Component property that uses the getAccounts method is option C.
In Salesforce, the @wire decorator is used to read data from one of the wire adapters built into Lightning Web Components or create a JavaScript property in a Lightning web component. The property is then provisioned with data, error, or both. A provisioned property has a specific shape-data and error properties-designed for working with wire services.
In this case, @wire(getAccounts, { searchTern: '$searchTern' }) accountList; is the correct syntax where:
* getAccounts is the Apex method.
* { searchTern: '$searchTern' } are parameters passed to the Apex method.
* accountList is the JavaScript property that gets assigned the data returned by getAccounts.
References: Lightning Web Components Developer Guide


質問 # 40
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 D
  • B. Option C
  • C. Option B
  • D. Option A

正解:A

解説:
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.


質問 # 41
A developer wants to store a description of a product that can be entered on separate lines by a user during product setup and later displayed on a Visualforce page for shoppers. Which field type should the developer choose to ensure that the description will be searchable in the custom Apex SOQL queries that are written?

  • A. Text Area
  • B. Text Area (Long)
  • C. Text Area (Rich)
  • D. Text

正解:A


質問 # 42
A developer has the following query: Contact c = [SELECT id, firstname, lastname, email FROM Contact WHERE lastname = 'Smith']; What does the query return if there is no Contact with the last name
'Smith'?

  • A. A contact initialized to null.
  • B. An error that no rows are found.
  • C. A Contact with empty values.
  • D. An empty List of Contacts.

正解:B


質問 # 43
A developer uses a test setup method to create an account named 'test'. The first method deletes the account record. What must be done in the second test method to use the account?

  • A. Use select id from account where name='test'
  • B. The account cannot be used in the second method
  • C. Restore the account using an undelete statement
  • D. Call the test setup method at the start of the test

正解:A


質問 # 44
A developer is tasked with performing a complex validation using Apex as part of advanced business logic. certain criteria are met for a PurchaseOrder, the developer must throw a custom exception.
What is the correct way for the developer to declare a class that can be used as an exception?

  • A. public class PurchaseOrderException extends Exception ()
  • B. public class PurchaseOrder extends Exception ()
  • C. public class PurchaseOrder implements Exception ()
  • D. public class PurchaseOrderException implements Exception ()

正解:A


質問 # 45
A team of developers is working on a source-driven project that allows them to work independently, with many different org configurations. Which type of Salesforce orgs should they use for their development?

  • A. Developer orgs
  • B. Developer sandboxes
  • C. Scratch orgs
  • D. Full Copy sandboxes

正解:C

解説:
Scratch orgs are short-term Salesforce environments that you can spin up to work on a feature. They are source-driven and disposable, meaning you can create and delete them as needed. They are fully configurable, allowing you to emulate different Salesforce editions with different features and settings. You can also install packages and deploy synthetic or dummy data for testing. Scratch orgs are ideal for developing in a source-driven way, as they enable source tracking, which keeps your local source files and the metadata in your org in sync. You can use Salesforce CLI or an IDE to create, open, and manage scratch orgs. Scratch orgs are different from other types of Salesforce orgs, such as Developer sandboxes, Full Copy sandboxes, and Developer orgs, which are long-term, persistent, and not source-driven. References:
* Scratch Orgs from the Salesforce DX Developer Guide
* Develop in Scratch Orgs from the Lightning Web Components Developer Guide
* Manage Scratch Orgs from the Dev Hub Org from the Salesforce DX Developer Guide


質問 # 46
A developer needs to write a method that searches for a phone number that could be on multiple object types. Which method should the developer use to accomplish this task?

  • A. SOQL Query that includes ALL ROWS
  • B. SOQL query on each object
  • C. SOSL Query that includes ALL ROWS
  • D. SOSL query on each object

正解:C


質問 # 47
A developer executes the following code in the Developer Console:
List<Account> fList = new List <Account> ();For(integer i= 1; I <= 200; i++){fList.add(new Account ( Name
= 'Universal Account ' + i));}Insert fList;List <Account> sList = new List<Account>();For (integer I = 201; I
<
20000; i ++){sList.add(new Account (Name = 'Universal Account ' + i));}Insert sList;How many accounts are created in the Salesforce organization ?

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

正解:B


質問 # 48
What are two valid options for iterating through each Account in the collection List<Account> named AccountList? (Choose two.)

  • A. for (Integer i=0; i < AccountList.Size(); i++) {...}
  • B. for(AccountList) {...}
  • C. for (Account theAccount : AccountList) {...}
  • D. for (List L : AccountList) {...}

正解:A、C


質問 # 49
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

正解:A


質問 # 50
A lead object has a custom field Prior_Email__c. The following trigger is intended to copy the current Email into the Prior_Email__c field any time the Email field is changed:

Which type of exception will this trigger cause?

  • A. A compile time exception
  • B. A DML exception
  • C. A null reference exception
  • D. A limit exception when doing a bulk update

正解:B


質問 # 51
The operation manager at a construction company uses a custom object called Machinery to manage the usage and maintenance of its cranes and other machinery. The manager wants to be able to assign machinery to different constructions jobs, and track the dates and costs associated with each job. More than one piece of machinery can be assigned to one construction job.
What should a developer do to meet these requirements?

  • A. Create a lookup field on the Machinery object to the Construction Job object.
  • B. Create a Master-Detail Lookup on the Machinery object to the Construction Job object.
  • C. Create a junction object with Master-Detail Relationship to both the Machinery object and the Construction Job object.
  • D. Create a lookup field on theConstruction Job object to the Machinery object.

正解:D


質問 # 52
A company has a custom object, Sales, }_Help_Request__c, that has a Lookup relationship to Opportunity. The Seles Help Request__c has a mumber field, Number_ct_Hours__c, that represents the amount of time spent on the Sales_Help Request__C.
A developer is tasked with creating a field, total_Hour2__c, on Opportunity that should be the sum of all of the Number_of_Hours_c values for the Sales_Help_Request__c records related to that Opportunity.
What should the developer use to implement this?

  • A. A record-triggered flow on the Sales Help Request__c object
  • B. A roll-up summary field on the sales Help_Request__c object
  • C. A trigger on the Opportunity object
  • D. A roll-up summary field on the Opportunity object

正解:A


質問 # 53
......

あなたを余裕でCRT-450試験合格させます!100%高合格率保証:https://www.passtest.jp/Salesforce/CRT-450-shiken.html

CRT-450問題集本日限定!無料アクセス可能に!:https://drive.google.com/open?id=1U3Cy6GH9cwglTbmKL6TWsU22wmJjX5lX