1. Home
  2. Explore
  3. Computer Science
  4. SAS Cloud Time Series Processing

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

SAS Cloud Time Series Processing

  • 39Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: System Infrastructure

What is TSMODEL?

39 questions

  1. 1

    What is TSMODEL?

    1. A

      A statistical procedure for serial processing.

    2. B

      A cloud-based time series processing infrastructure that works with CAS.

    3. C

      A graphical user interface for time series forecasting.

    4. D

      A Python package for time series analysis.

    Correct answer
    B

    A cloud-based time series processing infrastructure that works with CAS.

    Explanation

    TSMODEL is the cloud-based time series processing infrastructure behind SAS Visual Forecasting.

  2. 2

    What does the distributed file system in the TSMODEL architecture consist of?

    1. A

      A virtual file system created by CAS.

    2. B

      A single centralized storage device.

    3. C

      A network of worker nodes only.

    4. D

      A set of hardware and software for storage management.

    Correct answer
    D

    A set of hardware and software for storage management.

    Explanation

    The distributed file system is described as a set of hardware for storage and software to manage that storage optimally.

  3. 3

    How is the user's script handled when submitted to the TSMODEL system?

    1. A

      It is replicated on each worker node automatically.

    2. B

      It is compiled once and distributed to all worker nodes.

    3. C

      It runs only on the controller node.

    4. D

      It is split into parts and each part sent to a different worker node.

    Correct answer
    A

    It is replicated on each worker node automatically.

    Explanation

    The system replicates the script on each of the worker nodes automatically.

  4. 4

    What happens to the SAS code in the script during execution?

    1. A

      It is executed without any compilation.

    2. B

      It is translated to Python before execution.

    3. C

      It is compiled into machine code for efficiency.

    4. D

      It is interpreted line by line by the SAS interpreter.

    Correct answer
    C

    It is compiled into machine code for efficiency.

    Explanation

    The script is compiled into machine code to be as quick as possible.

  5. 5

    How is external language code (e.g., Python) executed in the TSMODEL system?

    1. A

      The Python code is compiled into SAS language.

    2. B

      The code runs directly on the worker nodes without an interpreter.

    3. C

      The code is sent to a central Python server.

    4. D

      The system launches a Python interpreter and feeds it the code.

    Correct answer
    D

    The system launches a Python interpreter and feeds it the code.

    Explanation

    The system runs a Python interpreter (e.g., python.exe) and feeds the code.py file to it.

  6. 6

    How is data moved between the distributed file system and worker nodes in TSMODEL?

    1. A

      Data is pre-loaded on all worker nodes.

    2. B

      Data is moved only after the user approves.

    3. C

      The user must manually specify data transfer commands.

    4. D

      The system handles data movement automatically.

    Correct answer
    D

    The system handles data movement automatically.

    Explanation

    Data movement is automatically handled for the user.

  7. 7

    In the scalability test mentioned, how long did serial processing take versus parallel processing with 400 cores on an 87 GB dataset?

    1. A

      130 hours parallel, 5 minutes serial.

    2. B

      1 hour parallel, 10 hours serial.

    3. C

      5 minutes parallel, 13 hours serial.

    4. D

      5 minutes parallel, 130 hours serial.

    Correct answer
    D

    5 minutes parallel, 130 hours serial.

    Explanation

    Parallel took about 5 minutes, serial took 130 hours.

  8. 8

    What determines the number of time series each worker node processes?

    1. A

      The number of BY groups in the data.

    2. B

      The load balancing algorithm distributes them evenly.

    3. C

      The user specifies the distribution manually.

    4. D

      Each worker processes exactly one time series.

    Correct answer
    B

    The load balancing algorithm distributes them evenly.

    Explanation

    The system distributes time series across worker nodes (load balancing), e.g., 7 time series across 4 nodes resulted in 3 nodes with 2 each and 1 with 1.

  9. 9

    Which of the following is true about the TSMODEL system's ability to handle large data?

    1. A

      It is limited to a few thousand time series.

    2. B

      It only works with small datasets.

    3. C

      It requires a dedicated mainframe.

    4. D

      It can scale to millions of time series if infrastructure allows.

    Correct answer
    D

    It can scale to millions of time series if infrastructure allows.

    Explanation

    The system is designed to scale to millions of time series.

  10. 10

    When did SAS introduce the ability to use Python and R in the TSMODEL system?

    1. A

      End of 2015.

    2. B

      Mid-2020.

    3. C

      Beginning of 2018.

    4. D

      End of 2019.

    Correct answer
    D

    End of 2019.

    Explanation

    As of the end of 2019, the answer is yes.

  11. 11

    What is required to install in Python or R to use the External Languages Package?

    1. A

      Third-party packages specific to SAS.

    2. B

      The SAS client library for Python or R.

    3. C

      Only the latest versions of Python or R.

    4. D

      No third-party packages are required.

    Correct answer
    D

    No third-party packages are required.

    Explanation

    The system does not require users to install any third-party packages.

  12. 12

    Which versions of Python and R are supported by the External Languages Package?

    1. A

      Python 2.6+ and R 2.5+.

    2. B

      Python 2.7+ and R 3.5+.

    3. C

      Python 3.0+ and R 3.0+.

    4. D

      Python 3.6+ and R 4.0+.

    Correct answer
    A

    Python 2.6+ and R 2.5+.

    Explanation

    Supported versions: Python 2.6+, R 2.5+ (relatively recent).

  13. 13

    How does the External Languages Package handle data sharing between SAS and Python/R?

    1. A

      All variables are automatically shared.

    2. B

      Data is copied manually via CSV files.

    3. C

      Only variables specified as shared variables are transferred.

    4. D

      Shared variables are set using environment variables.

    Correct answer
    C

    Only variables specified as shared variables are transferred.

    Explanation

    You specify which variables to share, and data transfer is automatic for those.

  14. 14

    What security measure does the External Languages Package provide?

    1. A

      It has a flexible access control methodology.

    2. B

      It requires user authentication for each code execution.

    3. C

      It runs Python/R in a sandbox without any restrictions.

    4. D

      It blocks all file system access from Python/R.

    Correct answer
    A

    It has a flexible access control methodology.

    Explanation

    There is a flexible access control methodology to restrict what users can do.

  15. 15

    Can the External Languages Package run code that is not related to time series processing?

    1. A

      Only if the code is wrapped in a SAS macro.

    2. B

      Only code that uses the TSMODEL API.

    3. C

      No, it only runs time series-specific code.

    4. D

      Yes, any code can be run.

    Correct answer
    D

    Yes, any code can be run.

    Explanation

    The system does not limit what you can do; you can run any code.

  16. 16

    How many main kinds of objects are in the External Languages Package?

    1. A

      Three: interpreter, collector, and repeater.

    2. B

      Two: interpreter and collector.

    3. C

      One: interpreter.

    4. D

      Four: interpreter, collector, repeater, and logger.

    Correct answer
    A

    Three: interpreter, collector, and repeater.

    Explanation

    The objects break down into three main kinds: interpreter, collector, and repeater.

  17. 17

    Which object is used to interact directly with the external language (Python or R)?

    1. A

      Pipeline object.

    2. B

      Interpreter object.

    3. C

      Collector object.

    4. D

      Repeater object.

    Correct answer
    B

    Interpreter object.

    Explanation

    Interpreter objects are used to actually interact directly with the external language.

  18. 18

    What are the three ways to insert code into an interpreter object?

    1. A

      By typing in the code manually each time, by copying from another program, or by using a wizard.

    2. B

      Directly in the SAS script, from a file, or from a CAS table.

    3. C

      From a SAS macro, from a URL, or from a dataset.

    4. D

      From a SQL table, from a text string, or from a CSV file.

    Correct answer
    B

    Directly in the SAS script, from a file, or from a CAS table.

    Explanation

    Three ways: directly into SAS script, load from a file, or load from a CAS table.

  19. 19

    What does the AddVariable method on an interpreter object allow you to do?

    1. A

      Specify which variables to share between SAS and the external language.

    2. B

      Insert code into the interpreter.

    3. C

      Define environment variables for the external language.

    4. D

      Add new variables to the CAS table.

    Correct answer
    A

    Specify which variables to share between SAS and the external language.

    Explanation

    AddVariable is used to specify shared variables.

  20. 20

    What is the purpose of the alias parameter in the AddVariable method?

    1. A

      To indicate whether the variable is read-only.

    2. B

      To rename the variable in the external language environment.

    3. C

      To specify the data type of the variable.

    4. D

      To set a default value for the variable.

    Correct answer
    B

    To rename the variable in the external language environment.

    Explanation

    Alias allows the variable to be known by a different name in the external language (e.g., revenue as y).

  21. 21

    What does setting read-only to true mean for a shared variable?

    1. A

      The variable's value is sent to the external language but not written back to SAS.

    2. B

      The variable is only available for reading in SAS.

    3. C

      The variable is deleted after the code runs.

    4. D

      The variable cannot be accessed by the external language.

    Correct answer
    A

    The variable's value is sent to the external language but not written back to SAS.

    Explanation

    By default, data is only sent to the Python process; read-only means we don't bring it back.

  22. 22

    What are collector objects used for?

    1. A

      To collect data from external APIs.

    2. B

      To gather time series data from multiple sources.

    3. C

      To compile code into machine language.

    4. D

      To store logs, shared variable status, and source code into CAS tables.

    Correct answer
    D

    To store logs, shared variable status, and source code into CAS tables.

    Explanation

    Collector objects store other kinds of data (logs, status, source code) into CAS tables.

  23. 23

    Which collector method is used to store logs from the external language execution?

    1. A

      write method.

    2. B

      collect method with the interpreter object as argument.

    3. C

      store method.

    4. D

      log method.

    Correct answer
    B

    collect method with the interpreter object as argument.

    Explanation

    OUTEXTLOG object's collect method is used, passing the Python object as argument.

  24. 24

    What is the role of repeater objects in the package?

    1. A

      To repeat the same code multiple times.

    2. B

      To log repeated errors.

    3. C

      To distribute code to all worker nodes.

    4. D

      To load stored source code back into an interpreter.

    Correct answer
    D

    To load stored source code back into an interpreter.

    Explanation

    Repeater objects are used to load source code (probably for reusing code).

  25. 25

    Which method on the interpreter object is used to execute the external language code?

    1. A

      run method.

    2. B

      start method.

    3. C

      runCode method.

    4. D

      execute method.

    Correct answer
    A

    run method.

    Explanation

    The example uses the run method call.

  26. 26

    In the example, what is the input dataset used?

    1. A

      pylog in the mycas library.

    2. B

      revenue in the public library.

    3. C

      skinproduct in the mycas library.

    4. D

      outarray in the mycas library.

    Correct answer
    C

    skinproduct in the mycas library.

    Explanation

    The input data is the skinproduct data set in mycas.

  27. 27

    What BY variable is used to parallelize time series in the example?

    1. A

      Date.

    2. B

      Distribution center.

    3. C

      Revenue.

    4. D

      Product.

    Correct answer
    B

    Distribution center.

    Explanation

    BY is distribution center, so each time series corresponds to a distribution center.

  28. 28

    Which variable is used as the time ID variable in the example?

    1. A

      revenue.

    2. B

      date.

    3. C

      M_average.

    4. D

      runtime.

    Correct answer
    B

    date.

    Explanation

    The variable name is date with interval weekly.

  29. 29

    What is the accumulator used for the VAR revenue?

    1. A

      Sum.

    2. B

      Average.

    3. C

      Count.

    4. D

      Maximum.

    Correct answer
    A

    Sum.

    Explanation

    The accumulator is sum (accumulate into equal-sized buckets of time).

  30. 30

    In the example, which shared variable is writable (i.e., will be written back to SAS)?

    1. A

      Neither.

    2. B

      revenue.

    3. C

      Both revenue and M_average.

    4. D

      M_average.

    Correct answer
    D

    M_average.

    Explanation

    M_average is written back (not read only), revenue is read only.

  31. 31

    What object is used to collect logs from the Python runs in the example?

    1. A

      TSMODEL object.

    2. B

      OUTEXTLOG object.

    3. C

      COLLECTOR object.

    4. D

      PYTHON object.

    Correct answer
    B

    OUTEXTLOG object.

    Explanation

    OUTEXTLOG object is used to collect the log.

  32. 32

    In the GUI integration (Model Studio), what type of node can be used to add external language code?

    1. A

      Data node.

    2. B

      Open source node.

    3. C

      SAS node.

    4. D

      Model comparison node.

    Correct answer
    B

    Open source node.

    Explanation

    Use the Exchange to add an open source node.

  33. 33

    Which model was used as an example in the GUI screenshots?

    1. A

      SAS ARIMA model.

    2. B

      Python ARIMA model.

    3. C

      Python moving average model.

    4. D

      R ARIMA model.

    Correct answer
    D

    R ARIMA model.

    Explanation

    The screenshots show an R model, an R ARIMA model.

  34. 34

    In the TSMODEL system, what is the purpose of the SUBMIT block in the SAS script?

    1. A

      It is used to define macro variables.

    2. B

      It submits Python code to a remote server.

    3. C

      It creates a new CAS session.

    4. D

      It marks the code that will run on the cluster worker nodes.

    Correct answer
    D

    It marks the code that will run on the cluster worker nodes.

    Explanation

    The code between submit and endsubmit runs on the worker nodes in the cluster.

  35. 35

    How are time series assigned to worker nodes for parallel processing?

    1. A

      All time series are sent to all nodes.

    2. B

      Each BY group is processed by a separate worker node.

    3. C

      The user specifies which node processes which time series.

    4. D

      Time series are randomly assigned.

    Correct answer
    B

    Each BY group is processed by a separate worker node.

    Explanation

    The BY variable delineates how time series are parallelized (each BY group its own time series).

  36. 36

    What is the benefit of using multiple worker nodes with multiple cores?

    1. A

      The script is executed sequentially on each node.

    2. B

      All time series can be processed simultaneously.

    3. C

      The system uses only one core per node.

    4. D

      Only one time series can be processed at a time.

    Correct answer
    B

    All time series can be processed simultaneously.

    Explanation

    With four cores per node, all time series can be processed in parallel.

  37. 37

    What happens to the output data after processing on the worker nodes?

    1. A

      It remains on the worker nodes until deleted.

    2. B

      It is automatically sent back to the distributed file system.

    3. C

      It is streamed to a database.

    4. D

      The user must retrieve it manually.

    Correct answer
    B

    It is automatically sent back to the distributed file system.

    Explanation

    The data is sent back to the distributed file system automatically.

  38. 38

    Which part of the SAS script (outside the SUBMIT block) is considered setup code?

    1. A

      The run method call.

    2. B

      The BY statement.

    3. C

      The PROC TSMODEL parameters and table definitions.

    4. D

      The external language code within submit blocks.

    Correct answer
    C

    The PROC TSMODEL parameters and table definitions.

    Explanation

    The rest (outside submit) is setup code specifying tables and parameters.

  39. 39

    How does the system handle the Python or R code that is within the submit block?

    1. A

      It is extracted into a separate file (e.g., code.py) and fed to the interpreter.

    2. B

      It is converted to a macro.

    3. C

      It is compiled into SAS language.

    4. D

      It is executed directly without modification.

    Correct answer
    A

    It is extracted into a separate file (e.g., code.py) and fed to the interpreter.

    Explanation

    The code is written into its own little code.py file.

Question 1 of 39
Question 1 of 39

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent