Google Associate Cloud Engineer Google Cloud Certified – Associate Cloud Engineer Online Training
Google Associate Cloud Engineer Online Training
The questions for Associate Cloud Engineer were last updated at Nov 23,2024.
- Exam Code: Associate Cloud Engineer
- Exam Name: Google Cloud Certified – Associate Cloud Engineer
- Certification Provider: Google
- Latest update: Nov 23,2024
Use Cloud Scheduler to trigger this Cloud Function once a day.
Use Cloud Scheduler to trigger this Cloud Function once a day.
You are using Deployment Manager to create a Google Kubernetes Engine cluster. Using the same Deployment Manager deployment, you also want to create a DaemonSet in the kube-system namespace of the cluster. You want a solution that uses the fewest possible services.
What should you do?
- A . Add the cluster’s API as a new Type Provider in Deployment Manager, and use the new type to create the DaemonSet.
- B . Use the Deployment Manager Runtime Configurator to create a new Config resource that contains the DaemonSet definition.
- C . With Deployment Manager, create a Compute Engine instance with a startup script that uses kubectl to create the DaemonSet.
- D . In the cluster’s definition in Deployment Manager, add a metadata that has kube-system as key and the DaemonSet manifest as value.
You are building an application that will run in your data center. The application will use Google Cloud Platform (GCP) services like AutoML. You created a service account that has appropriate access to AutoML. You need to enable authentication to the APIs from your on-premises environment.
What should you do?
- A . Use service account credentials in your on-premises application.
- B . Use gcloud to create a key file for the service account that has appropriate permissions.
- C . Set up direct interconnect between your data center and Google Cloud Platform to enable authentication for your on-premises applications.
- D . Go to the IAM & admin console, grant a user account permissions similar to the service account permissions, and use this user account for authentication from your data center.
You are using Container Registry to centrally store your company’s container images in a separate project. In another project, you want to create a Google Kubernetes Engine (GKE) cluster. You want to ensure that Kubernetes can download images from Container Registry.
What should you do?
- A . In the project where the images are stored, grant the Storage Object Viewer IAM role to the service account used by the Kubernetes nodes.
- B . When you create the GKE cluster, choose the Allow full access to all Cloud APIs option under ‘Access scopes’.
- C . Create a service account, and give it access to Cloud Storage. Create a P12 key for this service account and use it as an imagePullSecrets in Kubernetes.
- D . Configure the ACLs on each image in Cloud Storage to give read-only access to the default Compute Engine service account.
You deployed a new application inside your Google Kubernetes Engine cluster using the YAML file specified below.
You check the status of the deployed pods and notice that one of them is still in PENDING status:
You want to find out why the pod is stuck in pending status.
What should you do?
- A . Review details of the myapp-service Service object and check for error messages.
- B . Review details of the myapp-deployment Deployment object and check for error messages.
- C . Review details of myapp-deployment-58ddbbb995-lp86m Pod and check for warning messages.
- D . View logs of the container in myapp-deployment-58ddbbb995-lp86m pod and check for warning messages.
You are setting up a Windows VM on Compute Engine and want to make sure you can log in to the VM via RDP.
What should you do?
- A . After the VM has been created, use your Google Account credentials to log in into the VM.
- B . After the VM has been created, use gcloud compute reset-windows-password to retrieve the login credentials for the VM.
- C . When creating the VM, add metadata to the instance using ‘windows-password’ as the key and a password as the value.
- D . After the VM has been created, download the JSON private key for the default Compute Engine service account. Use the credentials in the JSON file to log in to the VM.
You want to configure an SSH connection to a single Compute Engine instance for users in the dev1 group. This instance is the only resource in this particular Google Cloud Platform project that the dev1 users should be able to connect to.
What should you do?
- A . Set metadata to enable-oslogin=true for the instance. Grant the dev1 group the compute.osLogin role. Direct them to use the Cloud Shell to ssh to that instance.
- B . Set metadata to enable-oslogin=true for the instance. Set the service account to no service account for that instance. Direct them to use the Cloud Shell to ssh to that instance.
- C . Enable block project wide keys for the instance. Generate an SSH key for each user in the dev1 group. Distribute the keys to dev1 users and direct them to use their third-party tools to connect.
- D . Enable block project wide keys for the instance. Generate an SSH key and associate the key with that instance. Distribute the key to dev1 users and direct them to use their third-party tools to connect.
You need to produce a list of the enabled Google Cloud Platform APIs for a GCP project using the gcloud command line in the Cloud Shell. The project name is my-project.
What should you do?
- A . Run gcloud projects list to get the project ID, and then run gcloud services list –project <project ID>.
- B . Run gcloud init to set the current project to my-project, and then run gcloud services list — available.
- C . Run gcloud info to view the account value, and then run gcloud services list –account <Account>.
- D . Run gcloud projects describe <project ID> to verify the project value, and then run gcloud services list –available.
You are building a new version of an application hosted in an App Engine environment. You want to test the new version with 1% of users before you completely switch your application over to the new version.
What should you do?
- A . Deploy a new version of your application in Google Kubernetes Engine instead of App Engine and then use GCP Console to split traffic.
- B . Deploy a new version of your application in a Compute Engine instance instead of App Engine and then use GCP Console to split traffic.
- C . Deploy a new version as a separate app in App Engine. Then configure App Engine using GCP Console to split traffic between the two apps.
- D . Deploy a new version of your application in App Engine. Then go to App Engine settings in GCP Console and split traffic between the current version and newly deployed versions accordingly.