Google Cloud Associate Cloud Engineer Exam MCQ With Answers GCP ACE 18

 

Associate Cloud Engineer

Google Cloud


Google Cloud Associate Cloud Engineer


Associate Cloud Engineers deploy applications, monitor operations, and manage enterprise solutions. They use Google Cloud Console and the command-line interface to perform common platform-based tasks to maintain one or more deployed solutions that leverage Google-managed or self-managed services on Google Cloud.


The Associate Cloud Engineer exam assesses your ability to:


  • Set up a cloud solution environment
  • Plan and configure a cloud solution
  • Deploy and implement a cloud solution
  • Ensure successful operation of a cloud solution
  • Configure access and security

About this certification exam


  • Length: 2 hours
  • Registration fee: $125 (plus tax where applicable)
  • Languages: English, Japanese, Spanish, Portuguese
  • Exam format: 50-60 multiple choice and multiple select questions

GOOGLE CLOUD ASSOCIATE CLOUD ENGINEER MCQ


1. You are working with a user to set up an application in a new VPC behind a firewall. The user is concerned about data egress. You want to configure the fewest open egress ports. What should you do?
  1. Set up a low-priority (65534) rule that blocks all egress and a high-priority rule (1000) that allows only the appropriate ports.
  2. Set up a high-priority (1000) rule that pairs both ingress and egress ports.
  3. Set up a high-priority (1000) rule that blocks all egress and a low-priority (65534) rule allows only the appropriate ports.
  4. Set up a high-priority (1000) rule to allow the appropriate ports.

Answer: Set up a low-priority (65534) rule that blocks all egress and a high-priority rule (1000) that allows only the appropriate ports.
 

2. Your company runs its Linux workloads on Compute Engine instances. Your company will be working with a new operations partner that does not use Google Accounts. You need to grant access to the instances to your operations partner so they can maintain the installed tooling. What should you do?
  1. Enable Cloud IAP for the Compute Engine instances, and add the operations partner as a Cloud IAP Tunnel User.
  2. Tag all the instances with the same network tag. Create a firewall rule in the VPC to grant TCP access on port 22 for traffic from the operations partner to instances with the network tag.
  3. Set up Cloud VPN between your Google Cloud VPC and the internal network of the operations partner.
  4. Ask the operations partner to generate SSH key pairs, and add the public keys to the VM instances.

Answer: Ask the operations partner to generate SSH key pairs, and add the public keys to the VM instances.
 

3. You have created a code snippet that should be triggered whenever a new file is uploaded to a Cloud Storage bucket. You want to deploy this code snippet. What should you do?
  1. Use App Engine and configure Cloud Scheduler to trigger the application using Pub/Sub.
  2. Use Cloud Functions and configure the bucket as a trigger resource.
  3. Use Google Kubernetes Engine and configure a CronJob to trigger the application using Pub/Sub.
  4. Use Dataflow as a batch job, and configure the bucket as a data source.

Answer: Use Cloud Functions and configure the bucket as a trigger resource.
 

4. You have been asked to set up Object Lifecycle Management for objects stored in storage buckets. The objects are written once and accessed frequently for 30 days. After 30 days, the objects are not read again unless there is a special need. The objects should be kept for three years, and you need to minimize cost. What should you do?
  1. Set up a policy that uses Nearline storage for 30 days and then moves to Archive storage for three years.
  2. Set up a policy that uses Standard storage for 30 days and then moves to Archive storage for three years.
  3. Set up a policy that uses Nearline storage for 30 days, then moves the Coldline for one year, and then moves to Archive storage for two years.
  4. Set up a policy that uses Standard storage for 30 days, then moves to Coldline for one year, and then moves to Archive storage for two years.

Answer: Set up a policy that uses Standard storage for 30 days and then moves to Archive storage for three years.


5. You are storing sensitive information in a Cloud Storage bucket. For legal reasons, you need to be able to record all requests that read any of the stored data. You want to make sure you comply with these requirements. What should you do?
  1. Enable the Identity Aware Proxy API on the project.
  2. Scan the bucket using the Data Loss Prevention API.
  3. Allow only a single Service Account access to read the data.
  4. Enable Data Access audit logs for the Cloud Storage API.

Answer: Enable Data Access audit logs for the Cloud Storage API.
 

6. You are the team lead of a group of 10 developers. You provided each developer with an individual Google Cloud Project that they can use as their personal sandbox to experiment with different Google Cloud solutions. You want to be notified if any of the developers are spending above $500 per month on their sandbox environment. What should you do?
  1. Create a single budget for all projects and configure budget alerts on this budget.
  2. Create a separate billing account per sandbox project and enable BigQuery billing exports. Create a Data Studio dashboard to plot the spending per billing account.
  3. Create a budget per project and configure budget alerts on all of these budgets.
  4. Create a single billing account for all sandbox projects and enable BigQuery billing exports. Create a Data Studio dashboard to plot the spending per project.

