Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Recall & Review
beginner
What is SSH access in Google Cloud Platform (GCP)?
SSH access allows you to securely connect to your virtual machine (VM) instances in GCP using a command-line interface over the internet or internal network.
Click to reveal answer
beginner
What role does metadata play in managing SSH access on GCP VM instances?
Metadata stores SSH keys and other configuration data that GCP uses to control access and settings for VM instances.
Click to reveal answer
intermediate
How can you add an SSH key to a GCP VM instance using metadata?
You add the SSH public key to the instance or project metadata under the 'ssh-keys' entry, allowing the corresponding private key holder to connect.
Click to reveal answer
intermediate
What is the difference between project-wide and instance-level SSH keys in GCP metadata?
Project-wide SSH keys apply to all VM instances in the project, while instance-level keys apply only to a specific VM instance.
Click to reveal answer
beginner
Why is it important to manage SSH keys carefully in GCP metadata?
Because SSH keys control who can access your VMs, managing them carefully helps keep your cloud resources secure and prevents unauthorized access.
Click to reveal answer
Where do you add SSH keys to allow access to all VM instances in a GCP project?
AIn the project-wide metadata under 'ssh-keys'
BIn the instance's boot disk
CIn the firewall rules
DIn the Cloud Storage bucket
✗ Incorrect
Adding SSH keys to the project-wide metadata under 'ssh-keys' allows access to all VM instances in that project.
What does SSH stand for?
ASecure System Handler
BSimple Secure Host
CServer Shell Host
DSecure Shell
✗ Incorrect
SSH stands for Secure Shell, a protocol for secure remote login and other secure network services.
If you want to restrict SSH access to only one VM instance, where should you add the SSH key?
AIn the Cloud IAM roles
BIn the project-wide metadata
CIn the instance-level metadata
DIn the VPC network settings
✗ Incorrect
Adding SSH keys to the instance-level metadata restricts access to that specific VM instance only.
What is the purpose of the SSH public key in GCP metadata?
ATo identify the user allowed to connect to the VM
BTo encrypt the VM's disk
CTo configure the VM's firewall
DTo start the VM instance
✗ Incorrect
The SSH public key identifies the user who is allowed to connect securely to the VM instance.
Which of the following is NOT a recommended practice for SSH key management in GCP?
ARegularly rotating SSH keys
BSharing private SSH keys with others
CRemoving unused SSH keys from metadata
DUsing instance-level keys for sensitive VMs
✗ Incorrect
Sharing private SSH keys is insecure and not recommended; private keys should be kept secret.
Explain how SSH access is controlled using metadata in GCP.
Think about where SSH keys are stored and how they grant access.
You got /3 concepts.
Describe best practices for managing SSH keys in GCP metadata to keep your VMs secure.
Consider security steps to prevent unauthorized access.
You got /4 concepts.
Practice
(1/5)
1. What is the main purpose of SSH access in Google Cloud Platform (GCP)?
easy
A. To securely connect to virtual machine instances
B. To store large files in the cloud
C. To monitor network traffic
D. To create new virtual machines automatically
Solution
Step 1: Understand SSH access
SSH (Secure Shell) is a protocol used to securely connect to remote machines, such as virtual machines in GCP.
Step 2: Identify SSH use in GCP
In GCP, SSH access allows users to securely log into VM instances to manage and operate them.
Final Answer:
To securely connect to virtual machine instances -> Option A
Quick Check:
SSH access = secure VM connection [OK]
Hint: SSH is for secure remote login to VMs [OK]
Common Mistakes:
Confusing SSH with storage or monitoring services
Thinking SSH creates VMs instead of connecting to them
2. Which of the following is the correct way to add an SSH key to a VM instance's metadata in GCP?
easy
A. Add the SSH key to the project billing settings
B. Add the SSH key to the instance's firewall rules
C. Add the SSH key to the VM's disk storage
D. Add the SSH key to the instance's metadata under the 'ssh-keys' key
Solution
Step 1: Understand where SSH keys are stored
SSH keys are stored in metadata, which is a place to keep configuration info for VMs.
Step 2: Identify correct metadata key
The correct metadata key for SSH keys is 'ssh-keys' at the instance or project level.
Final Answer:
Add the SSH key to the instance's metadata under the 'ssh-keys' key -> Option D
Quick Check:
SSH keys stored in 'ssh-keys' metadata [OK]
Hint: SSH keys go in 'ssh-keys' metadata key [OK]
Common Mistakes:
Adding SSH keys to firewall rules instead of metadata
Trying to store SSH keys in disk storage or billing settings
3. Given the following metadata setup for a VM instance in GCP: