Core Exam Flashcards
A published lambda version is a snapshot copy of the lambda function code and configuration in the $LATEST version. This means ….
A published version is inmutable. Code and configuration cannot be changed.
Many instances can pull a single queue, but to keep multiple instances from processing the same SQS message…
your application must delete the SQS message after processing. Being processed many times is probably an indication that the message is not being deleted following processing.
Benefits in costs of SQS long polling over short polling
Long polling doesn’t return a response until a message arrives to the queue. That is why you also reduce the cost because you reduce the number of empty receives.
An application requires maximum throughput and minimum latency. High availability is not a requirement. Which ec2 solution is best?
Cluster placement groups. These are logical grouping of instances in the same Availability Zone. Performance benefits by using private ip addresses. Also P2 instances are preferred (over T2) because they have enhanced Networking and compute.
Which method use CodePipeline to trigger automatically ?
CodePipeline use CloudWatch events to detect changes in the configured CodeCommit or Amazon S3 source. So then this starts the pipeline. This is default configuration.
If you want to route traffic by subdomain names which EC2 solution is best?
An Application Load Balancer with host-based routing rules. With path-based rules you can route based on the uris (.com/lalala/lelele)
For stream-based event sources (ex polling a dynamoDB) a lambda function is invoked. What happens if it is throttled?
Lambda attempts to process the throttled batch of records until the data expires.
If data requires to be encrypted in transit and at Rest, what could not be allowed?
ELB configured with SSL termination.
What is the best option to share an encrypted EBS volume between different accounts?
It is not possible to share access in the default process with a AWS managed CMK. To do so, you need a custom CMK. So copy the data to an unencrypted volume, create an snapshot and share it.
A person with only list object permissions on a bucket can generate pre-signed urls?
No. Only the owner can share the objects using pre-signed urls with his own credentials to grant time-limited permission to download objects.
If you have a deployment group with 10 instances and a minimum of 8 healthy instances, what would do CodeDeploy?
Will deploy in two instances at a time. If it fails, fails the overall deployment.
What are the benefits of using CORS on S3?
Allows Javascript trying to access web pages on the bucket and allows to host a web font.
How to ensure that data is encrypted in-flight both into and out S3?
Use the TLS endpoint and you can encrypt the data yourself on the client side before upload.
The integration between AWS Api Gateway and a backend running other AWS service is called..
AWS Service Proxy
What do you require to integrate Jenkins running on a instance with CodePipeline
Provide the IAM user credentials to integrate CodePipeline and fill out the required fields for your proxy host.
What would be valid reasons to run most of the code on Lambda?
Scalability is a main reason and updates on the logic of the app occurs very frequently.
If you use the AWS config managed rule IAM_PASSWORD_POLICY to check that password are changed after a period of time, which type of rule use?
Only a periodic trigger.
If the execution code of a lambda is taking too longer, which CloudWatch Metrics you should check?
The function’s latency CloudWatch metric to see if the latency is increasing or you can see an increase in the CloudWatch errors metric, which might be due to timeout errors
You have two instances in separated subnets, how you failover to the other?
You can add a second private ip to the primary instance’s ENI that can be moved to the secondary instance. Then use load balancing to redirect traffic to the secondary instance.
The frontend connection to an ELB has timeout. The health checks are not reaching the EC2 instances. What are the recommendation to troubleshoot?
First of all check a direct connection to the instances. After that verify different configuration for the health checks settings.
After a code update your app is down. What troubleshot steps could you take?
. Verify the SSL certificate is not expired.
. Validate the health check is working as expected after the software update. Instances are not in service until it succeeds
. The instances do not have the correct port open. Validate connection between the load balancer and the instances.
If a system status check for an instances has failed you can try..
. Stop and restart the instance
. Create an instance recovery alarm. Retrieve the system log and look for errors
. Post your issue to the Amazon EC2 forum
What is not a feature of KMS?
You cannot synchronize or move/copy keys across regions. You can only define rules to allow access across regions.
Which is a best practice to test a correct RDS implementation?
Test the failover for your DB instance to see how long it takes and ensure that your programmatic connection to the new database is working as expected.
In the context of Authentication Flow for Cognito you must pass also one valid token. And also all tokens must pass the validation during the GetOpenIdToken if not the connection fails. Why?
Because the Identity ID you pass may not be the one that is returned.
What is recommended to prevent users to deleting CodeCommit repositories accidentally ?
AWS recommends using IAM policies along with MFA-protection.
Which feature enables API developers to generate API responses from API Gateway directly without the integration with a backend?
Mock Integration
If a S3 upload of large amount of data is taking too long which feature you can use to reduce the times?
- Multipart upload
- Use direct connect between the on-premises and AWS VPC
If you need to increase a value on a DynamoDb table which commands would work?
- ADD
- SET + :p
- SET - :p
On a S3 versioned bucket what is true regarding encryption keys if encryption at rest server-side is enabled and the user provides also his own keys?
Both keys can coexist on different versions of the object but the user is responsible to track which key was used for each version.
If you have an app growing and you need elasticity and high availability with increased compute needs how can the environment be optimized?
- Launch larger instances and compute optimized