Question 1 of 30
A company is developing an application that integrates with Salesforce using the REST API. The application needs to retrieve a list of accounts that were created in the last 30 days and have a specific custom field value. The developer decides to use the `GET` method to access the `/services/data/vXX.X/sobjects/Account` endpoint. Which of the following approaches would best enable the developer to filter the results based on the creation date and the custom field value?
Use the `GET` method with a SOQL query in the URL, such as `/services/data/vXX.X/query/?q=SELECT+Id,Name+FROM+Account+WHERE+CreatedDate>=LAST_N_DAYS:30+AND+CustomField__c='Value'`
Use the `GET` method to retrieve all accounts and then filter the results in the application code based on the creation date and custom field value.
Use the `POST` method to send a request to the `/services/data/vXX.X/sobjects/Account` endpoint with a body containing the SOQL query.
Use the `GET` method with a query parameter to specify the custom field value, but without filtering by creation date.

Preparing for SalesForce Certified Advanced Administrator (CRT-211) Certified Advanced Administrator? Now land the interview.

73% of qualified candidates get rejected because of weak resumes. Build an ATS-optimized, recruiter-ready resume in under 5 minutes - free to start.

Build My Resume Free