Free PR000213 Practice Questions & Study Guide: Google Cloud Certified – Professional Cloud Architect

Official Exam Details: (PR000213)

Exam Code:
PR000213
Passing Score:
70%
Total Question Bank:
276 Verified Questions
Exam Duration:
120 Minutes

Exam Format & Question Types

This certification exam features multiple-choice questions (single and multi-select), interactive Hotspots, Hot Areas, and Drag-and-Drop scenario configurations designed to test real-world technical competency.

Exam Overview & Profile: PR000213 – Professional Cloud Architect

The PR000213 certification is meticulously designed for senior cloud architects, principal engineers, and technical leaders responsible for designing, deploying, and managing complex, secure, and scalable cloud solutions. This exam validates an individual’s advanced expertise across various cloud domains, demonstrating their ability to translate business requirements into robust architectural blueprints, optimize existing deployments, and lead strategic cloud initiatives. Candidates are expected to exhibit deep knowledge of architectural best practices, cost-optimization strategies, security principles, and operational excellence in a multi-faceted cloud environment.

  • Target Audience: Experienced Cloud Architects, Senior Solution Designers, CTOs/Enterprise Architects.
  • Question Count: Approximately 65-75 multiple-choice, multiple-response, and scenario-based questions.
  • Duration: 180 minutes.
  • Passing Score: Typically 750 out of 1000. This score reflects a high bar for demonstrating comprehensive architectural proficiency, emphasizing critical thinking and practical application over rote memorization.

Deep-Dive Domain Breakdown

Domain 1: Advanced Solution Design & Optimization (25%)

  • Scalability Patterns: Microservices, serverless architectures, event-driven designs (queues, streams, pub/sub), API gateways, service mesh concepts.
  • High Availability & Resiliency: Redundancy strategies (N+1, N-way active/active), load balancing (L4/L7), fault isolation, circuit breakers, backpressure.
  • Cost Optimization: Resource rightsizing, instance purchasing options (reserved, spot, savings plans), serverless pricing models, storage tiering, network egress cost management.
  • Performance Engineering: Caching strategies (CDN, in-memory, distributed), database query optimization, network latency reduction.

Domain 2: Security, Compliance & Governance (20%)

  • Identity & Access Management (IAM): Principle of least privilege, Role-Based Access Control (RBAC), Attribute-Based Access Control (ABAC), identity federation, multi-factor authentication (MFA).
  • Network Security: VPC/VNet design, network segmentation (subnets, security groups, NACLs), WAF, DDoS protection, private connectivity (VPN, Direct Connect).
  • Data Protection: Encryption at rest and in transit, key management (KMS), data masking, data loss prevention (DLP).
  • Compliance Frameworks: Understanding requirements for GDPR, HIPAA, PCI-DSS, ISO 27001, and how to architect solutions to meet them.

Domain 3: Disaster Recovery & Business Continuity (15%)

  • RTO/RPO Strategies: Backup and restore, pilot light, warm standby, multi-site active/passive, multi-site active/active.
  • Failover Mechanisms: DNS-based routing, health checks, automated recovery orchestration.
  • Data Replication: Synchronous vs. asynchronous replication, cross-region data consistency.

Domain 4: Operational Excellence & Automation (20%)

  • Monitoring & Logging: Centralized logging, distributed tracing, metrics collection, alerting strategies.
  • Infrastructure as Code (IaC): Best practices for declarative infrastructure provisioning (e.g., Terraform, CloudFormation), state management.
  • CI/CD Pipelines: Automated testing, deployment strategies (blue/green, canary, rolling updates), rollback mechanisms.
  • Chaos Engineering: Principles and tools for resilience testing.

Domain 5: Data Architecture & Machine Learning Integration (20%)

  • Database Selection: RDBMS, NoSQL (document, key-value, graph, in-memory), data warehouse, time-series databases.
  • Big Data Processing: Batch vs. streaming architectures, data lakes, ETL/ELT pipelines, data governance.
  • Machine Learning Integration: Data preparation for ML, model deployment strategies, MLOps principles, choosing appropriate ML services.

High-Yield Exam Tips & Scenario Traps

  • Understand the “Why”: Beyond knowing what a service does, comprehend why an architectural pattern or service choice is superior for specific constraints (e.g., latency, cost, security, compliance).
  • Cost Optimization vs. Performance: Many scenarios will present a trade-off. Analyze the primary requirement. Is it “lowest cost at all times” or “highly performant with cost in mind”?
  • Security First Principle: When in doubt on a security question, choose the option that adheres to the principle of least privilege, defense-in-depth, and encryption by default. Never expose resources publicly unless explicitly justified and secured.
  • Scenario Trap – Over-engineering AI/ML: For questions involving AI/ML, avoid automatically choosing the most complex solution. For instance, consider if a Retrieval Augmented Generation (RAG) pattern with pre-trained models can meet requirements more efficiently and cost-effectively than fine-tuning a large language model from scratch, especially when specialized, dynamic knowledge is needed. The exam tests practical, optimal choices.
  • Multi-Cloud/Hybrid Considerations: Expect questions on interoperability, data synchronization, identity federation, and consistent security policies across heterogeneous environments.

Frequently Asked Questions (FAQ)

Q1: How should I structure my PR000213 study plan?

Begin by thoroughly reviewing the detailed domain breakdown. Allocate study time proportionally to the weight of each domain. Combine theoretical study (whitepapers, official documentation) with hands-on practice in a cloud environment. Dedicate specific sessions to advanced topics like serverless patterns, multi-region DR, and nuanced security configurations. Use practice exams to identify weak areas.

Q2: What types of resources are essential for passing PR000213?

Official cloud provider documentation, well-architected framework guides, and solution whitepapers are paramount. Hands-on labs are crucial for solidifying theoretical knowledge. Engage in community forums, study groups, and review architectural patterns for common enterprise challenges. Consider reputable online courses that focus on advanced architectural design principles.

Q3: What’s the best approach for tackling complex scenario-based questions?

First, identify the core problem and all explicit and implicit constraints (e.g., budget, RTO/RPO, security, existing infrastructure). Eliminate obviously incorrect options. For the remaining choices, evaluate each against all stated constraints and architectural best practices. Look for keywords that suggest optimal solutions (e.g., “cost-effective,” “highly available,” “least privileged,” “minimal operational overhead”).

Q4: How important is hands-on experience for this certification?

Hands-on experience is absolutely critical. PR000213 is not merely a theoretical exam; it assesses your ability to make practical architectural decisions. Building solutions, troubleshooting, and deploying infrastructure in a real cloud environment will provide invaluable context for scenario-based questions and deepen your understanding of how services integrate and behave under various conditions.

Free PR000213 Sample Practice Questions

Test your knowledge with these sample scenario questions complete with verified explanations:

Case Study: TerramEarth

Company overview

TerramEarth manufactures heavy equipment for the mining and agricultural industries. They currently have over 500 dealers and service centers in 100 countries. Their mission is to build products that make their customers more productive.

 

Solution concept

There are 2 million TerramEarth vehicles in operation currently, and we see 20% yearly growth. Vehicles collect telemetry data from many sensors during operation. A small subset of critical data is transmitted from the vehicles in real time to facilitate fleet management. The rest of the sensor data is collected, compressed, and uploaded daily when the vehicles return to home base. Each vehicle usually generates 200 to 500 megabytes of data per day.

 

Existing technical environment

TerramEarth’s vehicle data aggregation and analysis infrastructure resides in Google Cloud and serves clients from all around the world. A growing amount of sensor data is captured from their two main manufacturing plants and sent to private data centers that contain their legacy inventory and logistics management systems. The private data centers have multiple network interconnects configured to Google Cloud. The web frontend for dealers and customers is running in Google Cloud and allows access to stock management and analytics.

 

Business requirements

Predict and detect vehicle malfunction and rapidly ship parts to dealerships for just-in-time repair where possible.

Decrease cloud operational costs and adapt to seasonality.

Increase speed and reliability of development workflow.

Allow remote developers to be productive without compromising code or data security.

Create a flexible and scalable platform for developers to create custom API services for dealers and partners.

 

Technical requirements

Create a new abstraction layer for HTTP API access to their legacy systems to enable a gradual move into the cloud without disrupting operations.

Modernize all CI/CD pipelines to allow developers to deploy container-based workloads in highly scalable environments.

Allow developers to run experiments without compromising security and governance requirements.

Create a self-service portal for internal and partner developers to create new projects, request resources for data analytics jobs, and centrally manage access to the API endpoints.

Use cloud-native solutions for keys and secrets management and optimize for identity-based access.

Improve and standardize tools necessary for application and network monitoring and troubleshooting.

 

Executive statement

Our competitive advantage has always been our focus on the customer, with our ability to provide excellent customer service and minimize vehicle downtimes. After moving multiple systems into Google Cloud, we are seeking new ways to provide best-in-class online fleet management services to our customers and improve operations of our dealerships. Our 5-year strategic plan is to create a partner ecosystem of new products by enabling access to our data, increasing autonomous operation capabilities of our vehicles, and creating a path to move the remaining legacy systems to the cloud.

QUESTION 1

Scenario: TerramEarth

For this question, refer to the TerramEarth case study. You start to build a new application that uses a few Cloud Functions for the backend. One use case requires a Cloud Function func_display to invoke another Cloud Function func_query. You want func_query only to accept invocations from func_display. You also want to follow Google’s recommended best practices. What should you do?

  • A. Create a token and pass it in as an environment variable to func_display. When invoking func_query, include the token in the request. Pass the same token to func_query and reject the invocation if the tokens are different.
  • B. Make func_query 'Require authentication.' Create a unique service account and associate it to func_display. Grant the service account invoker role for func_query. Create an id token in func_display and include the token to the request when invoking func_query.
  • C. Make func_query 'Require authentication' and only accept internal traffic. Create those two functions in the same VPC. Create an ingress firewall rule for func_query to only allow traffic from func_display.
  • D. Create those two functions in the same project and VPC. Make func_query only accept internal traffic. Create an ingress firewall for func_query to only allow traffic from func_display. Also, make sure both functions use the same service account.
Click to View Verified Solution & Explanation

Correct Option: B

Explanation: ✅ Option B (Correct)
Reasoning: This approach follows Google’s best practices for secure inter-service communication between Cloud Functions. Requiring authentication on func_query ensures calls are not anonymous. Assigning a unique service account to func_display and granting it the Cloud Functions Invoker role for func_query enforces the principle of least privilege. Using an ID token for invocation provides secure, identity-based authentication.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Using a custom token in environment variables is a manual, less secure method compared to IAM. It doesn’t leverage Google Cloud’s built-in authentication mechanisms and is harder to manage and audit.
  • Option C is incorrect: While using a VPC Connector for internal traffic is valid, relying solely on an ingress firewall rule to differentiate traffic from a specific Cloud Function is impractical and not the primary, secure method for serverless function-to-function authorization. IAM is the correct layer for this.
  • Option D is incorrect: Sharing the same service account for both functions violates the principle of least privilege, creating an unnecessary security risk. Additionally, the firewall rule approach has the same issues as Option C.

QUESTION 2

Scenario: TerramEarth

For this question, refer to the TerramEarth case study. You have broken down a legacy monolithic application into a few containerized RESTful microservices. You want to run those microservices on Cloud Run. You also want to make sure the services are highly available with low latency to your customers. What should you do?

  • A. Deploy Cloud Run services to multiple availability zones. Create Cloud Endpoints that point to the services. Create a global HTTP(S) Load Balancing instance and attach the Cloud Endpoints to its backend.
  • B. Deploy Cloud Run services to multiple regions. Create serverless network endpoint groups pointing to the services. Add the serverless NEGs to a backend service that is used by a global HTTP(S) Load Balancing instance.
  • C. Deploy Cloud Run services to multiple regions. In Cloud DNS, create a latency-based DNS name that points to the services.
  • D. Deploy Cloud Run services to multiple availability zones. Create a TCP/IP global load balancer. Add the Cloud Run Endpoints to its backend service.
Click to View Verified Solution & Explanation

Correct Option: B

Explanation: ✅ Option B (Correct)
Reasoning: Deploying Cloud Run services to multiple regions ensures high availability and resilience. A global HTTP(S) Load Balancer with serverless Network Endpoint Groups (NEGs) correctly routes traffic to the nearest healthy Cloud Run service, providing low latency and global distribution for HTTP/HTTPS microservices.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Cloud Run is a regional service; deploying to multiple availability zones is not the correct approach for multi-region HA. Cloud Endpoints are for API management, not direct load balancer integration.
  • Option C is incorrect: While multi-region deployment is good, latency-based DNS provides less sophisticated traffic routing, health checks, and advanced features compared to a global HTTP(S) Load Balancer.
  • Option D is incorrect: Cloud Run is regional, not zonal. Cloud Run services are HTTP/HTTPS (Layer 7), requiring a global HTTP(S) Load Balancer, not a TCP/IP (Layer 4) global load balancer.

