Question
Time left
Score
0
What is the answer to this questions?
A
Choice 1
B
Choice 2
C
Choice 3
D
Choice 4
This domain makes up 12% of the exam and includes the following objectives:
1. Write code that can be monitored.
2. Perform root cause analysis on faults found in testing or production.
AWS Certified Developer Associate : Monitoring and Troubleshooting
2023 AWS Certification Machine Learning Specialty (MLS-C01) Practice Exams
2023 AWS Solutions Architect Associates SAA Certification Practice Tests and Quizzes illustrated
AI Unraveled: Demystifying Frequently Asked Questions on Artificial Intelligence
1
Monitor Lambda Function
You can insert logging statements into your code to help you validate that your code is working as expected. Lambda automatically integrates with Amazon CloudWatch Logs and pushes all logs from your code to a CloudWatch Logs group associated with a Lambda function (/aws/lambda/).
2
Dead Letter Queues (DLQ)
Any Lambda function invoked asynchronously is retried twice before the event is discarded. If the retries fail and you're unsure why, use Dead Letter Queues (DLQ) to direct unprocessed events to an AmazonSQS queue or an Amazon SNS topic to analyze the failure.
3
Amazon CloudWatch Agent
The Amazon CloudWatch Agent can be configured to stream logs and metrics to CloudWatch. Metric filters can be created from logs stored in CloudWatch Logs.
4
Troubleshhot unreachable instance: Secondary ENI
To allow traffic to be quickly directed to a standby instance if the application fails and becomes unreachable
, a secondary ENI can be added to an instance. While primary ENIs cannot be detached from an instance, secondary ENIs can be detached and attached to a different instance.
5
Amazon ElastiCache
Amazon ElastiCache is a web service that makes it easy to deploy and run Memcached or Redis protocol-compliant server nodes in the cloud. Amazon ElastiCache improves the performance of web applications by allowing you to retrieve information from a fast, managed, in-memory caching system, instead of relying entirely on slower disk-based databases. The service simplifies and offloads the management, monitoring and operation of in-memory cache environments, enabling your engineering resources to focus on developing applications. Using Amazon ElastiCache, you can not only improve load and response times to user actions and queries, but also reduce the cost associated with scaling web applications
6
Monitor the incoming connections to the Elastic Load Balancer:
Elastic Load Balancing provides access logs that capture detailed information about requests sent to your load balancer. Each log contains information such as the time the request was received, the client's IP address, latencies, request paths, and server responses. You can use these access logs to analyze traffic patterns and troubleshoot issues.
7
Amazon Cognito Streams
Amazon Cognito Streams gives developers control and insight into their data stored in Amazon Cognito. Developers can now configure a Kinesis stream to receive events as data is updated and synchronized. Amazon Cognito can push each dataset change to a Kinesis stream you own in real time. All other options are invalid since you should use Cognito Streams
8
CloudFormation rollback
Part of your CloudFormation deployment fails due to a mis-configuration, by default what will happen? CloudFormation will rollback the entire stack
9
Troubleshoot Lambda function
If your Lambda function code is executing, but you don't see any log data being generated after several minutes, this could mean your execution role for the Lambda function did not grant permissions to write log data to CloudWatch Logs. For information about how to make sure that you have set up the execution role correctly to grant these permissions, see Manage Permissions: Using an IAM Role (Execution Role)
10
Client 429 errors
Your application is developed to pick up metrics from several servers and push them off to Cloudwatch. At times , the application gets client 429 errors. Which of the following can be done from the programming side to resolve such errors?
The main reason for such errors is that throttling is occurring when many requests are sent via API calls. The best way to mitigate this is to stagger the rate at which you make the API calls.In addition to simple retries, each AWS SDK implements exponential backoff algorithm for better flow control. The idea behind exponential backoff is to use progressively longer waits between retries for consecutive error responses. You should implement a maximum delay interval, as well as a maximum number of retries. The maximum delay interval and maximum number of retries are not necessarily fixed values and should be set based on the operation being performed, as well as other local factors, such as network latency.
11
What is Scrum?
Scrum is basically used to divide your complex software and product development task into smaller
chunks, using iterations and incremental practises. Each iteration is of two weeks. Scrum consists of three
roles: Product owner, scrum master and Team
12
What does the commit object contain?
Commit object contain the following components:
It contains a set of files, representing the state of a project at a given point of time reference to parent
commit objects.
An SHAI name, a 40-character string that uniquely identifies the commit object (also called as hash).
13
Explain the difference between git pull and git fetch?
Git pull command basically pulls any new changes or commits from a branch from your central repository
and updates your target branch in your local repository.
Git fetch is also used for the same purpose, but its slightly different form Git pull. When you trigger a git
fetch, it pulls all new commits from the desired branch and stores it in a new branch in your local
repository. If we want to reflect these changes in your target branch, git fetch must be followed with a git
merge. Our target branch will only be updated after merging the target branch and fetched branch. Just
to make it easy for us, remember the equation below:
Git pull = git fetch + git merge
14
How do we know in Git if a branch has already been merged into master?
git branch –merged
The above command lists the branches that have been merged into the current branch.
git branch –no-merged
This command lists the branches that have not been merged
15
What is ‘Staging Area’ or ‘Index’ in GIT?
Before committing a file, it must be formatted and reviewed in an intermediate area known as ‘Staging
Area’ or ‘Indexing Area’.
#git add
16
What is Git Stash?
Let’s say you’ve been working on part of your project, things are in a messy state and you want to switch
branches for some time to work on something else. The problem is, you don’t want to do a commit of
your half-done work just, so you can get back to this point later. The answer to this issue is Git stash.
Git Stashing takes your working directory that is, your modified tracked files and staged changes and
saves it on a stack of unfinished changes that you can reapply at any time.
17
What is the function of ‘git config’?
Git uses our username to associate commits with an identity. The git config command can be used to
change our Git configuration, including your username.
Suppose you want to give a username and email id to associate commit with an identity so that you can
know who has made a commit. For that I will use:/br>
git config –global user.name “Your Name”: This command will add your username.
git config –global user.email “Your E-mail Address”: This command will add your email id.
18
How can you create a repository in Git?
To create a repository, you must create a directory for the project if it does not exist, then run command
“git init”. By running this command .git directory will be created inside the project directory.
19
Explain what is continuous integration?
When multiple developers or teams are working on different segments of same web application, we need
to perform integration test by integrating all the modules. To do that an automated process for each
piece of code is performed on daily bases so that all your code gets tested. And this whole process is
termed as continuous integration.
20