GCP Associate Cloud Engineer Practice Question

A developer needs to quickly inspect the contents of a Cloud SQL for MySQL database named "sales" that is running in the project. The developer is working from Cloud Shell and wants an interactive SQL prompt to issue ad-hoc SELECT queries without leaving the browser. Which approach meets the requirement using built-in tools and the least amount of setup?

  • Issue a bq query command with the Cloud SQL connection string and embed the SELECT statement as text.

  • Create a Cloud Run job that mounts the Cloud SQL connection via a connector and runs the mysql client inside the container.

  • Execute gcloud sql connect sales-mysql --user=appuser --database=sales in Cloud Shell and enter the password when prompted.

  • SSH into a private VM on the same VPC, install the mysql client manually, and connect to the instance's private IP address.

GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot