Practice Free Associate Cloud Engineer Exam Online Questions
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.
A
Explanation:
`gcloud services list –available` returns not only the enabled services in the project but also services that CAN be enabled.
https://cloud.google.com/sdk/gcloud/reference/services/list#–available
Run the following command to list the enabled APIs and services in your current project:
gcloud services list
whereas, Run the following command to list the APIs and services available to you in your current project:
gcloud services list Cavailable
https://cloud.google.com/sdk/gcloud/reference/services/list#–available –available
Return the services available to the project to enable. This list will include any services that the project has already enabled.
To list the services the current project has enabled for consumption, run:
gcloud services list –enabled
To list the services the current project can enable for consumption, run:
gcloud services list Cavailable
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.
A
Explanation:
`gcloud services list –available` returns not only the enabled services in the project but also services that CAN be enabled.
https://cloud.google.com/sdk/gcloud/reference/services/list#–available
Run the following command to list the enabled APIs and services in your current project:
gcloud services list
whereas, Run the following command to list the APIs and services available to you in your current project:
gcloud services list Cavailable
https://cloud.google.com/sdk/gcloud/reference/services/list#–available –available
Return the services available to the project to enable. This list will include any services that the project has already enabled.
To list the services the current project has enabled for consumption, run:
gcloud services list –enabled
To list the services the current project can enable for consumption, run:
gcloud services list Cavailable
You have a web application deployed as a managed instance group. You have a new version of the application to gradually deploy. Your web application is currently receiving live web traffic. You want to ensure that the available capacity does not decrease during the deployment.
What should you do?
- A . Perform a rolling-action start-update with maxSurge set to 0 and maxUnavailable set to 1.
- B . Perform a rolling-action start-update with maxSurge set to 1 and maxUnavailable set to 0.
- C . Create a new managed instance group with an updated instance template. Add the group to the backend service for the load balancer. When all instances in the new managed instance group are healthy, delete the old managed instance group.
- D . Create a new instance template with the new application version. Update the existing managed instance group with the new instance template. Delete the instances in the managed instance group to allow the managed instance group to recreate the instance using the new instance template.
B
Explanation:
https://cloud.google.com/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#max_unavailable
Your company is running a three-tier web application on virtual machines that use a MySQL database. You need to create an estimated total cost of cloud infrastructure to run this application on Google Cloud instances and Cloud SQL.
What should you do?
- A . Use the Google Cloud Pricing Calculator to determine the cost of every Google Cloud resource you expect to use. Use similar size instances for the web server, and use your current on-premises machines as a comparison for Cloud SQL.
- B . Implement a similar architecture on Google Cloud, and run a reasonable load test on a smaller scale. Check the billing information, and calculate the estimated costs based on the real load your system usually handles.
- C . Use the Google Cloud Pricing Calculator and select the Cloud Operations template to define your web application with as much detail as possible.
- D . Create a Google spreadsheet with multiple Google Cloud resource combinations. On a separate sheet, import the current Google Cloud prices and use these prices for the calculations within formulas.
Your company’s security vulnerability management policy wonts 3 member of the security team to
have visibility into vulnerabilities and other OS metadata for a specific Compute Engine instance This Compute Engine instance hosts a critical application in your Goggle Cloud project. You need to implement your company’s security vulnerability management policy.
What should you dc?
- A . • Ensure that the Ops Agent Is Installed on the Compute Engine instance.
• Create a custom metric in the Cloud Monitoring dashboard.
• Provide the security team member with access to this dashboard. - B . • Ensure that the Ops Agent is installed on tie Compute Engine instance.
• Provide the security team member roles/configure.inventoryViewer permission. - C . • Ensure that the OS Config agent Is Installed on the Compute Engine instance.
• Provide the security team member roles/configure.vulnerabilityViewer permission. - D . • Ensure that the OS Config agent is installed on the Compute Engine instance
• Create a log sink Co a BigQuery dataset.
• Provide the security team member with access to this dataset.
You need to deploy a third-party software application onto a single Compute Engine VM instance. The application requires the highest speed read and write disk access for the internal database. You need to ensure the instance will recover on failure.
What should you do?
- A . Create an instance template. Set the disk type to be an SSD Persistent Disk. Launch the instance template as part of a stateful managed instance group.
- B . Create an instance template. Set the disk type to be an SSD Persistent Disk. Launch the instance template as part of a stateless managed instance group.
- C . Create an instance template. Set the disk type to be Hyperdisk Extreme. Launch the instance template as part of a stateful managed instance group.
- D . Create an instance template. Set the disk type to be Hyperdisk Extreme. Launch the instance template as part of a stateless managed instance group.
You are about to deploy a new Enterprise Resource Planning (ERP) system on Google Cloud. The application holds the full database in-memory for fast data access, and you need to configure the most appropriate resources on Google Cloud for this application.
What should you do?
- A . Provision preemptible Compute Engine instances.
- B . Provision Compute Engine instances with GPUs attached.
- C . Provision Compute Engine instances with local SSDs attached.
- D . Provision Compute Engine instances with M1 machine type.
D
Explanation:
M1 machine series Medium in-memory databases such as SAP HANA Tasks that require intensive use of memory with higher memory-to-vCPU ratios than the general-purpose high-memory machine types. In-memory databases and in-memory analytics, business warehousing (BW) workloads, genomics analysis, SQL analysis services. Microsoft SQL Server and similar databases.
https://cloud.google.com/compute/docs/machine-types
https://cloud.google.com/compute/docs/machine-types#:~:text=databases%20such%20as-,SAP%20HANA,-In%2Dmemory%20databases
https://www.sap.com/india/products/hana.html#:~:text=is%20SAP%20HANA-,in%2Dmemory,-database%3F
You need to deploy a single stateless web application with a web interface and multiple endpoints. For security reasons, the web application must be reachable from an internal IP address from your company’s private VPC and on-premises network. You also need to update the web application multiple times per day with minimal effort and want to manage a minimal amount of cloud infrastructure.
What should you do?
- A . Deploy the web application on Google Kubernetes Engine standard edition with an internal ingress.
- B . Deploy the web application on Cloud Run with Private Google Access configured
- C . Deploy the web application to GKE Autopilot with Private Google Access configured
- D . Deploy the web application on Cloud Run with Private Service Connect configured.
You deployed an application on a managed instance group in Compute Engine. The application accepts Transmission Control Protocol (TCP) traffic on port 389 and requires you to preserve the IP address of the client who is making a request. You want to expose the application to the internet by using a load balancer.
What should you do?
- A . Expose the application by using an external TCP Network Load Balancer.
- B . Expose the application by using a TCP Proxy Load Balancer.
- C . Expose the application by using an SSL Proxy Load Balancer.
- D . Expose the application by using an internal TCP Network Load Balancer.