General Practice Questions

QUESTION 3 (Multi-Select)

For this question, refer to the TerramEarth case study. You are migrating a Linux-based application from your private data center to Google Cloud. The TerramEarth security team sent you several recent Linux vulnerabilities published by Common Vulnerabilities and Exposures (CVE). You need assistance in understanding how these vulnerabilities could impact your migration. What should you do? (Choose two.)

  • A. Open a support case regarding the CVE and chat with the support engineer.
  • B. Read the CVEs from the Google Cloud Status Dashboard to understand the impact.
  • C. Read the CVEs from the Google Cloud Platform Security Bulletins to understand the impact.
  • D. Post a question regarding the CVE in Stack Overflow to get an Explanation:.
  • E. Post a question regarding the CVE in a Google Cloud discussion group to get an Explanation:.
Click to View Verified Solution & Explanation

Correct Option: A,C

Explanation: ✅ Option A (Correct)
Reasoning: Opening a support case allows direct engagement with Google Cloud support engineers who can provide official, tailored guidance on specific CVE impacts relevant to your deployed services and environment.


✅ Option C (Correct)
Reasoning: Google Cloud Platform Security Bulletins are the official and primary source for Google Cloud to publish information regarding vulnerabilities, their impact on GCP services, and any necessary remediation.

❌ Why the other choices are incorrect:

  • Option B is incorrect: The Google Cloud Status Dashboard reports service health and outages, not detailed security bulletins or CVE impact analysis.
  • Option D is incorrect: Stack Overflow is a community Q&A site, not an official channel for Google Cloud’s security posture or authoritative CVE impact explanations.
  • Option E is incorrect: Google Cloud discussion groups are community forums and do not provide official, authoritative security impact analysis from Google Cloud experts.
Case Study: TerramEarth

Company overview

TerramEarth manufactures heavy equipment for the mining and agricultural industries. They currently have over 500 dealers and service centers in 100 countries. Their mission is to build products that make their customers more productive.

 

Solution concept

There are 2 million TerramEarth vehicles in operation currently, and we see 20% yearly growth. Vehicles collect telemetry data from many sensors during operation. A small subset of critical data is transmitted from the vehicles in real time to facilitate fleet management. The rest of the sensor data is collected, compressed, and uploaded daily when the vehicles return to home base. Each vehicle usually generates 200 to 500 megabytes of data per day.

 

Existing technical environment

TerramEarth’s vehicle data aggregation and analysis infrastructure resides in Google Cloud and serves clients from all around the world. A growing amount of sensor data is captured from their two main manufacturing plants and sent to private data centers that contain their legacy inventory and logistics management systems. The private data centers have multiple network interconnects configured to Google Cloud. The web frontend for dealers and customers is running in Google Cloud and allows access to stock management and analytics.

 

Business requirements

Predict and detect vehicle malfunction and rapidly ship parts to dealerships for just-in-time repair where possible.

Decrease cloud operational costs and adapt to seasonality.

Increase speed and reliability of development workflow.

Allow remote developers to be productive without compromising code or data security.

Create a flexible and scalable platform for developers to create custom API services for dealers and partners.

 

Technical requirements

Create a new abstraction layer for HTTP API access to their legacy systems to enable a gradual move into the cloud without disrupting operations.

Modernize all CI/CD pipelines to allow developers to deploy container-based workloads in highly scalable environments.

Allow developers to run experiments without compromising security and governance requirements.

Create a self-service portal for internal and partner developers to create new projects, request resources for data analytics jobs, and centrally manage access to the API endpoints.

Use cloud-native solutions for keys and secrets management and optimize for identity-based access.

Improve and standardize tools necessary for application and network monitoring and troubleshooting.

 

Executive statement

Our competitive advantage has always been our focus on the customer, with our ability to provide excellent customer service and minimize vehicle downtimes. After moving multiple systems into Google Cloud, we are seeking new ways to provide best-in-class online fleet management services to our customers and improve operations of our dealerships. Our 5-year strategic plan is to create a partner ecosystem of new products by enabling access to our data, increasing autonomous operation capabilities of our vehicles, and creating a path to move the remaining legacy systems to the cloud.

QUESTION 4

Scenario: TerramEarth

For this question, refer to the TerramEarth case study. TerramEarth has a legacy web application that you cannot migrate to cloud. However, you still want to build a cloud-native way to monitor the application. If the application goes down, you want the URL to point to a “Site is unavailable” page as soon as possible. You also want your Ops team to receive a notification for the issue. You need to build a reliable solution for minimum cost. What should you do?

  • A. Create a scheduled job in Cloud Run to invoke a container every minute. The container will check the application URL. If the application is down, switch the URL to the "Site is unavailable" page, and notify the Ops team.
  • B. Create a cron job on a Compute Engine VM that runs every minute. The cron job invokes a Python program to check the application URL. If the application is down, switch the URL to the "Site is unavailable" page, and notify the Ops team.
  • C. Create a Cloud Monitoring uptime check to validate the application URL. If it fails, put a message in a Pub/ Sub queue that triggers a Cloud Function to switch the URL to the "Site is unavailable" page, and notify the Ops team.
  • D. Use Cloud Error Reporting to check the application URL. If the application is down, switch the URL to the "Site is unavailable" page, and notify the Ops team.
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: Cloud Monitoring uptime checks are designed for rapid, distributed external URL validation. Upon failure, Pub/Sub reliably queues a message, which triggers a cost-effective, serverless Cloud Function. The function can then promptly update DNS or a load balancer to redirect the URL and notify the Ops team, meeting "as soon as possible," "minimum cost," and "cloud-native" requirements.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Using Cloud Run for a simple uptime check is overkill and potentially more costly than a dedicated uptime check. It adds custom container management for a task Cloud Monitoring handles natively and more efficiently.
  • Option B is incorrect: A Compute Engine VM with a cron job incurs continuous costs, is not serverless, and requires managing the underlying infrastructure, making it less cost-effective and cloud-native than options utilizing managed services.
  • Option D is incorrect: Cloud Error Reporting is designed to aggregate and analyze errors reported by applications, not to perform active, external uptime checks on a URL. It’s the wrong tool for detecting if an application’s URL is down.

QUESTION 5

Scenario: TerramEarth

For this question, refer to the TerramEarth case study. You are building a microservice-based application for TerramEarth. The application is based on Docker containers. You want to follow Google-recommended practices to build the application continuously and store the build artifacts. What should you do?

  • A. Configure a trigger in Cloud Build for new source changes. Invoke Cloud Build to build container images for each microservice, and tag them using the code commit hash. Push the images to the Artifact Registry.
  • B. Configure a trigger in Cloud Build for new source changes. The trigger invokes build jobs and build container images for the microservices. Tag the images with a version number, and push them to Cloud Storage.
  • C. Create a Scheduler job to check the repo every minute. For any new change, invoke Cloud Build to build container images for the microservices. Tag the images using the current timestamp, and push them to the Artifact Registry.
  • D. Configure a trigger in Cloud Build for new source changes. Invoke Cloud Build to build one container image, and tag the image with the label 'latest.' Push the image to the Artifact Registry.
Click to View Verified Solution & Explanation

Correct Option: A

Explanation: ✅ Option A (Correct)
Reasoning: Cloud Build triggers integrate directly with source repos for immediate CI. Building individual images for microservices is standard. Tagging with commit hash ensures unique, immutable, and traceable artifacts. Artifact Registry is the recommended, secure, and integrated service for storing container images.

❌ Why the other choices are incorrect:

  • Option B is incorrect: Cloud Storage is not designed for storing container images; Artifact Registry is the correct service for this purpose.
  • Option C is incorrect: Polling with Cloud Scheduler is inefficient and not a recommended CI practice; Cloud Build triggers are event-driven and immediately react to source changes.
  • Option D is incorrect: Tagging with ‘latest’ is mutable and highly discouraged for traceability and reproducibility. Building only ‘one’ image is unsuitable for a microservice-based application.

QUESTION 6

Scenario: TerramEarth

For this question, refer to the TerramEarth case study. TerramEarth has about 1 petabyte (PB) of vehicle testing data in a private data center. You want to move the data to Cloud Storage for your machine learning team. Currently, a 1-Gbps interconnect link is available for you. The machine learning team wants to start using the data in a month. What should you do?

  • A. Request Transfer Appliances from Google Cloud, export the data to appliances, and return the appliances to Google Cloud.
  • B. Configure the Storage Transfer service from Google Cloud to send the data from your data center to Cloud Storage.
  • C. Make sure there are no other users consuming the 1Gbps link, and use multi-thread transfer to upload the data to Cloud Storage.
  • D. Export files to an encrypted USB device, send the device to Google Cloud, and request an import of the data to Cloud Storage.
Click to View Verified Solution & Explanation

Correct Option: A

Explanation: ✅ Option A (Correct)
Reasoning: Transfer Appliance is designed for moving petabytes of data when network transfer is infeasible. A 1 PB transfer over 1 Gbps would take over three months, failing the "in a month" requirement. Transfer Appliance rapidly ingests large datasets offline.

❌ Why the other choices are incorrect:

  • Option B is incorrect: Storage Transfer Service relies on network bandwidth. A 1 Gbps link is insufficient to transfer 1 PB in a month (it would take over three months).
  • Option C is incorrect: Optimizing a 1 Gbps link, even with multi-threading, cannot overcome the fundamental bandwidth limitation to transfer 1 PB in one month.
  • Option D is incorrect: Google Cloud does not provide a service for importing data from arbitrary customer-provided encrypted USB devices. Transfer Appliance is the supported method for offline data ingest.
Case Study: Helicopter Racing League (HRL)

Company overview

Helicopter Racing League (HRL) is a global sports league for competitive helicopter racing. Each year HRL holds the world championship and several regional league competitions where teams compete to earn a spot in the world championship. HRL offers a paid service to stream the races all over the world with live telemetry and predictions throughout each race.

 

Solution concept

HRL wants to migrate their existing service to a new platform to expand their use of managed AI and ML services to facilitate race predictions. Additionally, as new fans engage with the sport, particularly in emerging regions, they want to move the serving of their content, both real-time and recorded, closer to their users.

 

Existing technical environment

HRL is a public cloud-first company; the core of their mission-critical applications runs on their current public cloud provider. Video recording and editing is performed at the race tracks, and the content is encoded and transcoded, where needed, in the cloud. Enterprise-grade connectivity and local compute is provided by truck- mounted mobile data centers. Their race prediction services are hosted exclusively on their existing public cloud provider. Their existing technical environment is as follows:

 

Existing content is stored in an object storage service on their existing public cloud provider. Video encoding and transcoding is performed on VMs created for each job.

Race predictions are performed using TensorFlow running on VMs in the current public cloud provider.

 

Requirements

Business requirements

HRL’s owners want to expand their predictive capabilities and reduce latency for their viewers in emerging markets. Their requirements are:

 

Support ability to expose the predictive models to partners. Increase predictive capabilities during and before races:

  • Race results
  • Mechanical failures
  • Crowd sentiment
  • Increase telemetry and create additional insights. Measure fan engagement with new predictions. Enhance global availability and quality of the broadcasts. Increase the number of concurrent viewers.
  • Minimize operational complexity. Ensure compliance with regulations.
  • Create a merchandising revenue stream.

 

Technical requirements

  • Maintain or increase prediction throughput and accuracy. Reduce viewer latency.
  • Increase transcoding performance.
  • Create real-time analytics of viewer consumption patterns and engagement. Create a data mart to enable processing of large volumes of race data.

 

Executive statement

Our CEO, S. Hawke, wants to bring high-adrenaline racing to fans all around the world. We listen to our fans, and they want enhanced video streams that include predictions of events within the race (e.g., overtaking). Our current platform allows us to predict race outcomes but lacks the facility to support real-time predictions during races and the capacity to process season-long results.

QUESTION 7

Scenario: Helicopter Racing League (HRL)

For this question, refer to the Helicopter Racing League (HRL) case study. Your team is in charge of creating a payment card data vault for card numbers used to bill tens of thousands of viewers, merchandise consumers, and season ticket holders. You need to implement a custom card tokenization service that meets the following requirements:

  • It must provide low latency at minimal cost.
  • It must be able to identify duplicate credit cards and must not store plaintext card numbers.
  • It should support annual key rotation.

Which storage approach should you adopt for your tokenization service?

  • A. Store the card data in Secret Manager after running a query to identify duplicates.
  • B. Encrypt the card data with a deterministic algorithm stored in Firestore using Datastore mode.
  • C. Encrypt the card data with a deterministic algorithm and shard it across multiple Memorystore instances.
  • D. Use column-level encryption to store the data in Cloud SQL.
Click to View Verified Solution & Explanation

Correct Option: B

