Salesforce CRT-450 - Salesforce Certification Preparation for Platform Developer I Certification Exam
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?
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
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
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?
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
Correct Answer: B, D
Explanation:
To make a Lightning Web Component available on an Account Record Page, the component's configuration file (
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
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