Performance and Security Flashcards
True or False
When creating a Task.SuiteQLTask, we must specify what SuiteQL query to execute and then define the params to that same SuiteQL query.
True, in much the same way as you would when creating a SuiteQL Query in any other way.
What 4 things can we do to optimise search filters?
◦ Filter inactive records
◦ Shorter date range
◦ Faster operators (e.g. starts with, between, and within are faster than contains or formulas)
◦ Remove unnecessary columns
How many tasks can be added per call to the «TaskType».addInboundDependency function call?
TaskTypes:
QueryTask.addInboundDependency
SearchTask.addInboundDependency
SuiteQLTask.addInboundDependency
Only 1
There are 4 field ID’s that cannot be read in beforeSubmit for any external role users. (e.g., Shoppers, Online form users, anonymous users, customer centre users, etc.)
What are they, and why?
◦ password
◦ password2
◦ ccunumber
◦ ccsecuritycode
Because these fields obviously contain sensitive information (passwords and credit card numbers)
N/query can convert query objects into what other type of query?
SuiteQL queries
What does the N/cache module enable us to do?
Used to enable temporary, short-term storage of data
n/cache
When should we use the afterSubmit entry point in a User Event script?
When using an operation that depends on the submitted record already being committed to the database
If the available without login checkbox is checked, child client scripts cannot use what two modules?
N/query & N/search
True or False?
It is should NOT read sensitive field values from a User Event script
True.
What should we use for debugging a User Event?
The debugger; statements on the browser console
This statement can also be used in the SuiteScript Debugger to help debug server scripts
Which of the following can execute a query that was created using the N/query module?
a) Task.QueryTask
b) Task.SearchTask
c) Task.SuiteQLTask
d) All of the above
Answer: A & B
task.SearchTask
task.QueryTask
Dependent tasks are processed using SuiteCloud Processors, why is this?
Because dependent tasks are only capable of being scheduled scripts, or map/reduces
If the Concurrency Limit field in the script deployment of a Map/Reduce script is left empty, how many jobs will be assigned to the Map and Reduce stages of the script?
The number of jobs created will be equal to the total number of processors available in the account
What should we use to test performance of user event scripts deployed to a specific record type?
The Application Performance Monitor (APM) SuiteApp
What format are the results from N/query returned in, and what is the limit?
They are returned as a result set, with a maximum of 5000 results
How can you specify how many SuiteCloud Processors jobs can be assigned to the Map and Reduce stages of a Map/Reduce?
Using the Concurrency Limit field in the script deployment.
N/query uses which query language?
SuiteQL
What are the 2 security measures that are self explanatory, and should absolutely be upheld at all times?
Do not hard code any passwords.
Always encrypt user credentials, use Token Based Authentication or OAuth2.0 when possible
The number of SuiteCloud processors available in the account depend on the number of SuiteCloud Plus Licenses purchased.
How many does an account with no licenses have?
Only 2
To set a field on a record or make any changes to a record being submitted, which entry point should we use?
beforeSubmit
How many SuiteCloud Processors jobs handle each instance of a scheduled script?
Each Scheduled script instance is handled by 1 job
Regarding Integration Concurrency for RESTlets:
The service tier of your account increases the base concurrency limit.
What is the maximum number of SuiteCloud Plus Licenses for a enterprise account, and what is the base concurrency limit?
- Max Licenses: 6
- Base Concurrency Limit: 20
True or False?
A single dataset can ONLY be used in one workbook.
False
A single dataset can be used in multiple workbooks
Which of the following can we add dependent tasks onto, allowing further processing to occur automatically AFTER the original task is complete?
a) Task.QueryTask
b) Task.SearchTask
c) Task.SuiteQLTask
d) All of the above
Answer: D