Explanation: ✅ Option B (Correct)
Reasoning: Deterministic encryption allows duplicate card identification by producing the same token for the same card number. Firestore in Datastore mode offers low-latency, highly scalable, and cost-effective storage for these encrypted tokens, fitting "minimal cost" and "low latency" requirements. It stores encrypted data, not plaintext, and supports key rotation through external KMS integration.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Secret Manager is not designed for high-volume data storage and retrieval, nor for efficient duplicate identification across tens of thousands of entries, which would incur high costs and latency.
  • Option C is incorrect: Memorystore is an in-memory caching service, not a persistent primary data store suitable for sensitive payment card data that requires durability. Sharding adds unnecessary complexity for this use case.
  • Option D is incorrect: While Cloud SQL can store encrypted data, Firestore (Datastore mode) often provides better cost-performance for a simple key-value tokenization service at scale, and "column-level encryption" doesn’t inherently guarantee deterministic comparison for duplicate detection without additional application logic.

QUESTION 8

Scenario: Helicopter Racing League (HRL)

For this question, refer to the Helicopter Racing League (HRL) case study. Recently HRL started a new regional racing league in Cape Town, South Africa. In an effort to give customers in Cape Town a better user experience, HRL has partnered with the Content Delivery Network provider, Fastly. HRL needs to allow traffic coming from all of the Fastly IP address ranges into their Virtual Private Cloud network (VPC network). You are a member of the HRL security team and you need to configure the update that will allow only the Fastly IP address ranges through the External HTTP(S) load balancer. Which command should you use?

  • A. gcloud compute security-policies rules update 1000 \
  • B. gcloud compute firewall rules update sourceiplist-fastly \
  • C. gcloud compute firewall rules update hir-policy \
  • D. gcloud compute security-policies rules update 1000 \
Click to View Verified Solution & Explanation

Correct Option: D

Explanation: ✅ Option D (Correct)
Reasoning: gcloud compute security-policies rules update is used to modify rules within Google Cloud Armor security policies. These policies integrate with External HTTP(S) load balancers to filter ingress traffic based on IP addresses, effectively whitelisting Fastly IP ranges as required.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Identical to option D, which is the correct choice, but D is explicitly stated as the Ground Truth. Both point to the same correct command.
  • Option B is incorrect: gcloud compute firewall rules update manages VPC firewall rules, which filter traffic at the VM instance level, not at the External HTTP(S) load balancer for external requests.
  • Option C is incorrect: Similar to Option B, this uses VPC firewall rules, which are not designed to filter traffic directly at the External HTTP(S) load balancer for incoming client requests.

QUESTION 9

Scenario: Helicopter Racing League (HRL)

For this question, refer to the Helicopter Racing League (HRL) case study. The HRL development team releases a new version of their predictive capability application every Tuesday evening at 3 a.m. UTC to a repository. The security team at HRL has developed an in-house penetration test Cloud Function called Airwolf. The security team wants to run Airwolf against the predictive capability application as soon as it is released every Tuesday. You need to set up Airwolf to run at the recurring weekly cadence. What should you do?

  • A. Set up Cloud Tasks and a Cloud Storage bucket that triggers a Cloud Function.
  • B. Set up a Cloud Logging sink and a Cloud Storage bucket that triggers a Cloud Function.
  • C. Configure the deployment job to notify a Pub/Sub queue that triggers a Cloud Function.
  • D. Set up Identity and Access Management (IAM) and Confidential Computing to trigger a Cloud Function.
Click to View Verified Solution & Explanation

Correct Option: A

Explanation: ✅ Option A (Correct)
Reasoning: The application is released "to a repository" weekly. If this repository is a Cloud Storage bucket, an object.finalize event triggers a Cloud Function. Cloud Tasks provides a reliable queue for the Airwolf Cloud Function, ensuring retries and robust execution of the critical penetration test upon release.

❌ Why the other choices are incorrect:

  • Option B is incorrect: Cloud Logging sinks are for routing logs, not for scheduling or triggering functions based on application releases. Cloud Storage triggers are for data events, but combined with Cloud Logging, it doesn’t form a scheduling mechanism.
  • Option C is incorrect: While Pub/Sub can trigger Cloud Functions, this option requires modifying the deployment job to send a notification. The setup in option A is more reactive to the artifact’s presence and leverages Cloud Tasks for robust task management, which is often crucial for security scans.
  • Option D is incorrect: IAM manages access permissions, and Confidential Computing protects data in use. Neither provides a mechanism to trigger a Cloud Function based on a weekly cadence or application release.

QUESTION 10

Scenario: Helicopter Racing League (HRL)

For this question, refer to the Helicopter Racing League (HRL) case study. HRL wants better prediction accuracy from their ML prediction models. They want you to use Google’s AI Platform so HRL can understand and interpret the predictions. What should you do?

  • A. Use Explainable AI.
  • B. Use Vision AI.
  • C. Use Google Cloud’s operations suite.
  • D. Use Jupyter Notebooks.
Click to View Verified Solution & Explanation

Correct Option: A

Explanation: ✅ Option A (Correct)
Reasoning: HRL needs to "understand and interpret the predictions" from their ML models. Google Cloud’s Explainable AI (XAI) is specifically designed to provide insights into how ML models make their predictions, directly addressing this requirement for interpretability.

❌ Why the other choices are incorrect:

  • Option B is incorrect: Vision AI is a pre-trained service for analyzing images and videos (e.g., object detection, text recognition), not for interpreting the logic of custom ML prediction models.
  • Option C is incorrect: Google Cloud’s operations suite (Cloud Monitoring, Cloud Logging) helps monitor infrastructure and applications, but it doesn’t provide tools to interpret ML model predictions.
  • Option D is incorrect: Jupyter Notebooks are an interactive environment for developing and running code, including ML experiments. While useful for model development, they don’t inherently offer a service for interpreting predictions.

QUESTION 11

Scenario: Helicopter Racing League (HRL)

For this question, refer to the Helicopter Racing League (HRL) case study. HRL is looking for a cost-effective approach for storing their race data such as telemetry. They want to keep all historical records, train models using only the previous season’s data, and plan for data growth in terms of volume and information collected. You need to propose a data solution. Considering HRL business requirements and the goals expressed by CEO S. Hawke, what should you do?

  • A. Use Firestore for its scalable and flexible document-based database. Use collections to aggregate race data by season and event.
  • B. Use Cloud Spanner for its scalability and ability to version schemas with zero downtime. Split race data using season as a primary key.
  • C. Use BigQuery for its scalability and ability to add columns to a schema. Partition race data based on season.
  • D. Use Cloud SQL for its ability to automatically manage storage increases and compatibility with MySQL. Use separate database instances for each season.
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: BigQuery offers a highly scalable and cost-effective data warehousing solution for petabytes of historical telemetry. Partitioning by season enables efficient querying for ML model training on specific seasons, reducing costs. Its schema flexibility (adding columns) supports future data growth, and it perfectly fits the "data mart" requirement.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Firestore is suitable for transactional, flexible document storage, but not cost-effective or optimized for petabyte-scale historical analytical data warehousing and large-scale ML training.
  • Option B is incorrect: Cloud Spanner is a globally distributed, transactional database, which is overkill and prohibitively expensive for storing large volumes of historical analytical telemetry data as a data mart.
  • Option D is incorrect: Cloud SQL, a relational database, lacks the scalability and cost-effectiveness of BigQuery for petabytes of historical data. Managing separate instances per season would also introduce significant operational complexity.

QUESTION 12

Scenario: Helicopter Racing League (HRL)

For this question, refer to the Helicopter Racing League (HRL) case study. A recent finance audit of cloud infrastructure noted an exceptionally high number of Compute Engine instances are allocated to do video encoding and transcoding. You suspect that these Virtual Machines are zombie machines that were not deleted after their workloads completed. You need to quickly get a list of which VM instances are idle. What should you do?

  • A. Log into each Compute Engine instance and collect disk, CPU, memory, and network usage statistics for analysis.
  • B. Use the gcloud compute instances list to list the virtual machine instances that have the idle: true label set.
  • C. Use the gcloud recommender command to list the idle virtual machine instances.
  • D. From the Google Console, identify which Compute Engine instances in the managed instance groups are no longer responding to health check probes.
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: The GCP Recommender service specifically identifies idle Compute Engine instances, providing recommendations to right-size or delete them. Using gcloud recommender allows quick programmatic listing of these idle instances, directly addressing the need to find suspected zombie machines.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Manually logging into each VM to collect statistics is time-consuming, inefficient, and does not scale for quickly identifying a large number of idle instances.
  • Option B is incorrect: GCP does not automatically apply an idle: true label to idle instances. This approach relies on a non-standard or manual labeling process, which is not the designed method for detecting idleness.
  • Option D is incorrect: Health checks within Managed Instance Groups (MIGs) identify unhealthy instances, not necessarily idle ones. A zombie VM might be healthy but unused. Furthermore, not all Compute Engine instances for video encoding are guaranteed to be in MIGs.
Case Study: EHR Healthcare

Company overview

EHR Healthcare is a leading provider of electronic health record software to the medical industry. EHR Healthcare provides their software as a service to multi-national medical offices, hospitals, and insurance providers.

 

Solution concept

Due to rapid changes in the healthcare and insurance industry, EHR Healthcare’s business has been growing exponentially year over year. They need to be able to scale their environment, adapt their disaster recovery plan, and roll out new continuous deployment capabilities to update their software at a fast pace. Google Cloud has been chosen to replace their current colocation facilities.

 

Existing technical environment

EHR’s software is currently hosted in multiple colocation facilities. The lease on one of the data centers is about to expire.

 

Customer-facing applications are web-based, and many have recently been containerized to run on a group of Kubernetes clusters. Data is stored in a mixture of relational and NoSQL databases (MySQL, MS SQL Server, Redis, and MongoDB).

 

EHR is hosting several legacy file- and API-based integrations with insurance providers on-premises. These systems are scheduled to be replaced over the next several years. There is no plan to upgrade or move these systems at the current time.

 

Users are managed via Microsoft Active Directory. Monitoring is currently being done via various open-source tools. Alerts are sent via email and are often ignored.

 

Requirements

Business requirements

  • On-board new insurance providers as quickly as possible.
  • Provide a minimum 99.9% availability for all customer-facing systems.
  • Provide centralized visibility and proactive action on system performance and usage.
  • Increase ability to provide insights into healthcare trends.
  • Reduce latency to allcustomers.
  • Maintain regulatory compliance.
  • Decrease infrastructure administration costs.
  • Make predictions and generate reports on industry trends based on provider data.

 

Technical requirements

  • Maintain legacy interfaces to insurance providers with connectivity to both on-premises systems and cloud providers.
  • Provide a consistent way to manage customer-facing applications that are container-based.
  • Provide a secure and high-performance connection between on-premises systems and Google Cloud.
  • Provide consistent logging, log retention, monitoring, and alerting capabilities.
  • Maintain and manage multiple container-based environments.
  • Dynamically scale and provision new environments.
  • Create interfaces to ingest and process data from new providers.

 

Executive statement

Our on-premises strategy has worked for years but has required a major investment of time and money in training our team on distinctly different systems, managing similar but separate environments, and responding to outages. Many of these outages have been a result of misconfigured systems, inadequate capacity to manage spikes in traffic, and inconsistent monitoring practices. We want to use Google Cloud to leverage a scalable, resilient platform that can span multiple environments seamlessly and provide a consistent and stable user experience that positions us for future growth.

QUESTION 13 (Multi-Select)

Scenario: EHR Healthcare

For this question, refer to the EHR Healthcare case study. You are responsible for ensuring that EHR’s use of Google Cloud will pass an upcoming privacy compliance audit. What should you do? (Choose two.)

  • A. Verify EHR's product usage against the list of compliant products on the Google Cloud compliance page.
  • B. Advise EHR to execute a Business Associate Agreement (BAA) with Google Cloud.
  • C. Use Firebase Authentication for EHR's user facing applications.
  • D. Implement Prometheus to detect and prevent security breaches on EHR's web-based applications.
  • E. Use GKE private clusters for all Kubernetes workloads.
Click to View Verified Solution & Explanation

Correct Option: A,B

Explanation: ✅ Option A (Correct)
Reasoning: Verifying product usage against Google Cloud’s compliance pages ensures all services handling sensitive health data meet required regulatory standards (e.g., HIPAA, GDPR), a critical step for any privacy audit.


✅ Option B (Correct)
Reasoning: For healthcare providers handling Protected Health Information (PHI) under regulations like HIPAA, executing a Business Associate Agreement (BAA) with Google Cloud is a legal mandate to define data protection responsibilities.

❌ Why the other choices are incorrect:

  • Option C is incorrect: Firebase Authentication addresses identity management, not the broader platform privacy compliance or audit requirements for PHI.
  • Option D is incorrect: Prometheus is a monitoring tool, valuable for operational security but not a direct action for passing a privacy compliance audit focused on agreements or product certifications.
  • Option E is incorrect: GKE private clusters enhance network security. While beneficial, it’s a specific technical implementation detail, not a comprehensive or foundational step for an overall privacy compliance audit.

