Snowflake SnowPro Advanced Architect Practice Test Questions and Exam Dumps Part20 Q381-400

View Full Snowflake SnowPro Advanced Architect Exam Dumps and Practice Test Dumps.

 

Question 381

Which mechanism manages repeated database connections efficiently?

  1. Connection pooling
  2. Result scanning
  3. Query tagging
  4. Schema inheritance

Correct Answer: 1

Explanation:

Connection pooling allows an application to maintain and reuse a controlled collection of database connections. Instead of establishing a new connection for every request, the application can borrow an available connection, perform its operation, and return the connection to the pool. This reduces connection-establishment overhead and can improve application responsiveness. Architects should determine pool size according to expected concurrency and workload behavior. Pool configuration should also address idle connections, connection expiration, authentication renewal, transaction cleanup, and handling of broken network sessions. Proper pooling is particularly valuable for applications generating many short-lived database requests.

Question 382

Which architecture separates application credentials from source code?

  1. Hardcoded passwords
  2. Secret management service
  3. Shared configuration file
  4. Embedded connection strings

Correct Answer: 2

Explanation:

A secret management service allows sensitive credentials to be stored outside application source code and retrieved securely when required. This reduces the risk of passwords, tokens, or private keys being accidentally committed to repositories or exposed through application packages. In a Snowflake architecture, the exact secret-management approach depends on the surrounding cloud and application environment. Architects should also design credential rotation, access permissions, auditing, and failure behavior. Separating secrets from application logic makes deployments safer and allows credentials to be changed without modifying or rebuilding application code.

Question 383

What controls the maximum queued statements for a warehouse?

  1. MAX_CONCURRENCY_LEVEL
  2. STATEMENT_QUEUED_TIMEOUT_IN_SECONDS
  3. MAX_QUEUED_STATEMENTS
  4. QUERY_QUEUE_LIMIT

Correct Answer: 3

Explanation:

MAX_CONCURRENCY_LEVEL controls the number of statements that can execute concurrently on a warehouse before additional work may be queued. It is a workload-management consideration because increasing concurrency can affect the resources available to individual statements. Architects should evaluate this setting alongside warehouse sizing, workload characteristics, query duration, and user expectations. A reporting environment with many small queries may behave differently from a transformation environment containing a smaller number of expensive operations. Concurrency configuration should therefore be based on measured workload behavior rather than assuming that the highest possible concurrency always produces better performance.

Question 384

Which authentication approach supports certificate-based application identity?

  1. Password federation
  2. Browser SSO
  3. Key-pair authentication
  4. Anonymous sessions

Correct Answer: 3

Explanation:

Key-pair authentication allows an application or service identity to authenticate using a private key while Snowflake stores the corresponding public key association. This approach is commonly used for automated workloads because it avoids relying on interactive password entry. Architects should protect private keys carefully and establish rotation procedures so credentials do not become permanent unmanaged secrets. Applications should also receive only the Snowflake privileges required for their workload. Key-pair authentication is particularly useful for scheduled processes, deployment systems, and service-to-service integrations where interactive login is not practical.

Question 385

Which setting determines warehouse concurrency behavior?

  1. AUTO_SUSPEND
  2. MAX_CONCURRENCY_LEVEL
  3. STATEMENT_TIMEOUT_IN_SECONDS
  4. INITIALLY_SUSPENDED

Correct Answer: 2

Explanation:

MAX_CONCURRENCY_LEVEL influences how many statements a virtual warehouse can execute concurrently. When workload demand exceeds the configured concurrency, additional statements may wait rather than immediately executing. This parameter can therefore affect both query latency and workload behavior. Architects should evaluate concurrency together with warehouse size because increasing concurrency does not necessarily provide each query with more compute resources. The appropriate configuration depends on whether the workload consists primarily of interactive queries, batch processing, transformations, or mixed workloads. Monitoring queue behavior and query performance is important before changing the setting.

Question 386

Which pattern best protects an application from transient Snowflake failures?

  1. Fixed unlimited retries
  2. Exponential backoff
  3. Permanent connection retention
  4. Immediate repeated submission

Correct Answer: 2

Explanation:

Exponential backoff gradually increases the delay between retry attempts after a transient failure. This prevents an application from immediately sending repeated requests when Snowflake or an intermediate network service is temporarily unavailable. A robust implementation should normally combine backoff with a bounded retry count, appropriate timeout values, and error classification. Architects should distinguish retryable failures from permanent SQL or authorization errors because retrying every failure can waste resources. Idempotency is also important when retrying operations that modify data, ensuring that repeated attempts do not unintentionally create duplicate effects.

Question 387

Which feature helps applications submit SQL through REST requests?

  1. JDBC
  2. ODBC
  3. SQL API
  4. Snowflake CLI

Correct Answer: 3

Explanation:

The Snowflake SQL API enables applications to submit SQL statements through HTTP-based requests. It is useful for services that need programmatic Snowflake interaction without maintaining a traditional JDBC or ODBC driver connection. An architect designing such an integration should account for authentication, asynchronous execution, request identifiers, polling, result retrieval, timeout behavior, and error handling. REST-based communication can be convenient for distributed applications, but it introduces API request-management considerations that differ from persistent database-driver sessions. The SQL API should therefore be selected according to the application’s connectivity and operational requirements.

Question 388

Which design minimizes privileges assigned to an integration user?

  1. Grant only required privileges
  2. Assign ACCOUNTADMIN
  3. Use unrestricted ownership
  4. Grant every database role

Correct Answer: 1

Explanation:

Granting only the privileges required by an integration follows the principle of least privilege. An application identity should not receive broad administrative access simply because it needs to execute a limited set of operations. Architects should identify the application’s required objects and actions, create an appropriate role structure, and assign only those permissions. This approach reduces the potential impact if credentials are compromised or the application behaves unexpectedly. Periodic access reviews are also important because application requirements change over time and unused privileges can accumulate.

Question 389

What is a major benefit of asynchronous SQL execution?

  1. Guaranteed lower compute consumption
  2. Non-blocking application workflows
  3. Automatic query optimization
  4. Elimination of authentication

Correct Answer: 2

Explanation:

Asynchronous SQL execution allows an application to submit work without remaining blocked while the statement completes. The application can perform other processing and later check execution status or retrieve results. This pattern can be useful for long-running operations, service architectures, and applications handling multiple independent tasks. Asynchronous execution does not automatically reduce compute consumption or optimize SQL. Architects must still manage polling frequency, request identifiers, failure handling, timeout policies, and result retrieval. The design should also prevent excessive polling, which can itself create unnecessary application and network overhead.

Question 390

Which approach improves auditability of application-generated queries?

  1. Random session names
  2. Query tags
  3. Larger warehouses
  4. Additional schemas

Correct Answer: 2

Explanation:

Query tags allow applications or workloads to associate identifying metadata with SQL activity. This can improve operational analysis by making it easier to distinguish queries originating from particular applications, services, teams, or processes. Architects can use consistent tagging conventions as part of a broader observability strategy. Tags should be designed carefully so they provide useful attribution without exposing sensitive information. When combined with usage and query-history data, tagging can help organizations analyze workload behavior, investigate unexpected consumption, and attribute database activity to logical application components.

Question 391

Which workload commonly requires predictable low-latency responses?

  1. Offline archival processing
  2. Historical backfill
  3. Interactive application queries
  4. Monthly storage maintenance

Correct Answer: 3

Explanation:

Interactive application queries generally require predictable response times because users or services are waiting for the result. Such workloads should be designed separately from long-running batch operations when contention could create undesirable latency. Architects may use dedicated compute, appropriate warehouse configuration, workload-specific limits, and carefully optimized SQL to support responsiveness. Batch transformations and historical backfills can often tolerate longer execution times and may therefore be scheduled or isolated differently. The important architectural distinction is the service-level expectation: interactive workloads prioritize responsiveness, while batch workloads commonly prioritize throughput and completion.

Question 392

Which practice supports safe credential rotation?

  1. Replace credentials without overlap
  2. Maintain controlled key rollover
  3. Disable authentication permanently
  4. Reuse expired secrets

Correct Answer: 2

Explanation:

Controlled key rollover allows an application credential to be replaced without unnecessarily interrupting production workloads. A well-designed rotation process introduces the new credential, validates its use, updates dependent applications, and then removes or retires the old credential according to the organization’s security policy. Architects should avoid abrupt replacement when applications cannot switch immediately. Rotation procedures should also include ownership, expiration tracking, testing, auditing, and emergency-revocation procedures. This approach is especially important for automated Snowflake integrations because unattended workloads may continue operating for long periods without human interaction.

Question 393

Which component commonly acts as the application-to-Snowflake connectivity layer?

  1. Virtual warehouse
  2. Database role
  3. Client driver
  4. Storage stage

Correct Answer: 3

Explanation:

A client driver provides the application connectivity layer used to communicate with Snowflake through supported programming interfaces. Examples include language-specific connectors and database drivers. The driver handles connection establishment, statement submission, result retrieval, and other protocol-level interactions required by the application. Architects should select the appropriate driver based on the application’s language and integration pattern. Connection pooling, authentication, retry handling, session configuration, and driver version management should also be considered. The virtual warehouse provides compute resources for query execution, but it is not itself the application’s connectivity interface.

Question 394

