Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

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

Rating
-
Sold
-
Pages
45
Grade
A+
Uploaded on
20-12-2023
Written in
2023/2024

AWS Certified Developer Associate 5: Multiple Choice Questions And Correct Answers with Rationale,100% Verified A developer is writing an application that will run on -premises, but must access AWS services through an AWS SDK. How can the Developer allow the SDK to access the AWS services? A. Create an IAM EC2 role with correct permissions and assign it to the on-premises server. B. Create an IAM user with correct permissions, generate an access key and store it in aws credentials C. Create an IAM role with correct permissions and request an STS token to assume the role. D. Create an IAM user with correct permissions, generate an access key and store it in a Dynamo DB table. Answer - B When working on development, you need to use the AWS Access keys to work with the AWS Resources The AWS Documentation additionally mentions the following You use different types of security credentials depending on how you interact with AWS. For example, you use a user name and password to sign in to the AWS Management Console. You use access keys to make programmatic calls to AWS API operations. Option A is incorrect since we need to do this from an on-premise server you cannot use an EC2 role to work with an on-premise server. Option C is incorrect. If you want to

Show more Read less
Institution
Course

Content preview

AWS Certified Developer Associate 5: Multiple
Choice Questions And Correct Answers with
Rationale,100% Verified
A developer is writing an application that will run on -premises, but must access
AWS services through an AWS SDK. How can the Developer allow the SDK to
access the AWS
services?

