Original Practice Exam Questions Flashcards
Which of the following is NOT a SuiteScript best practice?
A).Use nSearch.lookupFields instead of nRecord.load when searching a record for a few fields
B). Design Map/Reduce scripts to run in under 5 minutes
C). Load and submit a record in a Before Record Submit event
D). Minimise API calls that perform load, search, or save record operations
Answer: C
For client scripts with the Advanced Employee Permissions feature enabled, how can we check if a role has access to a specific field?
A). Use “nRecord.getField([FIELD ID])”
B). Use “nSearch.getColumns().includes([FIELD ID])”
C). Use “.getFields().includes([FIELD ID])”
D). Use “nRecord.getValue([FIELD ID])”
Answer: C
What is the recommended time frame for Scheduled Scripts to run?
A). 2AM to 6AM PST
B).6AM to 6PM PST
C). 8AM to 5AM PST
D). 12PM to 12AM PST
Answer: A
What is the recommended maximum runtime for User Event scripts?
A). 10 seconds
B). 5 seconds
C). 30 seconds
D). 15 seconds
Answer: B
Which of the following is a recommended way to minimise API calls in SuiteScript?
A). Load and submit a record in a Before Record Submit event
B). Use nSearch module when searching for large data sets
C).Create global variables instead of hidden fields on records
D). Use N/task module instead of N/search module when searching for large data sets
Answer: D
When searching for a few fields, what method should you use instead of nRecord.load?
A). nSearch.load
B). nRecord.loadFields
C). nSearch.lookupFields
D). nRecord.lookupFields
Answer: C
What should you consider when using time values in your script?
A). You don’t need to worry about time zones since the server scripts use the account’s default time zone
B). You should always use the same time zone, regardless of where your users are located
C). You should convert your time values to the correct time zone before using them, if necessary
D). Time zones are not important in SuiteScript
Answer: C
Which of the following is the best practice when using client scripts and the Advanced Employee Permissions feature?
A). Use the “getFields().includes([FIELD ID])” method to check if the role has access to that field before getting/setting that field
B). Ignore the permissions assigned to the role and access all fields directly
C). Assume that all users have access to all fields, regardless of their role
D). Only use client scripts if the Advanced Employee Permissions feature is not active
Answer: A
What is the governance limit for the Map function in Map/Reduce scripts?
A). 5,000
B). 10,000
C). 1,000
D). 15,000
Answer: C
Which of the following modules can NOT be used in client scripts?
- a) N/ui/serverWidget
- b) N/ui/dialog
- c) N/ui/message
- d) All of the above can be used in client scripts
Answer: A
Which of the following dialog methods creates an Alert dialog with an OK button?
- a) nDialog.alert
- b) nDialog.confirm
- c) nDialog.create
- d) nMessage.create
Answer: A
Which of the following field types is NOT supported with Sublist.addField(options) (Can select more than one)?
- a) CHECKBOX
- b) RADIO
- c) SELECT
- d) FILE
Answer: B & D
What happens when the following field types are set to hidden?
CHECKBOX, RADIO, SELECT, TEXTAREA
- a) The object returned is still the original field type
- b) The object returned is text
- c) The object is removed from the form
- d) The object is grayed out but still visible on the for
Answer: B
Which level of client scripts require the script to be attached to the form it is running on?
- a) Record level client scripts
- b) Form level client scripts
- c) Both record level and form level client scripts
- d) None of the above
Answer: B
Which level of client scripts execute before the other?
- a) Record level scripts execute before form level scripts
- b) Form level scripts execute before record level scripts
- c) Both execute at the same time
- d) It depends on the specific script being executed
Answer: B
Which of the following field types is available only for Suitelets and will appear on the main tab of the Suitelet page?
- a) CHECKBOX
- b) RADIO
- c) SELECT
- d) FILE
Answer: D
Which module allows you to create a message object with a specified title, message, and type?
- a) N/ui/serverWidget
- b) N/ui/dialog
- c) N/ui/message
- d) All of the above allow you to create message objects
Answer: C
Which field type should be considered as a ‘write-only’ type of field used to add a field on a form?
- a) INLINEHTML
- b) IMAGE
- c) TEXTAREA
- d) LABEL
Answer: A
Which of the following field types is not supported with addField method?
- a) DATETIME
- b) DATE
- c) TIMEOFDAY
- d) DATETIMETZ
Answer: A
What is N/currency used for?
a. Formatting strings into a specified format
b. Parsing formatted date into strings
c. Finding the exchange rate between 2 currencies based on a certain date
d. Formatting of strings in international context
Answer: C
What is nFormat.spellOut() used for?
a. Formatting of strings into a specified format
b. Parsing formatted date into strings
c. Formatting of numbers to currency or number strings
d. Spells out positive and negative number as a string in a specific language
Answer: D
What is N/recordContext used for?
a. Getting all the available context types of the record, such as localization
b. Formatting strings into a specified format
c. Parsing formatted date into strings
d. Interacting with NetSuite Translation Collections programmatically
Answer: A
How can you make an object only run for records with a specific localization context when SDFing?
a. Specify the name of the country in the localizationcontext field in the XML definition
b. Set the alllocalizationcontexts field in the XML definition to “F”
c. Both a) and b)
d. Neither a) nor b)
Answer: C
Which method of the nFormat module is used to create a NumberFormatter object to format numbers into strings?
a. nFormat.getCurrencyFormatter()
b. nFormat.spellOut()
c. nFormat.getPhoneNumberParse()
d. nFormat.getNumberFormatter()
Answer: D
How can you create conditional statements within a script that behaves differently based on the context in SuiteApps?
a. By using the nCurrency.exchangeRate() method.
b. By using the nFormat.spellOut() method.
c. By using the nRecordContext.getContext() method.
d. By using the nFormat.getNumberFormatter() method.
Answer: C
What is the purpose of the N/translation module in SuiteApps?
a. To create conditional statements within a script that behaves differently based on the context.
b. To get all the available context types of the record.
c. To find the exchange rate between 2 currencies based on a certain date.
d. To let SuiteScript developers interact with NetSuite Translation Collections programmatically.
Answer: D
What is the purpose of the getInputData entry point in Map/Reduce technology?
a) To invoke the map function
b) To invoke the reduce function
c) To provide key/value pairs for processing
d) To summarize the output of the script
Answer: C
How many times is the Map entry point invoked in Map/Reduce technology?
a) Once
b) Twice
c) It depends on the number of key/value pairs provided by getInputData
d) It depends on the number of key/value pairs provided by reduce
Answer: C
When is the Reduce entry point invoked in Map/Reduce technology (Can select multiple)?
a) Once for each key/value pair provided by getInputData
b) Once for each key/value pair provided by map
c) Once for each key/value pair provided by getInputData if map is not present
d) Once for each key/value pair provided by summarize
Answer: B & C
What is the purpose of the Summarize entry point in Map/Reduce technology?
a) To provide key/value pairs for processing
b) To summarize the output of the script
c) To invoke the map function
d) To invoke the reduce function
Answer: B
Which of the following is a property of the summaryContext object in Map/Reduce technology?
a) getInputData
b) Map
c) Reduce
d) inputSummary
Answer: D
Which property of the summaryContext object shows the maximum concurrency number when running the map/reduce script?
a) concurrency
b) dateCreated
c) seconds
d) usage
Answer: A
Which property of the summaryContext object shows the time and day when the script began running?
a) concurrency
b) dateCreated
c) seconds
d) usage
Answer: B
Which property of the summaryContext object shows the total number of seconds that elapsed during the processing of the script?
a) concurrency
b) dateCreated
c) seconds
d) usage
Answer: C
Which property of the summaryContext object shows the total number of usage units consumed during the processing of the script?
a) concurrency
b) dateCreated
c) seconds
d) usage
Answer: D
Which property of the summaryContext object contains data about the output of the reduce stage in Map/Reduce technology?
a) inputSummary
b) mapSummary
c) reduceSummary
d) output
Answer: D
What are the use cases for creating custom actions in a SuiteFlow workflow?
a) Editing a related record
b) Call a web service
c) Using complex computational logic using JavaScript and the SuiteScript API
d) All of the above
Answer: D
How can you control the User Interface throughout the workflow lifecycle?
a) By using the Lock Record action
b) By using the Unlock Record action
c) By setting the Transition On field
d) None of the above
Answer: A