Which setting can terminate excessively long-running statements?

  1. STATEMENT_TIMEOUT_IN_SECONDS
  2. MAX_CLUSTER_COUNT
  3. AUTO_SUSPEND
  4. MIN_CLUSTER_COUNT

Correct Answer: 1

Explanation:

STATEMENT_TIMEOUT_IN_SECONDS establishes a maximum execution duration for statements. Once the configured limit is exceeded, Snowflake can cancel the statement. This can protect interactive workloads from unexpectedly long operations and provide a predictable upper boundary for query execution. Architects should apply the setting according to workload requirements because aggressive limits can unintentionally terminate legitimate analytical operations. Different workloads may require different timeout policies. Application developers should also understand the resulting error behavior so that timeout failures are handled appropriately instead of being retried indefinitely.

Question 395

Which principle limits an application’s Snowflake authority?

  1. Least privilege
  2. Maximum ownership
  3. Administrative inheritance
  4. Universal access

Correct Answer: 1

Explanation:

Least privilege means granting an application only the permissions necessary to perform its intended functions. In Snowflake, this principle can be implemented through carefully designed roles, object privileges, ownership boundaries, and service identities. An application that only reads selected tables should not automatically receive broad database modification or account-level administrative privileges. Architects should document the permissions required by each integration and review them periodically. Least privilege reduces the potential impact of compromised credentials, application defects, or accidental operations while making the overall security model easier to reason about.

Question 396

Which method is appropriate for machine-to-machine authentication?

  1. Interactive password entry
  2. Manual browser login
  3. Service identity authentication
  4. Shared employee account

Correct Answer: 3

Explanation:

Machine-to-machine integrations should generally use dedicated service identities rather than personal employee accounts. A service identity provides a stable security principal for an automated application or process and allows access to be governed independently of individual employees. Architects should assign appropriate roles, protect credentials or keys, establish rotation procedures, and maintain auditability. Using an employee account for automation creates lifecycle problems because the workload becomes dependent on an individual’s identity. A dedicated service identity also makes ownership and operational troubleshooting clearer when multiple applications interact with Snowflake.

Question 397

Which technique prevents duplicate processing after retries?

  1. Idempotent processing
  2. Unlimited resubmission
  3. Random identifiers only
  4. Manual reconciliation exclusively

Correct Answer: 1

Explanation:

Idempotent processing ensures that repeating the same operation does not create unintended additional effects. This is particularly important in distributed architectures where a client may retry a request after an uncertain network failure. Without idempotency, the original operation might have succeeded even though the client never received the response, and a retry could process the same business event twice. Architects can use stable event identifiers, merge logic, checkpoints, or other application-level controls to recognize repeated requests. Idempotency should be considered whenever workloads involve retries, asynchronous processing, or unreliable communication paths.

Question 398

Which connection strategy best supports high-concurrency applications?

  1. One session shared globally
  2. Unlimited sessions per request
  3. Controlled connection pool
  4. New login for every query

Correct Answer: 3

Explanation:

A controlled connection pool provides a structured way to support many application requests without creating an uncontrolled number of Snowflake sessions. The pool establishes an upper boundary on active connections and allows completed requests to return connections for reuse. This can improve efficiency and application stability. Architects should size the pool according to actual concurrency requirements rather than simply matching the number of application users. Connection health checks, timeout handling, authentication expiration, and transaction cleanup should also be incorporated. A global shared session is generally unsuitable because concurrent operations can interfere with one another.

Question 399

Which mechanism provides federated user authentication?

  1. Storage integration
  2. External stage
  3. SSO federation
  4. Query acceleration

Correct Answer: 3

Explanation:

Single sign-on federation allows users to authenticate through an organization’s established identity provider rather than maintaining an isolated login process for Snowflake. This can centralize identity management and align Snowflake access with enterprise authentication policies. Architects should consider identity-provider availability, user lifecycle management, role mapping, authentication policies, and emergency access procedures. Federation addresses authentication, while Snowflake roles and privileges determine authorization after the user has authenticated. A strong enterprise architecture therefore treats identity federation and database authorization as connected but distinct layers.

Question 400

Which design most safely handles temporary dependency failures?

  1. Retry with bounded backoff
  2. Retry indefinitely without delay
  3. Ignore all dependency errors
  4. Reuse failed responses forever

Correct Answer: 1

Explanation:

Retrying with bounded backoff provides a controlled response to temporary dependency failures. The application waits between attempts, limits the number of retries, and eventually reports failure when recovery does not occur. This prevents an unavailable dependency from generating an uncontrolled request storm. Architects should also distinguish transient failures from permanent conditions such as invalid credentials or malformed requests. For data-changing operations, idempotency should accompany retry logic so that a successful request followed by a lost response does not produce duplicate effects. Combining bounded retries, backoff, timeouts, and clear failure handling creates a more resilient integration architecture.