Scaling Flashcards

1
Q

What is SSM?

A

Systems Manager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you get the systems manager to work?

A

You must install the SSM agent onto the instance. It is installed on Amazon Linux AMI and Ubuntu already

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What should you do to make sure that the instance can use the SSM agent?

A

Make sure you assign an IAM role to the instance that allows SSM access (AWS managed role exists)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are 2 key aspects of Systems Manager that helps to automate patching etc?

A
  • Resource Groups

- Tagging

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an SSM Document?

A

It is a JSON or YAML file that contains parameters and actions to perform such as runShellScript with input commands. It is essentially a script to run.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the 4 features of RunCommand?

A
  • Executes a document across multiple instances
  • Provides Rate Control/Error control
  • Integrated with IAM and Cloudtrail
  • No need for ssh
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the 3 document types?

A
  • Command Document
  • Policy Document
  • Automation Document
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What can you do in terms of Patching with SSM?

A
  • List Software on an instance
  • Patch Software
  • Patch OS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the Session Manager?

A

It allows you to start a secure shell on your VM without using ssh or bastion.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the 5 traditional steps you should take if you lost your SSH key for an EBS backed instance?

A
  • Stop the instance and detach the root volume
  • Attach the volume to a new instance
  • Modify the ~/.ssh/authorized_keys file with your new key
  • Move the volume back to the stopped instance
  • Start the instance and you can ssh into it again
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Using SSM, what should you do if you lost your SSH key for an EBS backed instance?

A

Run the AWSSupport-ResetAccess automation document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Using SSM, what should you do if you lost your SSH key for an instance store backed instance?

A

Use Session Manager to access the ~/.ssh/authorized_keys file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the Parameter Store?

A

It provides secure storage for configuration and secrets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the 2 API calls you could make to Parameter Store to get params?

A
  • GetParameters

- GetParametersByPath

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is OpsWorks?

A

It is AWS managed Chef/Puppet. It is also kind of an alternative to SSM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly