AWS Certified Developer Associate 5: Multiple Choice Questions And Correct Answers with Rationale,100% Verified
2 views 0 purchase
Course
AWS
Institution
AWS
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...
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
The benefits of buying summaries with Stuvia:
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
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
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.