Google Professional Cloud Database Engineer Exam Practice Questions (P. 2)
- Full Access (132 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #6
You are setting up a Bare Metal Solution environment. You need to update the operating system to the latest version. You need to connect the Bare Metal Solution environment to the internet so you can receive software updates. What should you do?
- ASetup a static external IP address in your VPC network.
- BSet up bring your own IP (BYOIP) in your VPC.
- CSet up a Cloud NAT gateway on the Compute Engine VM.Most Voted
- DSet up Cloud NAT service.
Correct Answer:
C
C

To connect a Bare Metal Solution (BMS) environment to the internet for updates, setting up a Cloud NAT gateway on a Compute Engine VM, as per the Google Cloud documentation, is the recommended approach. This setup allows the BMS to access the internet via a managed NAT service provided on a VM, ensuring control and security while enabling the necessary updates. While Cloud NAT service is another viable option, the specific mention in the documentation of using a Cloud NAT gateway on a VM clarifies its preferred use for BMS environments.
send
light_mode
delete
Question #7
Your organization is running a MySQL workload in Cloud SQL. Suddenly you see a degradation in database performance. You need to identify the root cause of the performance degradation. What should you do?
- AUse Logs Explorer to analyze log data.
- BUse Cloud Monitoring to monitor CPU, memory, and storage utilization metrics.Most Voted
- CUse Error Reporting to count, analyze, and aggregate the data.
- DUse Cloud Debugger to inspect the state of an application.
Correct Answer:
B
B

Monitoring the primary resources is fundamental when diagnosing performance issues in MySQL operating under Cloud SQL. By utilizing Cloud Monitoring, you can effectively pinpoint the root causes like CPU saturation, excessive storage use, or memory constraints. This approach is not just about seeing what went haywire but understanding how close you are to hit performance limits, which impacts the overall health and response of the database. This is what makes monitoring the key, rather than delving into logs or error reports which might not show real-time resource stats.
send
light_mode
delete
Question #8
You work for a large retail and ecommerce company that is starting to extend their business globally. Your company plans to migrate to Google Cloud. You want to use platforms that will scale easily, handle transactions with the least amount of latency, and provide a reliable customer experience. You need a storage layer for sales transactions and current inventory levels. You want to retain the same relational schema that your existing platform uses. What should you do?
- AStore your data in Firestore in a multi-region location, and place your compute resources in one of the constituent regions.
- BDeploy Cloud Spanner using a multi-region instance, and place your compute resources close to the default leader region.Most Voted
- CBuild an in-memory cache in Memorystore, and deploy to the specific geographic regions where your application resides.
- DDeploy a Bigtable instance with a cluster in one region and a replica cluster in another geographic region.
Correct Answer:
B
B

For a company extending globally while needing to maintain a relational schema, Cloud Spanner is the optimal choice. It supports a relational database structure and ensures minimal latency through its multi-region capabilities. This infrastructure allows for seamless global scaling and high availability, meeting the prerequisites of handling worldwide transactions efficiently.
send
light_mode
delete
Question #9
You host an application in Google Cloud. The application is located in a single region and uses Cloud SQL for transactional data. Most of your users are located in the same time zone and expect the application to be available 7 days a week, from 6 AM to 10 PM. You want to ensure regular maintenance updates to your Cloud SQL instance without creating downtime for your users. What should you do?
- AConfigure a maintenance window during a period when no users will be on the system. Control the order of update by setting non-production instances to earlier and production instances to later.Most Voted
- BCreate your database with one primary node and one read replica in the region.
- CEnable maintenance notifications for users, and reschedule maintenance activities to a specific time after notifications have been sent.
- DConfigure your Cloud SQL instance with high availability enabled.
Correct Answer:
A
A

Setting up your maintenance window when no users are active is a simple and effective method to ensure your application remains available during key operational hours. Specifically, in scenarios where application usage is predictably low, such as overnight periods for users in the same time zone, scheduling updates during these windows minimizes impact and avoids downtime. This ensures that essential updates occur without disrupting user experience, aligning maintenance with off-peak hours. Additionally, controlling the order of updates by prioritizing non-production instances before production ones further ensures stability and reduces risks during rollout.
send
light_mode
delete
Question #10
Your team recently released a new version of a highly consumed application to accommodate additional user traffic. Shortly after the release, you received an alert from your production monitoring team that there is consistently high replication lag between your primary instance and the read replicas of your Cloud SQL for MySQL instances. You need to resolve the replication lag. What should you do?
- AIdentify and optimize slow running queries, or set parallel replication flags.Most Voted
- BStop all running queries, and re-create the replicas.
- CEdit the primary instance to upgrade to a larger disk, and increase vCPU count.
- DEdit the primary instance to add additional memory.
Correct Answer:
C
C

Increasing the primary instance's resources, such as vCPUs and disk capacity, can seem like a sound way to handle increased loads leading to replication lag; however, this isn't typically the most direct or effective first step. More commonly, addressing issues like query optimization or setting appropriate replication configurations targets the root cause of replication lags in scenarios of high workload transitions. Optimal query performance reduces the processing workload on the primary, allowing the replicas to catch up more efficiently. Users might observe better improvements in replication lag by reevaluating the query and schema optimizations before scaling hardware resources.
send
light_mode
delete
All Pages