
[Aug 26, 2023] Prepare For The DEA-C01 Question Papers In Advance
DEA-C01 PDF Dumps Real 2023 Recently Updated Questions
NEW QUESTION # 24
Regular views do not cache data, and therefore cannot improve performance by caching?
- A. FALSE
- B. TRUE
Answer: B
Explanation:
Explanation
Regular views do not cache data, and therefore cannot improve performance by caching.
NEW QUESTION # 25
Which column provides information when the stream became stale or may become stale if not con-sumed?
- A. STREAM_STALE_PERIOD
- B. STALE_PERIOD_AFTER
- C. STALE_STREAM_PERIOD
- D. STALE_AFTER
Answer: D
Explanation:
Explanation
execute SHOW STREAMS command.
Column Name: STALE_AFTER
Timestamp when the stream became stale or may become stale if not consumed. The value is calcu-lated by adding the retention period for the source table (i.e. the larger of the DA-TA_RETENTION_TIME_IN_DAYS or MAX_DATA_EXTENSION_TIME_IN_DAYS parame-ter setting) to the last time the stream was read.
NEW QUESTION # 26
Mark the correct Statements with respect to Secure views & its creation in the SnowFlake Account?
- A. For a secure view, internal optimizations can indirectly expose data & the view defini-tion is visible to other users.
- B. The internals of a secure view are not exposed in Query Profile (in the web interface). This is the case even for the owner of the secure view, because non-owners might have access to an owner's Query Profile.
- C. For non-materialized views, the IS_SECURE column in the Information Schema and Account Usage views identifies whether a view is secure.
- D. Secure views should not be used for views that are defined solely for query conven-ience, such as views created to simplify queries for which users do not need to under-stand the underlying data representation.
- E. To convert an existing view to a secure view and back to a regular view, set/unset the SECURE keyword in the ALTER VIEW or ALTER MATERIALIZED VIEW com-mand.
Answer: B,C,D,E
Explanation:
Explanation
Why Should I Use Secure Views?
For a non-secure view, internal optimizations can indirectly expose data.
Some of the internal optimizations for views require access to the underlying data in the base tables for the view. This access might allow data that is hidden from users of the view to be exposed through user code, such as user-defined functions, or other programmatic methods. Secure views do not utilize these optimizations, ensuring that users have no access to the underlying data.
For a non-secure view, the view definition is visible to other users.
By default, the query expression used to create a standard view, also known as the view definition or text, is visible to users in various commands and interfaces.
For security or privacy reasons, you might not wish to expose the underlying tables or internal struc-tural details for a view. With secure views, the view definition and details are visible only to author-ized users (i.e.
users who are granted the role that owns the view).
When Should I Use a Secure View?
Views should be defined as secure when they are specifically designated for data privacy (i.e. to limit access to sensitive data that should not be exposed to all users of the underlying table(s)).
Secure views should not be used for views that are defined solely for query convenience, such as views created to simplify queries for which users do not need to understand the underlying data representation. Secure views can execute more slowly than non-secure views.
Secure views are defined using the SECURE keyword with the standard DDL for views:
To create a secure view, specify the SECURE keyword in the CREATE VIEW or CREATE MA-TERIALIZED VIEW command.
To convert an existing view to a secure view and back to a regular view, set/unset the SECURE keyword in the ALTER VIEW or ALTER MATERIALIZED VIEW command.
The definition of a secure view is only exposed to authorized users (i.e. users who have been grant-ed the role that owns the view). If an unauthorized user uses any of the following commands or in-terfaces, the view definition is not displayed:
SHOW VIEWS and SHOW MATERIALIZED VIEWS commands.
GET_DDL utility function.
VIEWS Information Schema view.
VIEWS Account Usage view.
For non-materialized views, the IS_SECURE column in the Information Schema and Account Us-age views identifies whether a view is secure.
The internals of a secure view are not exposed in Query Profile (in the web interface). This is the case even for the owner of the secure view, because non-owners might have access to an owner's Query Profile.
NEW QUESTION # 27
In efforts to recover the dropped child tables within schema named SCV_SCHEMA by Data Engi-neer, She found that DATA_RETENTION_TIME_IN_DAYS parameter set with value 45 days at Schema level &the data retention period for child tables explicitly set at 85 days. What will happen when she will try to run undrop table command on Child tables to recover them on the 50th day as-suming SCV_SCHEMA is already dropped on 45th day?
- A. To honor the data retention period for child tables, She will ab able to recover the child tables on 50th day as DATA_RETENTION_TIME_IN_DAYS is explicitly set with higher retention value.
- B. Child tables can be recovered using Fail-Safe SQL commands.
- C. When a schema is already dropped, the data retention period for child tables, if explicit-ly set to be different from the retention of the schema, is not honoured. So UNDROP command will fail to run on
50th day for Child tables recovery. - D. Data Engineer needs to first recover the Schema & then Child tables will automatically be recovered irrespective of Retention Inheritance.
Answer: C
Explanation:
Explanation
Dropped Containers and Object Retention Inheritance
Currently, when a database is dropped, the data retention period for child schemas or tables, if ex-plicitly set to be different from the retention of the database, is not honored. The child schemas or tables are retained for the same period of time as the database.
Similarly, when a schema is dropped, the data retention period for child tables, if explicitly set to be different from the retention of the schema, is not honored. The child tables are retained for the same period of time as the schema.
To honor the data retention period for these child objects (schemas or tables), drop them explicitly before you drop the database or schema.
NEW QUESTION # 28
Alex, a Data Engineer with one of the Data analytics Organization, created the Materialized view over External tables to improve Data Reporting Experience.
Step 1: He created materialized view named DataReportMV
1.create or replace materialized view DataReportMV as
2.select Item_id, Item_price from Items;
Step 2: He joined a materialized view with a sales table as
1.create or replace view Revenue as
2.select m.item_id, sum(ifnull(s.quantity, 0)) as quantity,
3.sum(ifnull(quantity * (s.price - m.item_price), 0)) as profit
4.from DataReportMV as m left outer join sales as s on s.item_id = m.item_id
5.group by m.item_id;
Step 3: After 1 hour, he decided to temporarily suspend the use (and maintenance) of the DataRe-portMV materialized view for cost saving purpose.
alter materialized view DataReportMV suspend;
Please select what Alex is doing wrong here?
- A. There is no command like suspend for temporarily suspension of Materialized views, Step 3 will give error like invalid Suspend command.
- B. A materialized view, DataReportMV does not support Join operations, so Step 2 would be failed & he cannot proceed further.
- C. Once DataReportMV got suspended , any query on the top of the view will generate er-ror like:
Failure during expansion of view 'DATAREPORTMV': SQL compilation error: Material-ized view DataReportMV is invalid. - D. Materialized view on top of External tables is not supported feature.
- E. Alex is doing everything correct.
Answer: E
Explanation:
Explanation
All Steps will be executed successfully by Alex without any error.
NEW QUESTION # 29
David, a Lead Data engineer with XYZ company looking out to improve query performance & oth-er benefits while working with Tables, Regular Views, MVs and Cached Results.
Which one of the following does not shows key similarities and differences between tables, regular views, cached query results, and materialized views while choosing any of them by David?
- A. Regular views do not cache data, and therefore cannot improve performance by cach-ing.
- B. Both materialized views and regular views enhance data security by allowing data to be exposed or hidden at the row level or column level.
- C. Cached Query Results: Used only if data has not changed and if query only uses de-terministic functions (e.g. not CURRENT_DATE).
- D. As with non-materialized views, a materialized view automatically inherits the privileges of its base table.
- E. Materialized views are faster than tables because of their "cache" (i.e. the query results for the view); in addition, if data has changed, they can use their "cache" for data that hasn't changed and use the base table for any data that has changed.
Answer: D
Explanation:
Explanation
Materialized Views, like other database objects (tables, views, UDFs, etc.), are owned by a role and have privileges that can be granted to other roles.
You can grant the following privileges on a materialized view:
SELECT
As with non-materialized views, a materialized view does not automatically inherit the privileges of its base table. You should explicitly grant privileges on the materialized view to the roles that should use that view.
As with non-materialized views, a user who wishes to access a materialized view needs privileges only on the view, not on the underlying object(s) that the view references.
Rest is correct.
NEW QUESTION # 30
You can execute zero, one, or more transactions inside a stored procedure?
- A. FALSE
- B. TRUE
Answer: B
NEW QUESTION # 31
For enabling non-ACCOUNTADMIN Roles to Perform Data Sharing Tasks, which two glob-al/account privileges snowflake provide?
- A. CREATE SHARE
- B. IMPORT SHARE
- C. OPERATE
- D. REFERENCE USAGE
Answer: A,B
Explanation:
Explanation
CREATE SHARE
In a provider account, this privilege enables creating and managing shares (for sharing data with consumer accounts).
IMPORT SHARE
In a consumer account, this privilege enables viewing the inbound shares shared with the account. Also enables creating databases from inbound shares; requires the global CREATE DATABASE privilege.
By default, these privileges are granted only to the ACCOUNTADMIN role, ensuring that only ac-count administrators can perform these tasks. However, the privileges can be granted to other roles, enabling the tasks to be delegated to other users in the account.
NEW QUESTION # 32
Data Engineer looking out for quick tool for understanding the mechanics of queries & need to know more about the performance or behaviour of a particular query.
He should go to which feature of snowflake which can help him to spot typical mistakes in SQL query expressions to identify potential performance bottlenecks and improvement opportunities?
- A. Performance Metadata table
- B. Query Profile
- C. Query Optimizer
- D. Query Designer
Answer: B
Explanation:
Explanation
Query Profile, available through the classic web interface, provides execution details for a query. For the selected query, it provides a graphical representation of the main components of the pro-cessing plan for the query, with statistics for each component, along with details and statistics for the overall query.
Query Profile is a powerful tool for understanding the mechanics of queries. It can be used whenev-er you want or need to know more about the performance or behavior of a particular query. It is de-signed to help you spot typical mistakes in SQL query expressions to identify potential performance bottlenecks and improvement opportunities.
NEW QUESTION # 33
UDTFs also called a table function, returns zero, one, or multiple rows for each input row?
- A. YES
- B. NO
Answer: A
Explanation:
Explanation
UDFs may be scalar or tabular.
A scalar function returns one output row for each input row. The returned row consists of a single column/value.
A tabular function, also called a table function, returns zero, one, or multiple rows for each input row. A tabular UDF is defined by specifying a return clause that contains the TABLE keyword and specifies the names and data types of the columns in the table results. Tabular UDFs are often called UDTFs (user-defined table functions) or table UDFs.
NEW QUESTION # 34
The following CREATE DATABASE command creates a clone of a database snowmy_db i.e.
Create database pods_db clone snowmy_db
before (statement => '7e5d0cb9-005e-94e6-b058-k8f5b37c5725');
What are possible reason of failing cloning operation for this database?
- A. Time Travel Statement query time is at or before the point in time when the object was created.
- B. CREATE DATABASE query fails due to compilation error as it do not support state-ment keyword.
- C. SQL Compilation error: "Incorrect Syntax 'before' while creating database"
- D. Time Travel Statement query time is beyond the retention time of few current child (e.g., a table) of the Database entity.
Answer: A,D
NEW QUESTION # 35
Jackie, a Data engineer advised to his data team members about one of the Role highlighting fol-lows points:
1. Avoid Using the <?> Role for Automated Scripts
2. Avoid Using the <?> Role to Create Objects
Which System defined or Custom Role She is mentioning?
- A. SECURITYADMIN
- B. ACCOUNTADMIN
- C. SYSADMIN
- D. CUSTOM Role
- E. USERADMIN
Answer: B
NEW QUESTION # 36
Streams cannot be created to query change data on which of the following objects? [Select All that Apply]
- A. External tables
- B. Query Log Tables
- C. Standard tables, including shared tables.
- D. Views, including secure views
- E. Directory tables
Answer: B
Explanation:
Explanation
Streams supports all the listed objects except Query Log tables.
NEW QUESTION # 37
When using the CURRENT_ROLE and CURRENT_USER functions with secure UDFs that will be shared with Snowflake accounts, Snowflake returns a NULL value for these functions?
- A. FALSE
- B. TRUE
Answer: B
Explanation:
Explanation
When using the CURRENT_ROLE and CURRENT_USER functions with secure UDFs that will be shared with Snowflake accounts, Snowflake returns a NULL value for these functions. The rea-son is that the owner of the data being shared does not typically control the users or roles in the ac-count with which the UDF is being shared.
NEW QUESTION # 38
Mark the Correct Statements for the VALIDATION_MODE option used by Data Engineer for Da-ta loading operations in his/her COPY INTO <table> command:
- A. VALIDATION_MODE does not support COPY statements that transform data during a load. If the parameter is specified, the COPY statement returns an error.
- B. VALIDATION_MODE option supported these values:
RETURN_n_ROWS,
RETURN_ERRORS,
RETURN_ALL_ERRORS - C. VALIDATION_MODE instructs the COPY command to validate the data files instead of loading them into the specified table; i.e., the COPY command tests the files for er-rors but does not load them.
- D. VALIDATION_MODE only support Data loading operation i.e., do not work while da-ta unloading.
Answer: A,B,C
Explanation:
Explanation
All the Statements are correct except the statement saying VALIDATION_MODE only support Data loading operation.
VALIDATION_MODE can be used with COPY INTO <location> command as well i.e for data unloading operation.
VALIDATION_MODE = RETURN_ROWS can be used at the time of Data unloading.
This option instructs the COPY command to return the results of the query in the SQL statement instead of unloading the results to the specified cloud storage location. The only supported valida-tion option is RETURN_ROWS. This option returns all rows produced by the query.
When you have validated the query, you can remove the VALIDATION_MODE to perform the unload operation.
NEW QUESTION # 39
......
DEA-C01 Dumps and Practice Test (132 Exam Questions): https://www.test4cram.com/DEA-C01_real-exam-dumps.html
Released Snowflake DEA-C01 Updated Questions PDF: https://drive.google.com/open?id=1r-8uGTU_EkUPcci4uwTXvPEocSTfo2Fl