MCQs > IT & Programming > Google Cloud Platform (GCP) MCQs > Basic Google Cloud Platform (GCP) MCQs

Basic Google Cloud Platform (GCP) MCQ

1. You want to encrypt a Compute Engine image. What do you need to do ?

Answer

Correct Answer: Associate your image with a customer-managed key to encrypt it.

Note: This Question is unanswered, help us to find answer for this one

2. Which container(s) does Google Kubernetes Engine support?Which container(s) does Google Kubernetes Engine support?

Answer

Correct Answer: Docker only

Note: This Question is unanswered, help us to find answer for this one

3. To configure a GCP Organization, which item should you create first?To configure a GCP Organization, which item should you create first?

Answer

Correct Answer: Admin account

Note: This Question is unanswered, help us to find answer for this one

4. How do you run a Docker container image on a Google Compute Engine virtual machine?

Answer

Correct Answer: Create a VM instance and, in the web Ul, select Deploy a container image to this instance.

Note: This Question is unanswered, help us to find answer for this one

5. You have a set of exploratory queries that you want to run as inexpensively as possible in BigQuery. What should you do?

Answer

Correct Answer: Set the job priority for each query to Interactive and expect to see query results immediately.

Note: This Question is unanswered, help us to find answer for this one

6. You want to select a fully managed, serverless platform for developing and hosting web applications at scale on GCP. Which service should you choose?

Answer

Correct Answer: Google App Engine.

Note: This Question is unanswered, help us to find answer for this one

7. You need to answer the question "How long does it take my application to handle a given request?" What do you do?

Answer

Correct Answer: Configure Stackdriver Trace.

Note: This Question is unanswered, help us to find answer for this one

8. You need to quickly build an application that logs all file uploads to a Cloud Storage bucket. Which service do you select?

Answer

Correct Answer: Cloud Functions

Note: This Question is unanswered, help us to find answer for this one

9. You are implementing IAM roles for your organization following GCP best practice. Which statement best reflects this?

Answer

Correct Answer: At minimum, you should have three levels of access: one for admins, one for security, one for users.

Note: This Question is unanswered, help us to find answer for this one

10. How can you quickly back up a persistent disk on Compute Engine?

Answer

Correct Answer: Take a snapshot

Note: This Question is unanswered, help us to find answer for this one

11. You are designing a GCP replacement for your on-premises data warehouse. Which service do you select?

Answer

Correct Answer: BigQuery

Note: This Question is unanswered, help us to find answer for this one

12. You need to optimize spending for always-on Compute Engine virtual machines of certain sizes and types-with minimum effort. What do you do?

Answer

Correct Answer: Analyze machine usage to verify that machines will be on for more that 25% of the time, and verify that sustained use discounts have been automatically applied to your bill.

Note: This Question is unanswered, help us to find answer for this one

13. You want to encrypt a Compute Engine. What do you need to do?

Answer

Correct Answer: Nothing. Images are encrypted by default with a Google-managed key.

Note: This Question is unanswered, help us to find answer for this one

14. To be able to decrypt files that were encrypted with a customer-manager key, what conditions must be met?

Answer

Correct Answer: Specify the decryption key with the same name as the encryption key. At least one version of a key with that name must be enabled.

Note: This Question is unanswered, help us to find answer for this one

15. How do you configure Cloud Build to rebuild your image when a change is made to the source code?

Answer

Correct Answer: Add a Cloud Build trigger, and set it to fire on commit to associate repository.

Note: This Question is unanswered, help us to find answer for this one

16. You need to set a WordPress site with high availability on GCP using the fewest steps. What do you do?

Answer

Correct Answer: Create, configure, and launch a WordPress HA deployment template on Compute Engine.

Note: This Question is unanswered, help us to find answer for this one

17. You are designing security for an IoT device application. What best practices should you include in your design?

Answer

Correct Answer: Use a public private key pair for each device. Keep the private key secret

