You have an application deployed in production. When a new version is deployed, some issues don't arise until the application receives traffic from users in production. You want to reduce both the impact and the number of users affected.
Which deployment strategy should you use?
ABlue/green deployment
BCanary deployment
CRolling deployment
DRecreate deployment
You are planning to migrate a MySQL database to the managed Cloud SQL database for Google Cloud. You have Compute Engine virtual machine instances that will connect with this Cloud SQL instance. You do not want to whitelist IPs for the Compute Engine instances to be able to access Cloud SQL.
What should you do?
AEnable private IP for the Cloud SQL instance.
BWhitelist a project to access Cloud SQL, and add Compute Engine instances in the whitelisted project.
CCreate a role in Cloud SQL that allows access to the database from external instances, and assign the Compute Engine instances to that role.
DCreate a CloudSQL instance on one project. Create Compute engine instances in a different project. Create a VPN between these two projects to allow internal access to CloudSQL.
Your company wants to expand their users outside the United States for their popular application. The company wants to ensure 99.999% availability of the database for their application and also wants to minimize the read latency for their users across the globe.
Which two actions should they take? (Choose two.)
ACreate a multi-regional Cloud Spanner instance with "nam-asia-eur1" configuration.
BCreate a multi-regional Cloud Spanner instance with "nam3" configuration.
CCreate a cluster with at least 3 Spanner nodes.
DCreate a cluster with at least 1 Spanner node.
ECreate a minimum of two Cloud Spanner instances in separate regions with at least one node.
FCreate a Cloud Dataflow pipeline to replicate data across different databases.
You are writing a single-page web application with a user-interface that communicates with a third-party API for content using XMLHttpRequest. The data displayed on the UI by the API results is less critical than other data displayed on the same web page, so it is acceptable for some requests to not have the API data displayed in the UI. However, calls made to the API should not delay rendering of other parts of the user interface. You want your application to perform well when the API response is an error or a timeout.
What should you do?
ASet the asynchronous option for your requests to the API to false and omit the widget displaying the API results when a timeout or error is encountered.
BSet the asynchronous option for your request to the API to true and omit the widget displaying the API results when a timeout or error is encountered.
CCatch timeout or error exceptions from the API call and keep trying with exponential backoff until the API response is successful.
DCatch timeout or error exceptions from the API call and display the error response in the UI widget.
Your application takes an input from a user and publishes it to the user's contacts. This input is stored in a table in Cloud Spanner. Your application is more sensitive to latency and less sensitive to consistency.
How should you perform reads from Cloud Spanner for this application?
APerform Read-Only transactions.
BPerform stale reads using single-read methods.
CPerform strong reads using single-read methods.
DPerform stale reads using read-write transactions.
You want to notify on-call engineers about a service degradation in production while minimizing development time.
What should you do?
AUse Cloud Function to monitor resources and raise alerts.
BUse Cloud Pub/Sub to monitor resources and raise alerts.
CUse Stackdriver Error Reporting to capture errors and raise alerts.
DUse Stackdriver Monitoring to monitor resources and raise alerts.
Your company has a BigQuery dataset named "Master" that keeps information about employee travel and expenses. This information is organized by employee department. That means employees should only be able to view information for their department. You want to apply a security framework to enforce this requirement with the minimum number of steps.
What should you do?
ACreate a separate dataset for each department. Create a view with an appropriate WHERE clause to select records from a particular dataset for the specific department. Authorize this view to access records from your Master dataset. Give employees the permission to this department-specific dataset.
BCreate a separate dataset for each department. Create a data pipeline for each department to copy appropriate information from the Master dataset to the specific dataset for the department. Give employees the permission to this department-specific dataset.
CCreate a dataset named Master dataset. Create a separate view for each department in the Master dataset. Give employees access to the specific view for their department.
DCreate a dataset named Master dataset. Create a separate table for each department in the Master dataset. Give employees access to the specific table for their department.
You are developing an HTTP API hosted on a Compute Engine virtual machine instance that needs to be invoked by multiple clients within the same Virtual
Private Cloud (VPC). You want clients to be able to get the IP address of the service.
What should you do?
AReserve a static external IP address and assign it to an HTTP(S) load balancing service's forwarding rule. Clients should use this IP address to connect to the service.
BReserve a static external IP address and assign it to an HTTP(S) load balancing service's forwarding rule. Then, define an A record in Cloud DNS. Clients should use the name of the A record to connect to the service.
CEnsure that clients use Compute Engine internal DNS by connecting to the instance name with the url https://[INSTANCE_NAME].[ZONE].c. [PROJECT_ID].internal/.
DEnsure that clients use Compute Engine internal DNS by connecting to the instance name with the url https://[API_NAME]/[API_VERSION]/.
You want to re-architect a monolithic application so that it follows a microservices model. You want to accomplish this efficiently while minimizing the impact of this change to the business.
Which approach should you take?
ADeploy the application to Compute Engine and turn on autoscaling.
BReplace the application's features with appropriate microservices in phases.
CRefactor the monolithic application with appropriate microservices in a single effort and deploy it.
DBuild a new application with the appropriate microservices separate from the monolith and replace it when it is complete.
Your existing application keeps user state information in a single MySQL database. This state information is very user-specific and depends heavily on how long a user has been using an application. The MySQL database is causing challenges to maintain and enhance the schema for various users.
Which storage option should you choose?
ACloud SQL
BCloud Storage
CCloud Spanner
DCloud Datastore/Firestore
You are building a new API. You want to minimize the cost of storing and reduce the latency of serving images.
Which architecture should you use?
AApp Engine backed by Cloud Storage
BCompute Engine backed by Persistent Disk
CTransfer Appliance backed by Cloud Filestore
DCloud Content Delivery Network (CDN) backed by Cloud Storage
Your company's development teams want to use Cloud Build in their projects to build and push Docker images to Container Registry. The operations team requires all Docker images to be published to a centralized, securely managed Docker registry that the operations team manages.
What should you do?
AUse Container Registry to create a registry in each development team's project. Configure the Cloud Build build to push the Docker image to the project's registry. Grant the operations team access to each development team's registry.
BCreate a separate project for the operations team that has Container Registry configured. Assign appropriate permissions to the Cloud Build service account in each developer team's project to allow access to the operation team's registry.
CCreate a separate project for the operations team that has Container Registry configured. Create a Service Account for each development team and assign the appropriate permissions to allow it access to the operations team's registry. Store the service account key file in the source code repository and use it to authenticate against the operations team's registry.
DCreate a separate project for the operations team that has the open source Docker Registry deployed on a Compute Engine virtual machine instance. Create a username and password for each development team. Store the username and password in the source code repository and use it to authenticate against the operations team's Docker registry.
Your code is running on Cloud Functions in project A. It is supposed to write an object in a Cloud Storage bucket owned by project B. However, the write call is failing with the error "403 Forbidden".
What should you do to correct the problem?
AGrant your user account the roles/storage.objectCreator role for the Cloud Storage bucket.
BGrant your user account the roles/iam.serviceAccountUser role for the [email protected] service account.
CGrant the [email protected] service account the roles/storage.objectCreator role for the Cloud Storage bucket.
DEnable the Cloud Storage API in project B.
You want to upload files from an on-premises virtual machine to Google Cloud Storage as part of a data migration. These files will be consumed by Cloud
DataProc Hadoop cluster in a GCP environment.
Which command should you use?
You migrated your applications to Google Cloud Platform and kept your existing monitoring platform. You now find that your notification system is too slow for time critical problems.
What should you do?
AReplace your entire monitoring platform with Stackdriver.
BInstall the Stackdriver agents on your Compute Engine instances.
CUse Stackdriver to capture and alert on logs, then ship them to your existing platform.
DMigrate some traffic back to your old platform and perform AB testing on the two platforms concurrently.
Your website is deployed on Compute Engine. Your marketing team wants to test conversion rates between 3 different website designs.
Which approach should you use?
ADeploy the website on App Engine and use traffic splitting.
BDeploy the website on App Engine as three separate services.
CDeploy the website on Cloud Functions and use traffic splitting.
DDeploy the website on Cloud Functions as three separate functions.
You want to use the Stackdriver Logging Agent to send an application's log file to Stackdriver from a Compute Engine virtual machine instance.
After installing the Stackdriver Logging Agent, what should you do first?
AEnable the Error Reporting API on the project.
BGrant the instance full access to all Cloud APIs.
CConfigure the application log file as a custom source.
DCreate a Stackdriver Logs Export Sink with a filter that matches the application's log entries.
Your company has a BigQuery data mart that provides analytics information to hundreds of employees. One user of wants to run jobs without interrupting important workloads. This user isn't concerned about the time it takes to run these jobs. You want to fulfill this request while minimizing cost to the company and the effort required on your part.
What should you do?
AAsk the user to run the jobs as batch jobs.
BCreate a separate project for the user to run jobs.
CAdd the user as a job.user role in the existing project.
DAllow the user to run jobs when important workloads are not running.
You are load testing your server application. During the first 30 seconds, you observe that a previously inactive Cloud Storage bucket is now servicing 2000 write requests per second and 7500 read requests per second. Your application is now receiving intermittent 5xx and 429 HTTP responses from the Cloud Storage
JSON API as the demand escalates. You want to decrease the failed responses from the Cloud Storage API.
What should you do?
ADistribute the uploads across a large number of individual storage buckets.
BUse the XML API instead of the JSON API for interfacing with Cloud Storage.
CPass the HTTP response codes back to clients that are invoking the uploads from your application.
DLimit the upload rate from your application clients so that the dormant bucket's peak request rate is reached more gradually.
Your application is logging to Stackdriver. You want to get the count of all requests on all /api/alpha/* endpoints.
What should you do?
AAdd a Stackdriver counter metric for path:/api/alpha/.
BAdd a Stackdriver counter metric for endpoint:/api/alpha/*.
CExport the logs to Cloud Storage and count lines matching /api/alpha.
DExport the logs to Cloud Pub/Sub and count lines matching /api/alpha.
You are deploying your application to a Compute Engine virtual machine instance with the Stackdriver Monitoring Agent installed. Your application is a unix process on the instance. You want to be alerted if the unix process has not run for at least 5 minutes. You are not able to change the application to generate metrics or logs.
Which alert condition should you configure?
AUptime check
BProcess health
CMetric absence
DMetric threshold
You have two tables in an ANSI-SQL compliant database with identical columns that you need to quickly combine into a single table, removing duplicate rows from the result set.
What should you do?
AUse the JOIN operator in SQL to combine the tables.
BUse nested WITH statements to combine the tables.
CUse the UNION operator in SQL to combine the tables.
DUse the UNION ALL operator in SQL to combine the tables.
You need to migrate an internal file upload API with an enforced 500-MB file size limit to App Engine.
What should you do?
AUse FTP to upload files.
BUse CPanel to upload files.
CUse signed URLs to upload files.
DChange the API to be a multipart file upload API.
You are developing a JPEG image-resizing API hosted on Google Kubernetes Engine (GKE). Callers of the service will exist within the same GKE cluster. You want clients to be able to get the IP address of the service.
What should you do?
ADefine a GKE Service. Clients should use the name of the A record in Cloud DNS to find the service's cluster IP address.
BDefine a GKE Service. Clients should use the service name in the URL to connect to the service.
CDefine a GKE Endpoint. Clients should get the endpoint name from the appropriate environment variable in the client container.
DDefine a GKE Endpoint. Clients should get the endpoint name from Cloud DNS.
You are deploying your application to a Compute Engine virtual machine instance. Your application is configured to write its log files to disk. You want to view the logs in Stackdriver Logging without changing the application code.
What should you do?
AInstall the Stackdriver Logging Agent and configure it to send the application logs.
BUse a Stackdriver Logging Library to log directly from the application to Stackdriver Logging.
CProvide the log file folder path in the metadata of the instance to configure it to send the application logs.
DChange the application to log to /var/log so that its logs are automatically sent to Stackdriver Logging.