Exam 2 Flashcards
Which section of a CloudFormation template does not allow for conditions?
Parameters
Describe how KMS Encryption works?
- KMS stores the Customer Master Key
- KMS receives data from client
- KMS encrypts data and sends it back
What must you ensure when using Exported Output Values in Cloudformation?
You must ensure that Exported Output Values have unique names within a single region.
What service would you use if you would like to deploy an application to a Docker container in AWS?
ECS
What record would you create to point a domain such as yourapp.3rdparty.com to a custom domain such as www.mydomain.com in Route53?
Create a CNAME record.
If you create a Map of all the possible values for a base AMI for your EC2 instances, how should you invoke the !FindInMap function?
!FindInMap [ MapName, TopLevelKey, SecondLevelKey ]
What service would you use to debug and trace data across accounts and visualize it in a centralized account?
X-Ray
How do you control access to specific Lambda functions if they are all accessible via a publicly available API Gateway?
Use Lambda Authorizor which uses bearer token authentication strategies, such as OAuth or SAML. You have to create a Lambda function to implement this logic.
If you enabled CloudWatch Logs for API Gateway but CloudWatch logs are not being written, what could be the cause?
You need to enable X-Ray intergration
What is X-Ray sampling?
X-Ray SDK applies a sampling algorithm to determine which requests get traced
How can you debug CodeBuild?
Run CodeBuild locally
What service would you use to deploy new versions of your Lambda function and shift traffic to them?
CodeDeploy
What service will help you with JWT handling and validation?
Cognito UserPools
What does Cognito User Pool do?
After successfully authenticating a user, Amazon Cognito issues JSON web tokens (JWT) that you can use to secure and authorize access to your own APIs, or exchange for AWS credentials.
What would you do if you need to perform many kinds of queries, using different attributes as query criteria in DynamoDB?
Create a GSI (Global Secondary Index)