Note: This Question is unanswered, help us to find answer for this one

18. You need to cache your HTTP and HTTPS static content closer to users, so that you can get faster delivery and reduce serving costs. Which service do you set up?

Answer

Correct Answer: Cloud CDN

Note: This Question is unanswered, help us to find answer for this one

19. Which object is used to hold payment information for a GCP project?

Answer

Correct Answer: Billing account

Note: This Question is unanswered, help us to find answer for this one

20. What is needed to access GCP APIs in your project?

Answer

Correct Answer: GCP users

Note: This Question is unanswered, help us to find answer for this one

21. Which object is a container for GCP services instances?

Answer

Correct Answer: Project

Note: This Question is unanswered, help us to find answer for this one

22. You need to control incoming and outgoing traffic to a Compute Engine instance. What do yo do?

Answer

Correct Answer: Configure firewall rules.

Note: This Question is unanswered, help us to find answer for this one

23. You want to automatically perform security scans on user-developed containers. Where should you advise your users to host their containers?

Answer

Correct Answer: Google Container Registry

Note: This Question is unanswered, help us to find answer for this one

24. You need to create instances with identical configurations that cannot be changed. Which Compute Engine feature do yo use?

Answer

Correct Answer: Instance templates

Note: This Question is unanswered, help us to find answer for this one

25. For your application, you are building a CI/CD pipeline that logs information when a message is sent to a queue. Which services should you select?

Answer

Correct Answer: Cloud Functions and Cloud Pub/Sub

Note: This Question is unanswered, help us to find answer for this one

26. You need to set CORS for some objects in a bucket for a client-side application. What do you do?

Answer

Correct Answer: Segment the objects into two buckets. For the CORS objects, set the CORS policy at the bucket level. Add client-side code to handle the requests.

Note: This Question is unanswered, help us to find answer for this one

27. Which command do you use to connect to a running Compute Engine instance with SSH?

Answer

Correct Answer: Gcloud compute ssh [instance_name] --zone=[zone]

Note: This Question is unanswered, help us to find answer for this one

28. Which command adds a column family named cf1 to your Bigtable table named my-table?

Answer

Correct Answer: Cbt createfamily my-table cf1

Note: This Question is unanswered, help us to find answer for this one

29. Which command copies a file named test.txt to a Cloud Storage bucket named myBucket?

Answer

Correct Answer: Gsutil cp test.txt gs://myBucket

Note: This Question is unanswered, help us to find answer for this one

30. You need to set a bucket storage class for data that will be accessed once a month or less. Which type do you select?

Answer

Correct Answer: Nearline

Note: This Question is unanswered, help us to find answer for this one

31. You want to capture the message acknowledgment state of a subscription at a given time. What do you do?

Answer

Correct Answer: Create a Cloud Pub/Sub subscription snapshot.

Note: This Question is unanswered, help us to find answer for this one

32. How can you enable clients inside a GKE cluster to be able to contact Pods?

Answer

Correct Answer: Configure a node port. COnfigure the clients to connect via the node port.

Note: This Question is unanswered, help us to find answer for this one

33. Which service must you enable on your GKE cluster in order to use Cloud Run on Google Kubernetes Engine (GKE)?

Answer

Correct Answer: Stackdriver

Note: This Question is unanswered, help us to find answer for this one

34. You want to build an application with conversation interpretation based on machine learning speech understanding. Which service is a best fit for this scenario?

Answer

Correct Answer: Dialogflow

Note: This Question is unanswered, help us to find answer for this one

35. You want to develop Firebase security rules following Google best practices. Which tool(s) do you use?

Answer

Correct Answer: Firebase Emulator

Note: This Question is unanswered, help us to find answer for this one

36. You want to quickly test a single Docker container image that will start a stateless HTTP service on GCP. Which service do you select to host your container image?

Answer

Correct Answer: Google Kubernetes Engine

Note: This Question is unanswered, help us to find answer for this one

