0
0
GCPcloud~5 mins

SSH access and metadata in GCP - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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
What does SSH stand for?
ASecure System Handler
BSimple Secure Host
CServer Shell Host
DSecure Shell
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
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
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
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.