All about DataSince, DataEngineering and ComputerScience
View the Project on GitHub datainsightat/DataScience_Examples
https://cloud.google.com/certification/data-engineer
Low-cost one-way one-time migration of two 100-TB file servers to Google Cloud; data will be frequently accessed and only from Germany.
A is correct because you are performing a one-time (rather than an ongoing services) data transfer from on-premises to Google Cloud for users in a single region (Germany). Using a Standard storage bucket is best for data is frequently accessed, will reduce cost and also best for data that is frequently accessed, will reduce cost and also conform to regulatory requirements. B is not correct because you should only use Transfer Service for a one-time one-way transfer. Also, Storage Transfer Service does not work for data stored on-premises.
A Data Analyst is concerned that a BigQuery query clould be too expensive.
C is correct. SELECT limits the input data. A is not correct because the LIMIT clause limits the output, but does not limit data processes.
250,000 devices produce a JSON device status every 10 Seconds. How do you capture event data for outlier time series analysis?
B is correct because the data type, volume, and query pattern best fit Cloud Bigtable capabilities. C is not correct because you do not need to use BigQuery for the query pattern in this scenario. The focus is on a single action (identify outliers), not an interactive analysis. And the speed of the data is more suited for Cloud BigTable.
BigQuery data is stored in external CSV files in Cloud Storage; as the data has increased, the query performance has dropped.
A Is correct. The performance issue is because the data is stored in a non-optimal format in an external storage medium.
A client has been developing a pipeline based on PCollections using local programming techniques and is ready to scale up to production. What should they do?
A is correct. The PCollection indicates it is a Dataflow pipeline. And the Cloud Runner will enable to scale to production levels.
Host a deep neural network machine learning model on Google Cloud. Run and monitor jobs that could occasionally fail.
C is correct because of the requirement to host an ML DNN. Vertex AI for Tensorflow can handle DNNs. Google recommends monitoring Jobs, not Operations.
Three Google Cloud services commonly used together in data engineering solutions
C is correct. Pub/Sub provides messaging, Dataflow is used for ETL and data transformation, and BigQuery is used for interactive queries.
You want to minimize costs to run Google Data Studio reports on BigQuery queries by using prefetch caching.
C is correct because you must set Owner credentials to use the ‘enable cache’ option in BigQuery. It is also a Google best practive to use the ‘enable cache’ option when the business scenario calls for using prefetch caching. 1) Report must use Owner’s Credentials. 2) You don’t need to tell the users not to use the report, you need to tell the system to use Query and Pre-fetch caching to cut down on BigQuery jobs.
What is (AVRO)[https://avro.apache.org/docs/current/] used for?
A is correct. AVRO is a serialization / de-serialization standard. B is not correct. AVRO is not a file format. It is a serialization method.
Customer wants to maintain investment in an existing Apache Spark code data pipeline.
B is correct because Dataproc is a managed Hadoop service and runs Apacke Spark applications.
Promote a Cloud BigTable solution with a lot of data from development to production and optimize for performance.
C is correct because Cloud Bigtable allows you to ‘scale in place’ which meets your requirements for this scenario.
A company wants to connect cloud applications to an Oracle databese in its data center. Requirements are a maximum of 9 Gbps of data and a Service Level Agreements (SLA) of 99%
A is correct. Partner Interconnect is useful for data up to 10 Gbps and is offered by ISPs with SLAs. B is not correct. Direct Interconnect is useful for data from 10 Gbps to 80 Gbps. An ISP could offer a 99% SLA, but the max 9 Gbps requirement means this solution would not be optimal. A is not correct. Cloud VPN traverses the public internet. It is useful for low-volume connections. The SLA offered by Google covers the Cloud VPN service itself, and not the internet transport. So it would not meet the SLA requirement.
Source data is streamed in bursts and must be transformed before use.
D is correct because the unpredictable data requires a buffer.
A cllient wants to store files from one location and retrieve them from another location. Security requirements are that no one should be able to access the contants of the file while it is hosted in the cloud. What is the best option?
C is correct. The requirement is that the file cannot be decrypted in the cloud, so encrypt it before it is uploaded and after it is downloaded adds a layer of encryption. A is wrong, because the file will be readable within the project. D is not correct. The file can still be decrypted while hosted in the cloud
A company has a new IoT Pipeline. Which services will make this design work? Select the services that should be used to replace the icons with the number “1” and “2” in the diagram
B is correct because device data captured by IoT Core gets published to Pub/Sub. C is not correct, because Pub/Sub does not do device management.
Calculate a runnig average of streaming data that can arrive late and out of order
A is correct because together, Pub/Sub and Dataflow can provide a solution.
Storage of JSON files with occasionally changing schema, for ANSI SQL queries.
B is correct because of the requirement to support occasionally (schema) changing JSON files an aggregate ANSI SQL queries: you need to use BigQuery, and it is quickest to use ‘Automatically detect’ for schema changes. D is not correct because you should not use Cloud Storage for this scenario: it is cumbersome and doesn’t add value.
Testing a Machine Learning model with validatoin data returns 100% correct answers.
A company has migrated their Hadoop cluster to the cloud and is now using Dataproc with the same settings and same methodes as in the data center. What would you advise them to do to make better use of the cloud environment?
B is correct. Storing persistent data off the cluster allows the cluster to be shut down when not processing data. And it allows separate clusters to be started per job of per kind of work, so tuning is less important.
Cost-effective backup to Google Cloud of multi-TB databases from another cloud including monthly DR drills.
B is correct because you will need to access you backup data monthly to test your disaster recovery process, so you should use a Nearline bucket; also because you will be performing ongoing, regular data transfers, so you should use Storage Transfer Services. D is not correct because you should not use Coldline if you want to access the files monthly.
As part of your backup plan, you want to be able to restore snapshots of Compute Engine instances using the fewest steps.
Cost-effective way to run non-critical Apache Spark jobs on Dataproc?
B is correct because Spark and high-memory machines only need the standared mode. Also, use prremptible nodes because you want to save money and this is not mission-critical.
A client is using Cloud SQL database to serve infrequently changing lookup tables that host data used by applications. The applications will not modify the tables. As they expand into other geographic regions they want to ensure good performance. What fo you recommend?
C is correct. A read replica will increase the availability of the service and can be located closer to the users in the new geographiers. A is not correct because there is no mention of a scale issue requiring a larger database of globally consistent transactions.
Event data in CSV format to be queried for individual values over time windows. Which storage and schema to minimize query costs?
A is correct because it is a recommended best practice. Use Cloud Bigtable and this schema for this scenario. Cloud Storage would have cheaper Storage costs than Cloud Bigtable, but we want to minimize Query Costs. D is not correct because you do not need to use Google Cloud Storage for this scenario. It might be chraper for storage, but not for processing.
An application has the following data requirements. 1. It requires strongly consistent transactions 2. Total data will be less than 500 GB. 3. The data does not need to be straming or real time. Which dta technology would fit these requirements?
B is correct. Cloud SQL supports strongly consistent transactions. And the size requirements will fit with a Cloud SQL instance. C is not correct. Cloud BigTable is not designed to support strongly consistent transactions.
You are building storage for files for a data pipeline on Google Cloud. You want to support JSON files. The schema of these files will occasionally change. Your analyst teams will use running aggregate ANSI SQL queries on this data. What should you do?
B is correct because of the requirement to support occasionally (schema) changing JSON files and aggregate ANSI SQL queries: you need to use BigQuery, and it is quickest to use ‘Automatically detect’ for schema changes. A is not correct because you should not provide format files: you can simply turn on the ‘Automatically detect’ schema changes flag. C, D are not correct because you should not use Cloud Storage for this scenario: it is cumbersome and doesn’t add value.
You use a Hadoop cluster both for serving analytics and for processing and transforming data. The data is currently stored on HDFS in Parquet format. The data processing jobs run for 6 hours each night. Analytics users can access the system 24 hours a day. Phase 1 is to quickly migrate the entire Hadoop environment without a major re-architecture. Phase 2 will include migrating to BigQuery for analytics and to Dataflow for data processing. You want to make the future migration to BigQuery and Dataflow easier by following Google-recommended practices and managed services. What should you do?
A is not correct because it is not recommended to attach persistent HDFS to Dataproc clusters in Google Cloud. (see references link) B Is not correct because they want to leverage managed services which would mean Dataproc. C is not correct because it is recommended that Dataproc clusters be job specific. D Is correct because it leverages a managed service (Dataproc), the data is stored on Cloud Storage in Parquet format which can easily be loaded into BigQuery in the future and the Dataproc clusters are job specific.
You are building a new real-time data warehouse for your company and will use BigQuery streaming inserts. There is no guarantee that data will only be sent in once but you do have a unique ID for each row of data and an event timestamp. You want to ensure that duplicates are not included while interactively querying data. Which query type should you use?
A is not correct because this will just return one row. B is not correct because this doesn’t get you the latest value, but will get you a sum of the same event over time which doesn’t make too much sense if you have duplicates. C is not correct because if you have events that are not duplicated, it will be excluded. D is correct because it will just pick out a single row for each set of duplicates.
You are designing a streaming pipeline for ingesting player interaction data for a mobile game. You want the pipeline to handle out-of-order data delayed up to 15 minutes on a per-player basis and exponential growth in global users. What should you do?
A Is correct because the question requires delay be handled on a per-player basis and session windowing will do that. Pub/Sub handles the need to scale exponentially with traffic coming from around the globe. B Is not correct because Apache Kafka will not be able to handle an exponential growth in users globally as well as Pub/Sub. C is not correct because a global window does not meet the requirements of handling out-of-order delay on a per-player basis. D is not correct because a global window does not meet the requirements of handling out-of-order delay on a per-player basis.
Your company is loading CSV files into BigQuery. The data is fully imported successfully; however, the imported data is not matching byte-to-byte to the source file. What is the most likely cause of this problem?
A is not correct because if another data format other than CSV was selected then the data would not import successfully. B is not correct because the data was fully imported meaning no rows were skipped. C is correct because this is the only situation that would cause successful import. D is not correct because whether the data has been previously transformed will not affect whether the source file will match the BigQuery table.
Your company is migrating their 30-node Apache Hadoop cluster to the cloud. They want to re-use Hadoop jobs they have already created and minimize the management of the cluster as much as possible. They also want to be able to persist data beyond the life of the cluster. What should you do?
A is not correct because the goal is to re-use their Hadoop jobs and MapReduce and/or Spark jobs cannot simply be moved to Dataflow. B is not correct because the goal is to persist the data beyond the life of the ephemeral clusters, and if HDFS is used as the primary attached storage mechanism, it will also disappear at the end of the cluster’s life. C is not correct because the goal is to use managed services as much as possible, and this is the opposite. D is correct because it uses managed services, and also allows for the data to persist on GCS beyond the life of the cluster. E is not correct because of the same reasons as option C.
You have 250,000 devices which produce a JSON device status event every 10 seconds. You want to capture this event data for outlier time series analysis. What should you do?
C is correct because the data type, volume, and query pattern best fits BigTable capabilities and also Google best practices as linked below.
A, B are not correct because you do not need to use BigQuery for the query pattern in this scenario.
D is not correct because you can use the simpler method of ‘cbt tool’ to support this scenario.
Best Practice
You are selecting a messaging service for log messages that must include final result message ordering as part of building a data pipeline on Google Cloud. You want to stream input for 5 days and be able to query the current status. You will be storing the data in a searchable repository. How should you set up the input messages?
A is correct because of recommended Google practices; see the links below. B is not correct because you should not attach a GUID to each message to support the scenario. C, D are not correct because you should not use Apache Kafka for this scenario (it is overly complex compared to using Pub/Sub, which can support all of the requirements).
Best Practice
You want to publish system metrics to Google Cloud from a large number of on-prem hypervisors and VMs for analysis and creation of dashboards. You have an existing custom monitoring agent deployed to all the hypervisors and your on-prem metrics system is unable to handle the load. You want to design a system that can collect and store metrics at scale. You don’t want to manage your own time series database. Metrics from all agents should be written to the same table but agents must not have permission to modify or read data written by other agents. What should you do?
A Is correct because Bigtable can store and analyze time series data, and the solution is using managed services which is what the requirements are calling for. B Is not correct because BigTable cannot limit access to specific tables. C is not correct because it requires deployment of an HBase cluster. D is not correct because it requires deployment of a Cassandra cluster.
You are designing storage for CSV files and using an I/O-intensive custom Apache Spark transform as part of deploying a data pipeline on Google Cloud. You intend to use ANSI SQL to run queries for your analysts. How should you transform the input data?
B is correct because of the requirement to use custom Spark transforms; use Dataproc. ANSI SQL queries require the use of BigQuery. A is not correct because Dataflow does not support Spark. C, D are not correct because Cloud Storage does not support SQL, and you should not use Dataflow, either.
Best Practice
You are designing a relational data repository on Google Cloud to grow as needed. The data will be transactionally consistent and added from any location in the world. You want to monitor and adjust node count for input traffic, which can spike unpredictably. What should you do?
B is correct because of the requirement to globally scalable transactions—use Cloud Spanner. CPU utilization is the recommended metric for scaling, per Google best practices, linked below. A is not correct because you should not use storage utilization as a scaling metric. C, D are not correct because you should not use Cloud Bigtable for this scenario.
Best Practice
You have a Spark application that writes data to Cloud Storage in Parquet format. You scheduled the application to run daily using DataProcSparkOperator and Apache Airflow DAG by Cloud Composer. You want to add tasks to the DAG to make the data available to BigQuery users. You want to maximize query speed and configure partitioning and clustering on the table. What should you do?
B Is not correct because bq cp is for existing BigQuery tables only A Is not correct because bq insert will not set the partitioning and clustering and only supports JSON C is correct because it loads the data and sets partitioning and clustering D is not correct because an external table will not satisfy the query speed requirement
Best Practice
You have a website that tracks page visits for each user and then creates a Pub/Sub message with the session ID and URL of the page. You want to create a Dataflow pipeline that sums the total number of pages visited by each user and writes the result to BigQuery. User sessions timeout after 30 minutes. Which type of Dataflow window should you choose?
B. There is no per-user metric being used so it’s possible a sum will be created for some users while they are still browsing the site. D. If a user is still visiting the site when the 30-min window closes, the sum will be wrong. C. This is correct because it continues to sum user page visits during their browsing session and completes at the same time as the session timeout. A. A user-specific sum is never calculated, just sums for arbitrary 30-min windows of time staggered by 5 minutes.
Best Practice
You are designing a basket abandonment system for an ecommerce company. The system will send a message to a user based on these rules: a). No interaction by the user on the site for 1 hour b). Has added more than $30 worth of products to the basket c). Has not completed a transaction. You use Dataflow to process the data and decide if a message should be sent. How should you design the pipeline?
A is not correct because assuming there is one key per user, a message will be sent every 60 minutes. B is not correct because assuming there is one key per user, a message will be sent 60 minutes after they first started browsing even if they are still browsing. C is correct because it will send a message per user after that user is inactive for 60 minutes. D is not correct because it will cause messages to be sent out every 60 minutes to all users regardless of where they are in their current session.
Best Practice
You need to stream time-series data in Avro format, and then write this to both BigQuery and Cloud Bigtable simultaneously using Dataflow. You want to achieve minimal end-to-end latency. Your business requirements state this needs to be completed as quickly as possible. What should you do?
A Is not correct because ParDo doesn’t write to BigQuery or BigTable B Is not correct because Combine doesn’t write to BigQuery or Bigtable C Is correct because this is the right set of transformations that accepts and writes to the required data stores. D Is not correct because to meet the business requirements, it is much faster and easier using dataflow answer C
Best Practice
Your company’s on-premises Apache Hadoop servers are approaching end-of-life, and IT has decided to migrate the cluster to Dataproc. A like-for-like migration of the cluster would require 50 TB of Google Persistent Disk per node. The CIO is concerned about the cost of using that much block storage. You want to minimize the storage cost of the migration. What should you do?
A is correct because Google recommends using Cloud Storage instead of HDFS as it is much more cost effective especially when jobs aren’t running. B is not correct because this will decrease the compute cost but not the storage cost. C is not correct because while this will reduce cost somewhat, it will not be as cost effective as using Cloud Storage. D is not correct because while this will reduce cost somewhat, it will not be as cost effective as using Cloud Storage.
Best Practice
You are designing storage for two relational tables that are part of a 10-TB database on Google Cloud. You want to support transactions that scale horizontally. You also want to optimize data for range queries on non-key columns. What should you do?
A is not correct because Cloud SQL does not natively scale horizontally. B is not correct because Cloud SQL does not natively scale horizontally. C is correct because Cloud Spanner scales horizontally, and you can create secondary indexes for the range queries that are required. D is not correct because Dataflow is a data pipelining tool to move and transform data, but the use case is centered around querying.
Your company is streaming real-time sensor data from their factory floor into Bigtable and they have noticed extremely poor performance. How should the row key be redesigned to improve Bigtable performance on queries that populate real-time dashboards?
A is not correct because this will cause most writes to be pushed to a single node (known as hotspotting) B is not correct because this will not allow for multiple readings from the same sensor as new readings will overwrite old ones. C is not correct because this will cause most writes to be pushed to a single node (known as hotspotting) D is correct because it will allow for retrieval of data based on both sensor id and timestamp but without causing hotspotting.
Best Practice
You are developing an application on Google Cloud that will automatically generate subject labels for users’ blog posts. You are under competitive pressure to add this feature quickly, and you have no additional developer resources. No one on your team has experience with machine learning. What should you do?
A is correct because it provides a managed service and a fully trained model, and the user is pulling the entities, which is the right label. B is not correct because sentiment is the incorrect label for this use case. C is not correct because this requires experience with machine learning. D is not correct because this requires experience with machine learning.
Your company is using WILDCARD tables to query data across multiple tables with similar names. The SQL statement is currently failing with the error shown below. Which table name will make the SQL statement work correctly? Captionless Image
# Syntax error: Expected end of statement but got "-" at [4:11]
select
age
from
bigquery-public-data.noaa_gsod.gsod
where
age != 99
and _table_suffix = '1929'
order by
age desc
bigquery-public-data.noaa_gsod.gsod
bigquery-public-data.noaa_gsod.gsod*
A is not correct because this is not the correct wildcard syntax as there is no wildcard character present. B is not correct because this is not the correct wildcard syntax since it’s missing backticks. C is not correct because this is not the correct wildcard syntax since it’s not using a backtick as the last character D is correct because it follows the correct wildcard syntax of enclosing the table name in backticks and including the * wildcard character.
You are working on an ML-based application that will transcribe conversations between manufacturing workers. These conversations are in English and between 30-40 sec long. Conversation recordings come from old enterprise radio sets that have a low sampling rate of 8000 Hz, but you have a large dataset of these recorded conversations with their transcriptions. You want to follow Google-recommended practices. How should you proceed with building your application?
A Is correct because synchronous mode is recommended for short audio files. B is incorrect since the recommended way to process short audio files (shorter than 1 minutes) is a synchronous recognize request and not an asynchronous one. C Is incorrect since using the native sample rate is recommended over resampling. D Is incorrect since there is nothing in the question that suggests the off-the-shelf model will not perform sufficiently.
You are developing an application on Google Cloud that will label famous landmarks in users’ photos. You are under competitive pressure to develop a predictive model quickly. You need to keep service costs low. What should you do?
B is correct because of the requirement to quickly develop a model that generates landmark labels from photos. This is supported in Cloud Vision API; see the link below. A is not correct because you should not inspect the generated MID values; instead, you should simply pass the image locations to the API and use the labels, which are output. C, D are not correct because you should not build a custom classification TF model for this scenario.
You are building a data pipeline on Google Cloud. You need to select services that will host a deep neural network machine-learning model also hosted on Google Cloud. You also need to monitor and run jobs that could occasionally fail. What should you do?
B is correct because of the requirement to host an ML DNN and Google-recommended monitoring object (Jobs); see the links below. A is not correct because you should not use the Operation object to monitor failures. C, D are not correct because you should not use a Kubernetes Engine cluster for this scenario.
You work on a regression problem in a natural language processing domain, and you have M labeled examples in your dataset. You have randomly shuffled your data and split your dataset into training and test samples (in a 90/10 ratio). After you have trained the neural network and evaluated your model on a test set, you discover that the root-mean-squared error (RMSE) of your model is twice as high on the train set as on the test set. How should you improve the performance of your model?
A Is incorrect since test sample is large enough C Is incorrect since regularization helps to avoid overfitting and we have a clear underfitting case B is incorrect since dataset is pretty large already, and having more data typically helps with overfitting and not with underfitting D Is correct since increasing model complexity generally helps when you have an underfitting problem
You are using Pub/Sub to stream inventory updates from many point-of-sale (POS) terminals into BigQuery. Each update event has the following information: product identifier “prodSku”, change increment “quantityDelta”, POS identification “termId”, and “messageId” which is created for each push attempt from the terminal. During a network outage, you discovered that duplicated messages were sent, causing the inventory system to over-count the changes. You determine that the terminal application has design problems and may send the same event more than once during push retries. You want to ensure that the inventory update is accurate. What should you do?
B Is not correct because duplication in this case could be caused by a terminal re-try, in which case messageId could be different for the same event. A Is not correct because publishTime cannot uniquely identify a message and it does not address push retries. D is correct because the client application must include a unique identifier to disambiguate possible duplicates due to push retries. C is not correct because there are many terminals. Calculating the projected inventory values on the terminal introduces a race condition where multiple terminals could update the inventory data simultaneously.
You designed a database for patient records as a pilot project to cover a few hundred patients in three clinics. Your design used a single database table to represent all patients and their visits, and you used self-joins to generate reports. The server resource utilization was at 50%. Since then, the scope of the project has expanded. The database table must now store 100 times more patient records. You can no longer run the reports, because they either take too long or they encounter errors with insufficient compute resources. How should you adjust the database design?
A is not correct because adding additional compute resources is not a recommended way to resolve database schema problems. B is not correct because this will reduce the functionality of the database and make running reports more difficult. C is correct because this option provides the least amount of inconvenience over using pre-specified date ranges or one table per clinic while also increasing performance due to avoiding self-joins. D is not correct because this will likely increase the number of tables so much that it will be more difficult to generate reports vs. the correct option.
Your startup has never implemented a formal security policy. Currently, everyone in the company has access to the datasets stored in BigQuery. Teams have the freedom to use the service as they see fit, and they have not documented their use cases. You have been asked to secure the data warehouse. You need to discover what everyone is doing. What should you do first?
A is correct because this is the best way to get granular access to data showing which users are accessing which data. B is not correct because we already know that all users already have access to all data, so this information is unlikely to be useful. It will also not show what users have done, just what they can do. C is not correct because slot usage will not inform security policy. D is not correct because a billing account is typically shared among many people and will only show the amount of data queried and stored.
You created a job which runs daily to import highly sensitive data from an on-premises location to Cloud Storage. You also set up a streaming data insert into Cloud Storage via a Kafka node that is running on a Compute Engine instance. You need to encrypt the data at rest and supply your own encryption key. Your key should not be stored in the Google Cloud. What should you do?
D is correct because the scenario requires you to use your own key and also to not store your key on Compute Engine, and also this is a Google recommended practice; see the links below. A is not correct because the scenario states that you must supply your own encryption key instead of using one generated by Google Cloud. B is not correct because the scenario states that you should use, but not store, your own key with Google Cloud services. C is not correct because it does not meet the scenario requirement to reference, but not store, your own key with Google Cloud services.
You are working on a project with two compliance requirements. The first requirement states that your developers should be able to see the Google Cloud billing charges for only their own projects. The second requirement states that your finance team members can set budgets and view the current charges for all projects in the organization. The finance team should not be able to view the project contents. You want to set permissions. What should you do?
B is correct because it uses the principle of least privilege for IAM roles; use the Billing Administrator IAM role for that job function. A, C, D are not correct because it is a best practice to use pre-defined IAM roles when they exist and match your business scenario; see the links below.
An application that relies on Cloud SQL to read infrequently changing data is predicted to grow dramatically. How can you increase capacity for more read-only clients?
D is correct. A High availibility does nothing to improce throughput; it makes the service more accessible. B An external replica is more of a backup activity; it does not add to throughput on the cloud. C Backups would not make sense in this scenario.
A BigQuery dataset was located near Tokyo. For efficiency reasons, the company wants the dataset duplicated in Germany.
D is correct. BigQuery imports an exports data to local or multi-regional buckets in the same location. So you need to use Cloud Storage as an intermediary to transfer the data to the new location.A Datasets are immutable, so the location can’t be updated. B BigQuery writes and reads from bearby buckets, so the new location can’t read the old location data. C BigQuery doesn’t provide a location-to-location move or copy command.
Your client wans a tranactionally consistent global retlational repository. You need to be able to monitor and adjust node count for unpredictable traffic spikes.
B is correct because of the requirement to globally scaleable transactions - use Cloud Spanner. CPU utilization is the recommended metric for scaling, per Google best practices, linked below. A is not correct because you should not use storage utilization as a scaling metric. C,D are not correct because you should not use Cloud Bigtable for such a scenario.
Quickly and inexpensively develop an application that sorts product reviews by most favorable to least favorable.
C is correct. Use pre-trained model whenever possible. In this case the Natural Language API with sentiment analysis returns score and magnitude of sentimen. A and B are incorrect because they require creating a model insted of using an exising one. D is incorrect because entity analysis will not determine senitment: it recognizes objects, not opinions.
Maximize speed and minimize cost of deploying a TensorFlow machine-learning model on Google Cloud.
A is correct because of Google recommended practices; that is “just deploy it”. B is not correct because you should not run your model from Google Kubernetes Engine. C and D are not correct because you should not export 2 copies of your trained model, etc. for this scenario.
Group Analyst 1 and Analyst 2 should not have access to each other’s BigQuery data.
C is correct. BigQuery data access is controlled at the dataset level. A is not correct becauer BigQuery does not provide IAM access control to the individual table. B is not correct because the Analyst groups can be in the same project. D is incorrect because encryption does not determine access.
Provide Analyst 3 secure access to BigQuery query results, but not the underlying tables or datasets.
B is correct. You need to copy/store the query results in a separate dataset and provide authorization to view and/or user that dataset. A is not secure. C The readonly.viewer role does not exist AND secure access connot be applied to a query. D An organizational role is too broad and violates the principle of ‘least privilege’.
Use Data Studio to visualize YouTube titles and aggregated view counts summarized over 30 days and segmented by Country in the fewst steps.
B is correct because there is no need to export; you can use the existing YouTube data source. Country Code is a dimension because it’s a string and should be displayed as such, that is, showing all countries, insted of filtering. A is not correct because you cannot produce a summazized report that meets you business requirements using the options listed. C and D are not correct because you do not need to export data from YouTube to Cloud Storage, you can simply use the exising YouTube data source.
True or false: Cloud Storage is well suited to providing the root file system of a Linux virtual machine
A is correct. Cloud Storage is object storage rather than file storage. Compute Engine virtual machines use Persistent Disk storage to contain their file systems.
Your Cloud Storage objects live in buckets. Which of these characterisctics do you define on a per-bucket basis?
Why would a customer consider the Coldline storage class ?
D is correct. Data stored in Coldline is billed at a low monthly storage rate, although a fee is assessed on retrievals.
Each table in NoSQL databases such as Cloud Bigtable has a single schema that is enforced vy the database engine itself.
B is correct
Some developers think of Cloud Bigtable as a persitent hashtable. What does that mean?
B is correct.
Which database service presents a MySQL or PostgreSQL interface to clients
B is correct.
Which database service offers transactional consistency at a global scale?
A is correct
Which database service can scale to hiher database sizes?
B is correct
Cloud Datastore databases can span App Engine and Compute Engine applications
A is True
How are Cloud Datastore and Cloud Bigtable alike? Choose all that are correct
B and C are true.
You are building a small application. If possible, you’d like this aplication’s data storage to be at no additional charge. Which service has a free daily quota, separate from any fee trials?
C is right
Which GCP storage service is often the ingestion point for data being moved into the cloud, and is frequently the long-term storage location for data?
C is right
Your application needs to store data with strong transactional consistency, and you want seamless scaling up. Which storage option is the best choice for your application?
C is right
Which statement is true about objects in Cloud Storage?
C is right
You are developing an application that transcodes large video files. Which storage option is the best choice for your application?
C is right
Your application needs a relational database, and it excepts to talk to MySQL. Which storage option is the best choice for your application?
C is right
You manufacture devices with sensors and need to stream huge amounts of data from these devices to a storage option in the cloud. Which Google Cloud Platform storage option is the best choice for your application?
C is right
How do the Nearline and Coldline storage classes differ from Multi-regional and Regional? Choose all that are correct.
C and D are correct.
What ist a Kubernetes cluster?
1 X A group of machines where Kubernetes can schedule workloads 2 group of containers that provide high availability for applications
A is correct. A Kubernetes cluster is a group of machines where Kubernetes can schedule containers in pods. The machines in the cluster are called “nodes”.
What is Kubernetes pod?
1 A group of containers 2 A group of nodes 3 X A group of clusters
C is correct. In Kubernetes, a group of one or more containers is called a pod. Cotnainers in a pod are deployes together. They are started, stopped, and repolicated as a group. The simplest workload that Kubernets can deploy is pod that consists onöy of a single container.
Google keeps Kubernetes Engine refreshed with successive version of Kubernetes.
1 X True 2 False
A is correct. The Kubernetes Engine team periodically performs automatic upgrades of your cluster master to newer stable versions of Kubernetes, and you can enable automatic node upgrades too.
Where do the resources used to build Kubernetes Enginge clusters come from?
1 X Compute Engine 2 Bare-metal servers 3 App Engine
A is correct. Because the resources used to build Kubernetes Engine clusters come from Compute Engine, Kubernetes Engine gets to take advantage of Compute Engines’s and Goodle VPC’s capabilities.
Does Goole Cloud Platform offer its own tool for building containers (other than the ordinary docker command)?
B is correct.
Google Clod Platform provides a secure, high-speed container image storage sevice for use with Kubernetes Engine.
B is correct.
In Kubernetes, what does “pod” refer to?
D is correct.
Identiy two reasons for deploying applications using containers.
A and D are correct
Kubernetes allows you to mange container clusters in multiple cloud providers
B is correct
Where do your Kubernetes Engine workloads run?
D is correct
App Engine is a better choice for a web application than for long-running batch processing
A is correct
App Engine just runs applications; it doesn’t offer any services to the applications it runs
B is correct
Which of these cirteeria would make you choose App Engine Flexible Environment, rather than Standard Environment, for your application? Choose all that are corrext
A and C are correact
App Engine Flexible Environment applications let their owners control the gropgraphic region where they run.
B is correct
You want to do businesss analytics and billing on a customer-facing API. Which GCP service should you choose?
A is correct
Name 3 advantages of using the App Engine Standard Environment over App Engine Flexible.
A, B and C are correct
You want to support developers who are building services in GCP through API logging and monitoring. Which GCP service should you choose?
A is correct
Which statements are true about App engine?
A and B are correct
You want to gradually decompose a pre-existing monolithic application, not implemented in GCP, into microservices. Which GCP service should you choose?
A is correct
Name 3 advantages of using the App Engine Flexible Environment over App Engine Standard.
A, B and D are correct
Why would a developer choose to store source code in Cloud Source Repositories?
A and C are correct
What is the advantage of putting event-driven components of your application into Cloud Functions?
B is correct
Why might a GCP customer choose to use Deployment Mangager?
C is correct
You want to define alerts on your GCP resources, such as when health checks fail. Which is the best GCP product to use?
D is correct
Why might a GCP customer choose to use Cloud Source Repositories?
C is correct
Which statements are true about Strackdriver Logging? Choose all that are true
D and E are correct
Why might a GCP customer choose to use Cloud Functions?
C is correct
Name three use cases for Cloud Pub/Sub
B, C and D are correct
Name three use cases for the Google Cloud Machine Learning Platform
B, C and E are correct
Name two use cases for Google Cloud Dataflow
A and C are correct
What is Tensorflow
A is correct
Which statements are true about BigQuery?
B and E are correct
What does the Cloud Natural Language API do?
A is correct
Name two use cases for Google Cloud Dataproc
A and D are correct
Which of these storage needs is best addressed ny Cloud Spanner?
A is correct
For what kind of traffic would the regional load balancer be the first choice?
A and D are correct
Which compute service lets customers focus on their applications, leaving most infrastructure and procisioning to Google, while still offer offering various choices af runtime?
A is correct
Which compute service lets customers supply chunks of code, which get run on-demand in response to events, on infrastructure wholly managed by Google?
A is correct
Which of these storage needs is best addressed by Cloud Bigtable?
D is correct
Which compute service lets customers run virtual machines that run on Google’s infrastructure
C is correct
Choose a simple way to let a VPN into your Google VPC continue to work in spite of routing changes
A is correct
Which compute service lets customers deploy their applications in containers that run in clusters on Google’s infrastructure?
A is correct
Which of these storage needs is best addressed by Cloud Datastore?
A is correct
Which of these storage needs is best addressed by Cloud Storage?
B is correct