Skip to main content

DSA-C02 Real Exam Questions

SnowPro Advanced: Data Scientist Certification (DSA-C02)

65 questions available · Page 1 of 7

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Single choice

All aggregate functions except _____ ignore null values in their input collection

  1. A

    Count(attribute)

  2. B

    Count(*)

  3. C

    Avg

  4. D

    Sum

Show answer and explanation

Correct answer: B

Explanation

Explanation:
Count(*)
* is used to select all values including null.

Question 2 Single choice

Which one is the incorrect option to share data in Snowflake?

  1. A

    a Listing, in which you offer a share and additional metadata as a data product to one or more accounts.

  2. B

    a Direct Marketplace, in which you directly share specific database objects (a share) to another account in your region using Snowflake Marketplace.

  3. C

    a Direct Share, in which you directly share specific database objects (a share) to anoth-er account in your region.

  4. D

    a Data Exchange, in which you set up and manage a group of accounts and offer a share to that group.

Show answer and explanation

Correct answer: B

Explanation

Explanation:
Options for Sharing in Snowflake
You can share data in Snowflake using one of the following options: a Listing, in which you offer a share and additional metadata as a data product to one or more ac-counts, a Direct Share, in which you directly share specific database objects (a share) to another account in your region, a Data Exchange, in which you set up and manage a group of accounts and offer a share to that group.

Question 3 Single choice

Consider a data frame df with columns ['A', 'B', 'C', 'D'] and rows ['r1', 'r2', 'r3'].

What does the ex-pression df[lambda x : x.index.str.endswith('3')] do?

  1. A

    Returns the row name r3

  2. B

    Results in Error

  3. C

    Returns the third column

  4. D

    Filters the row labelled r3

Show answer and explanation

Correct answer: D

Explanation

Explanation:
It will Filters the row labelled r3.

Question 4 Multiple choice

Which ones are the known limitations of using External function? Choose all apply.

  1. A

    Currently, external functions cannot be shared with data consumers via Secure Data Sharing.

  2. B

    Currently, external functions must be scalar functions. A scalar external function re-turns a single value for each input row.

  3. C

    External functions have more overhead than internal functions (both built-in functions and internal UDFs) and usually execute more slowly

  4. D

    An external function accessed through an AWS API Gateway private endpoint can be accessed only from a Snowflake VPC (Virtual Private Cloud) on AWS and in the same AWS region.

Show answer and explanation

Correct answers: A, B, C, D

Question 5 Multiple choice

Data providers add Snowflake objects (databases, schemas, tables, secure views, etc.) to a share us-ing.

Which of the following options? Choose 2.

  1. A

    Grant privileges on objects to a share via Account role.

  2. B

    Grant privileges on objects directly to a share.

  3. C

    Grant privileges on objects to a share via a database role.

  4. D

    Grant privileges on objects to a share via a third-party role.

Show answer and explanation

Correct answers: B, C

Explanation

Explanation:What is a Share?
Shares are named Snowflake objects that encapsulate all of the information required to share a database.
Data providers add Snowflake objects (databases, schemas, tables, secure views, etc.) to a share using either or both of the following options: Option 1: Grant privileges on objects to a share via a database role. Option 2: Grant privileges on objects directly to a share. You choose which accounts can consume data from the share by adding the accounts to the share.
After a database is created (in a consumer account) from a share, all the shared objects are accessible to users in the consumer account. Shares are secure, configurable, and controlled completely by the provider account: New objects added to a share become immediately available to all consumers, providing real-time access to shared data.
Access to a share (or any of the objects in a share) can be revoked at any time.

Question 6 Single choice

Which of the following is a Python-based web application framework for visualizing data and analyzing results in a more efficient and flexible way?

  1. A

    StreamBI

  2. B

    Streamlit

  3. C

    Streamsets

  4. D

    Rapter

Show answer and explanation

Correct answer: B

