AWS Developer Associate - C02 (Set 3) Flashcards
How would you set up the permissions for an AWS Lambda function that should be triggered by objects being uploaded to an S3 bucket?
Grant the S3 bucket permissions to invoke the Lambda function
Other than permissions, what needs to be set up on the Lambda side to connect a Lambda function to a DynamoDB Stream?
Create an event-source mapping on AWS Lambda to connect it to the DynamoDB Stream
Can an SNS filter policy be applied to a single receiver, or must it include the whole topic?
It can be applied to a single receiver.
What is a main difference between EFS and S3?
EFS has a file system, while S3 does not provide a file system, just object storage.
What is the best way that you can store database credentials for an EC2 instance to use on AWS?
Create a secret on AWS Secrets Manager
What is the best serverless option for a PostgreSQL database on AWS?
Amazon Aurora Serverless
What is the default length of time Kinesis data streams store records?
24 hours by default
Will AWS CodePipeline run automatically after making changes to the pipeline, or would you have to rerun it manually to get the changes?
You will have to rerun it manually. Unlike creating a pipeline, editing a pipeline does not rerun the most recent revision of it.
What is the simplest way to deploy a serverless application with CloudFormation?
Using a Serverless ApplicationModel (SAM) template.
What is AWS Elastic Beanstalk proxy server used for?
Serving static files from a set of directories from within your web application
What is likely the solution if you get an error from Lambda similar to “Code storage limit exceeded”?
You need to reduce the size of your code storage
In what section of a CloudFormation template can you deploy variable sized EC2 instances based on the environment (dev, test, prod..)?
The conditions section
What is the main difference between AWS SSM Parameter Store and AWS Secrets Manager?
Parameter Store only allows one version of a secret to be active at any given time, while Secrets Manager allows multiple versions to exist at the same time when you are performing a secret rotation. Parameter Store is also cheaper as it incurs no additional cost.
What does the cli command “aws s3 presign…” do?
Generates a pre-signed URL for an S3 object
What parameter can you add to the CreateFunction or UpdateFunction request to automatically publish a Lambda function after creating/updating it?
The publish parameter
How can you save costs on an SQS queue that has a low volume of messages?
Enable Long polling
What is an SQS LIFO queue?
It does not exist, SQS does not support LIFO
How can you increase throughput on an SQS Queue?
Use SQS batch actions
Would you use SQS or Kinesis Stream if you want to decouple components of an application?
SQS