nerdexam
Snowflake

DEA-C02 · Question #47

A Data Engineer is writing a Python script using the Snowflake Connector for Python. The Engineer will use the snowflake.connector.connect function to connect to Snowflake. The requirements are…

The correct answer is C. client_prefetch_threads E. validate_default_parameters. validate_default_parameters=True (E) tells the connector to verify that the database, schema, and warehouse specified in the connection string actually exist before completing the connection - if any are missing, it raises an exception immediately rather than silently…

Performance Optimization

Question

A Data Engineer is writing a Python script using the Snowflake Connector for Python. The Engineer will use the snowflake.connector.connect function to connect to Snowflake. The requirements are:

  • Raise an exception if the specified database, schema, or warehouse

does not exist

  • Improve download performance

Which parameters of the connect function should be used? (Choose two.)

Options

  • Aauthenticator
  • Barrow_number_to_decimal
  • Cclient_prefetch_threads
  • Dclient_session_keep_alive
  • Evalidate_default_parameters

How the community answered

(54 responses)
  • A
    6% (3)
  • B
    2% (1)
  • C
    81% (44)
  • D
    11% (6)

Explanation

validate_default_parameters=True (E) tells the connector to verify that the database, schema, and warehouse specified in the connection string actually exist before completing the connection - if any are missing, it raises an exception immediately rather than silently connecting and failing later. client_prefetch_threads (C) controls how many threads pre-fetch result chunks in parallel, directly improving download performance for large result sets.

The distractors are wrong for these reasons: A (authenticator) configures the auth method (e.g., SSO, OAuth) and has no effect on parameter validation or download speed; B (arrow_number_to_decimal) only affects how numeric types are represented when using Arrow format, unrelated to either requirement; D (client_session_keep_alive) prevents idle session timeouts but does nothing for validation or download throughput.

Memory tip: Map each requirement to a keyword - "Validate" existence → validate_default_parameters; "Prefetch threads" → faster downloads. Both answers have the requirement baked into the parameter name itself.

Topics

#Snowflake Connector for Python#Connection Parameters#Performance Tuning#Connection Validation

Community Discussion

No community discussion yet for this question.

Full DEA-C02 Practice