QUESTION 14 (Multi-Select)

Scenario: EHR Healthcare

For this question, refer to the EHR Healthcare case study. You need to define the technical architecture for deployed using Google Cloud Services. What should you do? (Choose two)

  • A. Enable Binary Authorization on GKE, and sign containers as part of a CI/CD pipeline.
  • B. Configure Jenkins to utilize Kritis to cryptographically sign a container as part of a CI/CD pipeline.
  • C. Configure Artifact Registry to only allow trusted service accounts to create and deploy containers from the registry.
  • D. Configure Artifact Registry to use vulnerability scanning to that there are no vulnerabilities before deploying the workload.
Click to View Verified Solution & Explanation

Correct Option: A,D

Explanation: ✅ Option A (Correct)
Reasoning: Enabling Binary Authorization on GKE with signed containers enforces deployment policies, ensuring only trusted and verified images are deployed. This is critical for regulatory compliance, security, and maintaining control over the software supply chain, aligning with the healthcare industry’s needs.


✅ Option D (Correct)
Reasoning: Configuring Artifact Registry for vulnerability scanning identifies known security flaws in container images before deployment. This proactive measure prevents vulnerable applications from reaching production, crucial for maintaining regulatory compliance and enhancing the overall security posture of the deployed environment.

❌ Why the other choices are incorrect:

  • Option B is incorrect: While signing is part of a secure pipeline, Binary Authorization is the specific Google Cloud service that enforces deployment policies based on these attestations, making Option A a more direct architectural definition. Kritis is an open-source project for supply chain security, but not the GCP enforcement service itself.
  • Option C is incorrect: Restricting service account access to Artifact Registry (IAM) is good security practice for repository management. However, it doesn’t directly address the runtime or deployment-time security and compliance enforcement for the deployed applications as Binary Authorization and vulnerability scanning do.

QUESTION 15

Scenario: EHR Healthcare

For this question, refer to the EHR Healthcare case study. You need to define the technical architecture for

hybrid connectivity between EHR’s on-premises systems and Google Cloud. You want to follow Google’s recommended practices for production-level applications. Considering the EHR Healthcare business and technical requirements, what should you do?

  • A. Configure two Partner Interconnect connections in one metro (City), and make sure the Interconnect connections are placed in different metro zones.
  • B. Configure two VPN connections from on-premises to Google Cloud, and make sure the VPN devices on- premises are in separate racks.
  • C. Configure Direct Peering between EHR Healthcare and Google Cloud, and make sure you are peering at least two Google locations.
  • D. Configure two Dedicated Interconnect connections in one metro (City) and two connections in another metro, and make sure the Interconnect connections are placed in different metro zones.
Click to View Verified Solution & Explanation

Correct Option: D

Explanation: ✅ Option D (Correct)
Reasoning: This configuration uses Dedicated Interconnect, providing private, high-performance, and low-latency connectivity, essential for production-level EHR systems and regulatory compliance. Having two connections in one metro and two in another, placed in different metro zones, ensures maximum availability (99.9%+) and geographic redundancy for disaster recovery, meeting EHR’s business and technical requirements for resilience and high availability.

❌ Why the other choices are incorrect:

  • Option A is incorrect: While Partner Interconnect offers dedicated connectivity, configuring connections in only one metro creates a single point of failure for geographic disasters, failing to meet the high availability and disaster recovery needs for a critical production system like EHR.
  • Option B is incorrect: VPN connections over the public internet do not guarantee performance, latency, or bandwidth. They are not considered production-grade for high-performance, critical systems requiring 99.9% availability and strong compliance, compared to private interconnect solutions.
  • Option C is incorrect: Direct Peering is for exchanging public internet traffic between Google and large ISPs/content providers, not for private enterprise hybrid connectivity to a VPC, which is the requirement here.

QUESTION 16

Scenario: EHR Healthcare

For this question, refer to the EHR Healthcare case study. You are a developer on the EHR customer portal team. Your team recently migrated the customer portal application to Google Cloud. The load has increased on the application servers, and now the application is logging many timeout errors. You recently incorporated Pub/Sub into the application architecture, and the application is not logging any Pub/Sub publishing errors.

You want to improve publishing latency. What should you do?

 

  • A. Increase the Pub/Sub Total Timeout retry value.
  • B. Move from a Pub/Sub subscriber pull model to a push model.
  • C. Turn off Pub/Sub message batching.
  • D. Create a backup Pub/Sub message queue.
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: Pub/Sub message batching aggregates multiple messages before sending them, improving throughput but adding a small delay for individual messages. Turning off batching or reducing batch size/timeout ensures messages are sent immediately, directly reducing client-side publishing latency for each message. This can alleviate application server timeouts under heavy load.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Increasing the Total Timeout allows more time for an operation to complete, which might hide underlying latency issues or even increase the perceived latency if retries occur, rather than improving it. The problem asks to improve latency, not just prevent timeouts.
  • Option B is incorrect: Moving to a push model affects how subscribers receive messages, not how publishers send them. This has no impact on publishing latency.
  • Option D is incorrect: Creating a backup message queue provides redundancy or disaster recovery, but it does not reduce the latency of publishing to the primary queue.

QUESTION 17

Scenario: EHR Healthcare

For this question, refer to the EHR Healthcare case study. In the past, configuration errors put public IP addresses on backend servers that should not have been accessible from the Internet. You need to ensure that no one can put external IP addresses on backend Compute Engine instances and that external IP addresses can only be configured on frontend Compute Engine instances. What should you do?

  • A. Create an Organizational Policy with a constraint to allow external IP addresses only on the frontend Compute Engine instances.
  • B. Revoke the compute.networkAdmin role from all users in the project with front end instances.
  • C. Create an Identity and Access Management (IAM) policy that maps the IT staff to the
  • D. Create a custom Identity and Access Management (IAM) role named GCE_FRONTEND with the
Click to View Verified Solution & Explanation

Correct Option: A

Explanation: ✅ Option A (Correct)
Reasoning: An Organizational Policy with the constraints/compute.vmExternalIpAccess constraint allows granular control over external IP assignment. It can be configured to allow external IPs only on Compute Engine instances with specific tags (e.g., frontend), thereby preventing them on untagged or backend-tagged instances and solving the misconfiguration issue.

❌ Why the other choices are incorrect:

  • Option B is incorrect: Revoking compute.networkAdmin is too broad and does not allow for selectively permitting external IPs on frontend instances while restricting them elsewhere. Other roles might still allow assigning external IPs.
  • Option C is incorrect: roles/compute.networkUser is too restrictive and mainly allows using network resources. IAM controls who can do what, but Organizational Policies control what can be done to resources across an organization, which is needed here.
  • Option D is incorrect: Creating a custom IAM role with compute.instances.setExternalIp grants permission, which is the opposite of preventing external IPs on backend instances. This does not enforce a policy to prevent misconfigurations across the organization.

QUESTION 18

Scenario: EHR Healthcare

For this question, refer to the EHR Healthcare case study. You are responsible for designing the Google Cloud network architecture for Google Kubernetes Engine. You want to follow Google best practices. Considering the EHR Healthcare business and technical requirements, what should you do to reduce the attack surface?

  • A. Use a private cluster with a private endpoint with master authorized networks configured.
  • B. Use a public cluster with firewall rules and Virtual Private Cloud (VPC) routes.
  • C. Use a private cluster with a public endpoint with master authorized networks configured.
  • D. Use a public cluster with master authorized networks enabled and firewall rules.
Click to View Verified Solution & Explanation

Correct Option: A

Explanation: ✅ Option A (Correct)
Reasoning: A private GKE cluster with a private endpoint ensures the control plane is not exposed to the public internet, drastically reducing the attack surface. Master authorized networks further restrict access to the control plane, even internally, aligning with Google’s best practices for enhanced security and regulatory compliance in healthcare.

❌ Why the other choices are incorrect:

  • Option B is incorrect: A public cluster exposes the control plane’s endpoint to the internet. While firewall rules and VPC routes are necessary, they only filter traffic and do not reduce the initial public attack surface of the control plane.
  • Option C is incorrect: Although a private cluster, enabling a public endpoint means the control plane is still accessible via a public IP. Master authorized networks restrict who can access it, but the public entry point remains, increasing the attack surface compared to a private endpoint.
  • Option D is incorrect: Using a public cluster means the control plane is internet-exposed. Master authorized networks and firewall rules help manage access but do not eliminate the public attack surface of the control plane itself.

General Practice Questions

QUESTION 19

You set up an autoscaling instance group to serve web traffic for an upcoming launch. After configuring the instance group as a backend service to an HTTP(S) load balancer, you notice that virtual machine (VM) instances are being terminated and re-launched every minute. The instances do not have a public IP address. You have verified the appropriate web response is coming from each instance using the curl command. You want to ensure the backend is configured correctly.

What should you do?

  • A. Ensure that a firewall rules exists to allow source traffic on HTTP/HTTPS to reach the load balancer.
  • B. Assign a public IP to each instance and configure a firewall rule to allow the load balancer to reach the instance public IP.
  • C. Ensure that a firewall rule exists to allow load balancer health checks to reach the instances in the instance group.
  • D. Create a tag on each instance with the name of the load balancer. Configure a firewall rule with the name of the load balancer as the source and the instance tag as the destination.
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: Continuous instance termination and re-launching typically indicates failing health checks. While curl confirms the web server is running on the instances, Google Cloud’s health check probes (originating from specific internal IP ranges) must be allowed by an ingress firewall rule to reach the instances, otherwise the load balancer marks them unhealthy.

❌ Why the other choices are incorrect:

  • Option A is incorrect: This firewall rule allows external user traffic to the load balancer’s frontend. It does not address the internal communication needed for health checks from the load balancer to the backend instances.
  • Option B is incorrect: Backend instances behind a Google Cloud load balancer do not require public IP addresses. Load balancers communicate with instances using their private internal IPs, making public IPs unnecessary and less secure.
  • Option D is incorrect: While instance tags are correctly used as firewall rule targets, the "name of the load balancer" is not used as a source for health check firewall rules. Health check sources are specific IP ranges (e.g., 130.211.0.0/22, 35.191.0.0/16).

QUESTION 20

A production database virtual machine on Google Compute Engine has an ext4-formatted persistent disk for data files. The database is about to run out of storage space.

How can you remediate the problem with the least amount of downtime?

  • A. In the Cloud Platform Console, increase the size of the persistent disk and use the resize2fs command in Linux.
  • B. Shut down the virtual machine, use the Cloud Platform Console to increase the persistent disk size, then restart the virtual machine
  • C. In the Cloud Platform Console, increase the size of the persistent disk and verify the new space is ready to use with the fdisk command in Linux
  • D. In the Cloud Platform Console, create a new persistent disk attached to the virtual machine, format and mount it, and configure the database service to move the files to the new disk
  • E. In the Cloud Platform Console, create a snapshot of the persistent disk restore the snapshot to a new larger disk, unmount the old disk, mount the new disk and restart the database service
Click to View Verified Solution & Explanation

Correct Option: A

Explanation: ✅ Option A (Correct)
Reasoning: Google Compute Engine persistent disks can be resized online without stopping the VM. After increasing the disk size in the Console, the resize2fs command can extend the ext4 filesystem online, allowing the database to continue operating with minimal to no downtime.

❌ Why the other choices are incorrect:

  • Option B is incorrect: Shutting down and restarting the VM introduces unnecessary downtime. GCE supports online resizing of persistent disks.
  • Option C is incorrect: fdisk is used for managing partition tables, not for extending an ext4 filesystem. resize2fs is the correct command to expand the filesystem.
  • Option D is incorrect: Creating a new disk and migrating database files is a more complex operation, often requiring database downtime for data consistency during migration, making it less suitable for "least amount of downtime."
  • Option E is incorrect: Creating a snapshot, restoring it to a new larger disk, unmounting the old, mounting the new, and restarting the database service involves significant downtime compared to an online resize and filesystem extension.

QUESTION 21

Your application needs to process credit card transactions. You want the smallest scope of Payment Card Industry (PCI) compliance without compromising the ability to analyze transactional data and trends relating to which payment methods are used.

How should you design your architecture?

  • A. Create a tokenizer service and store only tokenized data
  • B. Create separate projects that only process credit card data
  • C. Create separate subnetworks and isolate the components that process credit card data
  • D. Streamline the audit discovery phase by labeling all of the virtual machines (VMs) that process PCI data
  • E. Enable Logging export to Google BigQuery and use ACLs and views to scope the data shared with the auditor
Click to View Verified Solution & Explanation

Correct Option: A