A. Create an IAM EC2 role with correct permissions and assign it to the on-
premises server.
B. Create an IAM user with correct permissions, generate an access key and store
it in aws credentials
C. Create an IAM role with correct permissions and request an STS token to
assume the role.
D. Create an IAM user with correct permissions, generate an access key and store
it in a Dynamo DB
table.
Answer - B
When working on development, you need to use the AWS Access keys to work with the
AWS Resources
The AWS Documentation additionally mentions the following
You use different types of security credentials depending on how you interact with AWS.
For example, you use a
user name and password to sign in to the AWS Management Console. You use access
keys to make
programmatic calls to AWS API operations.
Option A is incorrect since we need to do this from an on-premise server you cannot
use an EC2 role to work with
an on-premise server.
Option C is incorrect. If you want to test your application on your local machine, you're
going to need to generate
temporary security credentials (access key id, secret access key, and session token).
You can do this by using the
access keys from an IAM user to call assumeRole
(http://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html). The
result of that call will
include credentials that you can use to set the AWS_ACCESS_KEY_ID,
AWS_SECRET_ACCESS_KEY, and
AWS_SESSION_TOKEN (note without the token, they keys will be invalid). The
SDK/CLI should then use these
credentials. This will give your app a similar experience to running in an Amazon EC2
instance that was launched

,using an IAM role.
https://forums.aws.amazon.com/thread.jspa?messageID=604424
Option D is incorrect since the access keys should be on the local machine
For more information on usage of credentials in AWS , please refer to the below link:
https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html
A Developer is migrating an on-premises web application to the AWS Cloud. The
application
currently runs on a 32-processor server and stores session state in memory. On
Friday
afternoons the server runs at 75% CPU utilization, but only about 5% CPU
utilization at other
times.
How should the Developer change to code to better take advantage of running in
the cloud?

A. Compress the session state data in memory
B. Store session state on EC2 instance Store
C. Encrypt the session state data in memory
D. Store session state in an ElastiCache cluster.
Answer - D
ElastiCache is the perfect solution for managing session state. This is also given in the
AWS Documentation
In order to address scalability and to provide a shared data storage for sessions that
can be accessible from any
individual web server, you can abstract the HTTP sessions from the web servers
themselves. A common solution
to for this is to leverage an In-Memory Key/Value store such as Redis and Memcached.
Option A is incorrect since compression is not the ideal solution
Option B is incorrect since EC2 Instance Store is too volatile.
Option C is incorrect since this is ok from a security standpoint but will just make the
performance worse for the
application
For more information on Session Management , please refer to the below Link:
https://aws.amazon.com/caching/session-management/
An organization's application needs to monitor application specific events with a
standard
AWS service. The service should capture the number of logged in users and
trigger events
accordingly. During peak times, monitoring frequency will occur every 10
seconds.
What should be done to meet these requirements?

A. Create an Amazon SNS notification
B. Create a standard resolution custom Amazon CloudWatch log
C. Create a high-resolution custom Amazon CloudWatch metric
D. Create a custom Amazon CloudTrail log.

,Answer - C
This is clearly mentioned in the AWS Documentation
When creating an alarm, select a period that is greater than or equal to the frequency of
the metric to be
monitored. For example, basic monitoring for Amazon EC2 provides metrics for your
instances every 5 minutes.
When setting an alarm on a basic monitoring metric, select a period of at least 300
seconds (5 minutes). Detailed
monitoring for Amazon EC2 provides metrics for your instances every 1 minute. When
setting an alarm on a
detailed monitoring metric, select a period of at least 60 seconds (1 minute).
If you set an alarm on a high-resolution metric, you can specify a high-resolution alarm
with a period of 10
seconds or 30 seconds, or you can set a regular alarm with a period of any multiple of
60 seconds
Option A is incorrect since the question does not mention anything on notifications.
Option B is incorrect since the standard resolution counters will not help define triggers
within a 10 second
interval
Option D is incorrect since Cloudtrail is used for API Activity logging
For more information on Cloudwatch metrics , please refer to the below Link:
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_conce
pts.html
A Developer is writing an application that runs on EC2 instances and stores 2 GB
objects in an
S3 bucket. The Developer wants to minimize the time required to upload each
item. Which
API should the Developer use to minimize upload time?

A. MultipartUpload
B. BatchGetltem
C. BatchWriteItem
D. Putltem
Answer - A
The AWS Documentation mentions the following to support this
The Multipart upload API enables you to upload large objects in parts. You can use this
API to upload new large
objects or make a copy of an existing object (see Operations on Objects).
Multipart uploading is a three-step process: You initiate the upload, you upload the
object parts, and after you
have uploaded all the parts, you complete the multipart upload. Upon receiving the
complete multipart upload
request, Amazon S3 constructs the object from the uploaded parts, and you can then
access the object just as
you would any other object in your bucket.
Option B is incorrect since this is used to get a batch of items

, Option C is incorrect since this is used to write a batch of items and would not help to
upload a large item
Option D is incorrect since this is used to Put a single item but does not offer
performance benefits for uploading
large objects.
For more information on Amazon S3 Multipart file upload, please refer to the below Link:
https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html
A Developer working on an AWS CodeBuild project wants to override a build
command as
part of a build run to test a change. The developer has access to run the builds
but does not
have access to edit the CodeBuild project
What process should the Developer use to override the build command?

A. Update the buildspec.yml configuration file that is part of the source code and
run a new build.

B. Update the command in the Build Commands section during the build run in
the AWS console.

C. Run the start build AWS CLI command with buildspecOverride property set to
the new
buildspec.yml file.

D. Update the buildspec property in the StartBuild API to override the build
command during build
run.
Answer - C
Use the AWS CLI command to specify different parameters that need to be run for the
build. Since the developer
has access to run the build , he can run the build changing the parameters from the
command line. The same is
also mentioned in the AWS Documentation

All other option are incorrect since we need to use the AWS CLI
For more information on running the command via the CLI, please refer to the below
Link:
https://docs.aws.amazon.com/codebuild/latest/userguide/run-build.html#run-build-cli
An organization is using an Amazon ElastiCache cluster in front of their Amazon
RDS
instance. The organization would like the Developer to implement logic into the
code so that
the cluster only retrieves data from RDS when there is a cache miss.
What strategy can the Developer implement to achieve this?

A. Lazy loading

Written for

Course

Document information

Uploaded on
December 20, 2023
Number of pages
45
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$15.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ACADEMICAIDSTORE Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
1212
Member since
4 year
Number of followers
892
Documents
12015
Last sold
1 day ago
ACADEMICAID STORE

Welcome to ACADEMICAID store! We specialize in reliable test banks, exam questions with verified answers, practice exams, study guides, and complete exam review materials to help students pass on the first try. Our uploads support Nursing programs, professional certifications, business courses, accounting classes, and college-level exams. All documents are well-organized, accurate, exam-focused, and easy to follow, making them ideal for quizzes, midterms, finals, ATI & HESI prep, NCLEX-style practice, certification exams, and last-minute reviews. If you’re looking for trusted test banks, comprehensive exam prep, and time-saving study resources, you’re in the right place.

Read more Read less
4.1

176 reviews

5
98
4
29
3
28
2
6
1
15

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions