Certified Developer Associate Flashcards
When would you use high-resolution CloudWatch metric?
When application needs monitoring with frequency of 10 or 30 seconds.
When working on AWS CodeBuild you want to override build command to test the change. You have access to run the build but not to edit code build project. What process can be used to override build command?
Run the start build AWS CLI command with buildspecOverride property set to the new buildspec.yml file
aws codebuild start-build –generate-cli-skeleton
Explain lazy loading strategy in Elastic Cache cluster
When data requested doesn’t exists or is expired in the cache, lookup into db is performed and result stored in the cache after.
Explain write through strategy in Elastic Cache cluster
adds data or updates data in the cache whenever data is written to the database.
Which API call should a developer used when application is trying to access S3 bucket?
STS:AssumeRole
Which service should developer use when migrating an application that uses Microsoft SQL with Transparent Data Encryption?
RDS supports TDE for SQL servers
How we can we route traffic to API gateway for different stages without creating separate API for each?
make use of stage variables as configuration attributes that are associated with deployment stage of an API. They act as environment variables and can be used with stage API setup.
What is required to set CloudWatch alarm?
Period - length of time to evaluate the metric to create individual data point.
Evaluation Period - number of most recent data points to evaluate when determining alarm state.
Datapoints to Alarm - number of datapoints within the evaluation period that must be breached to cause alarm state.
How can developer change the instance size of the Elastic Beanstalk?
during environment creation, creating configuration file in S3. Configuration files are applied from different source with different precedence.
- applied directly to environment
- saved configurations
- configuration files (.ebextensions)
- default values
Which deployment methods will deploy Elastic Beanstalk code to only new instances?
Immutable deployment - deploys new set of instances with new version of application code in separate auto scaling group.
Blue/Green deployments - allows separate deployment environment too.
Ratio of Read and Write operations in DynamoDb is 1000 : 1. What can be enabled on dynamoDb table to optimize performance and minimize costs?
DynamoDb Accelerator - DAX is DynamoDb caching service for read heavy or bursty workloads while keeping latency at minimal.
What rates can S3 support?
3,500 requests per second to add data and 5,500 requests per second to retrieve data.
How do you control API front-end and back-end interactions via API Gateway?
Modify method request/response for FE and
Integration request/response for BE.
AWS Lambda functions is interacting with DynamoDb table and results and being returned with a delay. What is the best way to debug and identify this performance issue?
Use AWS X-Ray to see where the downstream delay could be. Can also be used to investigate latency issues.
How to configure server side encryption for S3 artefacts?
server side encryption is enabled on bucket level.
KMS custom key and use it for S3 encryption.
How would you develop AWS application to compensate for network delays?
Retries in my application code with exponential backoff algorithm (progressively longer waits between retries for consecutive error responses).
What does user pools in AWS Cognito provide?
- Web UI to sign in users and social sign via Facebook, Google etc.
- User directory management and profile.
- Security such MFA, phone email verification.
You have application that stored data in DynamoDb table. How can you achieve encryption at rest?
DynamoDb offers encryption during a table creation using KMS managed encryption key for DynamoDb.
Different deployment strategies for Elastic Beanstalk?
All at once Rolling Rolling with additional batch Immutable Blue/Green
Your application process data from multiple devices and some preprocessing needs to happen before it can be analysed by Analytics tool. What can be used to carry this activity?
AWS lambda can be used to preprocess data from Kinesis Analytics. It give you flexibility in terms of what data could actually be analysed.
You are required to customise a content that Cloudfront (content delivery framework) Distribution delivers, the content origin is S3. How could this be achieved?
Lambda@Edge allows you to execute functions that Cloudfront delivers. Functions are executed globally and are closer to the viewer reducing latency and improving user experience.
What tool in AWS will let you managed whole project life cycle
AWS CodeStar
How can you deliver new version of application to a portion of user when using Route 53 DNS
Use Route 53 weighted routing policies, you can select how much traffic is routed to each resource.
You need to automate deployment different Lambda functions to multiple accounts, what can be used to automate deployment?
AWS CloudFormation is a service that can deploy infrastructure as code, with ability to deploy into different accounts.
When deploying lambda function with multiple version using AWS CodeDeploy what needs to be done in order to deploy correct version?
AWS CodeDeploy config file is called AppSpec file, there we can specify a version to be deployed.
How can you get private/public IP from EC2 instance?
Query the instance MetaData.
Where should you store files such as videos in AWS to ensure components are decoupled?
AWS Simple Storage Service (S3).
How do you calculate read capacity in DynamoDb?
(items / seconds) = items per second
items / 4kb = value to whole number
items per second x value to whole number
If eventual consistency x 2
How can you monitor incoming connections to the load balancer?
ELB provides access log that capture detailed information about the request coming in.
Your application stores data in DynamoDb there is a requirement that once record is inserted secondary table is also updated. What feature can be used in order to accomplish this?
AWS DynamoDb streams contains a time ordered sequence of item level modification stored for 24h.
What can you do to avoid throttling errors when scaling large DynamoDb table?
reduce scan page size which by default is 1MB
What needs to be done for a lambda function to be able to access resources in a VPC?
Subnet and Security group ID