100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
AWS Certified Developer Associate 2: Multiple Choice Questions And Correct Answers with Rationale,100% Verified $15.49   Add to cart

Exam (elaborations)

AWS Certified Developer Associate 2: Multiple Choice Questions And Correct Answers with Rationale,100% Verified

 2 views  0 purchase
  • Course
  • Institution

AWS Certified Developer Associate 2: Multiple Choice Questions And Correct Answers with Rationale,100% Verified A Lambda function has been developed with the default settings and is using N. The function makes calls to a DynamoDB table. The code was first tested and executed on an EC2 Instance i...

[Show more]

Preview 4 out of 43  pages

  • March 13, 2024
  • 43
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
AWS Certified Developer Associate 2: Multiple Choice
Questions And Correct Answers with Rationale,100%
Verified
A Lambda function has been developed with the default settings and is using
Node.js. The function makes calls to a DynamoDB table. The code was first tested
and executed on an EC2 Instance in the same language and took 300 seconds to
execute. When the lambda function is executed , it is not adding the required
rows to the DynamoDB table. What needs to be changed in order to ensure that
the Lambda function works as desired?

A. Ensure that the underlying programming language is changed to python
B. Change the timeout for the function
C. Change the memory assigned to the function to 1 GB
D. Assign an IAM user to the Lambda function
Answer - B

Explanation :
If the lambda function was created with the default settings , it would have the default
timeout of 3
seconds as shown below. Since the function executes in a timespan of 300 seconds on
an EC2
instance , this value needs to be changed.

Option A is incorrect since the programming language is not an issue
Option C is incorrect since there is no mention on the amount of memory required in the
question
Option D is incorrect since IAM roles should be assigned to the Lambda function
For more information on configuring Lambda functions , please refer to the below URL
https://docs.aws.amazon.com/lambda/latest/dg/resource-model.html
You need to setup a RESTful API service in AWS that would be serviced via the
following url https://democompany.com/customers
Which of the following combination of services can be used for development and
hosting of the RESTful service? Choose 2 answers from the options below

A. AWS Lambda and AWS API gateway
B. AWS S3 and Cloudfront
C. AWS EC2 and AWS Elastic Load Balancer
D. AWS SQS and Cloudfront
Answer - A and C

Explanation:
AWS Lambda can be used to host the code and the API gateway can be used to
access the API's which point to AWS Lambda
Alternatively, you can create your own API service, host it on an EC2 Instance and then

,use the AWS
Application Load balancer to do path based routing.
Option B is incorrect since AWS S3 is normally is used to host static content
Option D is incorrect since AWS SQS is a queuing service
For more information on an example with RESTful API's , please refer to the below URL
https://aws.amazon.com/getting-started/projects/build-serverless-web-app-
lambdaapigateway-s3-dynamodb-cognito/module-4/
You are developing a mobile based application that needs to make use of an
authentication service. There are a set of videos files which need to be accessed
via unauthenticated identities. How can you BEST achieve this using AWS?

A. Create an IAM user with public access
B. Create an IAM group with public access
C. Use AWS Cognito with unauthenticated identities enabled.
D. Use AWS STS with SAML
Answer - C

Explanation:
This is also mentioned in the AWS Documentation
Using Identity Pools (Federated Identities)
Amazon Cognito identity pools provide temporary AWS credentials for users who are
guests
(unauthenticated) and for users who have been authenticated and received a token. An
identity pool is a store of user identity data specific to your account.
To create a new identity pool in the console
1. Sign in to the Amazon Cognito console, choose Manage Federated Identities, and
then choose Create new identity pool.
2. Type a name for your identity pool.
3. To enable unauthenticated identities select Enable access to unauthenticated
identities from the Unauthenticated identities collapsible section.
4. If desired, configure an authentication provider in the Authentication providers
section.
Options A and B are incorrect since it's not the right approach to use IAM users or
groups for access for mobile based applications
Option D is incorrect since SAML is used for federated access.
For more information on identity pools , please refer to the below URL
https://docs.aws.amazon.com/cognito/latest/developerguide/identity-pools.html
You're a developer at a company that needs to deploy an application using
Elastic Beanstalk. There is a requirement to place a healthcheck.config file for the
environment. In which of the following location should this config file be placed
to ensure it is part of the elastic beanstalk environment?