Answer: Create a budget per project and configure budget alerts on all of these budgets.
 

7. You are deploying a production application on Compute Engine. You want to prevent anyone from accidentally destroying the instance by clicking the wrong button. What should you do?
  1. Disable the flag ג€Delete boot disk when instance is deleted.ג€
  2. Enable delete protection on the instance.
  3. Disable Automatic restart on the instance.
  4. Enable Preemptibility on the instance.

Answer: Enable delete protection on the instance.
 

8. Your company uses a large number of Google Cloud services centralized in a single project. All teams have specific projects for testing and development. The DevOps team needs access to all of the production services in order to perform their job. You want to prevent Google Cloud product changes from broadening their permissions in the future. You want to follow Google-recommended practices. What should you do?
  1. Grant all members of the DevOps team the role of Project Editor on the organization level.
  2. Grant all members of the DevOps team the role of Project Editor on the production project.
  3. Create a custom role that combines the required permissions. Grant the DevOps team the custom role on the production project.
  4. Create a custom role that combines the required permissions. Grant the DevOps team the custom role on the organization level.

Answer: Create a custom role that combines the required permissions. Grant the DevOps team the custom role on the production project.
 

9. You are building an application that processes data files uploaded from thousands of suppliers. Your primary goals for the application are data security and the expiration of aged data. You need to design the application to:ג€¢ Restrict access so that suppliers can access only their own data. ג€¢ Restrict access so that suppliers can access only their own data. ג€ Restrict access so that suppliers can access only their own data. ג€¢ Give suppliers write access to data only for 30 minutes.ג€¢ Delete data that is over 45 days old. ג€¢ Restrict access You have a very short development cycle, and you need to make sure that the application requires minimal maintenance. Which two strategies should you use? (Choose two.)
  1. Build a lifecycle policy to delete Cloud Storage objects after 45 days.
  2. Use signed URLs to allow suppliers limited time access to store their objects.
  3. Set up an SFTP server for your application, and create a separate user for each supplier.
  4. Build a Cloud function that triggers a timer of 45 days to delete objects that have expired.
  5. Develop a script that loops through all Cloud Storage buckets and deletes any buckets that are older than 45 days.

Answer: 
1.Build a lifecycle policy to delete Cloud Storage objects after 45 days.
2.Use signed URLs to allow suppliers limited time access to store their objects.


10. Your company is moving its entire workload to Compute Engine. Some servers should be accessible through the Internet, and other servers should only be accessible over the internal network. All servers need to be able to talk to each other over specific ports and protocols. The current on-premises network relies on a demilitarized zone (DMZ) for the  public servers and a Local Area Network (LAN) for the private servers. You need to design the networking infrastructure onGoogle Cloud to match these requirements. What should you do?
  1. 1.Create a single VPC with a subnet for the DMZ and a subnet for the LAN. 2. Set up firewall rules to open up relevant traffic between the DMZ and the LAN subnets, and another firewall rule to allow public ingress traffic for the DMZ.
  2. 1.Create a single VPC with a subnet for the DMZ and a subnet for the LAN. 2. Set up firewall rules to open up relevant traffic between the DMZ and the LAN subnets, and another firewall rule to allow public egress traffic for the DMZ.
  3. 1.Create a VPC with a subnet for the DMZ and another VPC with a subnet for the LAN. 2. Set up firewall rules to open up relevant traffic between the DMZ and the LAN subnets, and another firewall rule to allow public ingress traffic for the DMZ.
  4. 1.Create a VPC with a subnet for the DMZ and another VPC with a subnet for the LAN. 2. Set up firewall rules to open up relevant traffic between the DMZ and the LAN subnets, and another firewall rule to allow public egress traffic for the DMZ

Answer: 1.Create a single VPC with a subnet for the DMZ and a subnet for the LAN. 2. Set up firewall rules to open up relevant traffic between the DMZ and the LAN subnets, and another firewall rule to allow public ingress traffic for the DMZ. 


11. You are performing a monthly security check of your Google Cloud environment and want to know who has access to view data stored in your Google Cloud Project. What should you?
  1. Enable Audit Logs for all APIs that are related to data storage.
  2. Review the IAM permissions for any role that allows for data access.
  3. Review the Identity-Aware Proxy settings for each resource.
  4. Create a Data Loss Prevention job.

Answer: Review the IAM permissions for any role that allows for data access.
 

