Docsity

Google Cloud Professional Cloud Architect — Comprehensive Practice Exam & Study Guide 20, Exams of Computer Science

Toggle sidebar
bg1
Google Cloud Professional Cloud Architect —
Comprehensive Practice Exam & Study Guide
2027 | Updated Questions, Detailed
Answers, Explanations & Comprehensive
Rationales
1. A financial services company runs a highly transactional
application on Compute Engine. The application requires
strong consistency, relational transactions, and horizontal
scalability across multiple zones. The database must support
automatic failover with minimal operational overhead. Which
solution best meets these requirements?
A. Cloud SQL with a single-zone primary instance
B. Compute Engine with a self-managed PostgreSQL cluster
C. Cloud Spanner configured for regional high availability
D. BigQuery with scheduled data exports
Rationale: Cloud Spanner provides strongly consistent
relational transactions with horizontal scalability and high
availability across zones. It is designed for workloads that
require both relational semantics and large-scale distributed
operation. Cloud SQL can provide high availability but does
not scale horizontally in the same manner as Spanner.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39

Partial preview of the text

Download Google Cloud Professional Cloud Architect — Comprehensive Practice Exam & Study Guide 20 and more Exams Computer Science in PDF only on Docsity!

Google Cloud Professional Cloud Architect —

Comprehensive Practice Exam & Study Guide

2027 | Updated Questions, Detailed

Answers, Explanations & Comprehensive

Rationales

1. A financial services company runs a highly transactional application on Compute Engine. The application requires strong consistency, relational transactions, and horizontal scalability across multiple zones. The database must support automatic failover with minimal operational overhead. Which solution best meets these requirements? A. Cloud SQL with a single-zone primary instance B. Compute Engine with a self-managed PostgreSQL cluster C. Cloud Spanner configured for regional high availability D. BigQuery with scheduled data exports Rationale: Cloud Spanner provides strongly consistent relational transactions with horizontal scalability and high availability across zones. It is designed for workloads that require both relational semantics and large-scale distributed operation. Cloud SQL can provide high availability but does not scale horizontally in the same manner as Spanner.

2. An organization has multiple applications running in separate Google Cloud projects. Security policy requires centralized control of outbound internet access, while application teams must retain administrative control over their individual projects. Which architecture is most appropriate? A. Configure Cloud NAT independently in every project B. Route all traffic through a shared Compute Engine proxy instance C. Use Shared VPC with centralized network controls and Cloud NAT D. Assign public IP addresses to all workloads and use firewall rules Rationale: Shared VPC allows a host project to centrally manage networking while service projects retain responsibility for their applications. Centralized NAT and firewall controls can therefore be implemented without requiring each application team to independently manage the network infrastructure. 3. A company processes millions of IoT events per second. Events must be ingested reliably, processed in near real time, and stored for analytical queries. The system should tolerate temporary processing failures without losing messages. Which architecture is most suitable? A. Cloud Storage → Cloud Functions → BigQuery B. Pub/Sub → Dataflow → BigQuery

tooling and require continued use of VMware virtualization. Which service is most appropriate? A. Compute Engine B. Google Kubernetes Engine C. Google Cloud VMware Engine D. Cloud Run Rationale: Google Cloud VMware Engine provides managed VMware infrastructure in Google Cloud, allowing organizations to migrate VMware workloads while retaining VMware technologies and operational models. This minimizes application and virtualization-layer changes compared with refactoring applications for Compute Engine or containers.

6. An application running on Cloud Run needs to access a Cloud SQL database. The security team requires that the database not have a public IP address. What should the architect implement? A. Allow Cloud Run to connect through the database's public IP B. Put Cloud SQL behind an external HTTP load balancer C. Use private connectivity between Cloud Run and Cloud SQL D. Create a public Compute Engine bastion host Rationale: Private connectivity allows the Cloud Run workload to reach Cloud SQL without exposing the database through a public IP address. This reduces the attack surface and aligns the network path with a private-service architecture.

7. A company stores billions of objects in Cloud Storage. Objects are frequently accessed during the first 30 days but become rarely accessed afterward. The company wants to reduce storage costs automatically without application changes. What should the architect recommend? A. Store every object permanently in Standard storage B. Manually move objects using Compute Engine scripts C. Configure Cloud Storage lifecycle management policies D. Export objects periodically to BigQuery Rationale: Cloud Storage lifecycle management can automatically transition objects between storage classes or delete them based on object age and other conditions. This provides automated cost optimization without requiring application-level changes. 8. A healthcare application must encrypt sensitive data. Security policy requires that the organization control cryptographic keys and maintain auditability of key usage. Which solution is most appropriate? A. Google-managed encryption keys only B. Store encryption keys in Cloud Storage C. Use Cloud KMS with customer-managed encryption keys D. Embed encryption keys in application source code Rationale: Cloud KMS provides centralized lifecycle management and access control for cryptographic keys. Customer-managed keys allow the organization to exercise