A. In the application root folder
B. In the config folder
C. In the packages folder
D. In the .ebextensions folder

,Answer - D

Explanation :
The AWS Documentation mentions the following
Elastic Beanstalk supports two methods of saving configuration option settings.
Configuration files in
YAML or JSON format can be included in your application's source code in a directory
named .ebextensions and deployed as part of your application source bundle. You
create and manage
configuration files locally.
All other options are incorrect because the AWS documentation specifically mentions
that you need
to place custom configuration files in the .ebextensions folder
An application needs to make use of a messaging system. The messages need to
be processed in the order they are received and also no duplicates should be
allowed.
Which of the following would you use for this purpose?

A. Enable FIFO on an existing SQS Standard Queue.
B. Add the .fifo extension to the Standard SQS Queue
C. Consider using SNS
D. Use the FIFO SQS Queues
Answer - D

Explanation:
This is also mentioned in the AWS Documentation
FIFO (First-In-First-Out) queues are designed to enhance messaging between
applications when the
order of operations and events is critical, or where duplicates can't be tolerated, for
example:
· Ensure that user-entered commands are executed in the right order.
· Display the correct product price by sending price modifications in the right order.
· Prevent a student from enrolling in a course before registering for an account.
Options A and B are incorrect since FIFO queues are already available for this purpose.
Option C is incorrect since this is a notification service and not a queuing service
For more information on SQS FIFO Queues , please refer to the below URL
Which of the following is the right sequence of hooks that get called in AWS
CodeDeploy?

A. Application Stop->BeforeInstall->After Install->Application Start
B. BeforeInstall->After Install-> Application Stop-> Application Start
C. BeforeInstall->After Install->Validate Service-> Application Start
D. BeforeInstall->Application Stop-> Validate Service-> Application Start
Answer - A

Explanation :

, This is also mentioned in the AWS Documentation
Because of the order of events given in the AWS Documentation , all other options are
invalid.
For more information on the hooks order , please refer to the below URL
https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-
filestructure-
hooks.html#reference-appspec-file-structure-hooks-run-order
As a developer, you have created a Lambda function that is used to work with a
bucket in Amazon S3. The Lambda function is not working as expected. You need
to debug the issue and understand what's the underlying issue. How can you
accomplish this?

A. Use AWS Cloudwatch metrics
B. Put logging statements in your code
C. Set the Lambda function debugging level to verbose
D. Use AWS Cloudtrail logs
Answer - B

Explanation :
This is also mentioned in the AWS Documentation
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/).
Option A is incorrect since the metrics will only give the rate at which the function is
executing , but not help debug the actual error
Option C is incorrect since there is no such option
Option D is incorrect since this is only used for API monitoring
For more information on monitoring functions , please refer to the below URL
https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions.html
You are developing a function that will be hosted in AWS Lambda. The function
will be developed in .Net. There are a number of external libraries that are needed
for the code to run. Which of the following is the best practice when it comes to
working with external dependencies for AWS Lambda?

A. Make sure that the dependencies are put in the root folder
B. Selectively only include the libraries that are required
C. Make sure the libraries are installed in the beginning of the function
D. Place the entire SDK dependencies in Amazon S3
Answer - B

Explanation :
This is also mentioned in the AWS Documentation
Minimize your deployment package size to its runtime necessities. This will reduce the
amount of time that it takes for your deployment package to be downloaded and

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller QUICKEXAMINER. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $15.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75619 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$15.49
  • (0)
  Add to cart