12. Your company has embraced a hybrid cloud strategy where some of the applications are deployed on Google Cloud. A Virtual Private Network (VPN) tunnel connects your Virtual Private Cloud (VPC) in Google Cloud with your companyג€TMs on-premises network. Multiple applications in Google Cloud need to connect to an on-premises database server, and you want to avoid having to change the IP configuration in all of your applications when the IP of the database changes. What should you do?
  1. Configure Cloud NAT for all subnets of your VPC to be used when egressing from the VM instances.
  2. Create a private zone on Cloud DNS, and configure the applications with the DNS name.
  3. Configure the IP of the database as custom metadata for each instance, and query the metadata server.
  4. Query the Compute Engine internal DNS from the applications to retrieve the IP of the database.

Answer: Create a private zone on Cloud DNS, and configure the applications with the DNS name.


13. You have developed a containerized web application that will serve internal colleagues during business hours. You want to ensure that no costs are incurred outside of the hours the applicationis used. You have just created a new Google Cloud project and want to deploy the application. What should you do?
  1. Deploy the container on Cloud Run for Anthos, and set the minimum number of instances to zero.
  2. Deploy the container on Cloud Run (fully managed), and set the minimum number of instances to zero.
  3. Deploy the container on App Engine flexible environment with autoscaling, and set the value min_instances to zero in the app.yaml.
  4. Deploy the container on App Engine flexible environment with manual scaling, and set the value instances to zero in the app.yaml.

Answer: Deploy the container on Cloud Run (fully managed), and set the minimum number of instances to zero.
 

14. You have experimented with Google Cloud using your own credit card and expensed the costs to your company. Your company wants to streamline the billing process and charge the costs of 
your projects to their monthly invoice. What should you do?
  1. Grant the financial team the IAM role of ג€Billing Account Userג€ on the billing account linked to your credit card.
  2. Set up BigQuery billing export and grant your financial department IAM access to query the data.
  3. Create a ticket with Google Billing Support to ask them to send the invoice to your company.
  4. Change the billing account of your projects to the billing account of your company.

Answer: Change the billing account of your projects to the billing account of your company.
 

15. You are running a data warehouse on BigQuery. A partner company is offering a recommendation engine based on the data in your data warehouse. The partner company is also running their application on Google Cloud. They manage the resources in their own project, but they need access to the BigQuery dataset in your project. You want to provide the partner company with access to the dataset. What should you do?
  1. Create a Service Account in your own project, and grant this Service Account access to BigQuery in your project.
  2. Create a Service Account in your own project, and ask the partner to grant this Service Account access to BigQuery in their project.
  3. Ask the partner to create a Service Account in their project, and have them give the Service Account access to BigQuery in their project.
  4. Ask the partner to create a Service Account in their project, and grant their Service Account access to the BigQuery dataset in your project.

Answer: Ask the partner to create a Service Account in their project, and grant their Service Account access to the BigQuery dataset in your project.
 

16.Your web application has been running successfully on Cloud Run for Anthos. You want to evaluate an updated version of the application with a specific percentage of your production users (canary deployment). What should you do?
  1. Create a new service with the new version of the application. Split traffic between this version and the version that is currently running.
  2. Create a new revision with the new version of the application. Split traffic between this version and the version that is currently running.
  3. Create a new service with the new version of the application. Add HTTP Load Balancer in front of both services.
  4. Create a new revision with the new version of the application. Add HTTP Load Balancer in front of both revisions.

Answer: Create a new revision with the new version of the application. Split traffic between this version and the version that is currently running.
 

17. Your company developed a mobile game that is deployed on Google Cloud. Gamers are connecting to the game with their personal phones over the Internet. The game sends UDP packets to update the servers about the gamersג€ TMactions while they are playing in multiplayer mode. Your game backend can scale over multiple virtual machines (VMs), and you want to expose the VMs over a single IP address. What should you do?
  1. Configure an SSL Proxy load balancer in front of the application servers.
  2. Configure an Internal UDP load balancer in front of the application servers.
  3. Configure an External HTTP(s) load balancer in front of the application servers.
  4. Configure an External Network load balancer in front of the application servers.

Answer: Configure an External Network load balancer in front of the application servers.
 

18. You are working for a hospital that stores its medical images in an on-premises data room. The hospital wants to use Cloud Storage for archival storage of these images. The hospital wants an automated process to upload any new medical images to Cloud Storage. You need to design and implement a solution. What should you do?
  1. Create a Pub/Sub topic, and enable a Cloud Storage trigger for the Pub/Sub topic.Create an application that sends all medical images to the Pub/Sub topic.
  2. Deploy a Dataflow job from the batch template, ג€Datastore to Cloud Storage.ג€ Schedule the batch job on the desired interval.
  3. Create a script that uses the gsutil command line interface to synchronize the onpremises storage with Cloud Storage. Schedule the script as a cron job.
  4. In the Cloud Console, go to Cloud Storage. Upload the relevant images to the appropriate bucket.

