NEW
Font size
S
M
L
XL
WorksheetsGoogle Professional Architect 4 - 61 to 80
Total questions: 20
Worksheet time: 20mins
Name
Class
Date
1.
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.
2.
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.
3.
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
4.
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
5.
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.
6.
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 Stackdriver from the game servers, and create a Dashboard in Stackdriver 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 Cloud Datalab.
7.
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.
8.
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.
9.
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 Stackdriver logs for each Compute Engine instance that is serving as a node in the cluster.
b)
Review the Stackdriver logs for the specific GKE container that is serving the unresponsive part of the application.
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.
10.
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
11.
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 custom image from the existing disk. Create an instance template from the custom image. 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 managed instance group from the custom image.
c)
Create a snapshot of the existing disk. Create an instance template from the snapshot. 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.
12.
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
13.
You are using Cloud SQL as the database backend for a large CRM deployment. You want to scale as usage increases and ensure that you don't run out of storage, maintain 75% CPU usage cores, and keep replication lag below 60 seconds. What are the correct steps to meet your requirements?
a)
1. Enable automatic storage increase for the instance. 2. Create a Stackdriver alert when CPU usage exceeds 75%, and change the instance type to reduce CPU usage. 3. Create a Stackdriver alert for replication lag, and shard the database to reduce replication time.
b)
1. Enable automatic storage increase for the instance. 2. Change the instance type to a 32-core machine type to keep CPU usage below 75%. 3. Create a Stackdriver alert for replication lag, and deploy memcache to reduce load on the master.
c)
1. Create a Stackdriver alert when storage exceeds 75%, and increase the available storage on the instance to create more space. 2. Deploy memcached to reduce CPU load. 3. Change the instance type to a 32-core machine type to reduce replication lag.
d)
1. Create a Stackdriver alert when storage exceeds 75%, and increase the available storage on the instance to create more space. 2. Deploy memcached to reduce CPU load. 3. Create a Stackdriver alert for replication lag, and change the instance type to a 32-core machine type to reduce replication lag.
14.
You are tasked with building an online analytical processing (OLAP) marketing analytics and reporting tool. This requires a relational database that can operate on hundreds of terabytes of data. What is the Google-recommended tool for such applications?
a)
Cloud Spanner, because it is globally distributed
b)
Cloud SQL, because it is a fully managed relational database
c)
Cloud Firestore, because it offers real-time synchronization across devices
d)
BigQuery, because it is designed for large-scale processing of tabular data
15.
You have deployed an application to Google Kubernetes Engine (GKE), and are using the Cloud SQL proxy container to make the Cloud SQL database available to the services running on Kubernetes. You are notified that the application is reporting database connection issues. Your company policies require a post- mortem. What should you do?
a)
Use gcloud sql instances restart.
b)
Validate that the Service Account used by the Cloud SQL proxy container still has the Cloud Build Editor role.
c)
In the GCP Console, navigate to Stackdriver Logging. Consult logs for (GKE) and Cloud SQL.
d)
In the GCP Console, navigate to Cloud SQL. Restore the latest backup. Use kubectl to restart all pods.
16.
Your company pushes batches of sensitive transaction data from its application server VMs to Cloud Pub/Sub for processing and storage. What is the Google- recommended way for your application to authenticate to the required Google Cloud services?
a)
Ensure that VM service accounts are granted the appropriate Cloud Pub/Sub IAM roles.
b)
Ensure that VM service accounts do not have access to Cloud Pub/Sub, and use VM access scopes to grant the appropriate Cloud Pub/Sub IAM roles.
c)
Generate an OAuth2 access token for accessing Cloud Pub/Sub, encrypt it, and store it in Cloud Storage for access from each VM.
d)
Create a gateway to Cloud Pub/Sub using a Cloud Function, and grant the Cloud Function service account the appropriate Cloud Pub/Sub IAM roles.
17.
You want to establish a Compute Engine application in a single VPC across two regions. The application must communicate over VPN to an on-premises network.
How should you deploy the VPN?
a)
Use VPC Network Peering between the VPC and the on-premises network.
b)
Expose the VPC to the on-premises network using IAM and VPC Sharing.
c)
Create a global Cloud VPN Gateway with VPN tunnels from each region to the on-premises peer gateway.
d)
Deploy Cloud VPN Gateway in each region. Ensure that each region has at least one VPN tunnel to the on-premises peer gateway.
18.
Your applications will be writing their logs to BigQuery for analysis. Each application should have its own table. Any logs older than 45 days should be removed.
You want to optimize storage and follow Google-recommended practices. What should you do?
a)
Configure the expiration time for your tables at 45 days
b)
Make the tables time-partitioned, and configure the partition expiration at 45 days
c)
Rely on BigQuery's default behavior to prune application logs older than 45 days
d)
Create a script that uses the BigQuery command line tool (bq) to remove records older than 45 days
19.
You want your Google Kubernetes Engine cluster to automatically add or remove nodes based on CPU load.
What should you do?
a)
Configure a HorizontalPodAutoscaler with a target CPU usage. Enable the Cluster Autoscaler from the GCP Console.
b)
Configure a HorizontalPodAutoscaler with a target CPU usage. Enable autoscaling on the managed instance group for the cluster using the gcloud command.
c)
Create a deployment and set the maxUnavailable and maxSurge properties. Enable the Cluster Autoscaler using the gcloud command.
d)
Create a deployment and set the maxUnavailable and maxSurge properties. Enable autoscaling on the cluster managed instance group from the GCP Console.
20.
You need to develop procedures to verify resilience of disaster recovery for remote recovery using GCP. Your production environment is hosted on-premises. You need to establish a secure, redundant connection between your on-premises network and the GCP network.
What should you do?
a)
Verify that Dedicated Interconnect can replicate files to GCP. Verify that direct peering can establish a secure connection between your networks if Dedicated Interconnect fails.
b)
Verify that Dedicated Interconnect can replicate files to GCP. Verify that Cloud VPN can establish a secure connection between your networks if Dedicated Interconnect fails.
c)
Verify that the Transfer Appliance can replicate files to GCP. Verify that direct peering can establish a secure connection between your networks if the Transfer Appliance fails.
d)
Verify that the Transfer Appliance can replicate files to GCP. Verify that Cloud VPN can establish a secure connection between your networks if the Transfer Appliance fails.
Reset
