Font size
S
M
L
XL
WorksheetsGCP Quest
Total questions: 10
Worksheet time: 20mins
Name
Class
Date
1.
Your company has hundreds of user identities in Microsoft Active Directory. Your company needs to retain the use of your Active Directory as your source of truth for user identities and authorization. Your company requires to have full control over the employees’ Google accounts for all Google services as well as your Google Cloud Platform (GCP) organization.
a)
Export the company’s users from the Microsoft Active Directory as a CSV file. Import them into Google Cloud Identity via the Admin Console.
b)
Utilize Google Cloud Directory Sync (GCDS) to synchronize users into Google Cloud Identity.
c)
Write a custom script using the Cloud Identity APIs to synchronize users to Cloud Identity.
d)
Require each employee to set up a Google account using the self signup process. Mandate each employee to use their corporate email address and password.
2.
You are developing an application that stores and processes files from thousands of producers. Data security and expiration of obsolete data are your top priorities in building the application. Moreover, the application has to:
1. Provide producers write permissions to data for 30 minutes only.
2. Delete files that are stored for over 45 days.
3. Restrict producers from reading files they don’t own.
The development timeline for the application is short, and you need to ensure that the solution has a low maintenance overhead.
a)
Set up an SFTP server on a Compute Engine instance and create user accounts for each producer.
b)
Generate signed URLs to give limited-time access for producers to store objects.
c)
Deploy a Cloud function that triggers a countdown timer of 45 days and deletes the expired objects.
d)
Create a script written in Python that loops through all objects inside a Cloud Storage bucket and deletes objects that are 45 days old.
e)
Create an object lifecycle configuration to delete Cloud Storage objects after 45 days of storage.
3.
Your company strictly observes the best practice of giving least-privilege access to control the GCP projects and other resources. Your Site Reliability Engineers (SRE) team recently opened a support case to Google Cloud Support. The SREs should be able to grant permission requests from the Google Cloud Support team while working through the case. You want to follow Google-recommended practices.
What should you do?
a)
Use the predefined roles/iam.roleAdmin role and assign it to the accounts of your SREs.
b)
Use the predefined roles/iam.organizationRoleAdmin role and assign it to the accounts of your SREs.
c)
Create a Google group named sre-group. Use the predefined roles/iam.roleAdmin role and assign it to the newly created group
d)
Create a Google group named sre-group. Use the predefined roles/accessapproval role and assign it to the newly created group.
4.
Your company runs hundreds of projects on the Google Cloud Platform. You are tasked to store the company’s audit log files for three years for compliance purposes. You need to implement a solution to store these audit logs in a cost-effective manner.
What should you do?
a)
Develop a custom script written in Python that utilizes the Logging API to duplicate the logs generated by Operations Suite to BigQuery.
b)
On the Logs Router, create a sink with Cloud BigQuery as a destination to save audit logs.
c)
Create a Cloud Storage bucket using a Coldline storage class. Then on the Logs Router, create a sink. Choose Cloud Storage as a sink service and select the bucket you previously created.
d)
Configure all resources to be a publisher on a Cloud Pub/Sub topic and publish all the message logs received from the topic to Cloud SQL to store the logs.
5.
Your team is planning to move a mission-critical application to GCP. Your team decided to do a lift-and-shift migration strategy and host it in a Google Compute Engine. The application is monolithic and requires a custom number of vCPUs and memory to run efficiently.
What should you do?
a)
Launch the VM instance using default settings. Add 2 vCPUs at a time until the application runs smoothly.
b)
Launch two VM instances in separate zones. Enable the Rightsizing Recommendations to resize the virtual machines to the desired number of vCPU and memory.
c)
Utilize the Tau T2D VM to host the application and optimize the workloads.
d)
Select Custom as machine type during instance creation. Configure the desired number of vCPUs and memory.
6.
You are assigned to set up a solution that stores a large amount of financial data in a cost-effective manner and archive it after 30 days. The data will only be accessed once a year for auditing purposes. As part of compliance objectives, you also have to ensure that the data is stored in a single geographic location.
What should you do?
a)
Create a Cloud Storage bucket and set its location to Regional. Configure an object lifecycle rule that transitions the bucket into Nearline Storage after 30 days.
b)
Create a Cloud Storage bucket and set its location to Regional. Configure an object lifecycle rule that transitions the bucket into Coldline Storage after 30 days.
c)
Create a Cloud Storage bucket and set its location to Dual-Region. Configure an object bucket lifecycle rule that transitions the bucket into Nearline Storage after 30 days.
d)
Create a Cloud Storage bucket and set its location to Multi-Regional. Configure an object lifecycle rule that transitions the bucket into Cloud Storage after 30 days.
7.
You are asked to deploy a Node.js application in your company’s GCP environment. The application must run every time an object is deleted on a specific Cloud Storage bucket. You want to follow Google-recommended best practices.
What should you do?
a)
Deploy your application to Google Kubernetes Engine (GKE). Configure a cron job to trigger the application using Cloud Pub/Sub.
b)
Deploy your code to Google Cloud Functions. Set a Cloud Storage trigger when an object is deleted from your bucket.
c)
Create a batch job with your code by using Cloud Dataflow. Configure the bucket as a data source.
d)
Utilize App Engine and configure Cloud Scheduler to trigger the application using a Pub/Sub subscription.
8.
A senior developer in your company is assigned to manage and create service accounts for your company’s Google Cloud projects. You have to make sure that the assigned personnel is granted the least permissions to manage the projects.
What should you do?
a)
Grant the roles/iam.serviceAccountKeyAdmin role to the senior developer’s account.
b)
Grant the roles/iam.serviceAccountUser role to the senior developer’s account.
c)
Grant the roles/iam.serviceAccountAdmin role to the senior developer’s account.
d)
Grant the roles/iam.roleAdmin role to the senior developer’s account.
9.
You are setting up a new billing account for your team. You want to link this billing account with an existing project called proj-dev.
What should you do?
a)
Confirm that you have the Billing Administrator role for the billing account. Using the Cloud Console, link the existing billing account to the proj-dev project.
b)
Confirm that you have the Billing Administrator role for the billing account. Create a new project. Link the newly created project to the existing billing account.
c)
Confirm that you have the Project Billing Manager role for the project. Create a new billing account. Update the proj-dev project to use the billing account that you just created.
d)
Confirm that you have the Project Billing Manager role for the project. Using the Cloud Console, link the existing billing account to the proj-dev project.
10.
A company hires you to set up its test and production VMs on Google Compute Engine. You have to ensure that all the production virtual machines are located on a separate subnet from the test workloads. Moreover, you need to configure the VMs in such a way that they can communicate using Internal IP addresses in a VPC without the need to create additional custom routes.
How should you set up your VPC to comply with these requirements?
a)
Set up 2 custom mode VPCs, each with a single subnet and similar CIDR ranges. Create each subnet in a different region.
b)
Set up a custom mode VPC configured with 2 subnets on the same region. Configure the subnets with a similar CIDR range.
c)
Set up 2 custom mode VPCs, with a single subnet on each one. Create each subnet in the same region and with the same CIDR range.
d)
Set up a custom mode VPC configured with 2 subnets on different regions. Configure the subnets to have different CIDR ranges.
Reset