Explanation

Explanation:
Streamlit is a Python-based web application framework for visualizing data and analyzing results in a more efficient and flexible way. It is an open source library that assists data scientists and academics to develop Machine Learning (ML) visualization dashboards in a short period of time. We can build and deploy powerful data applications with just a few lines of code.
Why Streamlit?
Currently, real-world applications are in high demand and developers are developing new libraries and frameworks to make on-the-go dashboards easier to build and deploy. Streamlit is a library that reduces your dashboard development time from days to hours. Following are some reasons to choose the Streamlit: It is a free and open-source library.
Installing Streamlit is as simple as installing any other python package It is easy to learn because you won't need any web development experience, only a basic under-standing of Python is enough to build a data application. It is compatible with almost all machine learning frameworks, including Tensorflow and Pytorch, Scikit-learn, and visualization libraries such as Seaborn, Altair, Plotly, and many others.

Question 7 Single choice

Consider a data frame df with 10 rows and index [ 'r1', 'r2', 'r3', 'row4', 'row5', 'row6', 'r7', 'r8', 'r9', 'row10'].
What does the aggregate method shown in below code do?

g = df.groupby(df.index.str.len())

  1. A

    aggregate({'A':len, 'B':np.sum})

  2. B

    Computes Sum of column A values

  3. C

    Computes length of column A

  4. D

    Computes length of column A and Sum of Column B values of each group

  5. E

    Computes length of column A and Sum of Column B values

Show answer and explanation

Correct answer: C

Explanation

Explanation:
Computes length of column A and Sum of Column B values of each group

Question 8 Multiple choice

Which are the following additional Metadata columns Stream contains that could be used for creating Efficient Data science Pipelines & helps in transforming only the New/Modified data only? Choose 3.

  1. A

    METADATA$ACTION

  2. B

    METADATA$FILE_ID

  3. C

    METADATA$ISUPDATE

  4. D

    METADATA$DELETE

  5. E

    METADATA$ROW_ID

Show answer and explanation

Correct answers: A, C, E

Explanation

Explanation:
A stream stores an offset for the source object and not any actual table columns or data. When que-ried, a stream accesses and returns the historic data in the same shape as the source object (i.e. the same column names and ordering) with the following additional columns: METADATA$ACTION Indicates the DML operation (INSERT, DELETE) recorded.
METADATA$ISUPDATE
Indicates whether the operation was part of an UPDATE statement. Updates to rows in the source object are represented as a pair of DELETE and INSERT records inthe stream with a metadata column

METADATA$ISUPDATE values set to TRUE. Note that streams record the differences between two offsets. If a row is added and then updated in the current offset, the delta change is a new row. The METADATA$ISUPDATE row records a FALSE value.
METADATA$ROW_ID
Specifies the unique and immutable ID for the row, which can be used to track changes to specific rows over time.

Question 9 Single choice

Which of the following is a useful tool for gaining insights into the relationship between features and predictions?

  1. A

    numpy plots

  2. B

    sklearn plots

  3. C

    Partial dependence plots(PDP)

  4. D

    FULL dependence plots (FDP)

Show answer and explanation

Correct answer: C

Explanation

Explanation:
Partial dependence plots (PDP) is a useful tool for gaining insights into the relationship between features and predictions. It helps us understand how different values of a particular feature impact model's predictions.

Question 10 Single choice

What is the formula for measuring skewness in a dataset?

  1. A

    MEAN - MEDIAN

  2. B

    MODE - MEDIAN

  3. C

    (3(MEAN - MEDIAN))/ STANDARD DEVIATION

  4. D

    (MEAN - MODE)/ STANDARD DEVIATION

Show answer and explanation

Correct answer: C

Explanation

Explanation:
Since the normal curve is symmetric about its mean, its skewness is zero. This is a theoretical expla-nation for mathematical proofs, you can refer to books or websites that speak on the same in detail.