Answer: Create a script that uses the gsutil command line interface to synchronize the onpremises storage with Cloud Storage. Schedule the script as a cron job.
 

19. Your auditor wants to view your organizationג€TMs use of data in Google Cloud. The auditor is most interested in auditing who accessed data in Cloud Storage buckets. You need to help the auditor access the data they need. What should you do?
  1. Turn on Data Access Logs for the buckets they want to audit, and then build a query in the log viewer that filters on Cloud Storage.
  2. Assign the appropriate permissions, and then create a Data Studio report on Admin Activity Audit Logs.
  3. Assign the appropriate permissions, and the use Cloud Monitoring to review metrics.
  4. Use the export logs API to provide the Admin Activity Audit Logs in the format they want.

Answer: Turn on Data Access Logs for the buckets they want to audit, and then build a query in the log viewer that filters on Cloud Storage.
 

20. You received a JSON file that contained a private key of a Service Account in order to get access to several resources in a Google Cloud project. You downloaded and installed the Cloud SDK and want to use this private key for authentication and authorization when performing gcloud commands. What should you do?
  1. Use the command gcloud auth login and point it to the private key.
  2. Use the command gcloud auth activate-service-account and point it to the private key.
  3. Place the private key file in the installation directory of the Cloud SDK and rename it to €.גjson.credentials€ג
  4. Place the private key file in your home directory and rename it to ג€GOOGLE_APPLICATION_CREDENTIALSג€.

Answer: Use the command gcloud auth activate-service-account and point it to the private key.
 

21. You are working with a Cloud SQL MySQL database at your company. You need to retain a month-end copy of the database for three years for audit purposes. What should you do?
  1. Set up an export job for the first of the month. Write the export file to an Archive class Cloud Storage bucket.
  2. Save the automatic first-of-the-month backup for three years. Store the backup file in an Archive class Cloud Storage bucket.
  3. Set up an on-demand backup for the first of the month. Write the backup to an Archive class Cloud Storage bucket.
  4. Convert the automatic first-of-the-month backup to an export file. Write the export file to a Coldline class Cloud Storage bucket.

Answer: Set up an export job for the first of the month. Write the export file to an Archive class Cloud Storage bucket.


22. You are monitoring an application and receive user feedback that a specific error is spiking. You notice that the error is caused by a Service Account having insufficient permissions. You are able to solve the problem but want to be notified if the problem recurs. What should you do?
  1. In the Log Viewer, filter the logs on severity ג€˜Errorג€ TMand the name of the Service Account.
  2. Create a sink to BigQuery to export all the logs. Create a Data Studio dashboard on the exported logs.
  3. Create a custom log-based metric for the specific error to be used in an Alerting Policy.
  4. Grant Project Owner access to the Service Account.

Answer: Create a custom log-based metric for the specific error to be used in an Alerting Policy.
 

23. You are developing a financial trading application that will be used globally. Data is stored and queried using a relational structure, and clients from all over the world should get the exact identical state of the data. The application will be deployed in multiple regions to provide the lowest latency to end users. You need to select a storage option for the application data while minimizing latency. What should you do?
  1. Use Cloud Bigtable for data storage.
  2. Use Cloud SQL for data storage.
  3. Use Cloud Spanner for data storage.
  4. Use Firestore for data storage.

Answer: Use Cloud SQL for data storage.


24. You are managing a project for the Business Intelligence (BI) department in your company. A data pipeline ingests data into BigQuery via streaming. You want the users in the BI department to be able to run the custom SQL queries against the latest data in BigQuery. What should you do?
  1. Create a Data Studio dashboard that uses the related BigQuery tables as a source and give the BI team view access to the Data Studio dashboard.
  2. Create a Service Account for the BI team and distribute a new private key to each member of the BI team.
  3. Use Cloud Scheduler to schedule a batch Dataflow job to copy the data from BigQuery to the BI teamג€TMs internal data warehouse.
  4. Assign the IAM role of BigQuery User to a Google Group that contains the members of the BI team.

Answer: Assign the IAM role of BigQuery User to a Google Group that contains the members of the BI team. 


25. You have developed an application that consists of multiple microservices, with each microservice packaged in its own Docker container image. You want to deploy the entire application on Google Kubernetes Engine so that each microservice can be scaled individually. What should you do?
  1. Create and deploy a Custom Resource Definition per microservice.
  2. Create and deploy a Docker Compose File.
  3. Create and deploy a Job per microservice.
  4. Create and deploy a Deployment per microservice.


Answer: Create and deploy a Deployment per microservice.



Post a Comment