acloudguru Flashcards
You previously used access keys to access S3 from an EC2 instance, but changed to a role.
But you still cannot connect.
What could be a reason?
The credentials are still stored in /.aws and need to be deleted first.
How to encrypt a volume currently attached to an instance?
- Create a snapshot
- Copy the snapshot (same region) and choose “Encrypt this snapshot”
How to create multiple AWS CLI profiles (for example with different roles)
aws configure –profile my_other_profile
What ist the API call to obtain a session for MFA for CLI/SDK?
And what is returned?
STS GetSessionToken
aws sts-get-session-token –serial-number [your device] –token-code [current code] –duration [ttl]
SecretAccessKey
SessionToken
Expiration
AccessKeyId
What should be done when an “intermittent error” occurs?
Implement Exponential Backoff, since a rate limit for API calls has been hit
What ist “Exponential Backoff”
on failed API calls the wait time to the next call is increased on failure.
1s -> 2s -> 4s -> 8s
What is the chain of priorities for CLI credentials?
- CLI options
- ENV variables (AWS_ACCESS_KEY_ID..)
- CLI credentials file
- CLI configuration file
- Container credentials
- Instance Profile credentials
What are the option for SigV4 signing?
Using HTTP Header
Using query string options
For which actions is MFA delete (if enabled) neccessary?
- Permanently delete
- suspend versioning
S3: How are deletes on an CRR Bucket handled?
Per default: no replication of delete marker, but can be set.
S3: Is it possible to chain replication across three regions?
No,
Lambda: What is needed to connect Lambda to a file system?
A connection to a VPC
CodeCommit: What are the three merge strategies?
Fast forward merge
Squash and merge
3-way merge
CodeCommit: What are approval rules?
Rule that says how many developers have to vote for a pull request to be pulled.
Possible to specify who counts for the voting
Possible to specify the branches
What is CodeArtifact?
Repository for storing build artifacts (like jar files)
CodeBuild: what should be enabled to visualize the status of the build?
BuildBadge
CodeBuild: What can be source provider?
CodeCommit
S3
GitHub
CodeBuild: What are the two authentification methods for GitHub?
Personal Token
OAuth
CodeBuild: What are the three options to reference the right code in CodeCommit?
Branch
Commit ID
Git Tag
CodeBuild: What can be done to troubleshoot a running build job?
Use the CLI and utilize the codebuild-breakpoint command
CodeBuild: what are the four phases in the BuildSpec?
install
pre_build
build
post_build
CodeDeploy: What are the Compute platforms for an application?
OnPremise
EC2
Lambda
ECS
CodeDeploy: Which are the two methods of deployment?
In-Place (not for lambda)
Blue/Green
CodeDeploy: What are the four parts of the appspec file?
Version
Files
OS
Hooks