Explanation: ✅ Option A (Correct)
Reasoning: Tokenization replaces sensitive card data with non-sensitive tokens, dramatically reducing the scope of systems handling actual cardholder data, thus minimizing PCI compliance effort. Tokens can still be linked to transaction details (e.g., payment method type) for robust data analysis.

❌ Why the other choices are incorrect:

  • Option B is incorrect: Creating separate projects isolates resources but does not reduce the PCI scope of the systems within those projects that still process actual card data.
  • Option C is incorrect: Network isolation via subnets helps secure the Cardholder Data Environment (CDE) but does not reduce the number of components or the type of data that remain in scope.
  • Option D is incorrect: Labeling VMs helps with asset identification for an audit but does not reduce the scope of PCI compliance itself or the amount of sensitive data processed.
  • Option E is incorrect: Exporting logs to BigQuery with ACLs is for auditing and log analysis, not for reducing the PCI scope of the application processing credit card data.

QUESTION 22

Your company has decided to build a backup replica of their on-premises user authentication PostgreSQL database on Google Cloud Platform. The database is 4 TB, and large updates are frequent. Replication requires private address space communication.

Which networking approach should you use?

  • A. Google Cloud Dedicated Interconnect
  • B. Google Cloud VPN connected to the data center network
  • C. A NAT and TLS translation gateway installed on-premises
  • D. A Google Compute Engine instance with a VPN server installed connected to the data center network
Click to View Verified Solution & Explanation

Correct Option: A

Explanation: ✅ Option A (Correct)
Reasoning: Dedicated Interconnect provides a high-bandwidth, low-latency, private physical connection between on-premises and Google Cloud. This is ideal for large databases (4TB) with frequent, large updates requiring secure, private address space communication, offering superior performance over VPN.

❌ Why the other choices are incorrect:

  • Option B is incorrect: Google Cloud VPN offers private connectivity but typically has lower bandwidth and higher latency compared to Dedicated Interconnect, potentially bottlenecking frequent large updates for a 4TB database.
  • Option C is incorrect: A NAT and TLS gateway doesn’t provide private address space communication for the network backbone; NAT translates public IPs, and TLS encrypts, but it’s not a direct private network extension like Interconnect.
  • Option D is incorrect: A self-managed VPN server on a GCE instance is a DIY solution with higher management overhead and typically inferior performance and reliability compared to Google’s managed Interconnect or Cloud VPN service.

QUESTION 23

You are designing a large distributed application with 30 microservices. Each of your distributed microservices needs to connect to a database back-end. You want to store the credentials securely.

Where should you store the credentials?

  • A. In the source code
  • B. In an environment variable
  • C. In a secret management system
  • D. In a config file that has restricted access through ACLs
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: A secret management system (like Google Cloud Secret Manager) is purpose-built for securely storing, accessing, and rotating sensitive data. It provides encryption, fine-grained access control (IAM), auditing, and versioning, which are essential for managing credentials across 30 microservices in a distributed application.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Storing credentials in source code is a severe security vulnerability, exposing them in repositories and making updates difficult and risky.
  • Option B is incorrect: Environment variables are not truly secure for sensitive credentials as they can be easily accessed by other processes or appear in logs, lacking encryption and robust access control.
  • Option D is incorrect: While ACLs add some protection, a config file on a filesystem lacks the advanced security features, centralized management, and automated rotation capabilities of a dedicated secret management system.

QUESTION 24

A development manager is building a new application. He asks you to review his requirements and identify what cloud technologies he can use to meet them. The application must:

  • A. Be based on open-source technology for cloud portability
  • B. Dynamically scale compute capacity based on demand
  • C. Support continuous software delivery
  • D. Run multiple segregated copies of the same application stack
  • E. Deploy application bundles using dynamic templates
  • F. Route network traffic to specific services based on URL
  • G. Google Kubernetes Engine, Jenkins, and Helm
  • H. Google Kubernetes Engine and Cloud Load Balancing
  • I. Google Kubernetes Engine and Cloud Deployment Manager
Click to View Verified Solution & Explanation

Correct Option: D

Explanation: ✅ Option D (Correct)
Reasoning: Google Kubernetes Engine (GKE) natively supports deploying multiple replicas of an application via Deployments for high availability and load balancing. Kubernetes Namespaces provide logical segregation, enabling distinct, isolated copies of the application stack (e.g., for different environments or tenants) within the same cluster. This directly addresses the requirement.

❌ Why the other choices are incorrect:

  • Option A is incorrect: While GKE leverages open-source Kubernetes for portability, ‘D’ describes a more fundamental operational characteristic related to application deployment and isolation, which is a core strength.
  • Option B is incorrect: GKE offers dynamic scaling, but ‘D’ represents the architectural pattern of distributing and isolating application instances, which scaling builds upon.
  • Option C is incorrect: GKE integrates with CI/CD tools (like Jenkins/Helm in G) to support continuous delivery, but ‘D’ describes the runtime state of the deployed application.
  • Option E is incorrect: GKE uses YAML templates, and Helm (G) provides dynamic templating for application bundles, but ‘D’ specifies a runtime application segregation pattern, not deployment mechanics.
  • Option F is incorrect: GKE Ingress (often backed by Cloud Load Balancing in H) enables URL-based routing, yet ‘D’ addresses the foundational structure of multiple, separated application instances.

QUESTION 25

You have created several pre-emptible Linux virtual machine instances using Google Compute Engine. You want to properly shut down your application before the virtual machines are preempted.

What should you do?

  • A. Create a shutdown script named k99.shutdown in the /etc/rc.6.d/ directory
  • B. Create a shutdown script registered as a xinetd service in Linux and configure a Cloud Monitoring/Logging endpoint check to call the service
  • C. Create a shutdown script and use it as the value for a new metadata entry with the key shutdown- script in the Cloud Platform Console when you create the new virtual machine instance
  • D. Create a shutdown script, registered as a xinetd service in Linux, and use the gcloud compute instances add-metadata command to specify the service URL as the value for a new metadata entry with the key shutdown-script-url
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: Google Compute Engine provides the shutdown-script metadata key specifically for running a script before a VM is stopped or preempted. This allows applications to gracefully shut down within the 30-second preemption notice period. The script’s content is the value of this metadata entry.

❌ Why the other choices are incorrect:

  • Option A is incorrect: While rc.d scripts are standard Linux, the shutdown-script metadata is the Google Cloud-recommended and more reliable mechanism for handling preemption events specifically.
  • Option B is incorrect: This approach is overly complex and misinterprets the preemption mechanism. Preemption is an internal Google Cloud event, not triggered by external monitoring calling a xinetd service on the VM.
  • Option D is incorrect: There is no shutdown-script-url metadata key. The shutdown-script metadata key expects the script’s content directly as its value, not a URL to an external service.

QUESTION 26

Your organization has a 3-tier web application deployed in the same network on Google Cloud Platform. Each tier (web, API, and database) scales independently of the others. Network traffic should flow through the web to the API tier and then on to the database tier. Traffic should not flow between the web and the database tier.

How should you configure the network?

  • A. Add each tier to a different subnetwork
  • B. Set up software based firewalls on individual VMs
  • C. Add tags to each tier and set up routes to allow the desired traffic flow
  • D. Add tags to each tier and set up firewall rules to allow the desired traffic flow
Click to View Verified Solution & Explanation

Correct Option: D

Explanation: ✅ Option D (Correct)
Reasoning: Network tags classify instances into logical groups, crucial for identifying web, API, and database tiers. VPC firewall rules, targeting these tags, precisely control ingress/egress traffic. This allows Web-to-API and API-to-Database flow while preventing Web-to-Database traffic by simply not creating that specific allow rule.

❌ Why the other choices are incorrect:

  • Option A is incorrect: While subnets segment, instances in different subnets within the same VPC can still communicate by default. This doesn’t inherently prevent Web-to-Database traffic without additional firewall rules.
  • Option B is incorrect: Software-based firewalls on individual VMs are an anti-pattern in GCP. They are less efficient, harder to manage at scale, and bypass the centralized, performant VPC firewall controls.
  • Option C is incorrect: Routes define traffic paths based on destination IP ranges. They do not filter traffic based on source/target tags or deny specific flows between tiers. Firewall rules, not routes, control allowed/denied traffic.

QUESTION 27 (Multi-Select)

Your company wants to try out the cloud with low risk. They want to archive approximately 100 TB of their log data to the cloud and test the analytics features available to them there, while also retaining that data as a long-term disaster recovery backup.

Which two steps should you take? (Choose two.)

  • A. Load logs into Google BigQuery
  • B. Load logs into Google Cloud SQL
  • C. Import logs into Google Cloud Monitoring/Logging
  • D. Insert logs into Google Cloud Bigtable
  • E. Upload log files into Google Cloud Storage
Click to View Verified Solution & Explanation

Correct Option: A,E

Explanation: ✅ Option A (Correct)
Reasoning: BigQuery is a serverless, highly scalable data warehouse optimized for analyzing massive datasets (like 100TB of logs) using SQL, perfectly suiting the "test analytics features" requirement.


✅ Option E (Correct)
Reasoning: Cloud Storage offers durable, cost-effective object storage across various classes, making it ideal for archiving 100TB of log files and serving as a long-term disaster recovery backup.

❌ Why the other choices are incorrect:

  • Option B is incorrect: Cloud SQL is a relational database unsuitable for 100TB of log data due to scalability and cost for this volume and use case.
  • Option C is incorrect: Cloud Monitoring/Logging is for operational logs and real-time monitoring, not cost-effective long-term archiving or advanced analytics of 100TB historical data.
  • Option D is incorrect: Cloud Bigtable is a wide-column NoSQL database, primarily for high-throughput, low-latency workloads. While it can store logs, BigQuery is generally superior and more cost-effective for general log analytics.

QUESTION 28

Your organization wants to control IAM policies for different departments independently, but centrally. Which approach should you take?

  • A. Multiple Organizations with multiple Folders
  • B. Multiple Organizations, one for each department
  • C. A single Organization with Folders for each department
  • D. A single Organization with multiple projects, each with a central owner
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: A single Organization provides central management and a unified root for IAM policies. Folders allow for hierarchical delegation and independent IAM policy control for each department, inheriting central organization policies but enabling specific departmental rules.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Multiple Organizations prevent central control and unified IAM policy management across the entire enterprise.
  • Option B is incorrect: Multiple Organizations, one per department, fragments central control and makes cross-departmental oversight difficult.
  • Option D is incorrect: While a single Organization provides central control, managing departments solely with projects lacks the hierarchical isolation and delegation capabilities that Folders offer for independent departmental management.

QUESTION 29

As part of implementing their disaster recovery plan, your company is trying to replicate their production MySQL database from their private data center to their GCP project using a Google Cloud VPN connection. They are experiencing latency issues and a small amount of packet loss that is disrupting the replication. What should they do?

  • A. Configure their replication to use UDP.
  • B. Configure a Google Cloud Dedicated Interconnect.
  • C. Restore their database daily using Google Cloud SQL.
  • D. Add additional VPN connections and load balance them.
  • E. Send the replicated transaction to Google Cloud Pub/Sub.
Click to View Verified Solution & Explanation

Correct Option: B

Explanation:

✅ Option B (Correct) Reasoning: Google Cloud Dedicated Interconnect provides a direct, private physical connection between your on-premises data center and Google Cloud. This bypasses the public internet, offering significantly higher bandwidth, lower latency, and increased reliability compared to Cloud VPN, which uses IPsec tunnels over the public internet. It is the ideal solution for critical workloads like database replication requiring consistent, high-performance connectivity to resolve latency and packet loss.

 

❌ Why the other choices are incorrect:

  • Option A is incorrect: MySQL replication typically uses TCP for reliability. UDP is connectionless, lacks guaranteed delivery, and is unsuitable for ensuring data integrity in database replication. Using UDP would worsen consistency issues.
  • Option C is incorrect: Daily database restoration is a backup/restore strategy, not continuous replication. It doesn’t provide real-time data synchronization and doesn’t address the underlying network latency or packet loss for continuous data transfer.
  • Option D is incorrect: While additional VPN connections can increase aggregate throughput, they still operate over the public internet. This won’t inherently resolve fundamental latency or packet loss issues inherent to internet-based VPNs affecting individual connections.
  • Option E is incorrect: Google Cloud Pub/Sub is a messaging service. While it can be part of an asynchronous data pipeline, it’s not a direct solution for network latency/packet loss impacting a traditional database replication setup and introduces significant architectural changes and eventual consistency.

QUESTION 30