37. Cloud SQL supports which two relational databases?

Answer

Correct Answer: MySQL and PostgreSQL

Note: This Question is unanswered, help us to find answer for this one

38. You want to set a notification for service spend in GCP. What do you do, and who will be notified?

Answer

Correct Answer: Use the GCP Billing console Budgets section to set a billing alert. The billing admin will be notified if the alert threshold is exceeded.

Note: This Question is unanswered, help us to find answer for this one

39. You want to use GCP-preferred base container images. Where can your users find these images?

Answer

Correct Answer: GCP Marketplace

Note: This Question is unanswered, help us to find answer for this one

40. You want to configure services to be able to perform a regular interactive query of Google AdWords data. What should you do?

Answer

Correct Answer: Plan to user BigQuery. Enable BigQuery Transfer Data API.

Note: This Question is unanswered, help us to find answer for this one

41. You need to troubleshoot an Android app that uses Cloud Storage. Where do you look for logs?

Answer

Correct Answer: Firebase Crashlytics and Stackdriver

Note: This Question is unanswered, help us to find answer for this one

42. You are concerned about data egress charges for files in a Cloud Storage bucket. What configuration change should you make?

Answer

Correct Answer: Change the default storage class from multi-regional to regional.

Note: This Question is unanswered, help us to find answer for this one

43. You need to execute a "lift and shift" move with as few steps as possible. Which items do you need to create to accomplish this task, listed in the correct order of creation?

Answer

Correct Answer: 1. Create a GCP network for the project. 2. Create a VPN from GCP to your corporate network. 3. Create the VM instances to support the application.

Note: This Question is unanswered, help us to find answer for this one

44. To be able to configure an existing Cloud Function, what information should you review and from which location?

Answer

Correct Answer: Text payload in Stackdriver logs

Note: This Question is unanswered, help us to find answer for this one

45. You need to configure a data retention policy for a Cloud Storage bucket to govern how long objects in the bucket must be retained. What feature do you enable?

Answer

Correct Answer: Bucket Lock

Note: This Question is unanswered, help us to find answer for this one

46. You want to try out a machine-learning TensorFlow example notebook with the fewest configuration steps on GCP. What do you do?

Answer

Correct Answer: Create a notebook instance with TPU. Upload the notebook to the instance.

Note: This Question is unanswered, help us to find answer for this one

47. You need to deploy Redis with unique persistent identities and stable hostnames on GKE. What type of deployment object do you use?

Answer

Correct Answer: YAML configuration file

Note: This Question is unanswered, help us to find answer for this one

48. You want to configure services to host a mobile application that uses TensorFlow Lite models. Which services should you use?

Answer

Correct Answer: Firebase and ML Kit

Note: This Question is unanswered, help us to find answer for this one

49. You are designing an application that will send messages with the MQTT protocol. What service should you use?

Answer

Correct Answer: Cloud Pub/Sub

Note: This Question is unanswered, help us to find answer for this one

50. What feature do you need to enable to support load balancing and autoscaling managed instance groups for Compute Engine?

Answer

Correct Answer: Health checks

Note: This Question is unanswered, help us to find answer for this one

51. GCP Organizations are not available in your GCP project. What type of account are you using?

Answer

Correct Answer: Free Tier

Note: This Question is unanswered, help us to find answer for this one

52. You want to set up a managed Apache Spark cluster. Which service do you configure?

Answer

Correct Answer: Cloud Dataproc

Note: This Question is unanswered, help us to find answer for this one

53. You want to schedule a cron job to send a message to a Cloud Pub/Sub topic hourly. What do you do?

Answer

Correct Answer: Create a Cloud Function with a target of Cloud Pub/Sub

Note: This Question is unanswered, help us to find answer for this one

54. Microsoft ________ is a cloud storage and file sharing service.

Answer

Correct Answer: OneDrive

Note: This Question is unanswered, help us to find answer for this one