C Certs Club
Home
Oracle SAP Microsoft Cisco CompTIA Fortinet Salesforce Nutanix Linux Foundation Amazon View All Vendors →
Login Register

Salesforce CRT-450 - Salesforce Certification Preparation for Platform Developer I Certification Exam

Download Exam View Entire Exam
Page: 2 / 4
Question #6 (Topic: demo questions)

A developer is tasked with building a custom Lightning web component to collect
Contact information. The form will be shared among many different types of users
in the org. There are security requirements that only certain fields should be edited
and viewed by certain groups of users. What should the developer use in their
Lightning Web Component to support the security requirements?

A.
aura-input-failed
B.
force-input-failed
C.
ui-input-failed


D.
lightning-input-failed
Correct Answer: B
Explanation:
When building a Lightning Web Component that must respect different users' field-level security (FLS) and permissions, the developer should use lightning-input-field within a lightning-record-edit-form. The lightning-input-field component automatically enforces Salesforce security settings, including field-level security, required fields, and page layout permissions. As a result, users only see and edit the fields they are authorized to access, without requiring the developer to write custom security logic. The other options (aura-input-failed, force-input-failed, ui-input-failed) are not valid Lightning components for handling field security. Therefore, lightning-input-field is the recommended solution for creating secure, reusable forms that work correctly for different user groups.
Question #7 (Topic: demo questions)

What are two benefits of using declarative customizations over code?
Choose 2 answer

A.
Declarative customizations automatically update with each Salesforce release.
B.
Declarative customizations automatically generate test classes.
C.
Declarative customizations cannot generate run time errors


D.
Declarative customizations generally require less maintenance
Correct Answer: A, D
Explanation:

Declarative customizations are generally preferred over code when they can meet the business requirements because they are easier to maintain and are automatically updated to work with Salesforce platform enhancements and releases. Option A is correct because Salesforce ensures declarative features continue to function with new releases, reducing the need for manual updates. Option D is also correct because declarative solutions typically require less maintenance, less technical expertise, and can be modified more easily by administrators. Option B is incorrect because declarative customizations do not generate Apex test classes. Option C is incorrect because declarative tools can still produce runtime errors due to configuration issues, validation rules, data problems, or automation conflicts.

Question #8 (Topic: demo questions)
A developer creates a batch Apex job to update a large number of records, and receives reports of
the job timing out and not completing.
What is the first step towards troubleshooting the issue?
A.
Check the asynchronous job monitoring page to view the job status and logs.


B.
Check the debug logs for the batch job.
C.
Disable the batch job and recreate it with a smaller number of records.

D.
Decrease the batch size to reduce the load on the system.
Correct Answer: A
Explanation:

When troubleshooting a Batch Apex job that is timing out or failing to complete, the first step is to review the job's status and execution details in Salesforce's Apex Jobs (Asynchronous Job Monitoring) page. This page provides information such as whether the job completed, failed, was aborted, how many batches were processed, and any error messages generated during execution. Once the job details are reviewed, the developer can then investigate debug logs or optimize the batch size if necessary. Options B, C, and D may be useful later in the troubleshooting process, but the initial step should always be to examine the job's status and error information through the asynchronous job monitoring tools.
Question #9 (Topic: demo questions)

A developer created a Lightning web component called statuscomponent to be Inserted into the
Account record page.
Which two things should the developer do to make this component available?
Choose 2 answers

A.
Add <targer>lightning_Recordpage</target> to the statuscomponent. js file,


B.
Add <target>lightning RecordPage</target> to the statusComp .js-meta.xml file.

C.
Set isExposes to true In the statuscomponent.js-meta.xml file.

D.
Add <mastertabel>Account </masterLabel> to the statusComponent. js-meta.xm1 file.
Correct Answer: B, D
Explanation:

To make a Lightning Web Component available on an Account Record Page, the component's configuration file (statusComponent.js-meta.xml) must specify where the component can be used and expose it to Lightning App Builder. Option B is correct because adding <target>lightning__RecordPage</target> inside the <targets> section makes the component available for record pages. Option C is also correct because <isExposed>true</isExposed> must be set to allow the component to appear in Lightning App Builder. Option A is incorrect because targets are defined in the .js-meta.xml file, not in the .js file. Option D is incorrect because masterLabel is not used to make an LWC available on a record page.
Question #10 (Topic: demo questions)

What are two use cases for executing Anonymous Apex code?
Choose 2 answers

A.
schedule an Apex class to run periodically
B.
To delete 15,000 inactive Accounts in a single transaction after a deployment
C.
To run a batch Apex class to update all Contacts


D.
To add unit test code coverage to an org
Next Question
Correct Answer: B, C
Explanation:

Anonymous Apex is commonly used for executing one-time or ad hoc operations directly from the Developer Console, VS Code, or other tools without creating a permanent Apex class. Option B is correct because Anonymous Apex can be used to perform data maintenance tasks, such as deleting 15,000 inactive Accounts after a deployment. Option C is also correct because Anonymous Apex can be used to execute a Batch Apex class by calling Database.executeBatch(). Option A is incorrect because scheduling an Apex class requires using the System.schedule() method with a schedulable class rather than being a primary use case of Anonymous Apex itself. Option D is incorrect because Anonymous Apex does not count toward code coverage and cannot be used to add unit test coverage to an org.