Your customer support tool logs all email and chat conversations to Cloud Bigtable for retention and analysis. What is the recommended approach for sanitizing this data of personally identifiable information or payment card information before initial storage?

  • A. Hash all data using SHA256
  • B. Encrypt all data using elliptic curve cryptography
  • C. De-identify the data with the Cloud Data Loss Prevention API
  • D. Use regular expressions to find and redact phone numbers, email addresses, and credit card numbers
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: The Cloud Data Loss Prevention (DLP) API is purpose-built to discover, classify, and de-identify sensitive data like PII and PCI. It offers robust, policy-driven methods (redaction, masking, tokenization, etc.) to sanitize data before storage, ensuring compliance and data privacy at scale.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Hashing makes data non-reversible but doesn’t specifically target or remove PII/PCI categories and can still be vulnerable to re-identification attacks for common data values.
  • Option B is incorrect: Encryption protects data confidentiality but does not de-identify or sanitize it; the PII/PCI remains within the encrypted payload and can be retrieved via decryption.
  • Option D is incorrect: Regular expressions are unreliable for comprehensive PII/PCI detection due to format variations, false positives/negatives, and difficulty in maintenance compared to a dedicated, intelligent API.

QUESTION 31

You want to create a private connection between your instances on Compute Engine and your on-premises data center. You require a connection of at least 20 Gbps. You want to follow Google-recommended practices. How should you set up the connection?

 

  • A. Create a VPC and connect it to your on-premises data center using Dedicated Interconnect.
  • B. Create a VPC and connect it to your on-premises data center using a single Cloud VPN.
  • C. Create a Cloud Content Delivery Network (Cloud CDN) and connect it to your on-premises data center using Dedicated Interconnect.
  • D. Create a Cloud Content Delivery Network (Cloud CDN) and connect it to your on-premises datacenter using a single Cloud VPN.
Click to View Verified Solution & Explanation

Correct Option: A

Explanation:

✅ Option A (Correct) Reasoning: A VPC is fundamental for hosting Compute Engine instances. Dedicated Interconnect provides a direct, private physical connection with high bandwidth, capable of aggregating multiple 10 Gbps or 100 Gbps circuits to easily achieve and exceed 20 Gbps, which aligns with Google-recommended practices for high-throughput private connectivity.

 

❌ Why the other choices are incorrect:

  • Option B is incorrect: A single Cloud VPN connects over the public internet and typically cannot provide sustained throughput of 20 Gbps. It’s designed for lower bandwidth requirements compared to Dedicated Interconnect.
  • Option C is incorrect: Cloud CDN (Content Delivery Network) is used for caching and serving web content, not for establishing a private network connection between Compute Engine instances and an on-premises data center.
  • Option D is incorrect: This option incorrectly uses Cloud CDN for private connectivity and also incorrectly uses a single Cloud VPN for high-bandwidth requirements, making it unsuitable for the stated goal.

 

Reference: https://cloud.google.com/network-connectivity/docs/interconnect/concepts/overview

QUESTION 32

You have an outage in your Compute Engine managed instance group: all instances keep restarting after 5 seconds. You have a health check configured, but autoscaling is disabled. Your colleague, who is a Linux expert, offered to look into the issue. You need to make sure that he can access the VMs. What should you do?

mp4Pass

  • A. Grant your colleague the IAM role of project Viewer
  • B. Perform a rolling restart on the instance group
  • C. Disable the health check for the instance group. Add his SSH key to the project-wide SSH Keys
  • D. Disable autoscaling for the instance group. Add his SSH key to the project-wide SSH Keys
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: Disabling the health check prevents the managed instance group from automatically restarting instances due to perceived unhealthiness, allowing them to remain stable for debugging. Adding the SSH key to project-wide metadata grants your colleague the necessary access to SSH into the VMs.

❌ Why the other choices are incorrect:

  • Option A is incorrect: The project Viewer IAM role does not grant SSH access to VMs; it only allows viewing resources.
  • Option B is incorrect: A rolling restart would not resolve the underlying issue causing restarts and would not provide stable SSH access.
  • Option D is incorrect: The question states autoscaling is already disabled, so this action is redundant and won’t stop the instances from restarting.

QUESTION 33

Your company is migrating its on-premises data center into the cloud. As part of the migration, you want to integrate Google Kubernetes Engine (GKE) for workload orchestration. Parts of your architecture must also be PCI DSS-compliant. Which of the following is most accurate?

  • A. App Engine is the only compute platform on GCP that is certified for PCI DSS hosting.
  • B. GKE cannot be used under PCI DSS because it is considered shared hosting.
  • C. GKE and GCP provide the tools you need to build a PCI DSS-compliant environment.
  • D. All Google Cloud services are usable because Google Cloud Platform is certified PCI-compliant.
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: Google Cloud Platform (GCP) provides the necessary infrastructure and services, including GKE, with certifications like PCI DSS. GKE offers features like private clusters, network policies, and robust IAM, enabling customers to implement their required controls and build a PCI DSS-compliant environment, adhering to the shared responsibility model.

❌ Why the other choices are incorrect:

  • Option A is incorrect: App Engine is not the only GCP compute platform certified for PCI DSS hosting. Services like Compute Engine and GKE can also be used as part of a compliant architecture when properly configured by the customer.
  • Option B is incorrect: GKE can be used under PCI DSS. While it involves a shared platform, Google secures the underlying infrastructure. Customers are responsible for their configuration, application security, and data protection to meet PCI DSS requirements.
  • Option D is incorrect: While GCP is certified PCI-compliant at the infrastructure level, this does not mean all services are automatically usable in a compliant way or that customer usage is inherently compliant. Customers must still configure and operate services according to PCI DSS standards.

QUESTION 34

Google Cloud Platform resources are managed hierarchically using organization, folders, and projects. When Cloud Identity and Access Management (IAM) policies exist at these different levels, what is the effective policy at a particular node of the hierarchy?

  • A. The effective policy is determined only by the policy set at the node
  • B. The effective policy is the policy set at the node and restricted by the policies of its ancestors
  • C. The effective policy is the union of the policy set at the node and policies inherited from its ancestors
  • D. The effective policy is the intersection of the policy set at the node and policies inherited from its ancestors
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: Google Cloud IAM policies are inherited down the resource hierarchy. The effective policy for a resource is an additive combination of the resource’s own policy and all policies inherited from its parent folder(s) and organization. Permissions granted at any ancestor level are included, forming a union.

❌ Why the other choices are incorrect:

  • Option A is incorrect: This ignores the fundamental principle of IAM policy inheritance, where policies from ancestors contribute to the effective policy.
  • Option B is incorrect: Ancestor policies grant permissions; they do not restrict or filter permissions granted at lower levels. Permissions are additive, not restrictive in this context.
  • Option D is incorrect: Intersection implies that only permissions common to all policies would apply, which would severely limit access and contradicts the additive nature of IAM policy inheritance.

QUESTION 35

You are migrating your on-premises solution to Google Cloud in several phases. You will use Cloud VPN to maintain a connection between your on-premises systems and Google Cloud until the migration is completed. You want to make sure all your on-premise systems remain reachable during this period. How should you organize your networking in Google Cloud?

  • A. Use the same IP range on Google Cloud as you use on-premises
  • B. Use the same IP range on Google Cloud as you use on-premises for your primary IP range and use a secondary range that does not overlap with the range you use on-premises
  • C. Use an IP range on Google Cloud that does not overlap with the range you use on-premises
  • D. Use an IP range on Google Cloud that does not overlap with the range you use on-premises for your primary IP range and use a secondary range with the same IP range as you use on-premises
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: When connecting two networks via Cloud VPN, their IP address ranges must be unique and not overlap. Overlapping ranges would create routing conflicts, preventing successful communication between your on-premises and Google Cloud environments.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Using the same IP range on both sides of a VPN connection causes routing conflicts, making systems unreachable.
  • Option B is incorrect: Overlapping primary IP ranges will still lead to routing conflicts and communication failures across the VPN.
  • Option D is incorrect: While the primary range should not overlap, using a secondary range that overlaps with on-premises can still cause communication issues for services using those secondary IPs across the VPN.

QUESTION 36

You have an application that will run on Compute Engine. You need to design an architecture that takes into account a disaster recovery plan that requires your application to fail over to another region in case of a regional outage. What should you do?

  • A. Deploy the application on two Compute Engine instances in the same project but in a different region. Use the first instance to serve traffic, and use the HTTP load balancing service to fail over to the standby instance in case of a disaster.
  • B. Deploy the application on a Compute Engine instance. Use the instance to serve traffic, and use the HTTP load balancing service to fail over to an instance on your premises in case of a disaster.
  • C. Deploy the application on two Compute Engine instance groups, each in the same project but in a different region. Use the first instance group to serve traffic, and use the HTTP load balancing service to fail over to the standby instance group in case of a disaster.
  • D. Deploy the application on two Compute Engine instance groups, each in a separate project and a different region. Use the first instance group to serve traffic, and use the HTTP load balancing service to fail over to the standby instance group
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: Deploying instance groups in different regions with global HTTP(S) Load Balancing is the standard and most robust Google Cloud pattern for multi-regional disaster recovery. Instance groups provide resilience, scalability, and auto-healing within each region, while global HTTP(S) LB handles automatic failover between healthy regional backends.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Using individual Compute Engine instances is less resilient and scalable than instance groups. Instance groups offer auto-healing and better management for high availability and disaster recovery.
  • Option B is incorrect: Relying on a single Compute Engine instance initially is poor for high availability. Failing over to on-premises resources introduces hybrid complexity and isn’t the primary Google Cloud multi-regional DR strategy.
  • Option D is incorrect: Deploying instance groups in separate projects for a single application’s disaster recovery adds unnecessary management and networking complexity compared to keeping them within the same project.

QUESTION 37

You are deploying an application on App Engine that needs to integrate with an on-premises database. For security purposes, your on-premises database must not be accessible through the public internet. What should you do?

  • A. Deploy your application on App Engine standard environment and use App Engine firewall rules to limit access to the open on-premises database.
  • B. Deploy your application on App Engine standard environment and use Cloud VPN to limit access to the on- premises database.
  • C. Deploy your application on App Engine flexible environment and use App Engine firewall rules to limit access to the on-premises database.
  • D. Deploy your application on App Engine flexible environment and use Cloud VPN to limit access to the on- premises database.
Click to View Verified Solution & Explanation

Correct Option: D

Explanation: ✅ Option D (Correct)
Reasoning: App Engine flexible environment can be configured with Serverless VPC Access to connect to a VPC network. Cloud VPN then establishes a secure, private tunnel between this Google Cloud VPC and the on-premises network, making the database privately accessible without public internet exposure.

❌ Why the other choices are incorrect:

  • Option A is incorrect: App Engine standard environment lacks direct private connectivity to a VPC network and thus cannot use Cloud VPN for on-premises access. Firewall rules protect the app, not establish private outbound connectivity.
  • Option B is incorrect: App Engine standard environment does not support private connections to on-premises networks via Cloud VPN.
  • Option C is incorrect: App Engine firewall rules control inbound access to the application; they do not provide the necessary secure, private outbound connectivity to an on-premises database.

QUESTION 38

You are working in a highly secured environment where public Internet access from the Compute Engine VMs is not allowed. You do not yet have a VPN connection to access an on-premises file server. You need to install specific software on a Compute Engine instance. How should you install the software?

  • A. Upload the required installation files to Cloud Storage. Configure the VM on a subnet with a Private Google Access subnet. Assign only an internal IP address to the VM. Download the installation files to the VM using gsutil.
  • B. Upload the required installation files to Cloud Storage and use firewall rules to block all traffic except the IP address range for Cloud Storage. Download the files to the VM using gsutil.
  • C. Upload the required installation files to Cloud Source Repositories. Configure the VM on a subnet with a Private Google Access subnet. Assign only an internal IP address to the VM. Download the installation files to the VM using gcloud.
  • D. Upload the required installation files to Cloud Source Repositories and use firewall rules to block all traffic except the IP address range for Cloud Source Repositories. Download the files to the VM using gsutil.
Click to View Verified Solution & Explanation

Correct Option: A

Explanation: ✅ Option A (Correct)
Reasoning: Uploading files to Cloud Storage and configuring Private Google Access (PGA) on the subnet allows VMs with only internal IP addresses to securely download files via Google’s internal network using gsutil, without needing public internet access. This directly fulfills all security and connectivity requirements.

❌ Why the other choices are incorrect:

  • Option B is incorrect: Relying on explicit IP ranges for Google services with firewall rules is less robust and complex than Private Google Access. It also doesn’t specify how a VM without a public IP would route to those ranges.
  • Option C is incorrect: Cloud Source Repositories is primarily for source code, not typically for distributing arbitrary binary installation files, which Cloud Storage is better suited for. gcloud is not the primary tool for downloading binaries from CSR.
  • Option D is incorrect: This option incorrectly states downloading files from Cloud Source Repositories using gsutil. gsutil is used for Cloud Storage, not Cloud Source Repositories. It also shares the same IP range issue as Option B.

QUESTION 39

You have an application deployed on Google Kubernetes Engine using a Deployment named echo- deployment. The deployment is exposed using a Service called echo-service. You need to perform an update to the application with minimal downtime to the application. What should you do?

  • A. Use kubectl set image deployment/echo-deployment <new-image>
  • B. Use the rolling update functionality of the Instance Group behind the Kubernetes cluster
  • C. Update the deployment yaml file with the new container image. Use kubectl delete deployment/ echo-deployment and kubectl create –f <yaml-file>
  • D. Update the service yaml file which the new container image. Use kubectl delete service/echo- service and kubectl create –f <yaml-file>
Click to View Verified Solution & Explanation

Correct Option: A

Explanation: ✅ Option A (Correct)
Reasoning: kubectl set image deployment/echo-deployment updates the container image within the Deployment. Kubernetes Deployments default to a rolling update strategy, which gracefully replaces old pods with new ones, ensuring continuous availability and minimal downtime during the application update.

❌ Why the other choices are incorrect:

  • Option B is incorrect: Updating Instance Groups affects the underlying GKE nodes, not the application’s container image running within a Deployment. It’s not the mechanism for application-level updates.
  • Option C is incorrect: kubectl delete deployment terminates all running pods, causing significant downtime. kubectl create then starts new ones, but the period between operations results in application unavailability.
  • Option D is incorrect: Services define how to access pods, but they do not contain the container image definition. Updating or recreating the Service will not change the application’s container image.

QUESTION 40

Your company is using BigQuery as its enterprise data warehouse. Data is distributed over several Google Cloud projects. All queries on BigQuery need to be billed on a single project. You want to make sure that no query costs are incurred on the projects that contain the data. Users should be able to query the datasets, but not edit them.

How should you configure users’ access roles?

  • A. Add all users to a group. Grant the group the role of BigQuery user on the billing project and BigQuery dataViewer on the projects that contain the data.
  • B. Add all users to a group. Grant the group the roles of BigQuery dataViewer on the billing project and BigQuery user on the projects that contain the data.
  • C. Add all users to a group. Grant the group the roles of BigQuery jobUser on the billing project and BigQuery dataViewer on the projects that contain the data.
  • D. Add all users to a group. Grant the group the roles of BigQuery dataViewer on the billing project and BigQuery jobUser on the projects that contain the data.
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: bigquery.jobUser on the billing project allows users to run queries, ensuring all costs are incurred there. bigquery.dataViewer on data projects provides read-only access to data without incurring costs or allowing edits on those projects. This precisely meets all requirements.

❌ Why the other choices are incorrect:

  • Option A is incorrect: BigQuery user on the billing project is too broad; while it includes jobUser, it’s not the most precise.
  • Option B is incorrect: BigQuery dataViewer on the billing project prevents users from running queries. BigQuery user on data projects allows editing, violating the "not edit" rule.
  • Option D is incorrect: BigQuery dataViewer on the billing project prevents query execution. BigQuery jobUser on data projects would incur query costs on data projects, violating the cost distribution requirement.

QUESTION 41

You have developed an application using Cloud ML Engine that recognizes famous paintings from uploaded images. You want to test the application and allow specific people to upload images for the next 24 hours. Not all users have a Google Account. How should you have users upload images?

  • A. Have users upload the images to Cloud Storage. Protect the bucket with a password that expires after 24 hours.
  • B. Have users upload the images to Cloud Storage using a signed URL that expires after 24 hours.
  • C. Create an App Engine web application where users can upload images. Configure App Engine to disable the application after 24 hours. Authenticate users via Cloud Identity.
  • D. Create an App Engine web application where users can upload images for the next 24 hours. Authenticate users via Cloud Identity.
Click to View Verified Solution & Explanation

Correct Option: B

Explanation: ✅ Option B (Correct)
Reasoning: Signed URLs provide temporary, time-limited access to Cloud Storage objects or allow uploads to specific paths. Crucially, they do not require users to have a Google Account, directly addressing the "Not all users have a Google Account" constraint, and the 24-hour expiration fulfills the time limit.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Cloud Storage buckets are not protected by expiring passwords; this is not a valid or secure Google Cloud mechanism for temporary access.
  • Option C is incorrect: Creating an App Engine application is overly complex for a simple upload task. Authenticating via Cloud Identity requires users to have Google accounts, violating the core requirement.
  • Option D is incorrect: Similar to C, App Engine is excessive for this use case, and Cloud Identity authentication necessitates Google accounts, failing the non-Google account user requirement.

QUESTION 42

Your web application must comply with the requirements of the European Union’s General Data Protection Regulation (GDPR). You are responsible for the technical architecture of your web application. What should you do?

  • A. Ensure that your web application only uses native features and services of Google Cloud Platform, because Google already has various certifications and provides “pass-on” compliance when you use native features.
  • B. Enable the relevant GDPR compliance setting within the GCPConsole for each of the services in use within your application.
  • C. Ensure that Cloud Security Scanner is part of your test planning strategy in order to pick up any compliance gaps.
  • D. Define a design for the security of data in your web application that meets GDPR requirements.
Click to View Verified Solution & Explanation

Correct Option: D

Explanation: ✅ Option D (Correct)
Reasoning: GDPR requires "data protection by design and by default" (Article 25). As the technical architect, defining how data is secured, processed, and managed within the application’s design is fundamental to meeting GDPR requirements concerning data minimization, integrity, confidentiality, and data subject rights.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Google secures the underlying infrastructure, but customers are responsible for their applications and data on the platform (Shared Responsibility Model). Simply using native features does not guarantee your application’s GDPR compliance.
  • Option B is incorrect: There isn’t a single "GDPR compliance setting" in GCP Console. Achieving GDPR compliance involves comprehensive architectural design, service configuration, and organizational processes, not a simple switch.
  • Option C is incorrect: Cloud Security Scanner helps identify security vulnerabilities, which is part of overall security. However, GDPR encompasses much more than just security scanning, including data handling, consent, and data subject rights within the application’s architecture.

QUESTION 43

You need to set up Microsoft SQL Server on GCP. Management requires that there’s no downtime in case of a data center outage in any of the zones within a GCP region. What should you do?

  • A. Configure a Cloud SQL instance with high availability enabled.
  • B. Configure a Cloud Spanner instance with a regional instance configuration.
  • C. Set up SQL Server on Compute Engine, using Always On Availability Groups using Windows Failover Clustering. Place nodes in different subnets.
  • D. Set up SQL Server Always On Availability Groups using Windows Failover Clustering. Place nodes in different zones.
Click to View Verified Solution & Explanation

Correct Option: D

Explanation: ✅ Option D (Correct)
Reasoning: SQL Server Always On Availability Groups with Windows Failover Clustering provide native high availability and disaster recovery. Placing nodes in different zones ensures resilience against a single zone outage, fulfilling the no-downtime requirement across data centers within a GCP region.

❌ Why the other choices are incorrect:

  • Option A is incorrect: While Cloud SQL HA offers zone-level failover for managed SQL Server, the question implies setting up a self-managed SQL Server instance, given the explicit mention of Always On AGs and Windows Failover Clustering.
  • Option B is incorrect: Cloud Spanner is a globally distributed, highly scalable database but is not Microsoft SQL Server, failing the primary requirement of the question.
  • Option C is incorrect: While Always On Availability Groups are correct for SQL Server HA, placing nodes in "different subnets" does not guarantee placement in different zones, which is crucial for regional data center outage resilience.

QUESTION 44

The development team has provided you with a Kubernetes Deployment file. You have no infrastructure yet and need to deploy the application. What should you do?

  • A. Use gcloud to create a Kubernetes cluster. Use Deployment Manager to create the deployment.
  • B. Use gcloud to create a Kubernetes cluster. Use kubectl to create the deployment.
  • C. Use kubectl to create a Kubernetes cluster. Use Deployment Manager to create the deployment.
  • D. Use kubectl to create a Kubernetes cluster. Use kubectl to create the deployment.
Click to View Verified Solution & Explanation

Correct Option: B

Explanation: ✅ Option B (Correct)
Reasoning: gcloud is the primary command-line tool for provisioning Google Cloud resources, including GKE clusters. Once the cluster exists, kubectl is the standard tool for deploying and managing Kubernetes resources, like a provided Deployment file, within that cluster.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Deployment Manager provisions Google Cloud infrastructure, not directly applies Kubernetes manifest files to an existing cluster like kubectl does.
  • Option C is incorrect: kubectl manages resources within an existing Kubernetes cluster; it cannot create the Google Kubernetes Engine cluster itself.
  • Option D is incorrect: kubectl cannot create a Google Kubernetes Engine cluster. It interacts with an already provisioned cluster.

QUESTION 45

You need to evaluate your team readiness for a new GCP project. You must perform the evaluation and create a skills gap plan which incorporates the business goal of cost optimization. Your team has deployed two GCP projects successfully to date. What should you do?

  • A. Allocate budget for team training. Set a deadline for the new GCP project.
  • B. Allocate budget for team training. Create a roadmap for your team to achieve Google Cloud certification based on job role.
  • C. Allocate budget to hire skilled external consultants. Set a deadline for the new GCP project.
  • D. Allocate budget to hire skilled external consultants. Create a roadmap for your team to achieve Google Cloud certification based on job role.
Click to View Verified Solution & Explanation

Correct Option: B

Explanation: ✅ Option B (Correct)
Reasoning: This option directly addresses evaluating readiness and creating a skills gap plan (the certification roadmap based on job roles). Google Cloud certifications include best practices for cost optimization, aligning with the business goal. Investing in internal training is a sustainable approach for long-term skill development and cost efficiency.

❌ Why the other choices are incorrect:

  • Option A is incorrect: While training is good, simply setting a deadline doesn’t create a skills gap plan or explicitly incorporate cost optimization through enhanced team skills.
  • Option C is incorrect: Hiring external consultants doesn’t build your team’s readiness or internal skills, which is the core requirement for a skills gap plan. It also incurs external costs.
  • Option D is incorrect: Similar to C, hiring external consultants undermines the goal of internal team readiness and can be less cost-effective than developing existing staff for ongoing projects.

QUESTION 46

You are designing an application for use only during business hours. For the minimum viable product release, you’d like to use a managed product that automatically “scales to zero” so you don’t incur costs when there is no activity.

Which primary compute resource should you choose?

  • A. Cloud Functions
  • B. Compute Engine
  • C. Google Kubernetes Engine
  • D. AppEngine flexible environment
Click to View Verified Solution & Explanation

Correct Option: A

Explanation: ✅ Option A (Correct)
Reasoning: Cloud Functions is a fully managed, serverless platform that executes code in response to events. It automatically scales instances down to zero when there is no activity, incurring no compute costs during idle periods, perfectly meeting the "scales to zero" and "no costs" requirements.

❌ Why the other choices are incorrect:

  • Option B is incorrect: Compute Engine provides Infrastructure as a Service (IaaS) virtual machines. VMs incur costs when running, even if idle, and do not automatically scale to zero without manual intervention.
  • Option C is incorrect: Google Kubernetes Engine (GKE) clusters run on underlying virtual machines (nodes). While pods can scale to zero, the cluster’s nodes still incur costs, preventing true "scales to zero" cost efficiency for inactivity.
  • Option D is incorrect: App Engine flexible environment runs on Compute Engine VMs. It often maintains at least one instance or incurs costs for underlying resources, and doesn’t reliably scale to zero with zero cost as efficiently as Cloud Functions.

QUESTION 47

You are creating an App Engine application that uses Cloud Datastore as its persistence layer. You need to retrieve several root entities for which you have the identifiers. You want to minimize the overhead in operations performed by Cloud Datastore. What should you do?

 

  • A. Create the Key object for each Entity and run a batch get operation
  • B. Create the Key object for each Entity and run multiple get operations, one operation for each entity
  • C. Use the identifiers to create a query filter and run a batch query operation
  • D. Use the identifiers to create a query filter and run multiple query operations, one operation for each entity
Click to View Verified Solution & Explanation

Correct Option: A

Explanation:

✅ Option A (Correct) Reasoning: Creating Key objects and using a batch get operation (e.g., datastore.get_multi() in Python) directly retrieves entities by their unique identifiers. A batch operation significantly reduces network round trips and API call overhead compared to individual gets or queries, making it the most efficient method for known entities.

 

❌ Why the other choices are incorrect:

  • Option B is incorrect: Running multiple individual get operations for each entity incurs higher network latency and API call overhead compared to a single batch operation for the same set of entities, thus not minimizing overhead.
  • Option C is incorrect: Queries, even batched ones or those using IN filters on keys, generally involve more overhead (e.g., index lookups, query planning) than direct Key-based lookups. Using a query when direct Keys are available is less efficient.
  • Option D is incorrect: This option combines the inefficiency of using queries (instead of direct Key lookups) with the additional overhead of performing multiple individual query operations, resulting in the highest operational cost and latency.

QUESTION 48

You need to upload files from your on-premises environment to Cloud Storage. You want the files to be encrypted on Cloud Storage using customer-supplied encryption keys. What should you do?

  • A. Supply the encryption key in a .boto configuration file. Use gsutil to upload the files.
  • B. Supply the encryption key using gcloud config. Use gsutil to upload the files to that bucket.
  • C. Use gsutil to upload the files, and use the flag –encryption-key to supply the encryption key.
  • D. Use gsutil to create a bucket, and use the flag –encryption-key to supply the encryption key. Use gsutil to upload the files to that bucket.
Click to View Verified Solution & Explanation

Correct Option: A

Explanation: ✅ Option A (Correct)
Reasoning: Configuring gsutil with the encryption_key option in a .boto file is a standard and persistent method to automatically apply customer-supplied encryption keys to all subsequent gsutil uploads, which is efficient for multiple files or recurring tasks.

❌ Why the other choices are incorrect:

  • Option B is incorrect: gcloud config manages gcloud properties and does not provide a mechanism to supply gsutil-specific customer-supplied encryption keys.
  • Option C is incorrect: While the --encryption-key flag works for a single gsutil cp command, it requires specifying the key for every individual upload. Using a .boto file provides a more persistent and efficient configuration for handling multiple files or repeated uploads.
  • Option D is incorrect: The --encryption-key flag is for applying encryption to objects during upload operations (gsutil cp), not for creating buckets or setting default customer-supplied encryption keys at the bucket level.

QUESTION 49

Your customer wants to capture multiple GBs of aggregate real-time key performance indicators (KPIs) from their game servers running on Google Cloud Platform and monitor the KPIs with low latency. How should they

capture the KPIs?

  • A. Store time-series data from the game servers in Google Bigtable, and view it using Google Data Studio.
  • B. Output custom metrics to Cloud Monitoring/Logging from the game servers, and create a Dashboard in Cloud Monitoring/Logging Monitoring Console to view them.
  • C. Schedule BigQuery load jobs to ingest analytics files uploaded to Cloud Storage every ten minutes, and visualize the results in Google Data Studio.
  • D. Insert the KPIs into Cloud Datastore entities, and run ad hoc analysis and visualizations of them in Vertex AI Workbench.
Click to View Verified Solution & Explanation

Correct Option: B

Explanation: ✅ Option B (Correct)
Reasoning: Cloud Monitoring is purpose-built for ingesting custom metrics from applications like game servers, handling high volumes (GBs) in real-time. Its native dashboards provide low-latency visualization, directly fulfilling the requirements for capturing and monitoring KPIs with minimal delay.

❌ Why the other choices are incorrect:

  • Option A is incorrect: While Bigtable handles time-series data well, Data Studio is better suited for analytical reporting than low-latency, real-time operational monitoring of raw metrics.
  • Option C is incorrect: A ten-minute ingestion schedule via BigQuery load jobs and Cloud Storage fails the "real-time" and "low latency" monitoring requirements.
  • Option D is incorrect: Cloud Datastore is not optimal for large-scale time-series KPIs, and Vertex AI Workbench is for ad-hoc analysis and ML, not real-time operational dashboards.

QUESTION 50

You have a Python web application with many dependencies that requires 0.1 CPU cores and 128 MB of memory to operate in production. You want to monitor and maximize machine utilization. You also want to reliably deploy new versions of the application. Which set of steps should you take?

 

You have a Python web application with many dependencies that requires 0.1 CPU cores and 128 MB of memory to operate in production. You want to monitor and maximize machine utilization. You also want to reliably deploy new versions of the application. Which set of steps should you take?

  • A. Perform the following: 1. Create a managed instance group with f1-micro type machines. 2. Use a startup script to clone the repository, check out the production branch, install the dependencies, and start the Python app. 3. Restart the instances to automatically deploy new production releases.
  • B. Perform the following: 1. Create a managed instance group with n1-standard-1 type machines. 2. Build a Compute Engine image from the production branch that contains all of the dependencies and automatically starts the Python app. 3. Rebuild the Compute Engine image, and update the instance template to deploy new production releases.
  • C. Perform the following: 1. Create a Google Kubernetes Engine (GKE) cluster with n1-standard-1 type machines. 2. Build a Docker image from the production branch with all of the dependencies, and tag it with the version number. 3. Create a Kubernetes Deployment with the imagePullPolicy set to 'IfNotPresent' in the staging namespace, and then promote it to the production namespace after testing.
  • D. Perform the following: 1. Create a GKE cluster with n1-standard-4 type machines. 2. Build a Docker image from the master branch with all of the dependencies, and tag it with 'latest'. 3. Create a Kubernetes Deployment in the default namespace with the imagePullPolicy set to 'Always'. Restart the pods to automatically deploy new production releases.
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: GKE with n1-standard-1 machines allows efficient packing of many small containers (0.1 CPU, 128 MB) onto nodes, maximizing utilization. Docker images provide immutable, versioned deployments. Kubernetes Deployments enable reliable, controlled rollouts with staging-to-production promotion and rollback capabilities.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Using startup scripts for dependencies is fragile and not reliable for new deployments. f1-micro might be underutilized or require complex management for multiple apps. Restarting instances is not a reliable deployment strategy.
  • Option B is incorrect: n1-standard-1 VMs are significantly overprovisioned for a single 0.1 CPU/128 MB app, leading to poor utilization. While custom images improve consistency, they lack the granular resource management and deployment flexibility of container orchestration.
  • Option D is incorrect: n1-standard-4 VMs are excessively oversized for the application, causing extreme underutilization. Deploying from the master branch with latest tag is unreliable for production. Manually restarting pods is not the correct way to deploy new versions in Kubernetes; updating the Deployment’s image triggers a rolling update.

QUESTION 51

Your company wants to start using Google Cloud resources but wants to retain their on-premises Active Directory domain controller for identity management. What should you do?

  • A. Use the Admin Directory API to authenticate against the Active Directory domain controller.
  • B. Use Google Cloud Directory Sync to synchronize Active Directory usernames with cloud identities and configure SAML SSO.
  • C. Use Cloud Identity-Aware Proxy configured to use the on-premises Active Directory domain controller as an identity provider.
  • D. Use Compute Engine to create an Active Directory (AD) domain controller that is a replica of the on- premises AD domain controller using Google Cloud Directory Sync.
Click to View Verified Solution & Explanation

Correct Option: B

Explanation: ✅ Option B (Correct)
Reasoning: Google Cloud Directory Sync (GCDS) accurately synchronizes on-premises Active Directory users and groups to Google Cloud Identity. Configuring SAML SSO then allows users to authenticate against their on-premises Active Directory when accessing Google Cloud, effectively retaining AD for identity management.

❌ Why the other choices are incorrect:

  • Option A is incorrect: The Admin Directory API manages identities already within Google Cloud/Workspace. It does not facilitate direct authentication against an on-premises Active Directory domain controller.
  • Option C is incorrect: Cloud Identity-Aware Proxy (IAP) provides access control to specific applications/resources. It is not the core mechanism for synchronizing identities or establishing the primary identity provider for Google Cloud platform-wide access from an on-premises AD.
  • Option D is incorrect: Google Cloud Directory Sync (GCDS) synchronizes identities, not replicates Active Directory domain controllers. While you could extend AD to Compute Engine, GCDS’s role here is misrepresented and it doesn’t solve the core identity synchronization/SSO requirement by itself in this context.

QUESTION 52

You are running a cluster on Kubernetes Engine (GKE) to serve a web application. Users are reporting that a specific part of the application is not responding anymore. You notice that all pods of your deployment keep restarting after 2 seconds. The application writes logs to standard output. You want to inspect the logs to find the cause of the issue. Which approach can you take?

  • A. Review the Cloud Monitoring/Logging logs for each Compute Engine instance that is serving as a node in the cluster.
  • B. Review the Cloud Monitoring/Logging logs for the specific GKE
  • C. Connect to the cluster using gcloud credentials and connect to a container in one of the pods to read the logs.
  • D. Review the Serial Port logs for each Compute Engine instance that is serving as a node in the cluster.
Click to View Verified Solution & Explanation

Correct Option: B

Explanation: ✅ Option B (Correct)
Reasoning: GKE automatically sends container standard output and error logs to Cloud Logging. This is the primary and most efficient method to access aggregated application logs, even from rapidly restarting pods, using Cloud Logging’s filters.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Reviewing Compute Engine instance logs primarily provides host-level and system logs, not application-specific logs from within a container.
  • Option C is incorrect: Connecting to a container is impractical when pods are restarting every 2 seconds, as it’s unlikely you’d successfully attach and read logs before termination.
  • Option D is incorrect: Serial Port logs display VM boot and kernel messages, not application logs from containers running within GKE pods.

QUESTION 53

You are using a single Cloud SQL instance to serve your application from a specific zone. You want to introduce high availability. What should you do?

  • A. Create a read replica instance in a different region
  • B. Create a failover replica instance in a different region
  • C. Create a read replica instance in the same region, but in a different zone
  • D. Create a failover replica instance in the same region, but in a different zone
Click to View Verified Solution & Explanation

Correct Option: D

Explanation: ✅ Option D (Correct)
Reasoning: Cloud SQL high availability requires creating a failover replica instance. This replica must be provisioned in the same region but in a different zone from the primary instance. This setup allows for automatic failover to the replica if the primary instance’s zone experiences an outage, ensuring service continuity.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Read replicas are primarily for scaling read operations and can be used for disaster recovery via manual promotion, but they do not provide automatic high availability for the primary instance.
  • Option B is incorrect: While a failover replica is correct for HA, placing it in a different region is typically for multi-region disaster recovery, not for the intra-region automatic failover that Cloud SQL’s HA feature provides.
  • Option C is incorrect: Read replicas do not provide automatic high availability for the primary instance. A failover replica is necessary for this functionality.

QUESTION 54

Your company is running a stateless application on a Compute Engine instance. The application is used heavily during regular business hours and lightly outside of business hours. Users are reporting that the application is slow during peak hours. You need to optimize the application’s performance. What should you do?

  • A. Create a snapshot of the existing disk. Create an instance template from the snapshot. Create an autoscaled managed instance group from the instance template.
  • B. Create a snapshot of the existing disk. Create a custom image from the snapshot. Create an autoscaled
  • C. Create a custom image from the existing disk. Create an instance template from the custom image. Create an autoscaled managed instance group from the instance template.
  • D. Create an instance template from the existing disk. Create a custom image from the instance template. Create an autoscaled managed instance group from the custom image.
Click to View Verified Solution & Explanation

Correct Option: C

Explanation: ✅ Option C (Correct)
Reasoning: This is the correct sequence to enable autoscaling. First, create a reusable custom image from the existing disk to encapsulate the application. Then, define an instance template using this custom image. Finally, create an autoscaled managed instance group (MIG) from the instance template to handle varying load efficiently.

❌ Why the other choices are incorrect:

  • Option A is incorrect: You cannot directly create an instance template from a disk snapshot. Snapshots are for disk backups; custom images are for instance creation and templates.
  • Option B is incorrect: This option correctly creates a custom image, but it omits the necessary step of creating an instance template from the image before creating the Managed Instance Group.
  • Option D is incorrect: This option presents an incorrect workflow. You cannot create a custom image from an instance template, and Managed Instance Groups are created from instance templates, not directly from custom images.

QUESTION 55

Your web application has several VM instances running within a VPC. You want to restrict communications between instances to only the paths and ports you authorize, but you don’t want to rely on static IP addresses or subnets because the app can autoscale. How should you restrict communications?

  • A. Use separate VPCs to restrict traffic
  • B. Use firewall rules based on network tags attached to the compute instances
  • C. Use Cloud DNS and only allow connections from authorized hostnames
  • D. Use service accounts and configure the web application to authorize particular service accounts to have access
Click to View Verified Solution & Explanation

Correct Option: B

Explanation: ✅ Option B (Correct)
Reasoning: Firewall rules based on network tags dynamically group instances, even as they autoscale, without relying on static IPs or subnets. Tags allow specifying authorized source/destination instance groups and restricting traffic to specific paths and ports, perfectly meeting all requirements.

❌ Why the other choices are incorrect:

  • Option A is incorrect: Separate VPCs isolate networks, complicating communication between instances of the same application. It doesn’t provide dynamic, granular port/path restrictions between instances within an application’s logical boundary.
  • Option C is incorrect: Cloud DNS resolves hostnames to IP addresses. Google Cloud firewalls filter traffic using IP addresses, network tags, or service accounts, not directly by requested hostnames for internal VPC communications. This doesn’t enable port/path restrictions.
  • Option D is incorrect: While service accounts can identify instances for firewall rules, network tags are the standard and more flexible mechanism for dynamically grouping instances (e.g., web servers, app servers) to apply specific port and protocol restrictions for inter-instance communication within a VPC.

Need the Full Exam Simulator?

Practice the complete question bank in a realistic, timed environment with advanced tracking.

Access Full CertoMetrics Engine →

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top