View Full Google Professional Cloud Database Engineer Exam Dumps and Practice Test Dumps
Question 121
Which Cloud SQL connectivity option keeps database traffic on internal Google Cloud networking?
- Public IP with unrestricted access
- Internet-based database proxy
- External load balancer
- Private IP connectivity
Correct Answer: 4
Explanation:
Private IP connectivity allows a Cloud SQL instance to communicate with resources through internal Google Cloud networking rather than exposing the database through a public address. This approach can reduce exposure to the public internet and simplify network-based access controls. Applications running in a VPC can connect to the database using private addressing when the required networking configuration is established. Public IP can still be useful in specific architectures, but it requires appropriate authorization and network controls. For workloads that should keep database traffic within private cloud networking, private IP is generally the relevant connectivity mechanism.
Question 122
What should guide the choice of a database backup retention period?
- Current CPU utilization
- Recovery and retention requirements
- Number of application containers
- Average network packet size
Correct Answer: 2
Explanation:
Backup retention should be determined by recovery objectives, operational requirements, and applicable organizational or regulatory retention policies. Keeping backups for too short a period can prevent recovery from an older corruption or deletion event. Keeping them unnecessarily long can increase storage consumption and management overhead. Database administrators should understand how far back the organization may need to recover data and align retention with those requirements. CPU usage, container count, and packet size do not directly determine the appropriate historical recovery window. A documented retention policy provides a consistent basis for configuring and reviewing backup settings.
Question 123
Which Firestore feature supports queries that require multiple filtering or ordering fields?
- Composite indexes
- Read replicas
- Stored procedures
- Foreign-key constraints
Correct Answer: 1
Explanation:
Firestore uses indexes to support efficient query execution, and composite indexes are important when a query combines multiple fields in ways that require an index configuration beyond a simple single-field index. When an application introduces a query involving several filters or an ordering requirement, Firestore may indicate that a composite index is needed. Designing indexes around actual query patterns helps applications retrieve documents efficiently. Firestore does not use traditional relational concepts such as foreign-key constraints or stored procedures for this purpose. Read replicas are also not the mechanism used to satisfy compound query indexing requirements.
Question 124
What is a major consideration when designing a Bigtable row key?
- Maximizing duplicate row identifiers
- Concentrating writes on one prefix
- Distributing access across key ranges
- Making every row key identical
Correct Answer: 3
Explanation:
Bigtable performance depends heavily on how rows are distributed across the underlying keyspace. A row-key design that concentrates most traffic into a narrow range can create hotspots and limit effective distribution of workload. A better design spreads frequently accessed rows and writes across appropriate key ranges while still supporting the application’s retrieval patterns. Row keys should therefore be designed with both access behavior and distribution in mind. Simply making identifiers unique is not enough if requests repeatedly target the same area of the keyspace. Workload-aware row-key design is a fundamental Bigtable performance consideration.
Question 125
What is a key benefit of using a database connection pool?
- It permanently increases storage capacity
- It reuses established database connections
- It eliminates all transaction conflicts
- It automatically redesigns database schemas
Correct Answer: 2
Explanation:
A connection pool maintains a managed collection of database connections that applications can reuse instead of creating a new connection for every request. Reusing connections can reduce connection establishment overhead and help applications handle repeated database access more efficiently. Pool configuration should still respect the database’s connection capacity and application concurrency. A pool does not increase storage capacity, redesign schemas, or eliminate transaction conflicts. Poorly sized pools can actually create resource pressure by maintaining more connections than the database can efficiently support. Effective pooling balances application demand with database connection limits.
Question 126
Which approach helps estimate database capacity before a major workload increase?
- Ignore historical workload measurements
- Size resources from storage alone
- Base capacity only on development traffic
- Model expected workload growth
Correct Answer: 4
Explanation:
Capacity planning should consider how workload characteristics are expected to change over time. Modeling projected request rates, data growth, concurrent users, storage requirements, and performance expectations provides a more useful basis for resource planning than relying only on current measurements. Historical production trends can help establish a baseline, while expected business growth can identify future pressure points. Development traffic is often not representative of production behavior, and storage volume alone does not capture compute or throughput requirements. A capacity model should therefore connect anticipated workload growth with measurable resource and performance requirements.
Question 127
Which database security principle grants only the permissions required for a task?
- Least privilege
- Shared administration
- Open authorization
- Broad delegation
Correct Answer: 1
Explanation:
The principle of least privilege means that users, applications, and service identities receive only the permissions necessary to perform their intended functions. Limiting permissions reduces the potential impact of compromised credentials, configuration mistakes, or unauthorized activity. Database access should therefore be reviewed according to actual responsibilities rather than granting broad administrative rights for convenience. Least privilege can be applied to service accounts, database roles, IAM permissions, and other authorization mechanisms. Periodic access reviews can further identify permissions that are no longer necessary and help maintain an appropriately restricted security posture.
Question 128
What should an administrator examine when investigating an unexpectedly slow query?
- Only database storage capacity
- Only application source-code length
- Query execution behavior
- Number of user passwords
Correct Answer: 3
Explanation:
Investigating a slow query requires examining how the database executes that query. Execution plans, scanned data, filtering behavior, joins, indexes, resource consumption, and observed latency can reveal where time is being spent. The administrator should use measured database behavior rather than assuming that storage size or application code length is responsible. Query optimization is most effective when changes are validated against actual performance measurements. Depending on the database engine, available monitoring and query-analysis tools can help identify inefficient access paths or expensive operations. This evidence-based approach avoids making unnecessary database changes without understanding their effect.
Question 129
What should be evaluated before adding many database indexes?
- Only the number of database users
- Whether indexes change the application language
- Whether backups become unnecessary
- Query benefits and maintenance overhead
Correct Answer: 4
Explanation:
Indexes can significantly improve read performance, but they also introduce storage and maintenance costs. Every additional index may require resources when rows are inserted, updated, or deleted because the relevant index structures must also be maintained. Before creating an index, administrators should examine actual query patterns and determine whether the expected performance improvement justifies the additional overhead. Index usage statistics and query performance measurements can help validate decisions after deployment. Adding indexes indiscriminately may increase write costs without producing meaningful benefits. Effective indexing therefore balances query improvement against ongoing operational and resource requirements.
Question 130
What is an appropriate reason to separate analytical processing from an operational database?
- To prevent analytical workloads from consuming transactional resources
- To remove all database backups
- To eliminate application authentication
- To guarantee zero network latency
Correct Answer: 1
Explanation:
Analytical workloads can generate large scans and substantial resource consumption that may interfere with transactional operations when both workload types use the same database environment. Separating analytical processing from operational transactions can protect the responsiveness and availability of the transactional workload. A dedicated analytical platform can be designed around large-scale aggregation, reporting, and exploration rather than short transactional operations. This separation does not eliminate backups or authentication requirements, and it cannot guarantee zero network latency. The primary architectural benefit is workload isolation, allowing each environment to be optimized for its distinct performance and processing characteristics.
Question 131
Which behavior can indicate transaction contention in a database?
- Faster backups after every transaction
- Lower storage utilization
- Transactions waiting on conflicting resources
- Fewer application configuration files
Correct Answer: 3
Explanation:
Transaction contention occurs when concurrent transactions compete for resources such as locked rows or other database-managed objects. One indication is that transactions spend increasing amounts of time waiting for resources held by other transactions. High contention can reduce throughput and increase application latency. Administrators should examine transaction behavior, lock information, wait events, and workload patterns when investigating this type of problem. Reducing unnecessary transaction duration, improving access patterns, or adjusting application concurrency may help depending on the underlying cause. Storage utilization and application configuration-file counts do not directly identify transaction contention.
Question 132
Which practice helps protect database credentials used by an application?
- Embedding passwords directly in source files
- Using managed secret storage
- Sharing one administrator password publicly
- Placing credentials in client-side code
Correct Answer: 2
Explanation:
Database credentials should be protected using appropriate secret-management mechanisms rather than being embedded directly in source code or exposed to application clients. Managed secret storage can provide controlled access, auditing, and mechanisms for updating sensitive values without requiring credentials to be hard-coded throughout an application. Access to the secret should itself follow least-privilege principles. Credentials stored in source repositories can remain exposed even after the code is changed, while client-side storage can expose secrets to untrusted users. Centralized secret management provides a safer operational model for handling database authentication information.
Question 133
What should be verified before changing a production database schema?
- Only the application’s logo
- Only the developer workstation model
- Only the database hostname
- Application compatibility with the change
Correct Answer: 4
Explanation:
Schema changes can affect queries, application code, reports, integrations, stored logic, and other database consumers. Before applying a production change, administrators should identify dependent components and verify that they remain compatible with the new schema. Testing the change in an appropriate non-production environment can expose failures before deployment. A rollback or mitigation procedure should also be considered for changes with meaningful operational risk. The database hostname or workstation model does not establish application compatibility. A controlled schema-change process connects database modifications with the behavior of every important consumer.
Question 134
Which metric is most directly useful for understanding database request demand?
- Requests per second
- Number of source files
- Screen resolution
- Employee desk count
Correct Answer: 1
Explanation:
Requests per second is a direct measure of the volume of database requests arriving during a given period. Tracking request rate helps administrators understand workload intensity, identify traffic spikes, establish capacity requirements, and correlate demand with latency or resource consumption. Other metrics, such as CPU utilization, storage consumption, and connection counts, provide additional context, but request rate specifically describes incoming workload volume. Monitoring it over time can also reveal trends that are useful for capacity planning. The goal is to connect observed demand with database performance and available capacity rather than relying on unrelated infrastructure or organizational measurements.
Question 135
Why should database migration validation include application-level testing?
- Database size is the only migration concern
- Technical data transfer alone may not prove application correctness
- Successful file copying guarantees correct behavior
- Network throughput replaces functional validation
Correct Answer: 2
Explanation:
A migration can successfully transfer data while still causing application-level problems. Differences in schema behavior, data types, constraints, queries, transactions, permissions, or engine-specific functionality may not become visible through a simple data-copy verification. Application-level testing confirms that important workflows continue to behave correctly against the migrated database. Functional validation should therefore complement technical checks such as row counts, data comparisons, and integrity validation. Testing representative application operations before final cutover can identify compatibility issues while remediation is still possible. Migration success should be measured by both data correctness and expected application behavior.
Question 136
What does a database durability requirement primarily address?
- How users authenticate
- How quickly queries are written
- Whether committed data survives failures
- How many indexes are created
Correct Answer: 3
Explanation:
Durability concerns whether committed database data remains preserved despite failures or interruptions. A durable system uses appropriate storage and recovery mechanisms so that successfully committed information is not lost when infrastructure or software failures occur. Durability is distinct from availability, which focuses on whether the service remains accessible, and performance, which concerns response behavior and throughput. When selecting a database architecture, durability requirements should be evaluated alongside recovery objectives and business impact. Backup and replication strategies can provide additional protection, but the exact mechanisms depend on the database service and the workload’s recovery requirements.
Question 137
What is a useful purpose of database audit logging?
- Tracking access and administrative activity
- Increasing application screen size
- Replacing all authorization controls
- Removing the need for backups
Correct Answer: 1
Explanation:
Database audit logging can provide records of access and administrative activity, helping organizations investigate events, support compliance requirements, and understand how database resources are being used. Audit information can help identify who accessed particular resources or performed specific administrative actions, depending on the configured logging capabilities. Logging does not replace authorization because preventive access controls are still required. It also does not provide data recovery, so backups remain necessary. Effective audit logging should be configured with appropriate retention, access protection, and monitoring practices so that recorded information remains useful when an investigation or review is required.
Question 138
What should be included in a database disaster recovery runbook?
- Only the database product name
- Only the current storage size
- Only the application logo
- Recovery procedures and validation steps
Correct Answer: 4
Explanation:
A disaster recovery runbook should provide actionable procedures for restoring database operations after a serious failure. It can include recovery steps, responsible roles, required dependencies, restoration methods, configuration details, communication procedures, and validation checks. Recovery should not be considered complete merely because a database instance becomes available. Administrators should verify data integrity and application functionality after restoration. Periodic exercises can also reveal outdated instructions, missing permissions, or untested assumptions. A well-maintained runbook reduces uncertainty during an incident by providing a documented sequence for executing and validating the recovery process.
Question 139
Which factor is especially important when selecting a database for geographically distributed users?
- Number of development laptops
- Font configuration on client systems
- Data location and latency requirements
- Size of application screenshots
Correct Answer: 3
Explanation:
For geographically distributed users, data placement and network latency can strongly affect application behavior. A database architecture should be evaluated according to where users and applications operate, how data needs to be distributed, and what response times the workload requires. Some applications may require data to remain within specific geographic locations because of organizational or regulatory requirements. Others may prioritize low-latency access across multiple regions. These considerations should be assessed together with consistency, availability, scalability, and cost requirements. Database selection should therefore reflect the workload’s geographic characteristics rather than focusing solely on application-development details.
Question 140
What is a primary purpose of testing database restore procedures?
- To increase the number of application features
- To verify that backups can support actual recovery
- To eliminate database monitoring
- To reduce all storage requirements
Correct Answer: 2
Explanation:
A backup is useful only if it can be successfully restored when recovery is required. Restore testing verifies that backup data is accessible, recovery procedures work as expected, and the resulting database can support required validation activities. Testing may also expose missing dependencies, incorrect permissions, incomplete procedures, or unexpected restoration times. Organizations should perform restoration exercises appropriate to the importance of the workload and document the results. Restore testing is therefore an important component of disaster recovery planning. Simply confirming that a backup file exists does not demonstrate that the organization can successfully recover the database from it.