CLI, SDK & IAM Flashcards

1
Q

How do you provide an EC2 instance access to CLI or another service?

A

Assign an IAM role.

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

When testing permissions in CLI, what possible responses could you get using dry-run?

A
  • UnAuthorizedOperation

- DryRunOperation

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

How do you decode an error message in CLI?

A

Run the decode-authorization-message command:

“aws sts decode-authorization-message –encoded-message “

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

What API Retry mechanism is included in the AWS SDK?

A

Exponential Backoff

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

What are the 2 possible Beanstalk Deployment Modes?

A
  • Single Instance

- High Availability with Load Balancer

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

What Deployment Options are available for updates in Beanstalk ?

A
  • All at Once
  • Rolling
  • Rolling with Additional Batches
  • Immutable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe the All at Once Deployment option

A

It is the fastest but instances will not be available for traffic until completion.

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

Describe the Rolling Deployment option

A

It updates each bucket of instances one at a time, moving onto the next when the current is healthy.

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

Describe the Rolling with Additional Batches Deployment option

A

Like Rolling but spins up new instances to move the batch - So that the old application is still available

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

Describe the immutable Deployment option

A

Spins up new instances in a new Auto Scale Group, then deploys the version to these instances and swaps all instances when they are healthy.

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

What is a Blue/Green Deployment?

A

It is when you deploy using blue/green naming convention. Existing is blue, new is green. You use Route53 weighted Policy to direct 10% to the new Green env for testing.

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

How do you deploy your code to Beanstalk?

A

You have to zip your code first

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

What is in the .ebextensions directory in the root of your Beanstalk project?

A

Beanstalk parameter files in YAML/JSON format

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

What is the naming convention for .ebextension files?

A

They must end with .config

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

How do you modify some default settings in the .ebextensions file?

A

use options_settings

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

What happens to the resources managed by .ebextensions if the environment goes away?

A

They get deleted.