D. Disable project-level audit logging and rely on application logs Rationale: Organization-level log aggregation can centralize audit data while restricting access to project administrators. Cloud Storage provides durable retention, and IAM and retention controls can help prevent unauthorized modification or deletion.

11. A company operates a multi-project environment and wants to ensure that developers cannot create resources in unauthorized regions. The restriction must apply consistently across projects. Which control should be considered? A. Application-level validation B. Compute Engine startup scripts C. Organization Policy constraints D. Cloud Scheduler jobs Rationale: Organization Policy provides centralized governance controls that can apply across projects and folders. Location restrictions can help enforce where resources may be created, reducing configuration drift and improving compliance. 12. A batch-processing workload runs every night and may take several hours. It is fault tolerant and can tolerate interruption. The company wants to minimize compute costs. Which Compute Engine option is most appropriate?

A. Sole-tenant nodes B. High-memory machines C. Spot VMs D. Bare metal instances Rationale: Spot VMs offer significant cost savings for workloads that can tolerate preemption. A fault-tolerant batch workload is a strong candidate because processing can be restarted or redistributed when capacity is reclaimed.

13. A company needs a globally distributed database for user profiles. The application requires low-latency access from users around the world and strongly consistent transactions. Which Google Cloud database is most appropriate? A. Firestore in a single-region configuration B. Cloud SQL C. Cloud Spanner D. Bigtable Rationale: Cloud Spanner provides a globally distributed relational database with strong consistency and horizontal scalability. Bigtable is excellent for large-scale key-value and wide-column workloads but does not provide the same relational transactional model. 14. A company wants to run stateless containers without managing clusters, nodes, or operating systems. The application is HTTP-based, experiences unpredictable traffic,

16. A company has a highly available application using Compute Engine instances across multiple zones. Instances are stateless, and traffic should automatically move away from failed instances. Which architecture best supports this requirement? A. Single Compute Engine instance with a static IP B. Regional managed instance group behind a load balancer with health checks C. Multiple unmanaged VMs with manually configured DNS records D. One VM with multiple persistent disks Rationale: A regional managed instance group can distribute instances across zones and automatically recreate unhealthy instances. A load balancer with health checks prevents traffic from being sent to failed backends, providing both application and infrastructure resilience. 17. A company requires private communication between workloads in different Google Cloud projects. The projects are administered by different teams, and the organization wants centralized network governance. Which architecture should be evaluated? A. Give all workloads public IP addresses B. Create VPN tunnels through individual VMs C. Use Shared VPC or a centrally governed VPC architecture

with appropriate IAM and routing D. Use Cloud Storage as an intermediary Rationale: Shared VPC enables centrally managed networking across multiple projects while allowing separate teams to manage resources in service projects. This approach supports centralized governance and private communication without requiring public exposure.

18. A company needs to migrate a large on-premises database to Google Cloud. The database must remain operational during most of the migration, and downtime during final cutover must be minimized. Which strategy is most appropriate? A. Stop the database and copy all files once B. Perform continuous replication and execute a controlled cutover C. Recreate the database manually from application logs D. Export only the database schema Rationale: Continuous replication keeps the target synchronized while the source remains available. During cutover, replication can be stopped after the final changes are applied, allowing the organization to minimize downtime and validate the destination before directing application traffic to it. 19. A company wants to give an external vendor temporary access to a specific Cloud Storage bucket. The vendor should

across multiple backends is required, avoiding unnecessary external exposure.

21. A company needs a data warehouse capable of analyzing petabytes of data. Analysts want to run SQL queries without provisioning or managing database servers. Workloads fluctuate significantly throughout the day. Which service best meets these requirements? A. Cloud SQL B. Firestore C. BigQuery D. Memorystore Rationale: BigQuery is a serverless analytical data warehouse designed for large-scale SQL analytics. Its managed architecture eliminates the need to provision traditional database servers and accommodates variable analytical workloads. 22. A company wants applications to retrieve secrets without embedding credentials in source code or configuration files. Access must be controlled through IAM and secret versions must be managed centrally. Which service should be used? A. Cloud Storage B. Secret Manager C. Cloud DNS D. Cloud Monitoring

Rationale: Secret Manager is designed for securely storing and managing application secrets such as passwords, API keys, and credentials. IAM can control which workloads are permitted to access specific secrets, while versioning supports controlled secret rotation.

23. A global company wants to protect its internet-facing application from common web attacks while also controlling which requests are permitted to reach the application. Which Google Cloud capability should be incorporated? A. Cloud Storage lifecycle rules B. Cloud Armor security policies C. Cloud Scheduler D. Cloud Billing budgets Rationale: Cloud Armor provides security policies that can help protect applications behind supported load-balancing architectures. It supports controls such as filtering and protection against common application-layer threats and abusive traffic patterns. 24. An organization is designing a disaster recovery architecture for a critical application. The business requires an RTO of minutes and an RPO close to zero. The workload can tolerate operating in a secondary region before a disaster but must recover rapidly. Which strategy is most appropriate? A. Weekly backups only B. Cold standby with manual infrastructure creation

networking, billing, logging, and security controls can then be consistently applied as projects and workloads scale.

26. A global e-commerce company runs its application across multiple regions. During regional failures, traffic must automatically shift to healthy regions. The application uses HTTPS and requires centralized TLS termination. Which architecture is most appropriate? A. Regional load balancers with manual DNS changes B. Cloud DNS round-robin records pointing directly to VMs C. Global external Application Load Balancer with multi- region backends and health checks D. A single regional internal load balancer with Cloud NAT Rationale: A global external Application Load Balancer can distribute HTTPS traffic across backends in multiple regions and use health checks to avoid unhealthy capacity. This provides centralized TLS termination and automatic traffic redistribution without requiring manual DNS changes. 27. A company has a workload that performs millions of small, independent batch jobs. Each job can tolerate interruption and does not require a persistent local state. The workload must scale rapidly while keeping compute costs low. Which architecture is most appropriate? A. A single large Compute Engine VM B. A managed instance group using Spot VMs with autoscaling

C. Sole-tenant nodes with manually provisioned VMs D. A Cloud SQL read replica Rationale: Independent, interruption-tolerant batch jobs are well suited to Spot VMs. A managed instance group can automatically add or remove capacity, while stateless job design allows interrupted work to be retried without requiring persistent VM state.

28. A company needs to expose a private service hosted in one VPC to consumers in other VPCs. The service provider does not want to expose its underlying VMs or require consumers to establish custom network connectivity. Which Google Cloud capability should be considered? A. Cloud NAT B. Private Service Connect C. Cloud VPN D. Cloud CDN Rationale: Private Service Connect enables private consumption of services across VPC boundaries without exposing the service's underlying infrastructure. It is designed for controlled private service publishing and consumption. 29. A data engineering team needs to process files uploaded to Cloud Storage immediately after they arrive. Processing should be event-driven and should not require continuously running servers. Which architecture is most appropriate?

31. An organization has strict regulatory requirements requiring separation between development, testing, and production resources. Production administrators must not automatically receive access to development projects. Which resource hierarchy best supports this requirement? A. Put all resources into one project B. Create folders for each application and mix environments within them C. Use separate folders or projects for environments with IAM policies applied at appropriate hierarchy levels D. Use VM firewall rules as the primary access-control mechanism Rationale: Google Cloud's resource hierarchy allows organizations to separate environments and apply IAM policies at the organization, folder, or project level. Separate projects provide stronger administrative and resource boundaries than relying solely on network controls. 32. A company needs to ensure that a production service account cannot accidentally be used by developers to access unrelated production resources. Which design follows least- privilege principles? A. Grant the service account Project Owner B. Grant all developers Service Account Admin and Token Creator C. Assign narrowly scoped IAM roles to the service account and restrict who can impersonate it

D. Share one service account among all development and production workloads Rationale: Service accounts should receive only the permissions required by their workloads. Access to impersonate or act as the service account should also be tightly controlled because impersonation can effectively grant the service account's privileges to the caller.

33. A company operates an API that experiences unpredictable traffic spikes. The application is stateless and containerized, and requests can tolerate startup latency. The company wants infrastructure to scale down substantially during periods of low demand. Which platform is most appropriate? A. Dedicated Compute Engine VMs B. Cloud Run C. Bare Metal Solution D. A single GKE node pool with fixed capacity Rationale: Cloud Run automatically scales container instances based on incoming requests and can scale down when demand decreases. This is particularly appropriate for stateless HTTP services with variable traffic and no requirement for persistent server infrastructure. 34. An enterprise wants to connect its on-premises data center to Google Cloud. It requires predictable network